ARM: dts: Group omap3 CM_FCLKEN_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/omap3430es1-clocks.dtsi
arch/arm/boot/dts/omap36xx-am35xx-omap3430es2plus-clocks.dtsi
arch/arm/boot/dts/omap3xxx-clocks.dtsi

index 7dbab6eb2e6d122a227255355e261164a85d49cb..24adfac26be04af05aab0e4f00aebf73cc20453f 100644 (file)
                clocks = <&usb_l4_gate_ick>, <&usb_l4_div_ick>;
        };
 
-       dss1_alwon_fck: dss1_alwon_fck_3430es1@e00 {
-               #clock-cells = <0>;
-               compatible = "ti,gate-clock";
-               clocks = <&dpll4_m4x2_ck>;
-               ti,bit-shift = <0>;
-               reg = <0x0e00>;
-               ti,set-rate-parent;
+       clock@e00 {
+               compatible = "ti,clksel";
+               reg = <0xe00>;
+               #clock-cells = <2>;
+               #address-cells = <0>;
+
+               dss1_alwon_fck: clock-dss1-alwon-fck-3430es1 {
+                       #clock-cells = <0>;
+                       compatible = "ti,gate-clock";
+                       clock-output-names = "dss1_alwon_fck_3430es1";
+                       clocks = <&dpll4_m4x2_ck>;
+                       ti,bit-shift = <0>;
+                       ti,set-rate-parent;
+               };
        };
 
        dss_ick: dss_ick_3430es1@e10 {
index 1c41530cc16ac700e09bcda460d1f48b1c2c4b83..dcc5cfcd1fe66c7f9600248c4dfcf68bbd374c4f 100644 (file)
                };
        };
 
-       dss1_alwon_fck: dss1_alwon_fck_3430es2@e00 {
-               #clock-cells = <0>;
-               compatible = "ti,dss-gate-clock";
-               clocks = <&dpll4_m4x2_ck>;
-               ti,bit-shift = <0>;
-               reg = <0x0e00>;
-               ti,set-rate-parent;
+       clock@e00 {
+               compatible = "ti,clksel";
+               reg = <0xe00>;
+               #clock-cells = <2>;
+               #address-cells = <0>;
+
+               dss1_alwon_fck: clock-dss1-alwon-fck-3430es2 {
+                       #clock-cells = <0>;
+                       compatible = "ti,dss-gate-clock";
+                       clock-output-names = "dss1_alwon_fck_3430es2";
+                       clocks = <&dpll4_m4x2_ck>;
+                       ti,bit-shift = <0>;
+                       ti,set-rate-parent;
+               };
        };
 
        dss_ick: dss_ick_3430es2@e10 {
index 01c4b312c89a8c7df8d59f732826ce6ce13f34a6..5a192fc149c0d80f1ada6c4ff8eb1ccaa79baa23 100644 (file)
                clock-div = <1>;
        };
 
-       dss_tv_fck: dss_tv_fck@e00 {
-               #clock-cells = <0>;
-               compatible = "ti,gate-clock";
-               clocks = <&omap_54m_fck>;
-               reg = <0x0e00>;
-               ti,bit-shift = <2>;
-       };
+       /* CM_FCLKEN_DSS */
+       clock@e00 {
+               compatible = "ti,clksel";
+               reg = <0xe00>;
+               #clock-cells = <2>;
+               #address-cells = <0>;
 
-       dss_96m_fck: dss_96m_fck@e00 {
-               #clock-cells = <0>;
-               compatible = "ti,gate-clock";
-               clocks = <&omap_96m_fck>;
-               reg = <0x0e00>;
-               ti,bit-shift = <2>;
-       };
+               dss_tv_fck: clock-dss-tv-fck {
+                       #clock-cells = <0>;
+                       compatible = "ti,gate-clock";
+                       clock-output-names = "dss_tv_fck";
+                       clocks = <&omap_54m_fck>;
+                       ti,bit-shift = <2>;
+               };
 
-       dss2_alwon_fck: dss2_alwon_fck@e00 {
-               #clock-cells = <0>;
-               compatible = "ti,gate-clock";
-               clocks = <&sys_ck>;
-               reg = <0x0e00>;
-               ti,bit-shift = <1>;
+               dss_96m_fck: clock-dss-96m-fck {
+                       #clock-cells = <0>;
+                       compatible = "ti,gate-clock";
+                       clock-output-names = "dss_96m_fck";
+                       clocks = <&omap_96m_fck>;
+                       ti,bit-shift = <2>;
+               };
+
+               dss2_alwon_fck: clock-dss2-alwon-fck {
+                       #clock-cells = <0>;
+                       compatible = "ti,gate-clock";
+                       clock-output-names = "dss2_alwon_fck";
+                       clocks = <&sys_ck>;
+                       ti,bit-shift = <1>;
+               };
        };
 
        dummy_ck: dummy_ck {