blob: 59aaad98f5441732e643519c932747838f5c6128 [file] [log] [blame]
Tony Priskdef4d6c2013-01-19 19:44:28 +13001/*
2 * wm8850.dtsi - Device tree file for Wondermedia WM8850 SoC
3 *
4 * Copyright (C) 2012 Tony Prisk <linux@prisktech.co.nz>
5 *
6 * Licensed under GPLv2 or later
7 */
8
9/include/ "skeleton.dtsi"
10
11/ {
12 compatible = "wm,wm8850";
13
Tony Prisk7ec13d42013-04-23 10:33:44 +120014 cpus {
15 #address-cells = <1>;
16 #size-cells = <0>;
17
18 cpu@0 {
19 device_type = "cpu";
20 compatible = "arm,cortex-a9";
21 reg = <0x0>;
22 };
23 };
24
Tony Priskdef4d6c2013-01-19 19:44:28 +130025 aliases {
26 serial0 = &uart0;
27 serial1 = &uart1;
28 serial2 = &uart2;
29 serial3 = &uart3;
30 };
31
32 soc {
33 #address-cells = <1>;
34 #size-cells = <1>;
35 compatible = "simple-bus";
36 ranges;
37 interrupt-parent = <&intc0>;
38
39 intc0: interrupt-controller@d8140000 {
40 compatible = "via,vt8500-intc";
41 interrupt-controller;
42 reg = <0xd8140000 0x10000>;
43 #interrupt-cells = <1>;
44 };
45
46 /* Secondary IC cascaded to intc0 */
47 intc1: interrupt-controller@d8150000 {
48 compatible = "via,vt8500-intc";
49 interrupt-controller;
50 #interrupt-cells = <1>;
51 reg = <0xD8150000 0x10000>;
52 interrupts = <56 57 58 59 60 61 62 63>;
53 };
54
Tony Prisk649a59c2013-02-20 09:52:23 +130055 pinctrl: pinctrl@d8110000 {
56 compatible = "wm,wm8850-pinctrl";
Tony Priskdef4d6c2013-01-19 19:44:28 +130057 reg = <0xd8110000 0x10000>;
Tony Prisk649a59c2013-02-20 09:52:23 +130058 interrupt-controller;
59 #interrupt-cells = <2>;
60 gpio-controller;
61 #gpio-cells = <2>;
Tony Priskdef4d6c2013-01-19 19:44:28 +130062 };
63
64 pmc@d8130000 {
65 compatible = "via,vt8500-pmc";
66 reg = <0xd8130000 0x1000>;
67
68 clocks {
69 #address-cells = <1>;
70 #size-cells = <0>;
71
72 ref25: ref25M {
73 #clock-cells = <0>;
74 compatible = "fixed-clock";
75 clock-frequency = <25000000>;
76 };
77
78 ref24: ref24M {
79 #clock-cells = <0>;
80 compatible = "fixed-clock";
81 clock-frequency = <24000000>;
82 };
83
84 plla: plla {
85 #clock-cells = <0>;
Tony Prisk7d4c6f32013-05-09 07:35:13 +120086 compatible = "wm,wm8850-pll-clock";
Tony Priskdef4d6c2013-01-19 19:44:28 +130087 clocks = <&ref25>;
88 reg = <0x200>;
89 };
90
91 pllb: pllb {
92 #clock-cells = <0>;
Tony Prisk7d4c6f32013-05-09 07:35:13 +120093 compatible = "wm,wm8850-pll-clock";
Tony Priskdef4d6c2013-01-19 19:44:28 +130094 clocks = <&ref25>;
95 reg = <0x204>;
96 };
97
Tony Prisk5c2b0a82013-05-10 17:35:11 +120098 pllc: pllc {
99 #clock-cells = <0>;
100 compatible = "wm,wm8850-pll-clock";
101 clocks = <&ref25>;
102 reg = <0x208>;
103 };
104
105 plld: plld {
106 #clock-cells = <0>;
107 compatible = "wm,wm8850-pll-clock";
108 clocks = <&ref25>;
109 reg = <0x20c>;
110 };
111
112 plle: plle {
113 #clock-cells = <0>;
114 compatible = "wm,wm8850-pll-clock";
115 clocks = <&ref25>;
116 reg = <0x210>;
117 };
118
119 pllf: pllf {
120 #clock-cells = <0>;
121 compatible = "wm,wm8850-pll-clock";
122 clocks = <&ref25>;
123 reg = <0x214>;
124 };
125
126 pllg: pllg {
127 #clock-cells = <0>;
128 compatible = "wm,wm8850-pll-clock";
129 clocks = <&ref25>;
130 reg = <0x218>;
131 };
132
Tony Priskdef4d6c2013-01-19 19:44:28 +1300133 clkuart0: uart0 {
134 #clock-cells = <0>;
135 compatible = "via,vt8500-device-clock";
136 clocks = <&ref24>;
137 enable-reg = <0x254>;
138 enable-bit = <24>;
139 };
140
141 clkuart1: uart1 {
142 #clock-cells = <0>;
143 compatible = "via,vt8500-device-clock";
144 clocks = <&ref24>;
145 enable-reg = <0x254>;
146 enable-bit = <25>;
147 };
148
149 clkuart2: uart2 {
150 #clock-cells = <0>;
151 compatible = "via,vt8500-device-clock";
152 clocks = <&ref24>;
153 enable-reg = <0x254>;
154 enable-bit = <26>;
155 };
156
157 clkuart3: uart3 {
158 #clock-cells = <0>;
159 compatible = "via,vt8500-device-clock";
160 clocks = <&ref24>;
161 enable-reg = <0x254>;
162 enable-bit = <27>;
163 };
164
165 clkpwm: pwm {
166 #clock-cells = <0>;
167 compatible = "via,vt8500-device-clock";
168 clocks = <&pllb>;
169 divisor-reg = <0x350>;
170 enable-reg = <0x250>;
171 enable-bit = <17>;
172 };
173
174 clksdhc: sdhc {
175 #clock-cells = <0>;
176 compatible = "via,vt8500-device-clock";
177 clocks = <&pllb>;
178 divisor-reg = <0x330>;
179 divisor-mask = <0x3f>;
180 enable-reg = <0x250>;
181 enable-bit = <0>;
182 };
183 };
184 };
185
Tony Prisk7ab0a482013-04-03 07:20:38 +1300186 fb: fb@d8051700 {
Tony Priskdef4d6c2013-01-19 19:44:28 +1300187 compatible = "wm,wm8505-fb";
188 reg = <0xd8051700 0x200>;
Tony Priskdef4d6c2013-01-19 19:44:28 +1300189 };
190
191 ge_rops@d8050400 {
192 compatible = "wm,prizm-ge-rops";
193 reg = <0xd8050400 0x100>;
194 };
195
196 pwm: pwm@d8220000 {
197 #pwm-cells = <3>;
198 compatible = "via,vt8500-pwm";
199 reg = <0xd8220000 0x100>;
200 clocks = <&clkpwm>;
201 };
202
203 timer@d8130100 {
204 compatible = "via,vt8500-timer";
205 reg = <0xd8130100 0x28>;
206 interrupts = <36>;
207 };
208
209 ehci@d8007900 {
210 compatible = "via,vt8500-ehci";
211 reg = <0xd8007900 0x200>;
212 interrupts = <26>;
213 };
214
215 uhci@d8007b00 {
216 compatible = "platform-uhci";
217 reg = <0xd8007b00 0x200>;
218 interrupts = <26>;
219 };
220
221 uhci@d8008d00 {
222 compatible = "platform-uhci";
223 reg = <0xd8008d00 0x200>;
224 interrupts = <26>;
225 };
226
Tony Prisk55954f82013-04-23 14:23:26 +1200227 uart0: serial@d8200000 {
Tony Priskdef4d6c2013-01-19 19:44:28 +1300228 compatible = "via,vt8500-uart";
229 reg = <0xd8200000 0x1040>;
230 interrupts = <32>;
231 clocks = <&clkuart0>;
Tony Prisk55954f82013-04-23 14:23:26 +1200232 status = "disabled";
Tony Priskdef4d6c2013-01-19 19:44:28 +1300233 };
234
Tony Prisk55954f82013-04-23 14:23:26 +1200235 uart1: serial@d82b0000 {
Tony Priskdef4d6c2013-01-19 19:44:28 +1300236 compatible = "via,vt8500-uart";
237 reg = <0xd82b0000 0x1040>;
238 interrupts = <33>;
239 clocks = <&clkuart1>;
Tony Prisk55954f82013-04-23 14:23:26 +1200240 status = "disabled";
Tony Priskdef4d6c2013-01-19 19:44:28 +1300241 };
242
Tony Prisk55954f82013-04-23 14:23:26 +1200243 uart2: serial@d8210000 {
Tony Priskdef4d6c2013-01-19 19:44:28 +1300244 compatible = "via,vt8500-uart";
245 reg = <0xd8210000 0x1040>;
246 interrupts = <47>;
247 clocks = <&clkuart2>;
Tony Prisk55954f82013-04-23 14:23:26 +1200248 status = "disabled";
Tony Priskdef4d6c2013-01-19 19:44:28 +1300249 };
250
Tony Prisk55954f82013-04-23 14:23:26 +1200251 uart3: serial@d82c0000 {
Tony Priskdef4d6c2013-01-19 19:44:28 +1300252 compatible = "via,vt8500-uart";
253 reg = <0xd82c0000 0x1040>;
254 interrupts = <50>;
255 clocks = <&clkuart3>;
Tony Prisk55954f82013-04-23 14:23:26 +1200256 status = "disabled";
Tony Priskdef4d6c2013-01-19 19:44:28 +1300257 };
258
259 rtc@d8100000 {
260 compatible = "via,vt8500-rtc";
261 reg = <0xd8100000 0x10000>;
262 interrupts = <48>;
263 };
264
265 sdhc@d800a000 {
266 compatible = "wm,wm8505-sdhc";
267 reg = <0xd800a000 0x1000>;
268 interrupts = <20 21>;
269 clocks = <&clksdhc>;
270 bus-width = <4>;
271 sdon-inverted;
272 };
273 };
274};