4cfe0419a5353d3f592c169448edfde1198fc539
[cascardo/linux.git] / arch / arm / boot / dts / am335x-igep0033.dtsi
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"
14 #include <dt-bindings/interrupt-controller/irq.h>
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         };
48
49         vmmc: fixedregulator@0 {
50                 compatible = "regulator-fixed";
51                 regulator-name = "vmmc";
52                 regulator-min-microvolt = <3300000>;
53                 regulator-max-microvolt = <3300000>;
54         };
55 };
56
57 &am33xx_pinmux {
58         i2c0_pins: pinmux_i2c0_pins {
59                 pinctrl-single,pins = <
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 */
62                 >;
63         };
64
65         nandflash_pins: pinmux_nandflash_pins {
66                 pinctrl-single,pins = <
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 */
82                 >;
83         };
84
85         uart0_pins: pinmux_uart0_pins {
86                 pinctrl-single,pins = <
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 */
89                 >;
90         };
91
92         leds_pins: pinmux_leds_pins {
93                 pinctrl-single,pins = <
94                         AM33XX_IOPAD(0x85c, PIN_OUTPUT_PULLDOWN | MUX_MODE7)    /* gpmc_a7.gpio1_23 */
95                 >;
96         };
97 };
98
99 &mac {
100         status = "okay";
101 };
102
103 &davinci_mdio {
104         status = "okay";
105 };
106
107 &cpsw_emac0 {
108         phy_id = <&davinci_mdio>, <0>;
109         phy-mode = "rmii";
110 };
111
112 &cpsw_emac1 {
113         phy_id = <&davinci_mdio>, <1>;
114         phy-mode = "rmii";
115 };
116
117 &phy_sel {
118         rmii-clock-ext;
119 };
120
121 &elm {
122         status = "okay";
123 };
124
125 &gpmc {
126         status = "okay";
127         pinctrl-names = "default";
128         pinctrl-0 = <&nandflash_pins>;
129
130         ranges = <0 0 0x08000000 0x1000000>;    /* CS0: 16MB for NAND */
131
132         nand@0,0 {
133                 compatible = "ti,omap2-nand";
134                 reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
135                 interrupt-parent = <&gpmc>;
136                 interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
137                              <1 IRQ_TYPE_NONE>; /* termcount */
138                 nand-bus-width = <8>;
139                 ti,nand-ecc-opt = "bch8";
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>;
155                 gpmc,wait-on-read = "true";
156                 gpmc,wait-on-write = "true";
157                 gpmc,bus-turnaround-ns = <0>;
158                 gpmc,cycle2cycle-delay-ns = <0>;
159                 gpmc,clk-activation-ns = <0>;
160                 gpmc,wait-monitoring-ns = <0>;
161                 gpmc,wr-access-ns = <40>;
162                 gpmc,wr-data-mux-bus-ns = <0>;
163
164                 #address-cells = <1>;
165                 #size-cells = <1>;
166                 elm_id = <&elm>;
167
168                 /* MTD partition table */
169                 partition@0 {
170                         label = "SPL";
171                         reg = <0x00000000 0x000080000>;
172                 };
173
174                 partition@1 {
175                         label = "U-boot";
176                         reg = <0x00080000 0x001e0000>;
177                 };
178
179                 partition@2 {
180                         label = "U-Boot Env";
181                         reg = <0x00260000 0x00020000>;
182                 };
183
184                 partition@3 {
185                         label = "Kernel";
186                         reg = <0x00280000 0x00500000>;
187                 };
188
189                 partition@4 {
190                         label = "File System";
191                         reg = <0x00780000 0x007880000>;
192                 };
193         };
194 };
195
196 &i2c0 {
197         status = "okay";
198         pinctrl-names = "default";
199         pinctrl-0 = <&i2c0_pins>;
200
201         clock-frequency = <400000>;
202
203         tps: tps@2d {
204                 reg = <0x2d>;
205         };
206 };
207
208 &mmc1 {
209         status = "okay";
210         vmmc-supply = <&vmmc>;
211         bus-width = <4>;
212 };
213
214 &uart0 {
215         status = "okay";
216         pinctrl-names = "default";
217         pinctrl-0 = <&uart0_pins>;
218 };
219
220 &usb {
221         status = "okay";
222 };
223
224 &usb_ctrl_mod {
225         status = "okay";
226 };
227
228 &usb0_phy {
229         status = "okay";
230 };
231
232 &usb1_phy {
233         status = "okay";
234 };
235
236 &usb0 {
237         status = "okay";
238 };
239
240 &usb1 {
241         status = "okay";
242         dr_mode = "host";
243 };
244
245 &cppi41dma  {
246         status = "okay";
247 };
248
249 #include "tps65910.dtsi"
250
251 &tps {
252         vcc1-supply = <&vbat>;
253         vcc2-supply = <&vbat>;
254         vcc3-supply = <&vbat>;
255         vcc4-supply = <&vbat>;
256         vcc5-supply = <&vbat>;
257         vcc6-supply = <&vbat>;
258         vcc7-supply = <&vbat>;
259         vccio-supply = <&vbat>;
260
261         regulators {
262                 vrtc_reg: regulator@0 {
263                         regulator-always-on;
264                 };
265
266                 vio_reg: regulator@1 {
267                         regulator-always-on;
268                 };
269
270                 vdd1_reg: regulator@2 {
271                         /* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */
272                         regulator-name = "vdd_mpu";
273                         regulator-min-microvolt = <912500>;
274                         regulator-max-microvolt = <1312500>;
275                         regulator-boot-on;
276                         regulator-always-on;
277                 };
278
279                 vdd2_reg: regulator@3 {
280                         /* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */
281                         regulator-name = "vdd_core";
282                         regulator-min-microvolt = <912500>;
283                         regulator-max-microvolt = <1150000>;
284                         regulator-boot-on;
285                         regulator-always-on;
286                 };
287
288                 vdd3_reg: regulator@4 {
289                         regulator-always-on;
290                 };
291
292                 vdig1_reg: regulator@5 {
293                         regulator-always-on;
294                 };
295
296                 vdig2_reg: regulator@6 {
297                         regulator-always-on;
298                 };
299
300                 vpll_reg: regulator@7 {
301                         regulator-always-on;
302                 };
303
304                 vdac_reg: regulator@8 {
305                         regulator-always-on;
306                 };
307
308                 vaux1_reg: regulator@9 {
309                         regulator-always-on;
310                 };
311
312                 vaux2_reg: regulator@10 {
313                         regulator-always-on;
314                 };
315
316                 vaux33_reg: regulator@11 {
317                         regulator-always-on;
318                 };
319
320                 vmmc_reg: regulator@12 {
321                         regulator-always-on;
322                 };
323         };
324 };
325