From patchwork Wed Dec 15 06:58:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Wu X-Patchwork-Id: 524331 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B0892C4321E for ; Wed, 15 Dec 2021 06:59:58 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id F01681F4A; Wed, 15 Dec 2021 07:59:05 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz F01681F4A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1639551596; bh=palj+U346hsM8IhNat0ATas4afkl6MaAEsquRN4TFO8=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=e88eI5fXr3J0cAfWB15iad690KlRvOjyR4dzDy97cWm81hXKmnhO2jWV3zpPazkYV ho/jnlv/L6HcMfYBwbVcu8XSNwdz600Ajb6DzL35+DjbL+WVoXjWAT0ICKV9oQ07nZ 8Wk4GX8ZDlNaHLENb20qTqiqaVfGkDxur2WaW8HQ= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 4DEE0F800E0; Wed, 15 Dec 2021 07:59:05 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 01E7EF8025D; Wed, 15 Dec 2021 07:58:56 +0100 (CET) Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 28DE6F800E0 for ; Wed, 15 Dec 2021 07:58:46 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 28DE6F800E0 X-UUID: 7e7503e2abb84bf0b980c2bf75e85d88-20211215 X-UUID: 7e7503e2abb84bf0b980c2bf75e85d88-20211215 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 704864354; Wed, 15 Dec 2021 14:58:38 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.3; Wed, 15 Dec 2021 14:58:37 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 15 Dec 2021 14:58:37 +0800 From: Trevor Wu To: , , , Subject: [PATCH 2/2] dt-bindings: mediatek: mt8195: add clock property to sound node Date: Wed, 15 Dec 2021 14:58:35 +0800 Message-ID: <20211215065835.3074-2-trevor.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20211215065835.3074-1-trevor.wu@mediatek.com> References: <20211215065835.3074-1-trevor.wu@mediatek.com> MIME-Version: 1.0 X-MTK: N Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, jiaxin.yu@mediatek.com, linux-mediatek@lists.infradead.org, trevor.wu@mediatek.com, shumingf@realtek.com, linux-arm-kernel@lists.infradead.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" clocks and clock-names are added to provide MCLK phandle for sound card. Signed-off-by: Trevor Wu --- .../bindings/sound/mt8195-mt6359-rt1011-rt5682.yaml | 12 ++++++++++++ .../bindings/sound/mt8195-mt6359-rt1019-rt5682.yaml | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/mt8195-mt6359-rt1011-rt5682.yaml b/Documentation/devicetree/bindings/sound/mt8195-mt6359-rt1011-rt5682.yaml index cf6ad7933e23..b57c856d0cf3 100644 --- a/Documentation/devicetree/bindings/sound/mt8195-mt6359-rt1011-rt5682.yaml +++ b/Documentation/devicetree/bindings/sound/mt8195-mt6359-rt1011-rt5682.yaml @@ -32,11 +32,21 @@ properties: $ref: "/schemas/types.yaml#/definitions/phandle" description: The phandle of MT8195 HDMI codec node. + clocks: + items: + - description: phandle and clock specifier for codec MCLK. + + clock-names: + items: + - const: i2so1_mclk + additionalProperties: false required: - compatible - mediatek,platform + - clocks + - clock-names examples: - | @@ -44,6 +54,8 @@ examples: sound: mt8195-sound { compatible = "mediatek,mt8195_mt6359_rt1011_rt5682"; mediatek,platform = <&afe>; + clocks = <&topckgen 235>; //CLK_TOP_APLL12_DIV2 + clock-names = "i2so1_mclk"; pinctrl-names = "default"; pinctrl-0 = <&aud_pins_default>; }; diff --git a/Documentation/devicetree/bindings/sound/mt8195-mt6359-rt1019-rt5682.yaml b/Documentation/devicetree/bindings/sound/mt8195-mt6359-rt1019-rt5682.yaml index 8f177e02ad35..e4720f76f66b 100644 --- a/Documentation/devicetree/bindings/sound/mt8195-mt6359-rt1019-rt5682.yaml +++ b/Documentation/devicetree/bindings/sound/mt8195-mt6359-rt1019-rt5682.yaml @@ -42,11 +42,21 @@ properties: A list of the desired dai-links in the sound card. Each entry is a name defined in the machine driver. + clocks: + items: + - description: phandle and clock specifier for codec MCLK. + + clock-names: + items: + - const: i2so1_mclk + additionalProperties: false required: - compatible - mediatek,platform + - clocks + - clock-names examples: - | @@ -54,6 +64,8 @@ examples: sound: mt8195-sound { compatible = "mediatek,mt8195_mt6359_rt1019_rt5682"; mediatek,platform = <&afe>; + clocks = <&topckgen 235>; //CLK_TOP_APLL12_DIV2 + clock-names = "i2so1_mclk"; pinctrl-names = "default"; pinctrl-0 = <&aud_pins_default>; };