From patchwork Mon Jun 12 10:52:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?TWFzbyBIdWFuZyAo6buD5Yqg56u5KQ==?= X-Patchwork-Id: 106517 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2520315vqr; Mon, 12 Jun 2023 04:38:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ45i8+DrmK5q4GE+yD37bfbMFO0obGsvkrnWRstBUx3TEmmCM/imAaHurRbTTUopmgLTaaQ X-Received: by 2002:a17:907:16a2:b0:978:73af:1bec with SMTP id hc34-20020a17090716a200b0097873af1becmr8156240ejc.33.1686569883074; Mon, 12 Jun 2023 04:38:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686569883; cv=none; d=google.com; s=arc-20160816; b=mTEOovTM5FgYhxhn5bFNovPT9f9nDp0Fw3MwgFHlYfs+VGaj3b9lfftyfVLirHek2P fAHUJ7cgTwpNMpdXkT/XHcVu8TFtpYRaoTP4ZMa3lB06HT5xxvvO7bMLBWqzd62FaS3v WOoS7OhRrJhGyDAAU6Nra8SXNq73POZ1cumfx4CvAKRnpE2MtqoV6G8nw4qZ87x8ulZf RqOfBbSVX0VLMeUZnV4b+/qVigKzxl/qPKuPdhHlSMcKUUShzOqFqOEW9w/bqNKT0dE8 hnBCHM7gFGZ9fhuJc9v3sDvIcZ3/zkh4tFeN1QmTOYWuoMEd2h0lqJw9zEJX8RIfwRMo eMTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Dvi1PlHn3OIi9tRbQRhyfGDeuJwoTGNULd7VXBd16OQ=; b=RS559xPITC9Zq8t4KZqwGxA1u7+9/2l0+vQvfmI1QdMtuvb97mL2LUuJFklJ5pBTad Fu84Ho2a9vxg98o3QSMZnHqoFMRx784s0na4FKYG1juWnAEuvbwwJX3Eqk7vAV83MmmA e3O+0ZJ5fXLmte7ZzZXH/kNWqf1ysBrYAFLVf7vMXjZ1z6IrjSW5hKkxqfEMIG9Dob0I o8WigE/g625AlvrAgfdDilTVJ/mcaBab/24Vk03IAk7zbqVO6h5OxeuphnERnK1qlOz7 r83PxvfiuWprPsKXOm7VOvIARvq9+MF9nu0qPVRD7BWWP1jGQgQtZjDw5osQ6LczRh/M uUOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=NkWUN9Tj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t13-20020a170906948d00b0094f6e186c50si5563854ejx.295.2023.06.12.04.37.38; Mon, 12 Jun 2023 04:38:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=NkWUN9Tj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238158AbjFLLGl (ORCPT + 99 others); Mon, 12 Jun 2023 07:06:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238095AbjFLLGF (ORCPT ); Mon, 12 Jun 2023 07:06:05 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75CDAAD13; Mon, 12 Jun 2023 03:53:53 -0700 (PDT) X-UUID: 68dfd50c090f11ee9cb5633481061a41-20230612 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=Dvi1PlHn3OIi9tRbQRhyfGDeuJwoTGNULd7VXBd16OQ=; b=NkWUN9TjAX421Lh/2HsBGWOxDWB+Ksl4LAfGPeXRRUoj+oU0wp0Vs8e4Fzpju53g0eWtGotU5gZvlrh8mOn/AZd8DoHJIqLMRXHJ098H0dZ6ocmLHVxfKT5g2fORu8YUrCjWh3z2Wcsbd7Yc2wTQjhOmz8PkowTBkyEfdfMoyVo=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.26,REQID:a94c04a8-fd9a-4b65-8b52-59af83553a31,IP:0,U RL:25,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:25 X-CID-META: VersionHash:cb9a4e1,CLOUDID:d2c7293e-de1e-4348-bc35-c96f92f1dcbb,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:11|1,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1,SPR: NO X-CID-BVR: 0,NGT X-CID-BAS: 0,NGT,0,_ X-CID-FACTOR: TF_CID_SPAM_ULN,TF_CID_SPAM_SNR X-UUID: 68dfd50c090f11ee9cb5633481061a41-20230612 Received: from mtkmbs10n2.mediatek.inc [(172.21.101.183)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1671494933; Mon, 12 Jun 2023 18:53:48 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Mon, 12 Jun 2023 18:53:47 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Mon, 12 Jun 2023 18:53:47 +0800 From: Maso Hunag To: AngeloGioacchino Del Regno , Jaroslav Kysela , Takashi Iwai , Trevor Wu , Jiaxin Yu , Ren Zhijie , Arnd Bergmann , Allen-KH Cheng , , , , , CC: Maso Huang Subject: [PATCH 6/7] ASoC: dt-bindings: mediatek,mt79xx-wm8960: add mt79xx-wm8960 document Date: Mon, 12 Jun 2023 18:52:49 +0800 Message-ID: <20230612105250.15441-7-maso.huang@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20230612105250.15441-1-maso.huang@mediatek.com> References: <20230612105250.15441-1-maso.huang@mediatek.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768496701252962620?= X-GMAIL-MSGID: =?utf-8?q?1768496701252962620?= From: Maso Huang Add document for mt79xx board with wm8960. Signed-off-by: Maso Huang --- .../sound/mediatek,mt79xx-wm8960.yaml | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/mediatek,mt79xx-wm8960.yaml diff --git a/Documentation/devicetree/bindings/sound/mediatek,mt79xx-wm8960.yaml b/Documentation/devicetree/bindings/sound/mediatek,mt79xx-wm8960.yaml new file mode 100644 index 000000000000..26b38bb629da --- /dev/null +++ b/Documentation/devicetree/bindings/sound/mediatek,mt79xx-wm8960.yaml @@ -0,0 +1,53 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/mediatek,mt79xx-wm8960.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek MT79xx ASOC sound card with WM8960 codec + +maintainers: + - Maso Huang + +properties: + compatible: + const: mediatek,mt79xx-wm8960-machine + + mediatek,platform: + $ref: /schemas/types.yaml#/definitions/phandle + description: The phandle of MT79xx ASoC platform. + + audio-routing: + $ref: /schemas/types.yaml#/definitions/non-unique-string-array + description: + A list of the connections between audio components. Each entry is a + sink/source pair of strings. Valid names could be the input or output + widgets of audio components, power supplies, MicBias of codec and the + software switch. + + mediatek,audio-codec: + $ref: /schemas/types.yaml#/definitions/phandle + description: The phandle of wm8960 codec. + +additionalProperties: false + +required: + - compatible + - mediatek,platform + - audio-routing + - mediatek,audio-codec + +examples: + - | + sound { + compatible = "mediatek,mt79xx-wm8960-machine"; + mediatek,platform = <&afe>; + audio-routing = + "Headphone", "HP_L", + "Headphone", "HP_R", + "LINPUT1", "AMIC", + "RINPUT1", "AMIC"; + mediatek,audio-codec = <&wm8960>; + }; + +...