ARM: dts: Group omap3 CONTROL_DEVCONF0 clocks
authorTony Lindgren <tony@atomide.com>
Fri, 29 Apr 2022 06:57:36 +0000 (09:57 +0300)
committerTony Lindgren <tony@atomide.com>
Tue, 3 May 2022 06:15:41 +0000 (09:15 +0300)
The clksel related registers on omap3 cause unique_unit_address and
node_name_chars_strict warnings with the W=1 or W=2 make flags enabled.

With the clock drivers updated, we can now avoid most of these warnings
by grouping the TI component clocks using the TI clksel binding, and
with the use of clock-output-names property to avoid non-standard node
names for the clocks.

Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/omap3xxx-clocks.dtsi

index 0656c32439d21cfb3b501f58c6b50ea0c3ee9ac5..b40832103dd6b83e4b7a82754c8bba4332fc3f2b 100644 (file)
                clocks = <&mcbsp5_gate_fck>, <&mcbsp5_mux_fck>;
        };
 
-       mcbsp1_mux_fck: mcbsp1_mux_fck@4 {
-               #clock-cells = <0>;
-               compatible = "ti,composite-mux-clock";
-               clocks = <&core_96m_fck>, <&mcbsp_clks>;
-               ti,bit-shift = <2>;
-               reg = <0x04>;
+       /* CONTROL_DEVCONF0 */
+       clock@4 {
+               compatible = "ti,clksel";
+               reg = <0x4>;
+               #clock-cells = <2>;
+               #address-cells = <0>;
+
+               mcbsp1_mux_fck: clock-mcbsp1-mux-fck {
+                       #clock-cells = <0>;
+                       compatible = "ti,composite-mux-clock";
+                       clock-output-names = "mcbsp1_mux_fck";
+                       clocks = <&core_96m_fck>, <&mcbsp_clks>;
+                       ti,bit-shift = <2>;
+               };
+
+               mcbsp2_mux_fck: clock-mcbsp2-mux-fck {
+                       #clock-cells = <0>;
+                       compatible = "ti,composite-mux-clock";
+                       clock-output-names = "mcbsp2_mux_fck";
+                       clocks = <&per_96m_fck>, <&mcbsp_clks>;
+                       ti,bit-shift = <6>;
+               };
        };
 
        mcbsp1_fck: mcbsp1_fck {
                clocks = <&mcbsp1_gate_fck>, <&mcbsp1_mux_fck>;
        };
 
-       mcbsp2_mux_fck: mcbsp2_mux_fck@4 {
-               #clock-cells = <0>;
-               compatible = "ti,composite-mux-clock";
-               clocks = <&per_96m_fck>, <&mcbsp_clks>;
-               ti,bit-shift = <6>;
-               reg = <0x04>;
-       };
-
        mcbsp2_fck: mcbsp2_fck {
                #clock-cells = <0>;
                compatible = "ti,composite-clock";