Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp495429rdb; Tue, 19 Sep 2023 01:24:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHySlPPUx80zb4qpeJzXePukUOc5018Jni8FDBDLonsFNnbVVb2IHxDAZUW8gewCCHRVSp7 X-Received: by 2002:a05:6358:e497:b0:142:d62b:304b with SMTP id by23-20020a056358e49700b00142d62b304bmr15005537rwb.2.1695111861405; Tue, 19 Sep 2023 01:24:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695111861; cv=none; d=google.com; s=arc-20160816; b=eoQSPE1//2QaxrRI8+xtiC1oxgDdq2h+Zo7utliAI2gdM402k8OWI44zahWGlHeu8E ORh5d9DXiF1vMOt7CVpWm9tuX1B2r/QmoIJPxXodYORG0PXldujXkKIy2ydDi2Fhaar7 eTn6alEfeppvs5AQ0gAG/hu9SlTZEzsoQvrOjBtPEQPn/qqUojME414/7nf+WgG8H8lS hbJRnyS2ZotwJQiL9MwMO/UMJDSbylZwycT+oDUTdwgOtFxUkEJAts2zHWmVCapc7q9N oTj5ySFx9sSrw3WqA9pPgw0/jSICjtnxrVHKR+DZ/ffX+oRZqQ2byUKp4oC0mWhQ2r6G xGJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:to:from :subject:message-id; bh=pe0FeqPkDMILdf1vvOjh6L2k/4rewD9U833Tvdp+M2Q=; fh=AT5X4xSjTNU9emr6jv2vKFxML7gL++LkmwkUfYidK5g=; b=jxIaYyle5A9bewQ9VZMNLPXnD28qEDMDRdT+Rtsf5zBRv+Pkd15bd5RuJvIMaqfQfU MHF5wnsNbycZSqzVnaVl8F41kRQO84/DST9QupaELixAzI3jgYSBpLPZHhmPylqhql2V QcHJFmLKd+xZSK2Zmav+JvDQ1mFRTK7Ob2BAmin0RSb2ZP4OkUQggB5jBu0XzduytFGD pa8xGBfCYMmhC7VGul/lYghj0VPB23qp1oyINqFhUZlYXmphZkz7OYf2fqDHBl1VNlWV FYc98+MuJLLrqnagqa9v04C/fBnFfsdknZDPqu8Rq4nE/sP4zYCYYCDGSswkjjHyxJps UEyg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id o23-20020a63fb17000000b0056fed6fa634si576596pgh.433.2023.09.19.01.24.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 01:24:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 22C15804ACC7; Tue, 19 Sep 2023 01:20:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231615AbjISIU3 convert rfc822-to-8bit (ORCPT + 99 others); Tue, 19 Sep 2023 04:20:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231390AbjISIUW (ORCPT ); Tue, 19 Sep 2023 04:20:22 -0400 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [IPv6:2a0a:edc0:2:b01:1d::104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3691E135 for ; Tue, 19 Sep 2023 01:20:16 -0700 (PDT) Received: from ptz.office.stw.pengutronix.de ([2a0a:edc0:0:900:1d::77] helo=[IPv6:::1]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qiVxf-0003uN-7N; Tue, 19 Sep 2023 10:19:59 +0200 Message-ID: <8ce3f7e172a747100366ebd14d3bd74fe549ae10.camel@pengutronix.de> Subject: Re: [PATCH] arm64: dts: imx8mp: assign parent clock and rate for audio clocks From: Lucas Stach To: Shengjiu Wang , 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, marex@denx.de, peng.fan@nxp.com, alexander.stein@ew.tq-group.com, laurent.pinchart@ideasonboard.com, aford173@gmail.com, Frank.Li@nxp.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, shengjiu.wang@gmail.com Date: Tue, 19 Sep 2023 10:19:57 +0200 In-Reply-To: <1695108775-22924-1-git-send-email-shengjiu.wang@nxp.com> References: <1695108775-22924-1-git-send-email-shengjiu.wang@nxp.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:900:1d::77 X-SA-Exim-Mail-From: l.stach@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 19 Sep 2023 01:20:30 -0700 (PDT) Hi Shengjiu, Am Dienstag, dem 19.09.2023 um 15:32 +0800 schrieb Shengjiu Wang: > Assign parent clock for audio AHB and AXI clocks, and assign > clock rate for audio PLL1 and PLL2. > Please don't do this. Configuring all those clocks in the clock controller is a pain to override if the board uses the PLLs in any other way than the reference design. The audio AXI and AHB clocks are already properly configured with Adams patch [1], so there is no need for the changes in this patch. Please set up the audio PLLs in the board DT in peripheral nodes that are actually using those clocks. Regards, Lucas [1] https://lore.kernel.org/all/20230819105002.132750-1-aford173@gmail.com/ > Signed-off-by: Shengjiu Wang > --- > arch/arm64/boot/dts/freescale/imx8mp.dtsi | 16 +++++++++++++--- > 1 file changed, 13 insertions(+), 3 deletions(-) > > diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi > index 6f2f50e1639c..8a8a2c4aff9f 100644 > --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi > +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi > @@ -734,16 +734,26 @@ clk: clock-controller@30380000 { > <&clk IMX8MP_CLK_A53_CORE>, > <&clk IMX8MP_CLK_NOC>, > <&clk IMX8MP_CLK_NOC_IO>, > - <&clk IMX8MP_CLK_GIC>; > + <&clk IMX8MP_CLK_GIC>, > + <&clk IMX8MP_CLK_AUDIO_AHB>, > + <&clk IMX8MP_CLK_AUDIO_AXI_SRC>, > + <&clk IMX8MP_AUDIO_PLL1>, > + <&clk IMX8MP_AUDIO_PLL2>; > assigned-clock-parents = <&clk IMX8MP_SYS_PLL1_800M>, > <&clk IMX8MP_ARM_PLL_OUT>, > <&clk IMX8MP_SYS_PLL2_1000M>, > <&clk IMX8MP_SYS_PLL1_800M>, > - <&clk IMX8MP_SYS_PLL2_500M>; > + <&clk IMX8MP_SYS_PLL2_500M>, > + <&clk IMX8MP_SYS_PLL1_800M>, > + <&clk IMX8MP_SYS_PLL1_800M>; > assigned-clock-rates = <0>, <0>, > <1000000000>, > <800000000>, > - <500000000>; > + <500000000>, > + <400000000>, > + <800000000>, > + <393216000>, > + <361267200>; > }; > > src: reset-controller@30390000 {