ARM: dts: Group omap3 CM_CLKSEL_DSS 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 5a192fc149c0d80f1ada6c4ff8eb1ccaa79baa23..30f6847ef65e0a55441c3857a45bbccccfe0def4 100644 (file)
                };
        };
 
-       dpll4_m3_ck: dpll4_m3_ck@e40 {
-               #clock-cells = <0>;
-               compatible = "ti,divider-clock";
-               clocks = <&dpll4_ck>;
-               ti,bit-shift = <8>;
-               ti,max-div = <32>;
-               reg = <0x0e40>;
-               ti,index-starts-at-one;
+       /* CM_CLKSEL_DSS */
+       clock@e40 {
+               compatible = "ti,clksel";
+               reg = <0xe40>;
+               #clock-cells = <2>;
+               #address-cells = <0>;
+
+               dpll4_m3_ck: clock-dpll4-m3 {
+                       #clock-cells = <0>;
+                       compatible = "ti,divider-clock";
+                       clock-output-names = "dpll4_m3_ck";
+                       clocks = <&dpll4_ck>;
+                       ti,bit-shift = <8>;
+                       ti,max-div = <32>;
+                       ti,index-starts-at-one;
+               };
+
+               dpll4_m4_ck: clock-dpll4-m4 {
+                       #clock-cells = <0>;
+                       compatible = "ti,divider-clock";
+                       clock-output-names = "dpll4_m4_ck";
+                       clocks = <&dpll4_ck>;
+                       ti,max-div = <16>;
+                       ti,index-starts-at-one;
+               };
        };
 
        dpll4_m3x2_mul_ck: dpll4_m3x2_mul_ck {
                clock-div = <4>;
        };
 
-       dpll4_m4_ck: dpll4_m4_ck@e40 {
-               #clock-cells = <0>;
-               compatible = "ti,divider-clock";
-               clocks = <&dpll4_ck>;
-               ti,max-div = <16>;
-               reg = <0x0e40>;
-               ti,index-starts-at-one;
-       };
-
        dpll4_m4x2_mul_ck: dpll4_m4x2_mul_ck {
                #clock-cells = <0>;
                compatible = "ti,fixed-factor-clock";