Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp27247797rwd; Mon, 3 Jul 2023 23:46:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5rI0g9e3UGbkGOz4kGDuRxSvbakY7+XiRiT7pIVGmU7yvVliKSh8ohx4z5PTAgk/IDYuLY X-Received: by 2002:a05:6a20:138f:b0:12b:fe14:8bc8 with SMTP id hn15-20020a056a20138f00b0012bfe148bc8mr9880944pzc.7.1688453205981; Mon, 03 Jul 2023 23:46:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688453205; cv=none; d=google.com; s=arc-20160816; b=h+c4tn02MDs9T+Ox30o4yjhhy2AU5GjPkI/ZFJ/ViYIxioBBw1m2TiRMF7Hz/JUVys scgXlD84W8OgqrpO1vjgNGrsjkfZnAHjxVHRvGcl+pzls6P8MrUxtRE5FTXqShU8uz7V VIE1Wx3swGvMqFh7sQu7LOhaqTGt++LRp+gdLMnntDfXjChN9fD/WQM6gZ95KJFoDrAR 4nTbi94BjoaYPrD2ai+BwG5nhUfc7+IaD+4XeIN5+Sfcj0VXWDeJTs/1M19cy+zuWhnN M2ev8EaNM/Vn0SwCSF7JxMJ6AvdJuWDyAsnTpW1iO3iJMVca5k3zAaTdufGc6oSWTAdL BoMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=uXf64YtL1M8P2iEjqncRi9nt6tpV3oa3FEncuR6Kd5M=; fh=DQJO1yR+JK/9yJmvZ9xez73O5IJPCh7t7Gyf9d+YPa0=; b=m3FlxY2anV4+UP9g/zrdilBMBFhOlFvpWlflKGOEIRkvpysOi9RFjWGqmq0B5GRqn9 JPQevJI+zYv/lcKLUWFoyiDqdicq6+WJKov2pehRARovSuuj4ATg0zUaIy/cVnwd8CoY /9IpGchkMqC6VY5nKDB5KYLBQsuG0uelMqC8IigIPqiS4w7ENuFbUy3DKdPqUFrrAMgD Osnlal1LJCvn0rxxU/gaIdbJSGviEtgMhryyBCLaqbdM9lysz3gYU5cqUbRFzw9SiLL8 cg40gVDuZ7R0tQa2lFdjwOuOn7UadY8jmHbUEjtfBb0JXXjrlzy5GvtaQTVN0gxIunPx 8q8w== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k17-20020a170902c41100b001b7e19195b7si20496697plk.29.2023.07.03.23.46.33; Mon, 03 Jul 2023 23:46:45 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230382AbjGDGMx (ORCPT + 99 others); Tue, 4 Jul 2023 02:12:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230349AbjGDGMw (ORCPT ); Tue, 4 Jul 2023 02:12:52 -0400 Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF4771AA for ; Mon, 3 Jul 2023 23:12:50 -0700 (PDT) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 512032004AB; Tue, 4 Jul 2023 08:12:49 +0200 (CEST) Received: from aprdc01srsp001v.ap-rdc01.nxp.com (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 189C22004BB; Tue, 4 Jul 2023 08:12:49 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 375381802202; Tue, 4 Jul 2023 14:12:47 +0800 (+08) From: Shengjiu Wang To: abelvesa@kernel.org, peng.fan@nxp.com, mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, shengjiu.wang@gmail.com Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] dt-bindings: clock: imx8-acm: Add audio clock mux support Date: Tue, 4 Jul 2023 13:39:33 +0800 Message-Id: <1688449175-1677-2-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1688449175-1677-1-git-send-email-shengjiu.wang@nxp.com> References: <1688449175-1677-1-git-send-email-shengjiu.wang@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Add the clock dt-binding file for audio clock mux. which is the IP for i.MX8QM, i.MX8QXP, i.MX8DXL. Signed-off-by: Shengjiu Wang --- .../devicetree/bindings/clock/imx8-acm.yaml | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/imx8-acm.yaml diff --git a/Documentation/devicetree/bindings/clock/imx8-acm.yaml b/Documentation/devicetree/bindings/clock/imx8-acm.yaml new file mode 100644 index 000000000000..820c06b81aa6 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/imx8-acm.yaml @@ -0,0 +1,71 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/imx8-acm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP i.MX8 Audio Clock Mux Binding + +maintainers: + - Shengjiu Wang + +description: | + NXP i.MX8 Audio Clock Mux is dedicated clock muxing IP + used to control Audio related clock on the SoC. + +properties: + compatible: + enum: + - nxp,imx8qm-acm + - nxp,imx8qxp-acm + - nxp,imx8dxl-acm + + reg: + maxItems: 1 + + power-domains: + minItems: 13 + maxItems: 21 + + '#clock-cells': + const: 1 + description: + The clock consumer should specify the desired clock by having the clock + ID in its "clocks" phandle cell. See include/dt-bindings/clock/imx8-clock.h + for the full list of i.MX8 ACM clock IDs. + +required: + - compatible + - reg + - power-domains + - '#clock-cells' + +additionalProperties: false + +examples: + # Clock Control Module node: + - | + #include + + acm@59e00000 { + compatible = "nxp,imx8qxp-acm"; + reg = <0x59e00000 0x1D0000>; + #clock-cells = <1>; + power-domains = <&pd IMX_SC_R_AUDIO_CLK_0>, + <&pd IMX_SC_R_AUDIO_CLK_1>, + <&pd IMX_SC_R_MCLK_OUT_0>, + <&pd IMX_SC_R_MCLK_OUT_1>, + <&pd IMX_SC_R_AUDIO_PLL_0>, + <&pd IMX_SC_R_AUDIO_PLL_1>, + <&pd IMX_SC_R_ASRC_0>, + <&pd IMX_SC_R_ASRC_1>, + <&pd IMX_SC_R_ESAI_0>, + <&pd IMX_SC_R_SAI_0>, + <&pd IMX_SC_R_SAI_1>, + <&pd IMX_SC_R_SAI_2>, + <&pd IMX_SC_R_SAI_3>, + <&pd IMX_SC_R_SAI_4>, + <&pd IMX_SC_R_SAI_5>, + <&pd IMX_SC_R_SPDIF_0>, + <&pd IMX_SC_R_MQS_0>; + }; -- 2.34.1