Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc
[linux-2.6-block.git] / arch / arm / boot / dts / am335x-igep0033.dtsi
CommitLineData
e415245c
EBS
1/*
2 * am335x-igep0033.dtsi - Device Tree file for IGEP COM AQUILA AM335x
3 *
4 * Copyright (C) 2013 ISEE 2007 SL - http://www.isee.biz
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 */
10
11/dts-v1/;
12
13#include "am33xx.dtsi"
03752148 14#include <dt-bindings/interrupt-controller/irq.h>
e415245c
EBS
15
16/ {
17 cpus {
18 cpu@0 {
19 cpu0-supply = <&vdd1_reg>;
20 };
21 };
22
23 memory {
24 device_type = "memory";
25 reg = <0x80000000 0x10000000>; /* 256 MB */
26 };
27
28 leds {
29 pinctrl-names = "default";
30 pinctrl-0 = <&leds_pins>;
31
32 compatible = "gpio-leds";
33
34 led@0 {
35 label = "com:green:user";
36 gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>;
37 default-state = "on";
38 };
39 };
40
41 vbat: fixedregulator@0 {
42 compatible = "regulator-fixed";
43 regulator-name = "vbat";
44 regulator-min-microvolt = <5000000>;
45 regulator-max-microvolt = <5000000>;
46 regulator-boot-on;
47 };
0ae6f9ee
EBS
48
49 vmmc: fixedregulator@0 {
50 compatible = "regulator-fixed";
51 regulator-name = "vmmc";
52 regulator-min-microvolt = <3300000>;
53 regulator-max-microvolt = <3300000>;
54 };
e415245c
EBS
55};
56
57&am33xx_pinmux {
58 i2c0_pins: pinmux_i2c0_pins {
59 pinctrl-single,pins = <
8a3ecb21
JMC
60 AM33XX_IOPAD(0x988, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_sda.i2c0_sda */
61 AM33XX_IOPAD(0x98c, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_scl.i2c0_scl */
e415245c
EBS
62 >;
63 };
64
65 nandflash_pins: pinmux_nandflash_pins {
66 pinctrl-single,pins = <
8a3ecb21
JMC
67 AM33XX_IOPAD(0x800, PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad0.gpmc_ad0 */
68 AM33XX_IOPAD(0x804, PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad1.gpmc_ad1 */
69 AM33XX_IOPAD(0x808, PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad2.gpmc_ad2 */
70 AM33XX_IOPAD(0x80c, PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad3.gpmc_ad3 */
71 AM33XX_IOPAD(0x810, PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad4.gpmc_ad4 */
72 AM33XX_IOPAD(0x814, PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad5.gpmc_ad5 */
73 AM33XX_IOPAD(0x818, PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad6.gpmc_ad6 */
74 AM33XX_IOPAD(0x81c, PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad7.gpmc_ad7 */
75 AM33XX_IOPAD(0x870, PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_wait0.gpmc_wait0 */
76 AM33XX_IOPAD(0x874, PIN_INPUT_PULLUP | MUX_MODE7) /* gpmc_wpn.gpio0_30 */
77 AM33XX_IOPAD(0x87c, PIN_OUTPUT | MUX_MODE0) /* gpmc_csn0.gpmc_csn0 */
78 AM33XX_IOPAD(0x890, PIN_OUTPUT | MUX_MODE0) /* gpmc_advn_ale.gpmc_advn_ale */
79 AM33XX_IOPAD(0x894, PIN_OUTPUT | MUX_MODE0) /* gpmc_oen_ren.gpmc_oen_ren */
80 AM33XX_IOPAD(0x898, PIN_OUTPUT | MUX_MODE0) /* gpmc_wen.gpmc_wen */
81 AM33XX_IOPAD(0x89c, PIN_OUTPUT | MUX_MODE0) /* gpmc_be0n_cle.gpmc_be0n_cle */
e415245c
EBS
82 >;
83 };
84
85 uart0_pins: pinmux_uart0_pins {
86 pinctrl-single,pins = <
8a3ecb21
JMC
87 AM33XX_IOPAD(0x970, PIN_INPUT_PULLUP | MUX_MODE0) /* uart0_rxd.uart0_rxd */
88 AM33XX_IOPAD(0x974, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart0_txd.uart0_txd */
e415245c
EBS
89 >;
90 };
91
92 leds_pins: pinmux_leds_pins {
93 pinctrl-single,pins = <
8a3ecb21 94 AM33XX_IOPAD(0x85c, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a7.gpio1_23 */
e415245c
EBS
95 >;
96 };
97};
98
16c75a13
JH
99&mac {
100 status = "okay";
101};
102
103&davinci_mdio {
104 status = "okay";
105};
106
e415245c
EBS
107&cpsw_emac0 {
108 phy_id = <&davinci_mdio>, <0>;
24faebd6 109 phy-mode = "rmii";
e415245c
EBS
110};
111
112&cpsw_emac1 {
113 phy_id = <&davinci_mdio>, <1>;
24faebd6
EBS
114 phy-mode = "rmii";
115};
116
117&phy_sel {
118 rmii-clock-ext;
e415245c
EBS
119};
120
121&elm {
122 status = "okay";
123};
124
125&gpmc {
126 status = "okay";
127 pinctrl-names = "default";
128 pinctrl-0 = <&nandflash_pins>;
129
e2c5eb78 130 ranges = <0 0 0x08000000 0x1000000>; /* CS0: 16MB for NAND */
e415245c
EBS
131
132 nand@0,0 {
03752148 133 compatible = "ti,omap2-nand";
e2c5eb78 134 reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
03752148
RQ
135 interrupt-parent = <&gpmc>;
136 interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
137 <1 IRQ_TYPE_NONE>; /* termcount */
e415245c
EBS
138 nand-bus-width = <8>;
139 ti,nand-ecc-opt = "bch8";
e415245c
EBS
140 gpmc,device-width = <1>;
141 gpmc,sync-clk-ps = <0>;
142 gpmc,cs-on-ns = <0>;
143 gpmc,cs-rd-off-ns = <44>;
144 gpmc,cs-wr-off-ns = <44>;
145 gpmc,adv-on-ns = <6>;
146 gpmc,adv-rd-off-ns = <34>;
147 gpmc,adv-wr-off-ns = <44>;
148 gpmc,we-on-ns = <0>;
149 gpmc,we-off-ns = <40>;
150 gpmc,oe-on-ns = <0>;
151 gpmc,oe-off-ns = <54>;
152 gpmc,access-ns = <64>;
153 gpmc,rd-cycle-ns = <82>;
154 gpmc,wr-cycle-ns = <82>;
e415245c
EBS
155 gpmc,bus-turnaround-ns = <0>;
156 gpmc,cycle2cycle-delay-ns = <0>;
157 gpmc,clk-activation-ns = <0>;
e415245c
EBS
158 gpmc,wr-access-ns = <40>;
159 gpmc,wr-data-mux-bus-ns = <0>;
160
161 #address-cells = <1>;
162 #size-cells = <1>;
163 elm_id = <&elm>;
164
165 /* MTD partition table */
166 partition@0 {
167 label = "SPL";
168 reg = <0x00000000 0x000080000>;
169 };
170
171 partition@1 {
172 label = "U-boot";
173 reg = <0x00080000 0x001e0000>;
174 };
175
176 partition@2 {
177 label = "U-Boot Env";
178 reg = <0x00260000 0x00020000>;
179 };
180
181 partition@3 {
182 label = "Kernel";
183 reg = <0x00280000 0x00500000>;
184 };
185
186 partition@4 {
187 label = "File System";
188 reg = <0x00780000 0x007880000>;
189 };
190 };
191};
192
193&i2c0 {
194 status = "okay";
195 pinctrl-names = "default";
196 pinctrl-0 = <&i2c0_pins>;
197
198 clock-frequency = <400000>;
199
200 tps: tps@2d {
201 reg = <0x2d>;
202 };
203};
204
0ae6f9ee
EBS
205&mmc1 {
206 status = "okay";
207 vmmc-supply = <&vmmc>;
208 bus-width = <4>;
209};
210
e415245c
EBS
211&uart0 {
212 status = "okay";
213 pinctrl-names = "default";
214 pinctrl-0 = <&uart0_pins>;
215};
216
caa73370
EBS
217&usb {
218 status = "okay";
2cd1de1c 219};
caa73370 220
2cd1de1c
GM
221&usb_ctrl_mod {
222 status = "okay";
223};
caa73370 224
2cd1de1c
GM
225&usb0_phy {
226 status = "okay";
227};
caa73370 228
2cd1de1c
GM
229&usb1_phy {
230 status = "okay";
231};
caa73370 232
2cd1de1c
GM
233&usb0 {
234 status = "okay";
235};
caa73370 236
2cd1de1c
GM
237&usb1 {
238 status = "okay";
239 dr_mode = "host";
240};
caa73370 241
2cd1de1c
GM
242&cppi41dma {
243 status = "okay";
caa73370
EBS
244};
245
e415245c
EBS
246#include "tps65910.dtsi"
247
248&tps {
249 vcc1-supply = <&vbat>;
250 vcc2-supply = <&vbat>;
251 vcc3-supply = <&vbat>;
252 vcc4-supply = <&vbat>;
253 vcc5-supply = <&vbat>;
254 vcc6-supply = <&vbat>;
255 vcc7-supply = <&vbat>;
256 vccio-supply = <&vbat>;
257
258 regulators {
259 vrtc_reg: regulator@0 {
260 regulator-always-on;
261 };
262
263 vio_reg: regulator@1 {
264 regulator-always-on;
265 };
266
267 vdd1_reg: regulator@2 {
268 /* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */
269 regulator-name = "vdd_mpu";
270 regulator-min-microvolt = <912500>;
271 regulator-max-microvolt = <1312500>;
272 regulator-boot-on;
273 regulator-always-on;
274 };
275
276 vdd2_reg: regulator@3 {
277 /* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */
278 regulator-name = "vdd_core";
279 regulator-min-microvolt = <912500>;
280 regulator-max-microvolt = <1150000>;
281 regulator-boot-on;
282 regulator-always-on;
283 };
284
285 vdd3_reg: regulator@4 {
286 regulator-always-on;
287 };
288
289 vdig1_reg: regulator@5 {
290 regulator-always-on;
291 };
292
293 vdig2_reg: regulator@6 {
294 regulator-always-on;
295 };
296
297 vpll_reg: regulator@7 {
298 regulator-always-on;
299 };
300
301 vdac_reg: regulator@8 {
302 regulator-always-on;
303 };
304
305 vaux1_reg: regulator@9 {
306 regulator-always-on;
307 };
308
309 vaux2_reg: regulator@10 {
310 regulator-always-on;
311 };
312
313 vaux33_reg: regulator@11 {
314 regulator-always-on;
315 };
316
317 vmmc_reg: regulator@12 {
318 regulator-always-on;
319 };
320 };
321};
322