blob: 1e643dcf63ec499614007c4ab77507b3844dd450 [file] [log] [blame]
Lokesh Vutla2061d742016-03-23 09:04:13 +05301/*
2 * Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
8
9/*
10 * AM335x ICE V2 board
11 * http://www.ti.com/tool/tmdsice3359
12 */
13
14/dts-v1/;
15
16#include "am33xx.dtsi"
17
18/ {
19 model = "TI AM3359 ICE-V2";
20 compatible = "ti,am3359-icev2", "ti,am33xx";
21
Javier Martinez Canillas278cb792016-08-31 12:35:30 +020022 memory@80000000 {
Lokesh Vutla2061d742016-03-23 09:04:13 +053023 device_type = "memory";
24 reg = <0x80000000 0x10000000>; /* 256 MB */
25 };
26
Lokesh Vutlab7639732017-01-18 09:33:23 +053027 chosen {
28 stdout-path = &uart3;
29 };
30
Javier Martinez Canillas4c049a52016-08-01 12:46:58 -040031 vbat: fixedregulator0 {
Lokesh Vutla2061d742016-03-23 09:04:13 +053032 compatible = "regulator-fixed";
33 regulator-name = "vbat";
34 regulator-min-microvolt = <5000000>;
35 regulator-max-microvolt = <5000000>;
36 regulator-boot-on;
37 };
38
Javier Martinez Canillas4c049a52016-08-01 12:46:58 -040039 vtt_fixed: fixedregulator1 {
Lokesh Vutla2061d742016-03-23 09:04:13 +053040 compatible = "regulator-fixed";
41 regulator-name = "vtt";
42 regulator-min-microvolt = <1500000>;
43 regulator-max-microvolt = <1500000>;
44 gpio = <&gpio0 18 GPIO_ACTIVE_HIGH>;
45 regulator-always-on;
46 regulator-boot-on;
47 enable-active-high;
48 };
49
Andrew F. Davis722cb0f2016-10-07 09:44:23 -050050 leds-iio {
51 status = "disabled";
Lokesh Vutla2061d742016-03-23 09:04:13 +053052 compatible = "gpio-leds";
Andrew F. Davis722cb0f2016-10-07 09:44:23 -050053 led-out0 {
Lokesh Vutla2061d742016-03-23 09:04:13 +053054 label = "out0";
55 gpios = <&tpic2810 0 GPIO_ACTIVE_HIGH>;
56 default-state = "off";
57 };
58
Andrew F. Davis722cb0f2016-10-07 09:44:23 -050059 led-out1 {
Lokesh Vutla2061d742016-03-23 09:04:13 +053060 label = "out1";
61 gpios = <&tpic2810 1 GPIO_ACTIVE_HIGH>;
62 default-state = "off";
63 };
64
Andrew F. Davis722cb0f2016-10-07 09:44:23 -050065 led-out2 {
Lokesh Vutla2061d742016-03-23 09:04:13 +053066 label = "out2";
67 gpios = <&tpic2810 2 GPIO_ACTIVE_HIGH>;
68 default-state = "off";
69 };
70
Andrew F. Davis722cb0f2016-10-07 09:44:23 -050071 led-out3 {
Lokesh Vutla2061d742016-03-23 09:04:13 +053072 label = "out3";
73 gpios = <&tpic2810 3 GPIO_ACTIVE_HIGH>;
74 default-state = "off";
75 };
76
Andrew F. Davis722cb0f2016-10-07 09:44:23 -050077 led-out4 {
Lokesh Vutla2061d742016-03-23 09:04:13 +053078 label = "out4";
79 gpios = <&tpic2810 4 GPIO_ACTIVE_HIGH>;
80 default-state = "off";
81 };
82
Andrew F. Davis722cb0f2016-10-07 09:44:23 -050083 led-out5 {
Lokesh Vutla2061d742016-03-23 09:04:13 +053084 label = "out5";
85 gpios = <&tpic2810 5 GPIO_ACTIVE_HIGH>;
86 default-state = "off";
87 };
88
Andrew F. Davis722cb0f2016-10-07 09:44:23 -050089 led-out6 {
Lokesh Vutla2061d742016-03-23 09:04:13 +053090 label = "out6";
91 gpios = <&tpic2810 6 GPIO_ACTIVE_HIGH>;
92 default-state = "off";
93 };
94
Andrew F. Davis722cb0f2016-10-07 09:44:23 -050095 led-out7 {
Lokesh Vutla2061d742016-03-23 09:04:13 +053096 label = "out7";
97 gpios = <&tpic2810 7 GPIO_ACTIVE_HIGH>;
98 default-state = "off";
99 };
100 };
101
102 /* Tricolor status LEDs */
Javier Martinez Canillasc731abd2016-08-01 12:47:03 -0400103 leds1 {
Lokesh Vutla2061d742016-03-23 09:04:13 +0530104 compatible = "gpio-leds";
105 pinctrl-names = "default";
106 pinctrl-0 = <&user_leds>;
107
Javier Martinez Canillasc731abd2016-08-01 12:47:03 -0400108 led0 {
Lokesh Vutla2061d742016-03-23 09:04:13 +0530109 label = "status0:red:cpu0";
110 gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
111 default-state = "off";
112 linux,default-trigger = "cpu0";
113 };
114
Javier Martinez Canillasc731abd2016-08-01 12:47:03 -0400115 led1 {
Lokesh Vutla2061d742016-03-23 09:04:13 +0530116 label = "status0:green:usr";
117 gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
118 default-state = "off";
119 };
120
Javier Martinez Canillasc731abd2016-08-01 12:47:03 -0400121 led2 {
Lokesh Vutla2061d742016-03-23 09:04:13 +0530122 label = "status0:yellow:usr";
123 gpios = <&gpio3 9 GPIO_ACTIVE_HIGH>;
124 default-state = "off";
125 };
126
Javier Martinez Canillasc731abd2016-08-01 12:47:03 -0400127 led3 {
Lokesh Vutla2061d742016-03-23 09:04:13 +0530128 label = "status1:red:mmc0";
129 gpios = <&gpio1 30 GPIO_ACTIVE_HIGH>;
130 default-state = "off";
131 linux,default-trigger = "mmc0";
132 };
133
Javier Martinez Canillasc731abd2016-08-01 12:47:03 -0400134 led4 {
Lokesh Vutla2061d742016-03-23 09:04:13 +0530135 label = "status1:green:usr";
136 gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
137 default-state = "off";
138 };
139
Javier Martinez Canillasc731abd2016-08-01 12:47:03 -0400140 led5 {
Lokesh Vutla2061d742016-03-23 09:04:13 +0530141 label = "status1:yellow:usr";
142 gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>;
143 default-state = "off";
144 };
145 };
Vignesh R6c6b3c32016-08-24 13:28:59 +0530146 gpio-decoder {
147 compatible = "gpio-decoder";
148 gpios = <&pca9536 3 GPIO_ACTIVE_HIGH>,
149 <&pca9536 2 GPIO_ACTIVE_HIGH>,
150 <&pca9536 1 GPIO_ACTIVE_HIGH>,
151 <&pca9536 0 GPIO_ACTIVE_HIGH>;
152 linux,axis = <0>; /* ABS_X */
153 decoder-max-value = <9>;
154 };
Lokesh Vutla2061d742016-03-23 09:04:13 +0530155};
156
157&am33xx_pinmux {
158 user_leds: user_leds {
159 pinctrl-single,pins = <
160 AM33XX_IOPAD(0x91c, PIN_OUTPUT | MUX_MODE7) /* (J18) gmii1_txd3.gpio0[16] */
161 AM33XX_IOPAD(0x920, PIN_OUTPUT | MUX_MODE7) /* (K15) gmii1_txd2.gpio0[17] */
162 AM33XX_IOPAD(0x9b0, PIN_OUTPUT | MUX_MODE7) /* (A15) xdma_event_intr0.gpio0[19] */
163 AM33XX_IOPAD(0x9b4, PIN_OUTPUT | MUX_MODE7) /* (D14) xdma_event_intr1.gpio0[20] */
164 AM33XX_IOPAD(0x880, PIN_OUTPUT | MUX_MODE7) /* (U9) gpmc_csn1.gpio1[30] */
165 AM33XX_IOPAD(0x92c, PIN_OUTPUT | MUX_MODE7) /* (K18) gmii1_txclk.gpio3[9] */
166 >;
167 };
168
169 mmc0_pins_default: mmc0_pins_default {
170 pinctrl-single,pins = <
171 AM33XX_IOPAD(0x8f0, PIN_INPUT_PULLUP | MUX_MODE0) /* (F17) mmc0_dat3.mmc0_dat3 */
172 AM33XX_IOPAD(0x8f4, PIN_INPUT_PULLUP | MUX_MODE0) /* (F18) mmc0_dat2.mmc0_dat2 */
173 AM33XX_IOPAD(0x8f8, PIN_INPUT_PULLUP | MUX_MODE0) /* (G15) mmc0_dat1.mmc0_dat1 */
174 AM33XX_IOPAD(0x8fc, PIN_INPUT_PULLUP | MUX_MODE0) /* (G16) mmc0_dat0.mmc0_dat0 */
175 AM33XX_IOPAD(0x900, PIN_INPUT_PULLUP | MUX_MODE0) /* (G17) mmc0_clk.mmc0_clk */
176 AM33XX_IOPAD(0x904, PIN_INPUT_PULLUP | MUX_MODE0) /* (G18) mmc0_cmd.mmc0_cmd */
Lokesh Vutla2061d742016-03-23 09:04:13 +0530177 >;
178 };
179
180 i2c0_pins_default: i2c0_pins_default {
181 pinctrl-single,pins = <
182 AM33XX_IOPAD(0x988, PIN_INPUT | MUX_MODE0) /* (C17) I2C0_SDA.I2C0_SDA */
183 AM33XX_IOPAD(0x98c, PIN_INPUT | MUX_MODE0) /* (C16) I2C0_SCL.I2C0_SCL */
184 >;
185 };
186
187 spi0_pins_default: spi0_pins_default {
188 pinctrl-single,pins = <
189 AM33XX_IOPAD(0x950, PIN_INPUT_PULLUP | MUX_MODE0) /* (A17) spi0_sclk.spi0_sclk */
190 AM33XX_IOPAD(0x954, PIN_INPUT_PULLUP | MUX_MODE0) /* (B17) spi0_d0.spi0_d0 */
191 AM33XX_IOPAD(0x958, PIN_INPUT_PULLUP | MUX_MODE0) /* (B16) spi0_d1.spi0_d1 */
192 AM33XX_IOPAD(0x95c, PIN_INPUT_PULLUP | MUX_MODE0) /* (A16) spi0_cs0.spi0_cs0 */
Andrew F. Davis3c558b32016-10-07 09:44:22 -0500193 AM33XX_IOPAD(0x960, PIN_INPUT_PULLUP | MUX_MODE0) /* (C15) spi0_cs1.spi0_cs1 */
194 AM33XX_IOPAD(0x9a0, PIN_INPUT_PULLUP | MUX_MODE7) /* (B12) mcasp0_aclkr.gpio3[18] */
Lokesh Vutla2061d742016-03-23 09:04:13 +0530195 >;
196 };
197
198 uart3_pins_default: uart3_pins_default {
199 pinctrl-single,pins = <
200 AM33XX_IOPAD(0x934, PIN_INPUT_PULLUP | MUX_MODE1) /* (L17) gmii1_rxd3.uart3_rxd */
201 AM33XX_IOPAD(0x938, PIN_OUTPUT_PULLUP | MUX_MODE1) /* (L16) gmii1_rxd2.uart3_txd */
202 >;
203 };
204};
205
206&i2c0 {
207 pinctrl-names = "default";
208 pinctrl-0 = <&i2c0_pins_default>;
209
210 status = "okay";
211 clock-frequency = <400000>;
212
213 tps: power-controller@2d {
214 reg = <0x2d>;
215 };
216
217 tpic2810: gpio@60 {
218 compatible = "ti,tpic2810";
219 reg = <0x60>;
220 gpio-controller;
221 #gpio-cells = <2>;
222 };
Vignesh Reaa03e42016-05-19 12:17:30 +0530223
224 pca9536: gpio@41 {
225 compatible = "ti,pca9536";
226 reg = <0x41>;
227 gpio-controller;
228 #gpio-cells = <2>;
229 };
Lokesh Vutla2061d742016-03-23 09:04:13 +0530230};
231
Andrew F. Davis3c558b32016-10-07 09:44:22 -0500232&spi0 {
233 status = "okay";
234 pinctrl-names = "default";
235 pinctrl-0 = <&spi0_pins_default>;
236
237 sn65hvs882@1 {
238 compatible = "pisosr-gpio";
239 gpio-controller;
240 #gpio-cells = <2>;
241
242 load-gpios = <&gpio3 18 GPIO_ACTIVE_LOW>;
243
244 reg = <1>;
245 spi-max-frequency = <1000000>;
246 spi-cpol;
247 };
Franklin S Cooper Jr14eb6852017-03-07 15:57:51 -0600248
249 spi_nor: flash@0 {
250 #address-cells = <1>;
251 #size-cells = <1>;
252 compatible = "winbond,w25q64", "jedec,spi-nor";
253 spi-max-frequency = <80000000>;
254 m25p,fast-read;
255 reg = <0>;
256
257 partition@0 {
258 label = "u-boot-spl";
259 reg = <0x0 0x80000>;
260 read-only;
261 };
262
263 partition@1 {
264 label = "u-boot";
265 reg = <0x80000 0x100000>;
266 read-only;
267 };
268
269 partition@2 {
270 label = "u-boot-env";
271 reg = <0x180000 0x20000>;
272 read-only;
273 };
274
275 partition@3 {
276 label = "misc";
277 reg = <0x1A0000 0x660000>;
278 };
279 };
280
Andrew F. Davis3c558b32016-10-07 09:44:22 -0500281};
282
Andrew F. Davisa59c2232016-10-07 09:44:24 -0500283&tscadc {
284 status = "okay";
285 adc {
286 ti,adc-channels = <1 2 3 4 5 6 7>;
287 };
288};
289
Lokesh Vutla2061d742016-03-23 09:04:13 +0530290#include "tps65910.dtsi"
291
292&tps {
293 vcc1-supply = <&vbat>;
294 vcc2-supply = <&vbat>;
295 vcc3-supply = <&vbat>;
296 vcc4-supply = <&vbat>;
297 vcc5-supply = <&vbat>;
298 vcc6-supply = <&vbat>;
299 vcc7-supply = <&vbat>;
300 vccio-supply = <&vbat>;
301
302 regulators {
303 vrtc_reg: regulator@0 {
304 regulator-always-on;
305 };
306
307 vio_reg: regulator@1 {
308 regulator-always-on;
309 };
310
311 vdd1_reg: regulator@2 {
312 regulator-name = "vdd_mpu";
313 regulator-min-microvolt = <912500>;
314 regulator-max-microvolt = <1326000>;
315 regulator-boot-on;
316 regulator-always-on;
317 };
318
319 vdd2_reg: regulator@3 {
320 regulator-name = "vdd_core";
321 regulator-min-microvolt = <912500>;
322 regulator-max-microvolt = <1144000>;
323 regulator-boot-on;
324 regulator-always-on;
325 };
326
327 vdd3_reg: regulator@4 {
328 regulator-always-on;
329 };
330
331 vdig1_reg: regulator@5 {
332 regulator-always-on;
333 };
334
335 vdig2_reg: regulator@6 {
336 regulator-always-on;
337 };
338
339 vpll_reg: regulator@7 {
340 regulator-always-on;
341 };
342
343 vdac_reg: regulator@8 {
344 regulator-always-on;
345 };
346
347 vaux1_reg: regulator@9 {
348 regulator-always-on;
349 };
350
351 vaux2_reg: regulator@10 {
352 regulator-always-on;
353 };
354
355 vaux33_reg: regulator@11 {
356 regulator-always-on;
357 };
358
359 vmmc_reg: regulator@12 {
360 regulator-min-microvolt = <1800000>;
361 regulator-max-microvolt = <3300000>;
362 regulator-always-on;
363 };
364 };
365};
366
367&mmc1 {
368 status = "okay";
369 vmmc-supply = <&vmmc_reg>;
370 bus-width = <4>;
371 pinctrl-names = "default";
372 pinctrl-0 = <&mmc0_pins_default>;
373};
374
375&gpio0 {
376 /* Do not idle the GPIO used for holding the VTT regulator */
377 ti,no-reset-on-init;
378 ti,no-idle-on-init;
379};
380
381&uart3 {
382 pinctrl-names = "default";
383 pinctrl-0 = <&uart3_pins_default>;
384 status = "okay";
385};