ARM: dts: Group omap3 CM_CLKOUT_CTRL 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:43 +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 d101f0a40502a090769c0df0b6e494c9e452f0f6..01c4b312c89a8c7df8d59f732826ce6ce13f34a6 100644 (file)
                clock-div = <1>;
        };
 
-       clkout2_src_gate_ck: clkout2_src_gate_ck@d70 {
-               #clock-cells = <0>;
-               compatible = "ti,composite-no-wait-gate-clock";
-               clocks = <&core_ck>;
-               ti,bit-shift = <7>;
-               reg = <0x0d70>;
-       };
+       /* CM_CLKOUT_CTRL */
+       clock@d70 {
+               compatible = "ti,clksel";
+               reg = <0xd70>;
+               #clock-cells = <2>;
+               #address-cells = <0>;
 
-       clkout2_src_mux_ck: clkout2_src_mux_ck@d70 {
-               #clock-cells = <0>;
-               compatible = "ti,composite-mux-clock";
-               clocks = <&core_ck>, <&sys_ck>, <&cm_96m_fck>, <&omap_54m_fck>;
-               reg = <0x0d70>;
+               clkout2_src_gate_ck: clock-clkout2-src-gate {
+                       #clock-cells = <0>;
+                       compatible = "ti,composite-no-wait-gate-clock";
+                       clock-output-names = "clkout2_src_gate_ck";
+                       clocks = <&core_ck>;
+                       ti,bit-shift = <7>;
+               };
+
+               clkout2_src_mux_ck: clock-clkout2-src-mux {
+                       #clock-cells = <0>;
+                       compatible = "ti,composite-mux-clock";
+                       clock-output-names = "clkout2_src_mux_ck";
+                       clocks = <&core_ck>, <&sys_ck>, <&cm_96m_fck>, <&omap_54m_fck>;
+               };
+
+               sys_clkout2: clock-sys-clkout2 {
+                       #clock-cells = <0>;
+                       compatible = "ti,divider-clock";
+                       clock-output-names = "sys_clkout2";
+                       clocks = <&clkout2_src_ck>;
+                       ti,bit-shift = <3>;
+                       ti,max-div = <64>;
+                       ti,index-power-of-two;
+               };
        };
 
        clkout2_src_ck: clkout2_src_ck {
                clocks = <&clkout2_src_gate_ck>, <&clkout2_src_mux_ck>;
        };
 
-       sys_clkout2: sys_clkout2@d70 {
-               #clock-cells = <0>;
-               compatible = "ti,divider-clock";
-               clocks = <&clkout2_src_ck>;
-               ti,bit-shift = <3>;
-               ti,max-div = <64>;
-               reg = <0x0d70>;
-               ti,index-power-of-two;
-       };
-
        mpu_ck: mpu_ck {
                #clock-cells = <0>;
                compatible = "fixed-factor-clock";