diff options
author | Chen-Yu Tsai <wens@csie.org> | 2014-02-02 20:51:42 -0500 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@free-electrons.com> | 2014-02-07 14:23:16 -0500 |
commit | 3dce8324949eaa1ab4b750e8422ce78ddceb7aa4 (patch) | |
tree | 08c3cdd12dba36c06a9e6e3a311c3a740400b159 /arch/arm/boot/dts/sun5i-a10s.dtsi | |
parent | dfb12c0c35b6cca5e55f40870b65af87988adb3e (diff) |
ARM: dts: sun5i: rename clock node names to clk@N
Device tree naming conventions state that node names should match
node function. Change fully functioning clock nodes to match and
add clock-output-names to all sunxi clock nodes.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'arch/arm/boot/dts/sun5i-a10s.dtsi')
-rw-r--r-- | arch/arm/boot/dts/sun5i-a10s.dtsi | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/arch/arm/boot/dts/sun5i-a10s.dtsi b/arch/arm/boot/dts/sun5i-a10s.dtsi index 231808201efb..b114be72eefb 100644 --- a/arch/arm/boot/dts/sun5i-a10s.dtsi +++ b/arch/arm/boot/dts/sun5i-a10s.dtsi | |||
@@ -51,34 +51,38 @@ | |||
51 | clock-frequency = <0>; | 51 | clock-frequency = <0>; |
52 | }; | 52 | }; |
53 | 53 | ||
54 | osc24M: osc24M@01c20050 { | 54 | osc24M: clk@01c20050 { |
55 | #clock-cells = <0>; | 55 | #clock-cells = <0>; |
56 | compatible = "allwinner,sun4i-osc-clk"; | 56 | compatible = "allwinner,sun4i-osc-clk"; |
57 | reg = <0x01c20050 0x4>; | 57 | reg = <0x01c20050 0x4>; |
58 | clock-frequency = <24000000>; | 58 | clock-frequency = <24000000>; |
59 | clock-output-names = "osc24M"; | ||
59 | }; | 60 | }; |
60 | 61 | ||
61 | osc32k: osc32k { | 62 | osc32k: clk@0 { |
62 | #clock-cells = <0>; | 63 | #clock-cells = <0>; |
63 | compatible = "fixed-clock"; | 64 | compatible = "fixed-clock"; |
64 | clock-frequency = <32768>; | 65 | clock-frequency = <32768>; |
66 | clock-output-names = "osc32k"; | ||
65 | }; | 67 | }; |
66 | 68 | ||
67 | pll1: pll1@01c20000 { | 69 | pll1: clk@01c20000 { |
68 | #clock-cells = <0>; | 70 | #clock-cells = <0>; |
69 | compatible = "allwinner,sun4i-pll1-clk"; | 71 | compatible = "allwinner,sun4i-pll1-clk"; |
70 | reg = <0x01c20000 0x4>; | 72 | reg = <0x01c20000 0x4>; |
71 | clocks = <&osc24M>; | 73 | clocks = <&osc24M>; |
74 | clock-output-names = "pll1"; | ||
72 | }; | 75 | }; |
73 | 76 | ||
74 | pll4: pll4@01c20018 { | 77 | pll4: clk@01c20018 { |
75 | #clock-cells = <0>; | 78 | #clock-cells = <0>; |
76 | compatible = "allwinner,sun4i-pll1-clk"; | 79 | compatible = "allwinner,sun4i-pll1-clk"; |
77 | reg = <0x01c20018 0x4>; | 80 | reg = <0x01c20018 0x4>; |
78 | clocks = <&osc24M>; | 81 | clocks = <&osc24M>; |
82 | clock-output-names = "pll4"; | ||
79 | }; | 83 | }; |
80 | 84 | ||
81 | pll5: pll5@01c20020 { | 85 | pll5: clk@01c20020 { |
82 | #clock-cells = <1>; | 86 | #clock-cells = <1>; |
83 | compatible = "allwinner,sun4i-pll5-clk"; | 87 | compatible = "allwinner,sun4i-pll5-clk"; |
84 | reg = <0x01c20020 0x4>; | 88 | reg = <0x01c20020 0x4>; |
@@ -86,7 +90,7 @@ | |||
86 | clock-output-names = "pll5_ddr", "pll5_other"; | 90 | clock-output-names = "pll5_ddr", "pll5_other"; |
87 | }; | 91 | }; |
88 | 92 | ||
89 | pll6: pll6@01c20028 { | 93 | pll6: clk@01c20028 { |
90 | #clock-cells = <1>; | 94 | #clock-cells = <1>; |
91 | compatible = "allwinner,sun4i-pll6-clk"; | 95 | compatible = "allwinner,sun4i-pll6-clk"; |
92 | reg = <0x01c20028 0x4>; | 96 | reg = <0x01c20028 0x4>; |
@@ -100,6 +104,7 @@ | |||
100 | compatible = "allwinner,sun4i-cpu-clk"; | 104 | compatible = "allwinner,sun4i-cpu-clk"; |
101 | reg = <0x01c20054 0x4>; | 105 | reg = <0x01c20054 0x4>; |
102 | clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>; | 106 | clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>; |
107 | clock-output-names = "cpu"; | ||
103 | }; | 108 | }; |
104 | 109 | ||
105 | axi: axi@01c20054 { | 110 | axi: axi@01c20054 { |
@@ -107,9 +112,10 @@ | |||
107 | compatible = "allwinner,sun4i-axi-clk"; | 112 | compatible = "allwinner,sun4i-axi-clk"; |
108 | reg = <0x01c20054 0x4>; | 113 | reg = <0x01c20054 0x4>; |
109 | clocks = <&cpu>; | 114 | clocks = <&cpu>; |
115 | clock-output-names = "axi"; | ||
110 | }; | 116 | }; |
111 | 117 | ||
112 | axi_gates: axi_gates@01c2005c { | 118 | axi_gates: clk@01c2005c { |
113 | #clock-cells = <1>; | 119 | #clock-cells = <1>; |
114 | compatible = "allwinner,sun4i-axi-gates-clk"; | 120 | compatible = "allwinner,sun4i-axi-gates-clk"; |
115 | reg = <0x01c2005c 0x4>; | 121 | reg = <0x01c2005c 0x4>; |
@@ -122,9 +128,10 @@ | |||
122 | compatible = "allwinner,sun4i-ahb-clk"; | 128 | compatible = "allwinner,sun4i-ahb-clk"; |
123 | reg = <0x01c20054 0x4>; | 129 | reg = <0x01c20054 0x4>; |
124 | clocks = <&axi>; | 130 | clocks = <&axi>; |
131 | clock-output-names = "ahb"; | ||
125 | }; | 132 | }; |
126 | 133 | ||
127 | ahb_gates: ahb_gates@01c20060 { | 134 | ahb_gates: clk@01c20060 { |
128 | #clock-cells = <1>; | 135 | #clock-cells = <1>; |
129 | compatible = "allwinner,sun5i-a10s-ahb-gates-clk"; | 136 | compatible = "allwinner,sun5i-a10s-ahb-gates-clk"; |
130 | reg = <0x01c20060 0x8>; | 137 | reg = <0x01c20060 0x8>; |
@@ -143,9 +150,10 @@ | |||
143 | compatible = "allwinner,sun4i-apb0-clk"; | 150 | compatible = "allwinner,sun4i-apb0-clk"; |
144 | reg = <0x01c20054 0x4>; | 151 | reg = <0x01c20054 0x4>; |
145 | clocks = <&ahb>; | 152 | clocks = <&ahb>; |
153 | clock-output-names = "apb0"; | ||
146 | }; | 154 | }; |
147 | 155 | ||
148 | apb0_gates: apb0_gates@01c20068 { | 156 | apb0_gates: clk@01c20068 { |
149 | #clock-cells = <1>; | 157 | #clock-cells = <1>; |
150 | compatible = "allwinner,sun5i-a10s-apb0-gates-clk"; | 158 | compatible = "allwinner,sun5i-a10s-apb0-gates-clk"; |
151 | reg = <0x01c20068 0x4>; | 159 | reg = <0x01c20068 0x4>; |
@@ -159,6 +167,7 @@ | |||
159 | compatible = "allwinner,sun4i-apb1-mux-clk"; | 167 | compatible = "allwinner,sun4i-apb1-mux-clk"; |
160 | reg = <0x01c20058 0x4>; | 168 | reg = <0x01c20058 0x4>; |
161 | clocks = <&osc24M>, <&pll6 1>, <&osc32k>; | 169 | clocks = <&osc24M>, <&pll6 1>, <&osc32k>; |
170 | clock-output-names = "apb1_mux"; | ||
162 | }; | 171 | }; |
163 | 172 | ||
164 | apb1: apb1@01c20058 { | 173 | apb1: apb1@01c20058 { |
@@ -166,9 +175,10 @@ | |||
166 | compatible = "allwinner,sun4i-apb1-clk"; | 175 | compatible = "allwinner,sun4i-apb1-clk"; |
167 | reg = <0x01c20058 0x4>; | 176 | reg = <0x01c20058 0x4>; |
168 | clocks = <&apb1_mux>; | 177 | clocks = <&apb1_mux>; |
178 | clock-output-names = "apb1"; | ||
169 | }; | 179 | }; |
170 | 180 | ||
171 | apb1_gates: apb1_gates@01c2006c { | 181 | apb1_gates: clk@01c2006c { |
172 | #clock-cells = <1>; | 182 | #clock-cells = <1>; |
173 | compatible = "allwinner,sun5i-a10s-apb1-gates-clk"; | 183 | compatible = "allwinner,sun5i-a10s-apb1-gates-clk"; |
174 | reg = <0x01c2006c 0x4>; | 184 | reg = <0x01c2006c 0x4>; |