Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp145476pxj; Wed, 16 Jun 2021 22:50:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz97sH8pFFijx4tHtyjSID/4MIrOZaS8Y0ohQfzCTPc7cPqpgn1rxisn27OQsRBDWWHGI0K X-Received: by 2002:a17:906:bb0e:: with SMTP id jz14mr3298978ejb.285.1623909039941; Wed, 16 Jun 2021 22:50:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623909039; cv=none; d=google.com; s=arc-20160816; b=NRkU8e/tvE0ZhYEotKMV6j8OqPKpbnkuObLNEo29r/dRP3X7x5wPE6VJmcluJMP8A7 MqrC15BM4/jqv5xl+9pIx39TpHKe5QjHVMZO0DEExTMpfQTwcQSiwPpChG+goHjC6vBo DSUW09X/aty//OKAkzWjXiMcMUNfZ5P87FjaS1/QOggb0yB5jGjimjoEikst79Wo4fS8 om6y6ji3dG01nVUrdxFJTygtnKmYuoFDYuf2vX+cZz4RlHBnnROJuso2VfGSHzHtSf4f BdO6A7skGPGfhrpjm6f+430VpSgNGyflfDDWQPz8ZszgV4JVJl1zq1aWvm3PBfsiOgb2 z4fw== 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; bh=m3tW3nNkZWKniOkyJeeHPQL0FHeuRDgnYR01EqANBdI=; b=MO2Qiu9Rc2UJc4KtS30E1Xw4erjiwc6rZAv6GI5OuqnuPn28PBefmGvVQes6cn/mar n8h9QLKfzdNHFAINze/0o/c1Lmhqgom+091DspLEV57hUF5upGrWi8Hvvzxim57AoFQr 9Ts3jDoIA+p063wmQRqqXGgsIOWOVgYf9r5+A/kFrbg30g7iRExuFZp7dfeN4nltiUfs 3gEl0zMmjnIra5YyckDJcE2Ic1HV9fmAWitfOJOLIxHb4+8jjmvGxCSZULlj+yprwAG8 2+tM3HHqMCdEaFLNlyUnMBErVRxnbjHthlhfiwjfw62TOlV+7J+HJoN8MAIStLV26Czu zYag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r17si4248813edd.574.2021.06.16.22.50.17; Wed, 16 Jun 2021 22:50:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230238AbhFQFuu (ORCPT + 99 others); Thu, 17 Jun 2021 01:50:50 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:46316 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229943AbhFQFus (ORCPT ); Thu, 17 Jun 2021 01:50:48 -0400 X-UUID: c20d43854f944a139f867d8bbdd03e3f-20210617 X-UUID: c20d43854f944a139f867d8bbdd03e3f-20210617 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1094154893; Thu, 17 Jun 2021 13:48:37 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 17 Jun 2021 13:48:35 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 17 Jun 2021 13:48:35 +0800 From: Trevor Wu To: , , , CC: , , , , , , , , Subject: [PATCH 6/8] dt-bindings: mediatek: mt8195: add audio afe document Date: Thu, 17 Jun 2021 13:47:37 +0800 Message-ID: <20210617054740.8081-7-trevor.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210617054740.8081-1-trevor.wu@mediatek.com> References: <20210617054740.8081-1-trevor.wu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds mt8195 audio afe document. Signed-off-by: Trevor Wu --- .../bindings/sound/mt8195-afe-pcm.yaml | 72 +++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/mt8195-afe-pcm.yaml diff --git a/Documentation/devicetree/bindings/sound/mt8195-afe-pcm.yaml b/Documentation/devicetree/bindings/sound/mt8195-afe-pcm.yaml new file mode 100644 index 000000000000..9a7f80248bb4 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/mt8195-afe-pcm.yaml @@ -0,0 +1,72 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/mt8195-afe-pcm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Mediatek AFE PCM controller for mt8195 + +maintainers: + - Trevor Wu + +properties: + compatible: + const: mediatek,mt8195-audio + + interrupts: + maxItems: 1 + + mediatek,topckgen: + $ref: "/schemas/types.yaml#/definitions/phandle" + description: The phandle of the mediatek topckgen controller + + power-domains: + maxItems: 1 + + clocks: + items: + - description: AFE clock + - description: audio infra sys clock + - description: audio infra 26M clock + - description: audio 26M clock + + clock-names: + items: + - const: aud_afe + - const: infra_ao_audio + - const: infra_ao_audio_26m_b + - const: clk26m + +required: + - compatible + - interrupts + - mediatek,topckgen + - power-domains + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + #include + #include + #include + #include + + afe: mt8195-afe-pcm { + compatible = "mediatek,mt8195-audio"; + interrupts = ; + mediatek,topckgen = <&topckgen>; + power-domains = <&spm MT8195_POWER_DOMAIN_AUDIO>; + clocks = <&clk26m>, + <&audsys CLK_AUD_AFE>, + <&infracfg_ao CLK_INFRA_AO_AUDIO>, + <&infracfg_ao CLK_INFRA_AO_AUDIO_26M_B>, + clock-names = "clk26m", + "aud_afe", + "infra_ao_audio", + "infra_ao_audio_26m_b"; + }; + +... -- 2.18.0