提交 97cdb331 编写于 作者: A Alain Volmat 提交者: Patrice Chotard

ARM: dts: sti: ensure unique unit-address in stih407-clock

Move quadfs and a9-mux clocks nodes into clockgen nodes so
that they can get the reg property from the parent node and
ensure only one node has the address.
Signed-off-by: NAlain Volmat <avolmat@me.com>
Reviewed-by: NPatrice Chotard <patrice.chotard@foss.st.com>
Signed-off-by: NPatrice Chotard <patrice.chotard@foss.st.com>
上级 e783362e
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
*/ */
clockgen-a9@92b0000 { clockgen-a9@92b0000 {
compatible = "st,clkgen-c32"; compatible = "st,clkgen-c32";
reg = <0x92b0000 0xffff>; reg = <0x92b0000 0x10000>;
clockgen_a9_pll: clockgen-a9-pll { clockgen_a9_pll: clockgen-a9-pll {
#clock-cells = <1>; #clock-cells = <1>;
...@@ -37,32 +37,27 @@ ...@@ -37,32 +37,27 @@
clocks = <&clk_sysin>; clocks = <&clk_sysin>;
}; };
};
/* clk_m_a9: clk-m-a9 {
* ARM CPU related clocks. #clock-cells = <0>;
*/ compatible = "st,stih407-clkgen-a9-mux";
clk_m_a9: clk-m-a9@92b0000 {
#clock-cells = <0>;
compatible = "st,stih407-clkgen-a9-mux";
reg = <0x92b0000 0x10000>;
clocks = <&clockgen_a9_pll 0>,
<&clockgen_a9_pll 0>,
<&clk_s_c0_flexgen 13>,
<&clk_m_a9_ext2f_div2>;
clocks = <&clockgen_a9_pll 0>,
<&clockgen_a9_pll 0>,
<&clk_s_c0_flexgen 13>,
<&clk_m_a9_ext2f_div2>;
/* /*
* ARM Peripheral clock for timers * ARM Peripheral clock for timers
*/ */
arm_periph_clk: clk-m-a9-periphs { arm_periph_clk: clk-m-a9-periphs {
#clock-cells = <0>; #clock-cells = <0>;
compatible = "fixed-factor-clock"; compatible = "fixed-factor-clock";
clocks = <&clk_m_a9>; clocks = <&clk_m_a9>;
clock-div = <2>; clock-div = <2>;
clock-mult = <1>; clock-mult = <1>;
};
}; };
}; };
...@@ -87,14 +82,6 @@ ...@@ -87,14 +82,6 @@
}; };
}; };
clk_s_c0_quadfs: clk-s-c0-quadfs@9103000 {
#clock-cells = <1>;
compatible = "st,quadfs-pll";
reg = <0x9103000 0x1000>;
clocks = <&clk_sysin>;
};
clk_s_c0: clockgen-c@9103000 { clk_s_c0: clockgen-c@9103000 {
compatible = "st,clkgen-c32"; compatible = "st,clkgen-c32";
reg = <0x9103000 0x1000>; reg = <0x9103000 0x1000>;
...@@ -113,6 +100,13 @@ ...@@ -113,6 +100,13 @@
clocks = <&clk_sysin>; clocks = <&clk_sysin>;
}; };
clk_s_c0_quadfs: clk-s-c0-quadfs {
#clock-cells = <1>;
compatible = "st,quadfs-pll";
clocks = <&clk_sysin>;
};
clk_s_c0_flexgen: clk-s-c0-flexgen { clk_s_c0_flexgen: clk-s-c0-flexgen {
#clock-cells = <1>; #clock-cells = <1>;
compatible = "st,flexgen", "st,flexgen-stih407-c0"; compatible = "st,flexgen", "st,flexgen-stih407-c0";
...@@ -142,18 +136,17 @@ ...@@ -142,18 +136,17 @@
}; };
}; };
clk_s_d0_quadfs: clk-s-d0-quadfs@9104000 {
#clock-cells = <1>;
compatible = "st,quadfs-d0";
reg = <0x9104000 0x1000>;
clocks = <&clk_sysin>;
};
clockgen-d0@9104000 { clockgen-d0@9104000 {
compatible = "st,clkgen-c32"; compatible = "st,clkgen-c32";
reg = <0x9104000 0x1000>; reg = <0x9104000 0x1000>;
clk_s_d0_quadfs: clk-s-d0-quadfs {
#clock-cells = <1>;
compatible = "st,quadfs-d0";
clocks = <&clk_sysin>;
};
clk_s_d0_flexgen: clk-s-d0-flexgen { clk_s_d0_flexgen: clk-s-d0-flexgen {
#clock-cells = <1>; #clock-cells = <1>;
compatible = "st,flexgen", "st,flexgen-stih407-d0"; compatible = "st,flexgen", "st,flexgen-stih407-d0";
...@@ -166,18 +159,17 @@ ...@@ -166,18 +159,17 @@
}; };
}; };
clk_s_d2_quadfs: clk-s-d2-quadfs@9106000 {
#clock-cells = <1>;
compatible = "st,quadfs-d2";
reg = <0x9106000 0x1000>;
clocks = <&clk_sysin>;
};
clockgen-d2@9106000 { clockgen-d2@9106000 {
compatible = "st,clkgen-c32"; compatible = "st,clkgen-c32";
reg = <0x9106000 0x1000>; reg = <0x9106000 0x1000>;
clk_s_d2_quadfs: clk-s-d2-quadfs {
#clock-cells = <1>;
compatible = "st,quadfs-d2";
clocks = <&clk_sysin>;
};
clk_s_d2_flexgen: clk-s-d2-flexgen { clk_s_d2_flexgen: clk-s-d2-flexgen {
#clock-cells = <1>; #clock-cells = <1>;
compatible = "st,flexgen", "st,flexgen-stih407-d2"; compatible = "st,flexgen", "st,flexgen-stih407-d2";
...@@ -192,18 +184,17 @@ ...@@ -192,18 +184,17 @@
}; };
}; };
clk_s_d3_quadfs: clk-s-d3-quadfs@9107000 {
#clock-cells = <1>;
compatible = "st,quadfs-d3";
reg = <0x9107000 0x1000>;
clocks = <&clk_sysin>;
};
clockgen-d3@9107000 { clockgen-d3@9107000 {
compatible = "st,clkgen-c32"; compatible = "st,clkgen-c32";
reg = <0x9107000 0x1000>; reg = <0x9107000 0x1000>;
clk_s_d3_quadfs: clk-s-d3-quadfs {
#clock-cells = <1>;
compatible = "st,quadfs-d3";
clocks = <&clk_sysin>;
};
clk_s_d3_flexgen: clk-s-d3-flexgen { clk_s_d3_flexgen: clk-s-d3-flexgen {
#clock-cells = <1>; #clock-cells = <1>;
compatible = "st,flexgen", "st,flexgen-stih407-d3"; compatible = "st,flexgen", "st,flexgen-stih407-d3";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册