diff options
author | Emilio López <emilio@elopez.com.ar> | 2013-02-25 09:44:27 -0500 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@free-electrons.com> | 2013-03-23 04:39:00 -0400 |
commit | 2c3b4d7a354015403d61e8d690044700db963598 (patch) | |
tree | ed132850c665b469a58d162352049fd1d7779cb5 | |
parent | ce6a73b6cece873c1939ec1bba67c03294807c32 (diff) |
arm: sunxi: Add clock definitions for the new clock driver
This introduces proper clock definitions on sunxi.dtsi, to be used
with the new clock driver for sunxi.
Signed-off-by: Emilio López <emilio@elopez.com.ar>
Acked-by: Mike Turquette <mturquette@linaro.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
-rw-r--r-- | arch/arm/boot/dts/sunxi.dtsi | 83 |
1 files changed, 80 insertions, 3 deletions
diff --git a/arch/arm/boot/dts/sunxi.dtsi b/arch/arm/boot/dts/sunxi.dtsi index 8b36abea9f2e..acf7777cf61f 100644 --- a/arch/arm/boot/dts/sunxi.dtsi +++ b/arch/arm/boot/dts/sunxi.dtsi | |||
@@ -24,13 +24,90 @@ | |||
24 | 24 | ||
25 | clocks { | 25 | clocks { |
26 | #address-cells = <1>; | 26 | #address-cells = <1>; |
27 | #size-cells = <0>; | 27 | #size-cells = <1>; |
28 | ranges; | ||
28 | 29 | ||
29 | osc: oscillator { | 30 | /* |
31 | * This is a dummy clock, to be used as placeholder on | ||
32 | * other mux clocks when a specific parent clock is not | ||
33 | * yet implemented. It should be dropped when the driver | ||
34 | * is complete. | ||
35 | */ | ||
36 | dummy: dummy { | ||
37 | #clock-cells = <0>; | ||
38 | compatible = "fixed-clock"; | ||
39 | clock-frequency = <0>; | ||
40 | }; | ||
41 | |||
42 | osc24M_fixed: osc24M_fixed { | ||
30 | #clock-cells = <0>; | 43 | #clock-cells = <0>; |
31 | compatible = "fixed-clock"; | 44 | compatible = "fixed-clock"; |
32 | clock-frequency = <24000000>; | 45 | clock-frequency = <24000000>; |
33 | }; | 46 | }; |
47 | |||
48 | osc24M: osc24M@01c20050 { | ||
49 | #clock-cells = <0>; | ||
50 | compatible = "allwinner,sunxi-osc-clk"; | ||
51 | reg = <0x01c20050 0x4>; | ||
52 | clocks = <&osc24M_fixed>; | ||
53 | }; | ||
54 | |||
55 | osc32k: osc32k { | ||
56 | #clock-cells = <0>; | ||
57 | compatible = "fixed-clock"; | ||
58 | clock-frequency = <32768>; | ||
59 | }; | ||
60 | |||
61 | pll1: pll1@01c20000 { | ||
62 | #clock-cells = <0>; | ||
63 | compatible = "allwinner,sunxi-pll1-clk"; | ||
64 | reg = <0x01c20000 0x4>; | ||
65 | clocks = <&osc24M>; | ||
66 | }; | ||
67 | |||
68 | /* dummy is 200M */ | ||
69 | cpu: cpu@01c20054 { | ||
70 | #clock-cells = <0>; | ||
71 | compatible = "allwinner,sunxi-cpu-clk"; | ||
72 | reg = <0x01c20054 0x4>; | ||
73 | clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>; | ||
74 | }; | ||
75 | |||
76 | axi: axi@01c20054 { | ||
77 | #clock-cells = <0>; | ||
78 | compatible = "allwinner,sunxi-axi-clk"; | ||
79 | reg = <0x01c20054 0x4>; | ||
80 | clocks = <&cpu>; | ||
81 | }; | ||
82 | |||
83 | ahb: ahb@01c20054 { | ||
84 | #clock-cells = <0>; | ||
85 | compatible = "allwinner,sunxi-ahb-clk"; | ||
86 | reg = <0x01c20054 0x4>; | ||
87 | clocks = <&axi>; | ||
88 | }; | ||
89 | |||
90 | apb0: apb0@01c20054 { | ||
91 | #clock-cells = <0>; | ||
92 | compatible = "allwinner,sunxi-apb0-clk"; | ||
93 | reg = <0x01c20054 0x4>; | ||
94 | clocks = <&ahb>; | ||
95 | }; | ||
96 | |||
97 | /* dummy is pll62 */ | ||
98 | apb1_mux: apb1_mux@01c20058 { | ||
99 | #clock-cells = <0>; | ||
100 | compatible = "allwinner,sunxi-apb1-mux-clk"; | ||
101 | reg = <0x01c20058 0x4>; | ||
102 | clocks = <&osc24M>, <&dummy>, <&osc32k>; | ||
103 | }; | ||
104 | |||
105 | apb1: apb1@01c20058 { | ||
106 | #clock-cells = <0>; | ||
107 | compatible = "allwinner,sunxi-apb1-clk"; | ||
108 | reg = <0x01c20058 0x4>; | ||
109 | clocks = <&apb1_mux>; | ||
110 | }; | ||
34 | }; | 111 | }; |
35 | 112 | ||
36 | soc { | 113 | soc { |
@@ -44,7 +121,7 @@ | |||
44 | compatible = "allwinner,sunxi-timer"; | 121 | compatible = "allwinner,sunxi-timer"; |
45 | reg = <0x01c20c00 0x90>; | 122 | reg = <0x01c20c00 0x90>; |
46 | interrupts = <22>; | 123 | interrupts = <22>; |
47 | clocks = <&osc>; | 124 | clocks = <&osc24M>; |
48 | }; | 125 | }; |
49 | 126 | ||
50 | wdt: watchdog@01c20c90 { | 127 | wdt: watchdog@01c20c90 { |