Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: Group omap3 CM_CLKSEL_WKUP clocks

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>

+37 -22
+14 -7
arch/arm/boot/dts/omap36xx-omap3430es2plus-clocks.dtsi
··· 168 168 clock-div = <20>; 169 169 }; 170 170 171 - usim_mux_fck: usim_mux_fck@c40 { 172 - #clock-cells = <0>; 173 - compatible = "ti,composite-mux-clock"; 174 - clocks = <&sys_ck>, <&sys_d2_ck>, <&omap_96m_d2_fck>, <&omap_96m_d4_fck>, <&omap_96m_d8_fck>, <&omap_96m_d10_fck>, <&dpll5_m2_d4_ck>, <&dpll5_m2_d8_ck>, <&dpll5_m2_d16_ck>, <&dpll5_m2_d20_ck>; 175 - ti,bit-shift = <3>; 176 - reg = <0x0c40>; 177 - ti,index-starts-at-one; 171 + clock@c40 { 172 + compatible = "ti,clksel"; 173 + reg = <0xc40>; 174 + #clock-cells = <2>; 175 + #address-cells = <0>; 176 + 177 + usim_mux_fck: clock-usim-mux-fck { 178 + #clock-cells = <0>; 179 + compatible = "ti,composite-mux-clock"; 180 + clock-output-names = "usim_mux_fck"; 181 + clocks = <&sys_ck>, <&sys_d2_ck>, <&omap_96m_d2_fck>, <&omap_96m_d4_fck>, <&omap_96m_d8_fck>, <&omap_96m_d10_fck>, <&dpll5_m2_d4_ck>, <&dpll5_m2_d8_ck>, <&dpll5_m2_d16_ck>, <&dpll5_m2_d20_ck>; 182 + ti,bit-shift = <3>; 183 + ti,index-starts-at-one; 184 + }; 178 185 }; 179 186 180 187 usim_fck: usim_fck {
+23 -15
arch/arm/boot/dts/omap3xxx-clocks.dtsi
··· 617 617 }; 618 618 }; 619 619 620 - rm_ick: rm_ick@c40 { 621 - #clock-cells = <0>; 622 - compatible = "ti,divider-clock"; 623 - clocks = <&l4_ick>; 624 - ti,bit-shift = <1>; 625 - ti,max-div = <3>; 626 - reg = <0x0c40>; 627 - ti,index-starts-at-one; 620 + /* CM_CLKSEL_WKUP */ 621 + clock@c40 { 622 + compatible = "ti,clksel"; 623 + reg = <0xc40>; 624 + #clock-cells = <2>; 625 + #address-cells = <0>; 626 + 627 + rm_ick: clock-rm-ick { 628 + #clock-cells = <0>; 629 + compatible = "ti,divider-clock"; 630 + clock-output-names = "rm_ick"; 631 + clocks = <&l4_ick>; 632 + ti,bit-shift = <1>; 633 + ti,max-div = <3>; 634 + ti,index-starts-at-one; 635 + }; 636 + 637 + gpt1_mux_fck: clock-gpt1-mux-fck { 638 + #clock-cells = <0>; 639 + compatible = "ti,composite-mux-clock"; 640 + clock-output-names = "gpt1_mux_fck"; 641 + clocks = <&omap_32k_fck>, <&sys_ck>; 642 + }; 628 643 }; 629 644 630 645 /* CM_FCLKEN1_CORE */ ··· 1066 1051 clocks = <&wkup_32k_fck>; 1067 1052 ti,bit-shift = <5>; 1068 1053 }; 1069 - }; 1070 - 1071 - gpt1_mux_fck: gpt1_mux_fck@c40 { 1072 - #clock-cells = <0>; 1073 - compatible = "ti,composite-mux-clock"; 1074 - clocks = <&omap_32k_fck>, <&sys_ck>; 1075 - reg = <0x0c40>; 1076 1054 }; 1077 1055 1078 1056 gpt1_fck: gpt1_fck {