From patchwork Wed Mar 27 07:38:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 783490 Received: from mail5.25mail.st (mail5.25mail.st [74.50.62.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A32351849; Wed, 27 Mar 2024 07:39:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.50.62.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711525162; cv=none; b=mvr2K21dh69QQD+U0vimT4NV6GMZWX+rlCAxIubuecC/NzegVdwWRnB1zdxgqSrBYEjJb4z6FCVW/5t1hC+QhdMJ/n/Zw/XLMWC7ac8sDkik9ZPuJOrFVtJR5Edjr2U47+WA7vVsU05SrsIKeZIbJ22OQqxP5zmHCsYVaVlX81k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711525162; c=relaxed/simple; bh=p7oSvqr2kvyF+6/oqQ3sMHPOSyc1KdnwxbSjwmu3WXg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YpfwuCvPLVCKiCdu1HdRGaSes4ZhIsq7qpFKzdZMB7SvEQaObWT34YxyO9gNetEH/+wgS6wOgfU8CsufMywFxnCJk20EB+ec6iSCwgYjJttV472sNA6A1yPUUqvRpMmD04gC0db1Rx3ndgBrZoQQtkMbW5C1A6547nN83iigMdI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=atomide.com; spf=fail smtp.mailfrom=atomide.com; dkim=pass (2048-bit key) header.d=atomide.com header.i=@atomide.com header.b=h4dK2TuC; arc=none smtp.client-ip=74.50.62.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=atomide.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=atomide.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=atomide.com header.i=@atomide.com header.b="h4dK2TuC" Received: from localhost (91-158-86-216.elisa-laajakaista.fi [91.158.86.216]) by mail5.25mail.st (Postfix) with ESMTPSA id E6EF560545; Wed, 27 Mar 2024 07:39:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=atomide.com; s=25mailst; t=1711525159; bh=p7oSvqr2kvyF+6/oqQ3sMHPOSyc1KdnwxbSjwmu3WXg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h4dK2TuCz0U6aorLp6aXLWoM5rXrdAUdOfPsXUafUtRtJ+j0+vvdxNvqMDCgCp5qA NYfhXEhAaAWa5hUZcAw0CVYGcg/16x0niGPivIFW6Mqc977c+gJjW7PAqYm+H9iRWj u7huj6PwaYJB2BE5A0yNMk64gyaDHMUAQ1JcB0e3+0CBXpNf1m16NZCijxZC9Xs0Lr 2YvULYh24sPONRTttLNn8oDS7KXF68cra7j1tssa+Bcr2sdiRyy3EG6pJh731BqWqJ 75K46Bi1lULeVNdAmugo6lEFbL5C3Tv+YurrdFvFxCPNnUf1Lv9Dl1WgIsErwGNOkZ pvWvbRCAGB/LQ== From: Tony Lindgren To: linux-omap@vger.kernel.org Cc: =?utf-8?q?Beno=C3=AEt_Cousson?= , devicetree@vger.kernel.org Subject: [PATCH 01/12] ARM: dts: dra7: Use clksel binding for CM_CLKSEL_DPLL_CORE Date: Wed, 27 Mar 2024 09:38:45 +0200 Message-ID: <20240327073856.21517-2-tony@atomide.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240327073856.21517-1-tony@atomide.com> References: <20240327073856.21517-1-tony@atomide.com> Precedence: bulk X-Mailing-List: linux-omap@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 With the clkcsel binding we can drop the custom ti,bit-shift devicetree property in favor of the standard reg property and reduce the number of clocks to update for the make W-1 dtbs warnings. Let's also add a comment for the clocksel clock that matches the documentation. Signed-off-by: Tony Lindgren --- arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi | 22 +++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi b/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi --- a/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi +++ b/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi @@ -285,13 +285,21 @@ dpll_abe_m3x2_ck: clock-dpll-abe-m3x2-8@1f4 { ti,invert-autoidle-bit; }; - dpll_core_byp_mux: clock-dpll-core-byp-mux-23@12c { - #clock-cells = <0>; - compatible = "ti,mux-clock"; - clock-output-names = "dpll_core_byp_mux"; - clocks = <&sys_clkin1>, <&dpll_abe_m3x2_ck>; - ti,bit-shift = <23>; - reg = <0x012c>; + /* CM_CLKSEL_DPLL_CORE */ + clock@12c { + compatible = "ti,clksel"; + reg = <0x12c>; + #clock-cells = <2>; + #address-cells = <1>; + #size-cells = <0>; + + dpll_core_byp_mux: clock@23 { + reg = <23>; + compatible = "ti,mux-clock"; + clock-output-names = "dpll_core_byp_mux"; + clocks = <&sys_clkin1>, <&dpll_abe_m3x2_ck>; + #clock-cells = <0>; + }; }; dpll_core_ck: clock@120 { From patchwork Wed Mar 27 07:38:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 783954 Received: from mail5.25mail.st (mail5.25mail.st [74.50.62.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DE3201849; Wed, 27 Mar 2024 07:39:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.50.62.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711525170; cv=none; b=BVTS1dXwmBLvVIh9nm5ZgcqU+zmkpFhNY9N/mujMc1MZmpht/GIXVyez4qZtkUePjTfyrX+weFmVHIy0IoejT0KNTHUDpigf+sOUi6mw73p7kkOafzxzDlrmpWdyto0+FgKQMtMgTnHMB5Swsg5T4/BG3gUapDgXaIqw+4pQMn4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711525170; c=relaxed/simple; bh=RVddhQizgv/WLmJYSDiWKcWjwoT+k78bBjIiz7hqBfQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=qBpIJedDo58n4DGON+jseTJ66IaLTKpH9qezBDSWW8u8DnM4ZiSe6S3+d7e7BEqmp9hVS8WRlvKqlCkpwuKlmB9+izkMYqjawKWrB2/651F2u2bjL/7v3pGHwGbFA+kS8jdVLvjafdT6HXVBnK79jaCFdE1Lb6fJPvNtZ+525zk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=atomide.com; spf=fail smtp.mailfrom=atomide.com; dkim=pass (2048-bit key) header.d=atomide.com header.i=@atomide.com header.b=sWwKpWDa; arc=none smtp.client-ip=74.50.62.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=atomide.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=atomide.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=atomide.com header.i=@atomide.com header.b="sWwKpWDa" Received: from localhost (91-158-86-216.elisa-laajakaista.fi [91.158.86.216]) by mail5.25mail.st (Postfix) with ESMTPSA id 67BE560434; Wed, 27 Mar 2024 07:39:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=atomide.com; s=25mailst; t=1711525168; bh=RVddhQizgv/WLmJYSDiWKcWjwoT+k78bBjIiz7hqBfQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sWwKpWDaTtLKtCceVRYGvZSFcIczZ8JimNIrQJN4cwrmluqg/V68HriI6vX/MQdg1 1lbK+42/4v2a7K7ffW64+Hqf6I11dNghwiJSMKGbL7FJ2TrvJgphI8FWlyyT71IiPq Pnf1ATEdms56GUyIAYNb3YV/5Aa1B4mxo4dbETf3gpuD8gdeK1ZOaw16rsbey6u9y9 IzNjWFS03tqWnrezJeQWueAByL+bW/fTfi192j6phXq/EOi9Qb5/s6mNNbNWN89zOE RvV02JkbV+AzFlf7MUhFyi1/QcbsM4Q6b+li1gayb82IHIKPvApBbDrhkJQP1ksjKK 1rsmDcL/BlDJA== From: Tony Lindgren To: linux-omap@vger.kernel.org Cc: =?utf-8?q?Beno=C3=AEt_Cousson?= , devicetree@vger.kernel.org Subject: [PATCH 02/12] ARM: dts: dra7: Use clksel binding for CM_CLKSEL_DPLL_DSP Date: Wed, 27 Mar 2024 09:38:46 +0200 Message-ID: <20240327073856.21517-3-tony@atomide.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240327073856.21517-1-tony@atomide.com> References: <20240327073856.21517-1-tony@atomide.com> Precedence: bulk X-Mailing-List: linux-omap@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 With the clkcsel binding we can drop the custom ti,bit-shift devicetree property in favor of the standard reg property and reduce the number of clocks to update for the make W-1 dtbs warnings. Let's also add a comment for the clocksel clock that matches the documentation. Signed-off-by: Tony Lindgren --- arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi | 22 +++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi b/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi --- a/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi +++ b/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi @@ -376,13 +376,21 @@ dsp_dpll_hs_clk_div: clock-dsp-dpll-hs-clk-div { clock-div = <1>; }; - dpll_dsp_byp_mux: clock-dpll-dsp-byp-mux-23@240 { - #clock-cells = <0>; - compatible = "ti,mux-clock"; - clock-output-names = "dpll_dsp_byp_mux"; - clocks = <&sys_clkin1>, <&dsp_dpll_hs_clk_div>; - ti,bit-shift = <23>; - reg = <0x0240>; + /* CM_CLKSEL_DPLL_DSP */ + clock@240 { + compatible = "ti,clksel"; + reg = <0x240>; + #clock-cells = <2>; + #address-cells = <1>; + #size-cells = <0>; + + dpll_dsp_byp_mux: clock@23 { + reg = <23>; + compatible = "ti,mux-clock"; + clock-output-names = "dpll_dsp_byp_mux"; + clocks = <&sys_clkin1>, <&dsp_dpll_hs_clk_div>; + #clock-cells = <0>; + }; }; dpll_dsp_ck: clock@234 { From patchwork Wed Mar 27 07:38:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 783489 Received: from mail5.25mail.st (mail5.25mail.st [74.50.62.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 45B5225779; Wed, 27 Mar 2024 07:39:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.50.62.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711525179; cv=none; b=lrsEvo9cD0x+64d7YGVdlZ5UHESOnhE0th2uSBQ1oq/FVyChqd+Mg72hWveWTF4Unklgx4ohK0+bHUXvdoznH/mXGthNES3I8uDTaZDbXvjtThtt2YGChbnVG8lPCr4efnk/qTxEuYTBH+9avDZEa5oUmaCuCif3jxmCG0UGgoU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711525179; c=relaxed/simple; bh=ImWBqJ7fNxsYzNWMC4Sbo9WClKzU09Z6d4NV3S9LuQM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Ua5hIus1p1pF3YeK49gMzZIA2W5v9JAX3I6keBTjIjOz/m84E9pBfxX6CsorVb/QmFJSdgRF73Onwq9Xa18QVxHcuPZjAFNpg6mBOYK2oeRF4uIqC29CMCiZY49L/pJfjxLqkmqfzc4T00Nf0Q+7HXhOe0ysO33qL1FE1/YuLLs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=atomide.com; spf=fail smtp.mailfrom=atomide.com; dkim=pass (2048-bit key) header.d=atomide.com header.i=@atomide.com header.b=XVKUgSWM; arc=none smtp.client-ip=74.50.62.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=atomide.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=atomide.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=atomide.com header.i=@atomide.com header.b="XVKUgSWM" Received: from localhost (91-158-86-216.elisa-laajakaista.fi [91.158.86.216]) by mail5.25mail.st (Postfix) with ESMTPSA id DD9E360434; Wed, 27 Mar 2024 07:39:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=atomide.com; s=25mailst; t=1711525176; bh=ImWBqJ7fNxsYzNWMC4Sbo9WClKzU09Z6d4NV3S9LuQM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XVKUgSWMgermilocoEnT8I5luc6cLQVYNKDUUiUSAOx3u+bgRDNm0DhzLb/IncDA8 wcAg5kWJPWHlxDj4gU95o1QN4yZtrfpuyHRNDQe4bDJEGOJC2eBYofD7cSr4+mNf1a cnptdmpcViKBTZsANGTvfFniPYeXk1+K9RlIieMhZ8+/dH+7xN5nZauFGGP/BEf92b MYRt3xnCKFo/pmeSSzUULbo8TdLg63IXkJLhp+e4OVvhe/Z86sTwPs3i8k24noB0BK 6OngF2LCk2LljKS8GjlaYTQDxbjz/mguAGCUlsCkgjYCkTIYedWFYMwnRabIVjFHPF iAh4j5J609p9w== From: Tony Lindgren To: linux-omap@vger.kernel.org Cc: =?utf-8?q?Beno=C3=AEt_Cousson?= , devicetree@vger.kernel.org Subject: [PATCH 03/12] ARM: dts: dra7: Use clksel binding for CM_CLKSEL_DPLL_IVA Date: Wed, 27 Mar 2024 09:38:47 +0200 Message-ID: <20240327073856.21517-4-tony@atomide.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240327073856.21517-1-tony@atomide.com> References: <20240327073856.21517-1-tony@atomide.com> Precedence: bulk X-Mailing-List: linux-omap@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 With the clkcsel binding we can drop the custom ti,bit-shift devicetree property in favor of the standard reg property and reduce the number of clocks to update for the make W-1 dtbs warnings. Let's also add a comment for the clocksel clock that matches the documentation. Signed-off-by: Tony Lindgren --- arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi | 22 +++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi b/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi --- a/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi +++ b/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi @@ -426,13 +426,21 @@ iva_dpll_hs_clk_div: clock-iva-dpll-hs-clk-div { clock-div = <1>; }; - dpll_iva_byp_mux: clock-dpll-iva-byp-mux-23@1ac { - #clock-cells = <0>; - compatible = "ti,mux-clock"; - clock-output-names = "dpll_iva_byp_mux"; - clocks = <&sys_clkin1>, <&iva_dpll_hs_clk_div>; - ti,bit-shift = <23>; - reg = <0x01ac>; + /* CM_CLKSEL_DPLL_IVA */ + clock@1ac { + compatible = "ti,clksel"; + reg = <0x1ac>; + #clock-cells = <2>; + #address-cells = <1>; + #size-cells = <0>; + + dpll_iva_byp_mux: clock@23 { + reg = <23>; + compatible = "ti,mux-clock"; + clock-output-names = "dpll_iva_byp_mux"; + clocks = <&sys_clkin1>, <&iva_dpll_hs_clk_div>; + #clock-cells = <0>; + }; }; dpll_iva_ck: clock@1a0 { From patchwork Wed Mar 27 07:38:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 783953 Received: from mail5.25mail.st (mail5.25mail.st [74.50.62.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7FBEE1849; Wed, 27 Mar 2024 07:39:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.50.62.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711525188; cv=none; b=GhNKkTnOrXkyuxDUKG/QYaiC+1b2HiZnrEHfCJvk93hHBwbf7AuYExxvtjp8198g6TBCfUUtF9gpNChj499bqqFnHwgxgDzpg+J6KW7dA3rrsMYGnkwjNgpn+gJ1qE5OwmDHGuCgLvEYy4U1gAkyWvsOrdE+6SHVrPhVFNNAciw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711525188; c=relaxed/simple; bh=0vm7r8k+U1jf17gDBnC33X98JGptcfNl8PyC1/N+wAg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WrzQiaQw5gmT5XlagxWGpxRu6pHCJiX/S5zGqD5W5bkl0JPQyvto4Ct6SxWWI51eO5zCm4dlaRAMqEM3+yPQnUG0BJKmCZWt0ZinpqlvGi0tUE83leKvFLA/0UCyms5h1oFbr9bDGrzf2MNjjDLUCERP8Xa0Bk/3VihwKUKRXig= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=atomide.com; spf=fail smtp.mailfrom=atomide.com; dkim=pass (2048-bit key) header.d=atomide.com header.i=@atomide.com header.b=EKklZF7g; arc=none smtp.client-ip=74.50.62.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=atomide.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=atomide.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=atomide.com header.i=@atomide.com header.b="EKklZF7g" Received: from localhost (91-158-86-216.elisa-laajakaista.fi [91.158.86.216]) by mail5.25mail.st (Postfix) with ESMTPSA id 5EE1C60545; Wed, 27 Mar 2024 07:39:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=atomide.com; s=25mailst; t=1711525184; bh=0vm7r8k+U1jf17gDBnC33X98JGptcfNl8PyC1/N+wAg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EKklZF7gkPQJ9qZ9G0CTwgnjw9V45Z8FnytgjZ3YZN7JhV1VlAjKUhlHHa2toMHOu npj3KBnfns6qP9siQUBwqgQIzHbHVFCuYG+BWk124vTZL6s6H2fsdsu+YnQ175fu6r vbkZKopgd2xTIB+6IxETSSKwSt8+/OBSr5tde7doB9HJP8sq7lMi904Ra3ncuFpeuo vQoQsNnSBkGs+T6WMFBvp6D+twQjuICd6qB5dPRCKrs339Xrau/CY1lQ9tnuDl6jvw dRvVDOQNV5WdK4dumBWfRZz4dl7WvdN0AnO2rctnT2hLVPCfbvMxL0xAASLE61As6y 2XEB0MDyUAQiA== From: Tony Lindgren To: linux-omap@vger.kernel.org Cc: =?utf-8?q?Beno=C3=AEt_Cousson?= , devicetree@vger.kernel.org Subject: [PATCH 04/12] ARM: dts: dra7: Use clksel binding for CM_CLKSEL_DPLL_GPU Date: Wed, 27 Mar 2024 09:38:48 +0200 Message-ID: <20240327073856.21517-5-tony@atomide.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240327073856.21517-1-tony@atomide.com> References: <20240327073856.21517-1-tony@atomide.com> Precedence: bulk X-Mailing-List: linux-omap@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 With the clkcsel binding we can drop the custom ti,bit-shift devicetree property in favor of the standard reg property and reduce the number of clocks to update for the make W-1 dtbs warnings. Let's also add a comment for the clocksel clock that matches the documentation. Signed-off-by: Tony Lindgren --- arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi | 22 +++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi b/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi --- a/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi +++ b/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi @@ -476,13 +476,21 @@ iva_dclk: clock-iva-dclk { clock-div = <1>; }; - dpll_gpu_byp_mux: clock-dpll-gpu-byp-mux-23@2e4 { - #clock-cells = <0>; - compatible = "ti,mux-clock"; - clock-output-names = "dpll_gpu_byp_mux"; - clocks = <&sys_clkin1>, <&dpll_abe_m3x2_ck>; - ti,bit-shift = <23>; - reg = <0x02e4>; + /* CM_CLKSEL_DPLL_GPU */ + clock@2e4 { + compatible = "ti,clksel"; + reg = <0x2e4>; + #clock-cells = <2>; + #address-cells = <1>; + #size-cells = <0>; + + dpll_gpu_byp_mux: clock@23 { + reg = <23>; + compatible = "ti,mux-clock"; + clock-output-names = "dpll_gpu_byp_mux"; + clocks = <&sys_clkin1>, <&dpll_abe_m3x2_ck>; + #clock-cells = <0>; + }; }; dpll_gpu_ck: clock@2d8 { From patchwork Wed Mar 27 07:38:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 783488 Received: from mail5.25mail.st (mail5.25mail.st [74.50.62.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3068B28E39; Wed, 27 Mar 2024 07:39:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.50.62.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711525196; cv=none; b=na43lPTrBcWMj+/CCVxPBp22tvRbGSxZdXb61mjinCDwotWxdY91x+T93wrizQ+TVwwp4lBtPJPaKxCkWpClq6SMy4dZpcH7QHxQ//beeRwCXjbbVNxPcm3XRWtSLU9vnWd3lMy9afdUm6g2So/D8xAyth7nZpNPLsHVNID/CG8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711525196; c=relaxed/simple; bh=Jet7RLRxd1qTotD/j9in0bUbuuC6kwZ/NH8QeqM99sQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GuoV+Hd/lSBzeXbOtUsQOsDfXZNFbYYggHoW8BUmVgzoQaactlasED76XWpeHoBJEFVUf74GMAEVwbzakNr+ewkDLZCLvHncAbu0qDt6ssHHKOOsGnlQvn7AsQ2/6nz2HUV1C24fe6A/lxr6pJxyG65yQnUzv4UPHGSnYVSy3qA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=atomide.com; spf=fail smtp.mailfrom=atomide.com; dkim=pass (2048-bit key) header.d=atomide.com header.i=@atomide.com header.b=dVwjANfO; arc=none smtp.client-ip=74.50.62.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=atomide.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=atomide.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=atomide.com header.i=@atomide.com header.b="dVwjANfO" Received: from localhost (91-158-86-216.elisa-laajakaista.fi [91.158.86.216]) by mail5.25mail.st (Postfix) with ESMTPSA id D2DEF60434; Wed, 27 Mar 2024 07:39:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=atomide.com; s=25mailst; t=1711525193; bh=Jet7RLRxd1qTotD/j9in0bUbuuC6kwZ/NH8QeqM99sQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dVwjANfO+cEUmJ4Od+Op6idzhE1vRkggibSupnvHbQFtLol2QP/Q62KaqA8eAZrzh P+N9mJhroR6LN9+y79JsqWFFbT+3YY/CPiW3oWzlFP7sIZaQdPKxeXu2X9Np2l8joL 47M0X3rdZZBlS84F8gxl4lXe+0OJeVl5X6EocCbfzwtS9Hu8CvA1YWNMwP13HIoCRV QNqaxbWHjxirjB//TKsHS5npLwn2oghLOecMXfcfByBof85uSQ6pI8neu8pEkx0SRM HsyhPMytU0ayQw0navizYWbBi9efnULdHHlo8uEQT174ybSbwpx+xgUbwt01InZWpo ocO1dfpZbs8+g== From: Tony Lindgren To: linux-omap@vger.kernel.org Cc: =?utf-8?q?Beno=C3=AEt_Cousson?= , devicetree@vger.kernel.org Subject: [PATCH 05/12] ARM: dts: dra7: Use clksel binding for CM_CLKSEL_DPLL_DRR Date: Wed, 27 Mar 2024 09:38:49 +0200 Message-ID: <20240327073856.21517-6-tony@atomide.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240327073856.21517-1-tony@atomide.com> References: <20240327073856.21517-1-tony@atomide.com> Precedence: bulk X-Mailing-List: linux-omap@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 With the clkcsel binding we can drop the custom ti,bit-shift devicetree property in favor of the standard reg property and reduce the number of clocks to update for the make W-1 dtbs warnings. Let's also add a comment for the clocksel clock that matches the documentation. Signed-off-by: Tony Lindgren --- arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi | 22 +++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi b/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi --- a/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi +++ b/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi @@ -538,13 +538,21 @@ core_dpll_out_dclk_div: clock-core-dpll-out-dclk-div { clock-div = <1>; }; - dpll_ddr_byp_mux: clock-dpll-ddr-byp-mux-23@21c { - #clock-cells = <0>; - compatible = "ti,mux-clock"; - clock-output-names = "dpll_ddr_byp_mux"; - clocks = <&sys_clkin1>, <&dpll_abe_m3x2_ck>; - ti,bit-shift = <23>; - reg = <0x021c>; + /* CM_CLKSEL_DPLL_DDR */ + clock@21c { + compatible = "ti,clksel"; + reg = <0x21c>; + #clock-cells = <2>; + #address-cells = <1>; + #size-cells = <0>; + + dpll_ddr_byp_mux: clock@23 { + reg = <23>; + compatible = "ti,mux-clock"; + clock-output-names = "dpll_ddr_byp_mux"; + clocks = <&sys_clkin1>, <&dpll_abe_m3x2_ck>; + #clock-cells = <0>; + }; }; dpll_ddr_ck: clock@210 { From patchwork Wed Mar 27 07:38:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 783952 Received: from mail5.25mail.st (mail5.25mail.st [74.50.62.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B024E2C68B; Wed, 27 Mar 2024 07:40:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.50.62.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711525204; cv=none; b=X+wBg/kfyd0JfsKKvX4iGK7moPMLh8QwOOH8vSFjErvVe6IZrQ+kuB1oVPrNNBemimSyau3/yNclt/Gh30XL+2hAdd8SgPdHPEudfo1nMKCxVnQcy8eUVHtIlI69WRhfCdsHGBCthmPKUBGiR3hzfjWlN8GBHXJFPg+HduM8znY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711525204; c=relaxed/simple; bh=7AQuuTsw1/EMENBQ+1nba3hXM7xjQOc+Gpmg0SSJ8rw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ZSsbA5976LVpV6RR0coq4Sp8HHJdHaiaekWITaEkKW+79H+qA+WibzGVSZalwl2M9VrEl2cqZcPSA7N/fCs+WQdlf8pIFnJz1nwOUXi42t9ZBRqTXDecab41eHUZJalGvaKnCMP4TAtoPIkpoQV8Grs0vHq+rgrxGOL1oM+0ELw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=atomide.com; spf=fail smtp.mailfrom=atomide.com; dkim=pass (2048-bit key) header.d=atomide.com header.i=@atomide.com header.b=ddK80o53; arc=none smtp.client-ip=74.50.62.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=atomide.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=atomide.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=atomide.com header.i=@atomide.com header.b="ddK80o53" Received: from localhost (91-158-86-216.elisa-laajakaista.fi [91.158.86.216]) by mail5.25mail.st (Postfix) with ESMTPSA id 54F3660545; Wed, 27 Mar 2024 07:39:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=atomide.com; s=25mailst; t=1711525201; bh=7AQuuTsw1/EMENBQ+1nba3hXM7xjQOc+Gpmg0SSJ8rw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ddK80o532it9V0UYjCJkjI4RzAtfyHoFTY/OM/Yta5fSR5xYtO0g3g8tVksvdsgoG VejgGwKFCx/yZOaXZTjdoSmUiUQpjOF7NfSOcH1VKo5tgZRzgfHH8p4QykRWa822Gk qbRazv2pKC2g41FzfPZEtHrKXONC1GBNneGWoqpOMDMvNQar8QXPhD7NgncJHvW2TL r+D9fTqiOiA9yFZPiYbWUY09zxlcSlgPQywPEVmlNC/Nh6i8i40lGaJVyKiVKnIV3X S4YLTgc5BQM0o6Ey8LxlmuATAz86EXxQqvqb6oUSDNppACAFKKNfew7MlG0s/9+39t UfTMf5FlVgtjQ== From: Tony Lindgren To: linux-omap@vger.kernel.org Cc: =?utf-8?q?Beno=C3=AEt_Cousson?= , devicetree@vger.kernel.org Subject: [PATCH 06/12] ARM: dts: dra7: Use clksel binding for CM_CLKSEL_DPLL_GMAC Date: Wed, 27 Mar 2024 09:38:50 +0200 Message-ID: <20240327073856.21517-7-tony@atomide.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240327073856.21517-1-tony@atomide.com> References: <20240327073856.21517-1-tony@atomide.com> Precedence: bulk X-Mailing-List: linux-omap@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 With the clkcsel binding we can drop the custom ti,bit-shift devicetree property in favor of the standard reg property and reduce the number of clocks to update for the make W-1 dtbs warnings. Let's also add a comment for the clocksel clock that matches the documentation. Signed-off-by: Tony Lindgren --- arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi | 22 +++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi b/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi --- a/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi +++ b/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi @@ -575,13 +575,21 @@ dpll_ddr_m2_ck: clock-dpll-ddr-m2-8@220 { ti,invert-autoidle-bit; }; - dpll_gmac_byp_mux: clock-dpll-gmac-byp-mux-23@2b4 { - #clock-cells = <0>; - compatible = "ti,mux-clock"; - clock-output-names = "dpll_gmac_byp_mux"; - clocks = <&sys_clkin1>, <&dpll_abe_m3x2_ck>; - ti,bit-shift = <23>; - reg = <0x02b4>; + /* CM_CLKSEL_DPLL_GMAC */ + clock@2b4 { + compatible = "ti,clksel"; + reg = <0x2b4>; + #clock-cells = <2>; + #address-cells = <1>; + #size-cells = <0>; + + dpll_gmac_byp_mux: clock@23 { + reg = <23>; + compatible = "ti,mux-clock"; + clock-output-names = "dpll_gmac_byp_mux"; + clocks = <&sys_clkin1>, <&dpll_abe_m3x2_ck>; + #clock-cells = <0>; + }; }; dpll_gmac_ck: clock@2a8 { From patchwork Wed Mar 27 07:38:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 783487 Received: from mail5.25mail.st (mail5.25mail.st [74.50.62.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1E0AB2C190; Wed, 27 Mar 2024 07:40:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.50.62.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711525212; cv=none; b=qmjmg5jYv5kzXW2cxxbYmLUwbHnU5MpAp1auCzzbXzcCc3TQAzpfGxhosPmIIMZktZtJRXOVsQYinvWqF12aGWvCxaWp7BPwBEOUQXJ6RdUZX6Elx4ypUr721GPpnWIXhGeVV8r8Bmo0l9LC6s0B9oGj8V928hLGzzGOsWMwkB0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711525212; c=relaxed/simple; bh=Eb8gEuCkT6T45P3JljkYPw5r51CsBFn7LgQZTOmP5e0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hun/KB5vM/l0EZyQLqbGsdaLYil99/VL4P9Yiaes2LIsfP0IFHFGY1JFFZv9vvd26cS3VrUs7x5tdCfMDRWCPuql4bqf8zelRN7GAGbtgpLk5DEaGXs99pjeDy972WY8m25CzH4VFXLxRXmDuDDpPh4x5b3BCB8kZRsYx5ToIfI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=atomide.com; spf=fail smtp.mailfrom=atomide.com; dkim=pass (2048-bit key) header.d=atomide.com header.i=@atomide.com header.b=oyrAWmr2; arc=none smtp.client-ip=74.50.62.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=atomide.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=atomide.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=atomide.com header.i=@atomide.com header.b="oyrAWmr2" Received: from localhost (91-158-86-216.elisa-laajakaista.fi [91.158.86.216]) by mail5.25mail.st (Postfix) with ESMTPSA id CDBCF60434; Wed, 27 Mar 2024 07:40:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=atomide.com; s=25mailst; t=1711525210; bh=Eb8gEuCkT6T45P3JljkYPw5r51CsBFn7LgQZTOmP5e0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oyrAWmr2MAvlEbPcz8iLyp8uZMruEBRpszO3zLHG3plrjZu1jgYoE2Q8bJXoy/SOK OOWuFuWMDnw/2CZctDBmrxP28cJ30epjJnACMk+yWtVQ47kN5z97CvAY0wgC5D/n2l 6DWOxRmzo6nuL2XM1in5q6PGpYWfglNZT7rfryvaFoi8ZfqPrSCU7//aUSToVobzkZ +daeZ1llPws2J2KlTvyuhO+RYcosWoxieBaeQi9yKmGjxZRuWoIT+2vne86lfZIya+ l6Hv1/Wkugf+G6K5/Ei734Q4ar3yXjkauBWKvTwGEtgQmjwUa59D3+6JPCGHq0ObyS wcns1YCFQLHWQ== From: Tony Lindgren To: linux-omap@vger.kernel.org Cc: =?utf-8?q?Beno=C3=AEt_Cousson?= , devicetree@vger.kernel.org Subject: [PATCH 07/12] ARM: dts: dra7: Use clksel binding for CM_CLKSEL_DPLL_EVE Date: Wed, 27 Mar 2024 09:38:51 +0200 Message-ID: <20240327073856.21517-8-tony@atomide.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240327073856.21517-1-tony@atomide.com> References: <20240327073856.21517-1-tony@atomide.com> Precedence: bulk X-Mailing-List: linux-omap@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 With the clkcsel binding we can drop the custom ti,bit-shift devicetree property in favor of the standard reg property and reduce the number of clocks to update for the make W-1 dtbs warnings. Let's also add a comment for the clocksel clock that matches the documentation. Signed-off-by: Tony Lindgren --- arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi | 22 +++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi b/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi --- a/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi +++ b/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi @@ -666,13 +666,21 @@ eve_dpll_hs_clk_div: clock-eve-dpll-hs-clk-div { clock-div = <1>; }; - dpll_eve_byp_mux: clock-dpll-eve-byp-mux-23@290 { - #clock-cells = <0>; - compatible = "ti,mux-clock"; - clock-output-names = "dpll_eve_byp_mux"; - clocks = <&sys_clkin1>, <&eve_dpll_hs_clk_div>; - ti,bit-shift = <23>; - reg = <0x0290>; + /* CM_CLKSEL_DPLL_EVE */ + clock@290 { + compatible = "ti,clksel"; + reg = <0x290>; + #clock-cells = <2>; + #address-cells = <1>; + #size-cells = <0>; + + dpll_eve_byp_mux: clock@23 { + reg = <23>; + compatible = "ti,mux-clock"; + clock-output-names = "dpll_eve_byp_mux"; + clocks = <&sys_clkin1>, <&eve_dpll_hs_clk_div>; + #clock-cells = <0>; + }; }; dpll_eve_ck: clock@284 { From patchwork Wed Mar 27 07:38:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 783951 Received: from mail5.25mail.st (mail5.25mail.st [74.50.62.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A3AA82C190; Wed, 27 Mar 2024 07:40:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.50.62.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711525220; cv=none; b=ZMxtljGWiNUkJGfySbXiEk60dGTXQSsMXCNkF21nEP11tBRT/glXjYNKThLScGMs57P7A7QVZQnRDRQE2dBy2HezPEXgu6inu13etarGJqJ7LeuPBgvfSgVYNbSO7zRlGd/oy7hqUX5rtEubWesxm6cGHQ5icaP4fdBN/1aKeKA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711525220; c=relaxed/simple; bh=9Jfqynt/vTQY6ql67GtyOuF0Q20WQsGtOCKWOQ/IVlU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=RhHiFPyO4O2JtaMfPIW2dOZEZkQb3ZR4z8fno0ozdj2mOrepFK1ttG52XORDEZpgUOfP0CCz9noGWdM24Hk+JXdOE/blnC07VadoEOJvwmbA0EeEWt45Avq5xlauPRlsFabEIvZrgj5f9dI5Ws7YrCESwpsgjZ6q9inC5Nz3tV0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=atomide.com; spf=fail smtp.mailfrom=atomide.com; dkim=pass (2048-bit key) header.d=atomide.com header.i=@atomide.com header.b=lIWKkWrk; arc=none smtp.client-ip=74.50.62.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=atomide.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=atomide.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=atomide.com header.i=@atomide.com header.b="lIWKkWrk" Received: from localhost (91-158-86-216.elisa-laajakaista.fi [91.158.86.216]) by mail5.25mail.st (Postfix) with ESMTPSA id 4C36360434; Wed, 27 Mar 2024 07:40:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=atomide.com; s=25mailst; t=1711525218; bh=9Jfqynt/vTQY6ql67GtyOuF0Q20WQsGtOCKWOQ/IVlU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lIWKkWrky2DPbPWWj9DnqmIbm1MeJtrHhMMgEmPQ8M23aylal+eZlcH7MUZ0UA3Ec i0KxsrjONacszFfJa3KEB9KmAy/+aBq2Ug2Drv0mq36LTtUzLeF8+uaRtlTv06QuUL 2+CgjIyhUWGKQuoSmxsRO0nLjodirMB7z9IDXteTPYx2Tsg2eMOZFytj1lz7OzruDm DXqdlQjDuwD3RkK9yN4S6fHfvG+reoqXe/t2TNwapgeJN9sK3UBpFsl779MuS0O6Ns eyjcp+m8LumLXW9r0SDviBrmCLJ2F2WEreuELKLfaSYHCAD2u5W4bdvaEwzruBDd2G LXuWKVnlMw1CQ== From: Tony Lindgren To: linux-omap@vger.kernel.org Cc: =?utf-8?q?Beno=C3=AEt_Cousson?= , devicetree@vger.kernel.org Subject: [PATCH 08/12] ARM: dts: dra7: Use clksel binding for CM_CLKSEL_CORE Date: Wed, 27 Mar 2024 09:38:52 +0200 Message-ID: <20240327073856.21517-9-tony@atomide.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240327073856.21517-1-tony@atomide.com> References: <20240327073856.21517-1-tony@atomide.com> Precedence: bulk X-Mailing-List: linux-omap@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 With the clkcsel binding we can drop the custom ti,bit-shift devicetree property in favor of the standard reg property and reduce the number of clocks to update for the make W-1 dtbs warnings. Let's also add a comment for the clocksel clock that matches the documentation. Signed-off-by: Tony Lindgren --- arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi | 26 +++++++++++++------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi b/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi --- a/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi +++ b/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi @@ -894,15 +894,23 @@ hdmi_div_clk: clock-hdmi-div { clock-div = <1>; }; - l3_iclk_div: clock-l3-iclk-div-4@100 { - #clock-cells = <0>; - compatible = "ti,divider-clock"; - clock-output-names = "l3_iclk_div"; - ti,max-div = <2>; - ti,bit-shift = <4>; - reg = <0x0100>; - clocks = <&dpll_core_h12x2_ck>; - ti,index-power-of-two; + /* CM_CLKSEL_CORE */ + clock@100 { + compatible = "ti,clksel"; + reg = <0x100>; + #clock-cells = <2>; + #address-cells = <1>; + #size-cells = <0>; + + l3_iclk_div: clock@4 { + reg = <4>; + compatible = "ti,divider-clock"; + clock-output-names = "l3_iclk_div"; + ti,max-div = <2>; + clocks = <&dpll_core_h12x2_ck>; + ti,index-power-of-two; + #clock-cells = <0>; + }; }; l4_root_clk_div: clock-l4-root-clk-div { From patchwork Wed Mar 27 07:38:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 783486 Received: from mail5.25mail.st (mail5.25mail.st [74.50.62.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0E0C82C198; Wed, 27 Mar 2024 07:40:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.50.62.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711525229; cv=none; b=XCwY79jqqAs4XmVI2tEscOOf+kX3mvGnXIybwbltiuJ9PspQAVgp9YbkOgHCkUnnP8wzb/jgXVr/Oo9CKzsN4fFniNuAEsOp5SXwfZlyBT5HF8GK4nZGVxTeXNUpFUkmzVfljD+aICPqiTw+H5UnfMOBDaQ3ZvX5fNCv9vG8P94= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711525229; c=relaxed/simple; bh=aUlHtQXOCQeThiv/W7Kda+XL7UgMmEMloTniNlcPRyY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=KUS/+DFQ3QFyh0aYxDvQvpH3alAp9pCUawdLuOyrjf5Et5k1JGjNwhl04v3YfKoHMDT6AcdPUDCj2mmpE1fpRurOBQnzf2nXSv9UcrdqLSkEWVMD0dKpbK38r1WyNSslMWjBaCBfmyHwgO/i+7qXvgRUy9Ic8M7MgR95623X6AM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=atomide.com; spf=fail smtp.mailfrom=atomide.com; dkim=pass (2048-bit key) header.d=atomide.com header.i=@atomide.com header.b=kd9bJRIr; arc=none smtp.client-ip=74.50.62.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=atomide.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=atomide.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=atomide.com header.i=@atomide.com header.b="kd9bJRIr" Received: from localhost (91-158-86-216.elisa-laajakaista.fi [91.158.86.216]) by mail5.25mail.st (Postfix) with ESMTPSA id C052460434; Wed, 27 Mar 2024 07:40:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=atomide.com; s=25mailst; t=1711525227; bh=aUlHtQXOCQeThiv/W7Kda+XL7UgMmEMloTniNlcPRyY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kd9bJRIrj5vo1yYrn9sgnHXCrhGHLJk1YM1R55dKHNpqcqvblKVnqlhVYRZQRFYAU GV3Rj/qbhxuEzepPqHd3a7phoAx5mPESkuPhE1d6/VtYRhpSJ6XyL/NNpi6p/GwkMb WN3flDDFe8l7pxzgnnj6vInYSC41ORdIeFFVTzBxcKz8y0MwLOFpAdSZgdJ/Sm9NU5 EO9J2bk5Bv7ns3WqLGzcebTfQwVVOKQ7WrmYpCecT27fK/FjA+2X6pbUskPZDXg8rT GOCNGi/2Arwxp/yMtd41Ok5N2sQM1Lo3O+gNwEUYNaMf/M0oqf618D8YI4CJGTr5wn mf1/RLSn4sMSg== From: Tony Lindgren To: linux-omap@vger.kernel.org Cc: =?utf-8?q?Beno=C3=AEt_Cousson?= , devicetree@vger.kernel.org Subject: [PATCH 09/12] ARM: dts: dra7: Use clksel binding for CM_CLKSEL_ABE_PLL_SYS Date: Wed, 27 Mar 2024 09:38:53 +0200 Message-ID: <20240327073856.21517-10-tony@atomide.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240327073856.21517-1-tony@atomide.com> References: <20240327073856.21517-1-tony@atomide.com> Precedence: bulk X-Mailing-List: linux-omap@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 With the clkcsel binding we can drop the custom ti,bit-shift devicetree property in favor of the standard reg property and reduce the number of clocks to update for the make W-1 dtbs warnings. Let's also add a comment for the clocksel clock that matches the documentation. Signed-off-by: Tony Lindgren --- arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi | 21 ++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi b/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi --- a/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi +++ b/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi @@ -975,12 +975,21 @@ sys_clkin1: clock-sys-clkin1@110 { ti,index-starts-at-one; }; - abe_dpll_sys_clk_mux: clock-abe-dpll-sys-clk-mux@118 { - #clock-cells = <0>; - compatible = "ti,mux-clock"; - clock-output-names = "abe_dpll_sys_clk_mux"; - clocks = <&sys_clkin1>, <&sys_clkin2>; - reg = <0x0118>; + /* CM_CLKSEL_ABE_PLL_SYS */ + clock@118 { + compatible = "ti,clksel"; + reg = <0x118>; + #clock-cells = <2>; + #address-cells = <1>; + #size-cells = <0>; + + abe_dpll_sys_clk_mux: clock@0 { + reg = <0>; + compatible = "ti,mux-clock"; + clock-output-names = "abe_dpll_sys_clk_mux"; + clocks = <&sys_clkin1>, <&sys_clkin2>; + #clock-cells = <0>; + }; }; abe_dpll_bypass_clk_mux: clock-abe-dpll-bypass-clk-mux@114 { From patchwork Wed Mar 27 07:38:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 783950 Received: from mail5.25mail.st (mail5.25mail.st [74.50.62.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7594322F0F; Wed, 27 Mar 2024 07:40:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.50.62.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711525237; cv=none; b=XuNOk6jz4b3NN6XOa2k9ZHBLCVpMRBcSiVwyaVA/7drO1Gaes3Fr3NspzBzMy2uUEWq+Whh1T8NLCU9intt1jRpffsMUJNEKtVlEr2N4eo2WUm1LVedzUxAUTdxfzgsOWafutqKb0WdjgIQxgKP07cFPDG7J0IeUCc68+s7k70s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711525237; c=relaxed/simple; bh=ykjgYa0SVJrKS9+BDAp9sif6sKYLhWhxgrBd++fFoQI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kkHi/Dk9gVxBliymr2Infs3HBpFDnSkPrncGBr0FZNqdK/yTqn13UHZqDFRpbn6i7/j98WG1Nt4jzpuLGt2QNvmSCpSV2YJX26r9HskbSbForoq2stsXiTSlya5FFSSDsud8aQIEZaM10w+qjRu8jo+AwFmyKCmHszGgV4wZ5U4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=atomide.com; spf=fail smtp.mailfrom=atomide.com; dkim=pass (2048-bit key) header.d=atomide.com header.i=@atomide.com header.b=PoA+RZqL; arc=none smtp.client-ip=74.50.62.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=atomide.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=atomide.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=atomide.com header.i=@atomide.com header.b="PoA+RZqL" Received: from localhost (91-158-86-216.elisa-laajakaista.fi [91.158.86.216]) by mail5.25mail.st (Postfix) with ESMTPSA id 3B38C60434; Wed, 27 Mar 2024 07:40:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=atomide.com; s=25mailst; t=1711525235; bh=ykjgYa0SVJrKS9+BDAp9sif6sKYLhWhxgrBd++fFoQI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PoA+RZqLM+Op8OEBCmskDiQ2pD/SPrzRdy0cBeXYmgJPQOs129tn8v94y2vDUH4gN 1QwDFsAkpgpeva0PmP/meIXE6oOH8zrUonI4fIutraxj0c1hymJX/9+Ix9rkotzkN5 uvfrHz/N3BNRr+SjNFc2REkaQwtDljsSn/EZaBlhabmjvqpgwB8vT/0ILXi4nbCIJf Di0rg4HeJM0SwTM59kZoCsBTlMiizEVsxIxFgCJPTDBxFFVQkBZ5KlO7DrpdBkXJ8V vNKi1+HBlvGi80Py3RuDuSlStQLHBXVoGlPGk3LaT7we7AUukxEIwDXNZpv/JuP24R r3L4ZmU+xijBg== From: Tony Lindgren To: linux-omap@vger.kernel.org Cc: =?utf-8?q?Beno=C3=AEt_Cousson?= , devicetree@vger.kernel.org Subject: [PATCH 10/12] ARM: dts: dra7: Use clksel binding for CM_CLKSEL_DPLL_PER Date: Wed, 27 Mar 2024 09:38:54 +0200 Message-ID: <20240327073856.21517-11-tony@atomide.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240327073856.21517-1-tony@atomide.com> References: <20240327073856.21517-1-tony@atomide.com> Precedence: bulk X-Mailing-List: linux-omap@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 With the clkcsel binding we can drop the custom ti,bit-shift devicetree property in favor of the standard reg property and reduce the number of clocks to update for the make W-1 dtbs warnings. Let's also add a comment for the clocksel clock that matches the documentation. Signed-off-by: Tony Lindgren --- arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi | 22 +++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi b/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi --- a/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi +++ b/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi @@ -1399,13 +1399,21 @@ apll_pcie_m2_ck: clock-apll-pcie-m2 { clock-div = <1>; }; - dpll_per_byp_mux: clock-dpll-per-byp-mux-23@14c { - #clock-cells = <0>; - compatible = "ti,mux-clock"; - clock-output-names = "dpll_per_byp_mux"; - clocks = <&sys_clkin1>, <&per_dpll_hs_clk_div>; - ti,bit-shift = <23>; - reg = <0x014c>; + /* CM_CLKSEL_DPLL_PER */ + clock@14c { + compatible = "ti,clksel"; + reg = <0x14c>; + #clock-cells = <2>; + #address-cells = <1>; + #size-cells = <0>; + + dpll_per_byp_mux: clock@23 { + reg = <23>; + compatible = "ti,mux-clock"; + clock-output-names = "dpll_per_byp_mux"; + clocks = <&sys_clkin1>, <&per_dpll_hs_clk_div>; + #clock-cells = <0>; + }; }; dpll_per_ck: clock@140 { From patchwork Wed Mar 27 07:38:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 783485 Received: from mail5.25mail.st (mail5.25mail.st [74.50.62.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 00A052C1B8; Wed, 27 Mar 2024 07:40:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.50.62.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711525246; cv=none; b=kj/LoIUJx4YVhJy1LdP6oiHIRtFUX0erkaBbcWhxSIswGgj3XopXa82J/Jqbb8TwtxLlqsrW5L88tvAArPVmtf/OfJlOASXboo5MAfs3YGn1s5L/aNKDCiFXQCA/+dEd0zrtS4bW59xf4SK5tbW2V2Txj/EnWPcXaffngcwlscs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711525246; c=relaxed/simple; bh=TiqVjopTLcQRE9vxBn8ZXHd2djE90eW2hHA4eK2iM00=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=upNjSI7jKl2tx0jMqkmqXNojOIQzbd2EC2fWD7cQ4fvbcA8G4rgqvJeK7jD4ojgQrVajGcwZsShLROSCwma8gaowJwOUY3Qc3xt6AIWf9nR/KkCHFzedHD3vC7067COJhNSyrQE48sMaYaFfVfRQHrRHXg2KpMjPWzop6ab23Q8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=atomide.com; spf=fail smtp.mailfrom=atomide.com; dkim=pass (2048-bit key) header.d=atomide.com header.i=@atomide.com header.b=bvs0p463; arc=none smtp.client-ip=74.50.62.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=atomide.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=atomide.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=atomide.com header.i=@atomide.com header.b="bvs0p463" Received: from localhost (91-158-86-216.elisa-laajakaista.fi [91.158.86.216]) by mail5.25mail.st (Postfix) with ESMTPSA id ACFE060434; Wed, 27 Mar 2024 07:40:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=atomide.com; s=25mailst; t=1711525244; bh=TiqVjopTLcQRE9vxBn8ZXHd2djE90eW2hHA4eK2iM00=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bvs0p463W9QsMs3VGQDiMp1CbuexN9QklrRtH2bUZtAkUgjZTTGvAvBYUktfcQAfo jbKaKCSWbVVQNK3x35vP62gqFt/hfrA+jILMyr1EaIcJCkFKukug1lxE2Qkm9IA6VW mvSkbDnebxDaRHUtz7PsW7VD5bsoovNI9Um9p7pTE6YNP06BTeYFD0OlXTx5xZl7mJ rKPEILoqGreOh1dupUyAMRQ5793KZbou4P8CfXNMUdYI6DWZbkLv3qidXw+k/Zy+Pi JNIbV5JYFYy3jcMk1lEqWvviLbMKjqeZUpKp8fND7pnzFbSPQ+9LUXWuJPvc7AGj7c 3XmHNIUUlYh8Q== From: Tony Lindgren To: linux-omap@vger.kernel.org Cc: =?utf-8?q?Beno=C3=AEt_Cousson?= , devicetree@vger.kernel.org Subject: [PATCH 11/12] ARM: dts: dra7: Use clksel binding for CM_CLKSEL_DPLL_USB Date: Wed, 27 Mar 2024 09:38:55 +0200 Message-ID: <20240327073856.21517-12-tony@atomide.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240327073856.21517-1-tony@atomide.com> References: <20240327073856.21517-1-tony@atomide.com> Precedence: bulk X-Mailing-List: linux-omap@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 With the clkcsel binding we can drop the custom ti,bit-shift devicetree property in favor of the standard reg property and reduce the number of clocks to update for the make W-1 dtbs warnings. Let's also add a comment for the clocksel clock that matches the documentation. Signed-off-by: Tony Lindgren --- arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi | 47 +++++++++++++------- 1 file changed, 32 insertions(+), 15 deletions(-) diff --git a/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi b/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi --- a/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi +++ b/arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi @@ -1091,14 +1091,23 @@ per_abe_x1_dclk_div: clock-per-abe-x1-dclk-div@1bc { ti,index-power-of-two; }; - dsp_gclk_div: clock-dsp-gclk-div@18c { - #clock-cells = <0>; - compatible = "ti,divider-clock"; - clock-output-names = "dsp_gclk_div"; - clocks = <&dpll_dsp_m2_ck>; - ti,max-div = <64>; - reg = <0x018c>; - ti,index-power-of-two; + /* CM_CLKSEL_DPLL_USB */ + clock@18c { + compatible = "ti,clksel"; + reg = <0x18c>; + #clock-cells = <2>; + #address-cells = <1>; + #size-cells = <0>; + + dsp_gclk_div: clock@0 { + reg = <0>; + compatible = "ti,divider-clock"; + clock-output-names = "dsp_gclk_div"; + clocks = <&dpll_dsp_m2_ck>; + ti,max-div = <64>; + ti,index-power-of-two; + #clock-cells = <0>; + }; }; gpu_dclk: clock-gpu-dclk@1a0 { @@ -1445,13 +1454,21 @@ func_96m_aon_dclk_div: clock-func-96m-aon-dclk-div { clock-div = <1>; }; - dpll_usb_byp_mux: clock-dpll-usb-byp-mux-23@18c { - #clock-cells = <0>; - compatible = "ti,mux-clock"; - clock-output-names = "dpll_usb_byp_mux"; - clocks = <&sys_clkin1>, <&usb_dpll_hs_clk_div>; - ti,bit-shift = <23>; - reg = <0x018c>; + /* CM_CLKSEL_DPLL_USB */ + clock@18c { + compatible = "ti,clksel"; + reg = <0x18c>; + #clock-cells = <2>; + #address-cells = <1>; + #size-cells = <0>; + + dpll_usb_byp_mux: clock@23 { + reg = <23>; + compatible = "ti,mux-clock"; + clock-output-names = "dpll_usb_byp_mux"; + clocks = <&sys_clkin1>, <&usb_dpll_hs_clk_div>; + #clock-cells = <0>; + }; }; dpll_usb_ck: clock@180 { From patchwork Wed Mar 27 07:38:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 783949 Received: from mail5.25mail.st (mail5.25mail.st [74.50.62.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A1CA62C1A2; Wed, 27 Mar 2024 07:40:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.50.62.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711525255; cv=none; b=NZZ1vVy4ndnydsGUwfJBqKIPsySk9gduhpp/C2CBxsdNm87XM5LtNU3fsVg8lyu+TXxg/YL/ZulNFGiqgFeklGVKUn/DEv3u5/9cg/Okw7JzPd2vQzxVsbsQrQVtwk0mt5VmQg9n5uyLYN9RsNtSmO8K9EGhTQeQClw2hI0QFYg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711525255; c=relaxed/simple; bh=4+sCcDHnXH4jF4AJ0JZGAAUvvx547SV73RODj5arrOw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=gpIp/qlRUfcVyduBOvbwTPNunv71nIjrrv7NcwRaA26AHUPxq9PukdU5NQVLs2Q9GCmUzq/xjRwroyqaAXLkNI7Bwr6haVX6lmcwiE2q7Jm0SU0O/n/rdJrqW7QleW64sKz5Wp0KRKx6rwBctTTV8CQaxH5nns3zwRvv10ctEDs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=atomide.com; spf=fail smtp.mailfrom=atomide.com; dkim=pass (2048-bit key) header.d=atomide.com header.i=@atomide.com header.b=b7QNdfn7; arc=none smtp.client-ip=74.50.62.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=atomide.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=atomide.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=atomide.com header.i=@atomide.com header.b="b7QNdfn7" Received: from localhost (91-158-86-216.elisa-laajakaista.fi [91.158.86.216]) by mail5.25mail.st (Postfix) with ESMTPSA id 2A10960434; Wed, 27 Mar 2024 07:40:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=atomide.com; s=25mailst; t=1711525252; bh=4+sCcDHnXH4jF4AJ0JZGAAUvvx547SV73RODj5arrOw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=b7QNdfn7otTnMh5BYPx9qS/jq0c+vhLzMbm0w6L2/19Q075wXmyrvHZFnRtcPtvKZ CP0EPPvi9GF4kBPTVtUIHjSJQhqhhMgUq9cbi0+iqPfACDyKIaZUvUY92SchFOgP+H ApA2h8rMP4IiTayxyaZVOqc8T+jWmUAvc81OhWR58Z6ql+QB8Iw6EZ+9Hl1/bZ3Ol4 GplVRX4ui2i4tERsqJY6Cx/nCQZFjwPoli4jpCvcsZlOmGOj5At5TkDlRz15pvIk8l qMqucH0Lkxw7LrEb3COdxY0C+kcQWajo1lDTJs0pW+2f15q8nr7gg3Ea6t8ODpWd+w KVRjlQJ1dLdcg== From: Tony Lindgren To: linux-omap@vger.kernel.org Cc: =?utf-8?q?Beno=C3=AEt_Cousson?= , devicetree@vger.kernel.org Subject: [PATCH 12/12] ARM: dts: dra7: Use clksel binding for CTRL_CORE_SMA_SW_0 Date: Wed, 27 Mar 2024 09:38:56 +0200 Message-ID: <20240327073856.21517-13-tony@atomide.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240327073856.21517-1-tony@atomide.com> References: <20240327073856.21517-1-tony@atomide.com> Precedence: bulk X-Mailing-List: linux-omap@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On dra76x, most dpll_gmac output clksel clocks are in registers from CM_CLKSEL_DPLL_GMAC to CM_DIV_H13_DPLL_GMAC. In addition to that, there are there more clocks in the CTRL_CORE_SMA_SW_0 register. Let's group the CTRL_CORE_SMA_SW_0 clocks using the clksel binding to reduce make W=1 dtbs unique_unit_address warnings, and stop using the custom the ti,bit-shift property in favor of the standard reg property. Let's also add a comment for the CTRL_CORE_SMA_SW_0 clock that matches the documentation. Signed-off-by: Tony Lindgren --- arch/arm/boot/dts/ti/omap/dra76x.dtsi | 63 +++++++++++++++------------ 1 file changed, 36 insertions(+), 27 deletions(-) diff --git a/arch/arm/boot/dts/ti/omap/dra76x.dtsi b/arch/arm/boot/dts/ti/omap/dra76x.dtsi --- a/arch/arm/boot/dts/ti/omap/dra76x.dtsi +++ b/arch/arm/boot/dts/ti/omap/dra76x.dtsi @@ -84,35 +84,44 @@ csi2_1: port@1 { }; &scm_conf_clocks { - dpll_gmac_h14x2_ctrl_ck: dpll_gmac_h14x2_ctrl_ck@3fc { - #clock-cells = <0>; - compatible = "ti,divider-clock"; - clocks = <&dpll_gmac_x2_ck>; - ti,max-div = <63>; - reg = <0x03fc>; - ti,bit-shift = <20>; - ti,latch-bit = <26>; - assigned-clocks = <&dpll_gmac_h14x2_ctrl_ck>; - assigned-clock-rates = <80000000>; - }; - - dpll_gmac_h14x2_ctrl_mux_ck: dpll_gmac_h14x2_ctrl_mux_ck@3fc { - #clock-cells = <0>; - compatible = "ti,mux-clock"; - clocks = <&dpll_gmac_ck>, <&dpll_gmac_h14x2_ctrl_ck>; + /* CTRL_CORE_SMA_SW_0 */ + clock@3fc { + compatible = "ti,clksel"; reg = <0x3fc>; - ti,bit-shift = <29>; - ti,latch-bit = <26>; - assigned-clocks = <&dpll_gmac_h14x2_ctrl_mux_ck>; - assigned-clock-parents = <&dpll_gmac_h14x2_ctrl_ck>; - }; + #clock-cells = <2>; + #address-cells = <1>; + #size-cells = <0>; - mcan_clk: mcan_clk@3fc { - #clock-cells = <0>; - compatible = "ti,gate-clock"; - clocks = <&dpll_gmac_h14x2_ctrl_mux_ck>; - ti,bit-shift = <27>; - reg = <0x3fc>; + dpll_gmac_h14x2_ctrl_ck: clock@20 { + reg = <20>; + clock-output-names = "dpll_gmac_h14x2_ctrl_ck"; + compatible = "ti,divider-clock"; + clocks = <&dpll_gmac_x2_ck>; + ti,max-div = <63>; + ti,latch-bit = <26>; + assigned-clocks = <&dpll_gmac_h14x2_ctrl_ck>; + assigned-clock-rates = <80000000>; + #clock-cells = <0>; + }; + + mcan_clk: clock@27 { + reg = <27>; + clock-output-names = "mcan_clk"; + compatible = "ti,gate-clock"; + clocks = <&dpll_gmac_h14x2_ctrl_mux_ck>; + #clock-cells = <0>; + }; + + dpll_gmac_h14x2_ctrl_mux_ck: clock@29 { + reg = <29>; + clock-output-names = "dpll_gmac_h14x2_ctrl_mux_ck"; + compatible = "ti,mux-clock"; + clocks = <&dpll_gmac_ck>, <&dpll_gmac_h14x2_ctrl_ck>; + ti,latch-bit = <26>; + assigned-clocks = <&dpll_gmac_h14x2_ctrl_mux_ck>; + assigned-clock-parents = <&dpll_gmac_h14x2_ctrl_ck>; + #clock-cells = <0>; + }; }; };