Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3333892rwb; Mon, 7 Aug 2023 11:44:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEUureKHGCe0Y4vim4X0T7yEeN5prhZvGk6TLu7qqeWU+jh7pn6glCQdLCboIKaIxOLpiw+ X-Received: by 2002:a17:903:1c3:b0:1b8:76d1:f1e8 with SMTP id e3-20020a17090301c300b001b876d1f1e8mr7391044plh.28.1691433872606; Mon, 07 Aug 2023 11:44:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691433872; cv=none; d=google.com; s=arc-20160816; b=eBExm54oJIyMlBGlwV6lGX+m5wzxGmvOP0rNYe6Dv1dtziWvebdv4bbJWuLe1/3oGo +JLY1FDCw/wvsXAC/KJA4UqGavcwjjtVbSQdnpVWn98guMnGZEjmiJB+vh//Vzz1OXJG oNYa9L2YSdWrwoxcX+RKeB9gveVTbMJhBn3HO11TvulDjZyIwA2i0PWp31ScTAvm9A1Q feDFUqwZwGfvtFVIrWVZsXPLeg4+LKJ05yAiDHQDOFbOe+T0VquE8p1hEXD0DNwOsG9d zZUcMw6zpFQycU685SkWPETGYZCdQUnpF+nui/cYGoDUZMbJr5WXenBEiK7DnxoHQTqX +rZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=SQQATHkSd0WDfLMY5G4qxzGCUq7LPTaOJfwdFJFhXK4=; fh=e0g0phAzX7yWS0EwmSTVknrXiix1rC5lzxcGef7cBkk=; b=REcQjHOgP62jxYTx8HT82VB6S0UXcO3ClJ0k2thZVLxDgdQI+GhbA0cz2fmxtz/4So B4cTSXnmYXZk0U8dMMTVICTd8dPWjOfkI9seNF/XBmh6iY+fqPPN4CU2ylKAqw7S3t0Q 0e7x588AhMCnapKDVagjedvq4Stc7UQQLHqyWjU+Vqs5L3nRh+YqmDCx27yX9ZKM9P/v VLqg9fP4/SxxKtedK13IB02q70569sfyGKxe4S+Et+UDcXuA/CDTwE75rPQAoDdpQ1Uy LK1Kr+AGnnzpJe55VFxyM22rr4ri/da4spAGNZceI/0Dw9zRtjVq1jFCrVWj8MOPzclZ +TjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=BGdfnK4l; 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=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bi10-20020a170902bf0a00b001b20e2ba8e1si5882199plb.23.2023.08.07.11.44.19; Mon, 07 Aug 2023 11:44:32 -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=@ti.com header.s=ti-com-17Q1 header.b=BGdfnK4l; 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=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231128AbjHGRnY (ORCPT + 99 others); Mon, 7 Aug 2023 13:43:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229561AbjHGRnW (ORCPT ); Mon, 7 Aug 2023 13:43:22 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34BB8E74; Mon, 7 Aug 2023 10:43:21 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 377Hh68T079283; Mon, 7 Aug 2023 12:43:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1691430186; bh=SQQATHkSd0WDfLMY5G4qxzGCUq7LPTaOJfwdFJFhXK4=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=BGdfnK4l186WK3Mm4/TaVa1XS55dJaZ1a+PIZT3V2wTwpo4I8KU+5Iwpt947UmTVF nRNYEPhUcIxzWsgx3ljB89S9NYQL6Hs8Z1QJwKfrjRh5l3FvyfjVlTf8Ef6CHLxf0M OIZF5d0A66aeqQlh/E58qWzbrwDA+cj4UkWbkhRY= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 377Hh6iw050612 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 7 Aug 2023 12:43:06 -0500 Received: from DLEE102.ent.ti.com (157.170.170.32) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 7 Aug 2023 12:43:06 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Mon, 7 Aug 2023 12:43:06 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 377Hh6i2013679; Mon, 7 Aug 2023 12:43:06 -0500 Date: Mon, 7 Aug 2023 12:43:06 -0500 From: Nishanth Menon To: Francesco Dolcini CC: Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jai Luthra , , , , Francesco Dolcini Subject: Re: [PATCH v2 1/4] arm64: dts: ti: k3-am62x: Enable AUDIO_REFCLKx Message-ID: <20230807174306.yktrky7f6w3gqph7@sensually> References: <20230806085113.15373-1-francesco@dolcini.it> <20230806085113.15373-2-francesco@dolcini.it> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20230806085113.15373-2-francesco@dolcini.it> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS 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 On 10:51-20230806, Francesco Dolcini wrote: > From: Jai Luthra > > On AM62-based SoCs the AUDIO_REFCLKx clocks can be used as an input to > external peripherals when configured through CTRL_MMR, so add the > clock nodes. > > Signed-off-by: Jai Luthra > Signed-off-by: Francesco Dolcini > --- > v2: > - s/clock/clock-controller/ on audio refclk nodes name. > --- > arch/arm64/boot/dts/ti/k3-am62-main.dtsi | 18 ++++++++++++++++++ > arch/arm64/boot/dts/ti/k3-am62a-main.dtsi | 18 ++++++++++++++++++ > 2 files changed, 36 insertions(+) > > diff --git a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi > index ef90b2bc81eb..5f19ef46d44c 100644 > --- a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi > +++ b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi > @@ -60,6 +60,24 @@ epwm_tbclk: clock-controller@4130 { > reg = <0x4130 0x4>; > #clock-cells = <1>; > }; > + > + audio_refclk0: clock-controller@82e0 { > + compatible = "ti,am62-audio-refclk"; > + reg = <0x82e0 0x4>; > + clocks = <&k3_clks 157 0>; > + assigned-clocks = <&k3_clks 157 0>; > + assigned-clock-parents = <&k3_clks 157 8>; > + #clock-cells = <0>; > + }; > + > + audio_refclk1: clock-controller@82e4 { > + compatible = "ti,am62-audio-refclk"; > + reg = <0x82e4 0x4>; > + clocks = <&k3_clks 157 10>; > + assigned-clocks = <&k3_clks 157 10>; > + assigned-clock-parents = <&k3_clks 157 18>; > + #clock-cells = <0>; > + }; > }; > > dmss: bus@48000000 { > diff --git a/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi > index 3198af08fb9f..75ea7202e071 100644 > --- a/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi > +++ b/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi > @@ -60,6 +60,24 @@ epwm_tbclk: clock-controller@4130 { > reg = <0x4130 0x4>; > #clock-cells = <1>; > }; > + > + audio_refclk0: clock-controller@82e0 { > + compatible = "ti,am62-audio-refclk"; > + reg = <0x82e0 0x4>; > + clocks = <&k3_clks 157 0>; > + assigned-clocks = <&k3_clks 157 0>; > + assigned-clock-parents = <&k3_clks 157 8>; > + #clock-cells = <0>; > + }; > + > + audio_refclk1: clock-controller@82e4 { > + compatible = "ti,am62-audio-refclk"; > + reg = <0x82e4 0x4>; > + clocks = <&k3_clks 157 10>; > + assigned-clocks = <&k3_clks 157 10>; > + assigned-clock-parents = <&k3_clks 157 18>; > + #clock-cells = <0>; > + }; > }; > > dmss: bus@48000000 { > -- > 2.25.1 > Jeez what a bit of a mess here - looks like I will have to punt this series. a) main_conf in arch/arm64/boot/dts/ti/k3-am62-main.dtsi is still syscon, simple-mfd -> I had thought we have converted these already, but apparently not. b) we then have the yaml itself. Documentation/devicetree/bindings/mfd/ti,j721e-system-controller.yaml it picks up clock-controller as ti,am654-ehrpwm-tbclk.yaml but the actual binding is Documentation/devicetree/bindings/clock/ti,am62-audio-refclk.yaml which is not enforced. Jai: please sort this out before I can look at any of these audio enablement patches involving refclk. ALSO: please DONOT ignore dtbs_check warnings folks. it does show some real issues in either bindings or dts. -- Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D