Commit c22a3d8c authored by Tony Lindgren's avatar Tony Lindgren
Browse files

ARM: dts: Group omap3 CM_CLKSEL_PER 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: default avatarTony Lindgren <tony@atomide.com>
parent cab3db1b
Loading
Loading
Loading
Loading
+68 −60
Original line number Diff line number Diff line
@@ -1338,109 +1338,117 @@
		};
	};

	gpt2_mux_fck: gpt2_mux_fck@1040 {
		#clock-cells = <0>;
		compatible = "ti,composite-mux-clock";
		clocks = <&omap_32k_fck>, <&sys_ck>;
	/* CM_CLKSEL_PER */
	clock@1040 {
		compatible = "ti,clksel";
		reg = <0x1040>;
	};
		#clock-cells = <2>;
		#address-cells = <0>;

	gpt2_fck: gpt2_fck {
		gpt2_mux_fck: clock-gpt2-mux-fck {
			#clock-cells = <0>;
		compatible = "ti,composite-clock";
		clocks = <&gpt2_gate_fck>, <&gpt2_mux_fck>;
			compatible = "ti,composite-mux-clock";
			clock-output-names = "gpt2_mux_fck";
			clocks = <&omap_32k_fck>, <&sys_ck>;
		};

	gpt3_mux_fck: gpt3_mux_fck@1040 {
		gpt3_mux_fck: clock-gpt3-mux-fck {
			#clock-cells = <0>;
			compatible = "ti,composite-mux-clock";
			clock-output-names = "gpt3_mux_fck";
			clocks = <&omap_32k_fck>, <&sys_ck>;
			ti,bit-shift = <1>;
		reg = <0x1040>;
		};

	gpt3_fck: gpt3_fck {
		gpt4_mux_fck: clock-gpt4-mux-fck {
			#clock-cells = <0>;
		compatible = "ti,composite-clock";
		clocks = <&gpt3_gate_fck>, <&gpt3_mux_fck>;
			compatible = "ti,composite-mux-clock";
			clock-output-names = "gpt4_mux_fck";
			clocks = <&omap_32k_fck>, <&sys_ck>;
			ti,bit-shift = <2>;
		};

	gpt4_mux_fck: gpt4_mux_fck@1040 {
		gpt5_mux_fck: clock-gpt5-mux-fck {
			#clock-cells = <0>;
			compatible = "ti,composite-mux-clock";
			clock-output-names = "gpt5_mux_fck";
			clocks = <&omap_32k_fck>, <&sys_ck>;
		ti,bit-shift = <2>;
		reg = <0x1040>;
			ti,bit-shift = <3>;
		};

	gpt4_fck: gpt4_fck {
		gpt6_mux_fck: clock-gpt6-mux-fck {
			#clock-cells = <0>;
		compatible = "ti,composite-clock";
		clocks = <&gpt4_gate_fck>, <&gpt4_mux_fck>;
			compatible = "ti,composite-mux-clock";
			clock-output-names = "gpt6_mux_fck";
			clocks = <&omap_32k_fck>, <&sys_ck>;
			ti,bit-shift = <4>;
		};

	gpt5_mux_fck: gpt5_mux_fck@1040 {
		gpt7_mux_fck: clock-gpt7-mux-fck {
			#clock-cells = <0>;
			compatible = "ti,composite-mux-clock";
			clock-output-names = "gpt7_mux_fck";
			clocks = <&omap_32k_fck>, <&sys_ck>;
		ti,bit-shift = <3>;
		reg = <0x1040>;
			ti,bit-shift = <5>;
		};

	gpt5_fck: gpt5_fck {
		gpt8_mux_fck: clock-gpt8-mux-fck {
			#clock-cells = <0>;
		compatible = "ti,composite-clock";
		clocks = <&gpt5_gate_fck>, <&gpt5_mux_fck>;
			compatible = "ti,composite-mux-clock";
			clock-output-names = "gpt8_mux_fck";
			clocks = <&omap_32k_fck>, <&sys_ck>;
			ti,bit-shift = <6>;
		};

	gpt6_mux_fck: gpt6_mux_fck@1040 {
		gpt9_mux_fck: clock-gpt9-mux-fck {
			#clock-cells = <0>;
			compatible = "ti,composite-mux-clock";
			clock-output-names = "gpt9_mux_fck";
			clocks = <&omap_32k_fck>, <&sys_ck>;
		ti,bit-shift = <4>;
		reg = <0x1040>;
			ti,bit-shift = <7>;
		};
	};

	gpt6_fck: gpt6_fck {
	gpt2_fck: gpt2_fck {
		#clock-cells = <0>;
		compatible = "ti,composite-clock";
		clocks = <&gpt6_gate_fck>, <&gpt6_mux_fck>;
		clocks = <&gpt2_gate_fck>, <&gpt2_mux_fck>;
	};

	gpt7_mux_fck: gpt7_mux_fck@1040 {
	gpt3_fck: gpt3_fck {
		#clock-cells = <0>;
		compatible = "ti,composite-mux-clock";
		clocks = <&omap_32k_fck>, <&sys_ck>;
		ti,bit-shift = <5>;
		reg = <0x1040>;
		compatible = "ti,composite-clock";
		clocks = <&gpt3_gate_fck>, <&gpt3_mux_fck>;
	};

	gpt7_fck: gpt7_fck {
	gpt4_fck: gpt4_fck {
		#clock-cells = <0>;
		compatible = "ti,composite-clock";
		clocks = <&gpt7_gate_fck>, <&gpt7_mux_fck>;
		clocks = <&gpt4_gate_fck>, <&gpt4_mux_fck>;
	};

	gpt8_mux_fck: gpt8_mux_fck@1040 {
	gpt5_fck: gpt5_fck {
		#clock-cells = <0>;
		compatible = "ti,composite-mux-clock";
		clocks = <&omap_32k_fck>, <&sys_ck>;
		ti,bit-shift = <6>;
		reg = <0x1040>;
		compatible = "ti,composite-clock";
		clocks = <&gpt5_gate_fck>, <&gpt5_mux_fck>;
	};

	gpt8_fck: gpt8_fck {
	gpt6_fck: gpt6_fck {
		#clock-cells = <0>;
		compatible = "ti,composite-clock";
		clocks = <&gpt8_gate_fck>, <&gpt8_mux_fck>;
		clocks = <&gpt6_gate_fck>, <&gpt6_mux_fck>;
	};

	gpt9_mux_fck: gpt9_mux_fck@1040 {
	gpt7_fck: gpt7_fck {
		#clock-cells = <0>;
		compatible = "ti,composite-mux-clock";
		clocks = <&omap_32k_fck>, <&sys_ck>;
		ti,bit-shift = <7>;
		reg = <0x1040>;
		compatible = "ti,composite-clock";
		clocks = <&gpt7_gate_fck>, <&gpt7_mux_fck>;
	};

	gpt8_fck: gpt8_fck {
		#clock-cells = <0>;
		compatible = "ti,composite-clock";
		clocks = <&gpt8_gate_fck>, <&gpt8_mux_fck>;
	};

	gpt9_fck: gpt9_fck {