diff options
author | Chen-Yu Tsai <wens@csie.org> | 2014-07-09 03:54:39 -0400 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@free-electrons.com> | 2014-07-15 02:54:16 -0400 |
commit | df02dd828c4ef2311c7c271f2c95384fc555961b (patch) | |
tree | a7f4110d273bb64662b96a524cacfdf27f9a0dd8 /arch/arm/boot/dts/sun8i-a23.dtsi | |
parent | c571111ac1d6e99a4ad49ae105325704e3381ccc (diff) |
ARM: sun8i: Add PRCM clock and reset controller nodes to the DTSI
With sun8i PRCM support available, we can add the PRCM clock and
reset controller nodes to the DTSI. Also update R_UART's clock
phandle and add it's reset control phandle.
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/sun8i-a23.dtsi')
-rw-r--r-- | arch/arm/boot/dts/sun8i-a23.dtsi | 47 |
1 files changed, 46 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/sun8i-a23.dtsi b/arch/arm/boot/dts/sun8i-a23.dtsi index 886776d09c06..54ac0787216a 100644 --- a/arch/arm/boot/dts/sun8i-a23.dtsi +++ b/arch/arm/boot/dts/sun8i-a23.dtsi | |||
@@ -285,13 +285,58 @@ | |||
285 | interrupts = <1 9 0xf04>; | 285 | interrupts = <1 9 0xf04>; |
286 | }; | 286 | }; |
287 | 287 | ||
288 | prcm@01f01400 { | ||
289 | compatible = "allwinner,sun8i-a23-prcm"; | ||
290 | reg = <0x01f01400 0x200>; | ||
291 | |||
292 | ar100: ar100_clk { | ||
293 | compatible = "fixed-factor-clock"; | ||
294 | #clock-cells = <0>; | ||
295 | clock-div = <1>; | ||
296 | clock-mult = <1>; | ||
297 | clocks = <&osc24M>; | ||
298 | clock-output-names = "ar100"; | ||
299 | }; | ||
300 | |||
301 | ahb0: ahb0_clk { | ||
302 | compatible = "fixed-factor-clock"; | ||
303 | #clock-cells = <0>; | ||
304 | clock-div = <1>; | ||
305 | clock-mult = <1>; | ||
306 | clocks = <&ar100>; | ||
307 | clock-output-names = "ahb0"; | ||
308 | }; | ||
309 | |||
310 | apb0: apb0_clk { | ||
311 | compatible = "allwinner,sun8i-a23-apb0-clk"; | ||
312 | #clock-cells = <0>; | ||
313 | clocks = <&ahb0>; | ||
314 | clock-output-names = "apb0"; | ||
315 | }; | ||
316 | |||
317 | apb0_gates: apb0_gates_clk { | ||
318 | compatible = "allwinner,sun8i-a23-apb0-gates-clk"; | ||
319 | #clock-cells = <1>; | ||
320 | clocks = <&apb0>; | ||
321 | clock-output-names = "apb0_pio", "apb0_timer", | ||
322 | "apb0_rsb", "apb0_uart", | ||
323 | "apb0_i2c"; | ||
324 | }; | ||
325 | |||
326 | apb0_rst: apb0_rst { | ||
327 | compatible = "allwinner,sun6i-a31-clock-reset"; | ||
328 | #reset-cells = <1>; | ||
329 | }; | ||
330 | }; | ||
331 | |||
288 | r_uart: serial@01f02800 { | 332 | r_uart: serial@01f02800 { |
289 | compatible = "snps,dw-apb-uart"; | 333 | compatible = "snps,dw-apb-uart"; |
290 | reg = <0x01f02800 0x400>; | 334 | reg = <0x01f02800 0x400>; |
291 | interrupts = <0 38 4>; | 335 | interrupts = <0 38 4>; |
292 | reg-shift = <2>; | 336 | reg-shift = <2>; |
293 | reg-io-width = <4>; | 337 | reg-io-width = <4>; |
294 | clocks = <&osc24M>; | 338 | clocks = <&apb0_gates 4>; |
339 | resets = <&apb0_rst 4>; | ||
295 | status = "disabled"; | 340 | status = "disabled"; |
296 | }; | 341 | }; |
297 | }; | 342 | }; |