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

ARM: dts: Group omap3 CM_FCLKEN_CAM 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>

+23 -15
+23 -15
arch/arm/boot/dts/omap34xx-omap36xx-clocks.dtsi
··· 60 60 }; 61 61 }; 62 62 63 - cam_mclk: cam_mclk@f00 { 64 - #clock-cells = <0>; 65 - compatible = "ti,gate-clock"; 66 - clocks = <&dpll4_m5x2_ck>; 67 - ti,bit-shift = <0>; 68 - reg = <0x0f00>; 69 - ti,set-rate-parent; 63 + /* CM_FCLKEN_CAM */ 64 + clock@f00 { 65 + compatible = "ti,clksel"; 66 + reg = <0xf00>; 67 + #clock-cells = <2>; 68 + #address-cells = <0>; 69 + 70 + cam_mclk: clock-cam-mclk { 71 + #clock-cells = <0>; 72 + compatible = "ti,gate-clock"; 73 + clock-output-names = "cam_mclk"; 74 + clocks = <&dpll4_m5x2_ck>; 75 + ti,bit-shift = <0>; 76 + ti,set-rate-parent; 77 + }; 78 + 79 + csi2_96m_fck: clock-csi2-96m-fck { 80 + #clock-cells = <0>; 81 + compatible = "ti,gate-clock"; 82 + clock-output-names = "csi2_96m_fck"; 83 + clocks = <&core_96m_fck>; 84 + ti,bit-shift = <1>; 85 + }; 70 86 }; 71 87 72 88 cam_ick: cam_ick@f10 { ··· 91 75 clocks = <&l4_ick>; 92 76 reg = <0x0f10>; 93 77 ti,bit-shift = <0>; 94 - }; 95 - 96 - csi2_96m_fck: csi2_96m_fck@f00 { 97 - #clock-cells = <0>; 98 - compatible = "ti,gate-clock"; 99 - clocks = <&core_96m_fck>; 100 - reg = <0x0f00>; 101 - ti,bit-shift = <1>; 102 78 }; 103 79 104 80 security_l3_ick: security_l3_ick {