blob: 1463df3b5b195544f7fafc97f3a7dc62efa01f4f [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
Javier Martinez Canillas4c049a52016-08-01 12:46:58 -040027 vbat: fixedregulator0 {
Lokesh Vutla2061d742016-03-23 09:04:13 +053028 compatible = "regulator-fixed";
29 regulator-name = "vbat";
30 regulator-min-microvolt = <5000000>;
31 regulator-max-microvolt = <5000000>;
32 regulator-boot-on;
33 };
34
Javier Martinez Canillas4c049a52016-08-01 12:46:58 -040035 vtt_fixed: fixedregulator1 {
Lokesh Vutla2061d742016-03-23 09:04:13 +053036 compatible = "regulator-fixed";
37 regulator-name = "vtt";
38 regulator-min-microvolt = <1500000>;
39 regulator-max-microvolt = <1500000>;
40 gpio = <&gpio0 18 GPIO_ACTIVE_HIGH>;
41 regulator-always-on;
42 regulator-boot-on;
43 enable-active-high;
44 };
45
Andrew F. Davis722cb0f2016-10-07 09:44:23 -050046 leds-iio {
47 status = "disabled";
Lokesh Vutla2061d742016-03-23 09:04:13 +053048 compatible = "gpio-leds";
Andrew F. Davis722cb0f2016-10-07 09:44:23 -050049 led-out0 {
Lokesh Vutla2061d742016-03-23 09:04:13 +053050 label = "out0";
51 gpios = <&tpic2810 0 GPIO_ACTIVE_HIGH>;
52 default-state = "off";
53 };
54
Andrew F. Davis722cb0f2016-10-07 09:44:23 -050055 led-out1 {
Lokesh Vutla2061d742016-03-23 09:04:13 +053056 label = "out1";
57 gpios = <&tpic2810 1 GPIO_ACTIVE_HIGH>;
58 default-state = "off";
59 };
60
Andrew F. Davis722cb0f2016-10-07 09:44:23 -050061 led-out2 {
Lokesh Vutla2061d742016-03-23 09:04:13 +053062 label = "out2";
63 gpios = <&tpic2810 2 GPIO_ACTIVE_HIGH>;
64 default-state = "off";
65 };
66
Andrew F. Davis722cb0f2016-10-07 09:44:23 -050067 led-out3 {
Lokesh Vutla2061d742016-03-23 09:04:13 +053068 label = "out3";
69 gpios = <&tpic2810 3 GPIO_ACTIVE_HIGH>;
70 default-state = "off";
71 };
72
Andrew F. Davis722cb0f2016-10-07 09:44:23 -050073 led-out4 {
Lokesh Vutla2061d742016-03-23 09:04:13 +053074 label = "out4";
75 gpios = <&tpic2810 4 GPIO_ACTIVE_HIGH>;
76 default-state = "off";
77 };
78
Andrew F. Davis722cb0f2016-10-07 09:44:23 -050079 led-out5 {
Lokesh Vutla2061d742016-03-23 09:04:13 +053080 label = "out5";
81 gpios = <&tpic2810 5 GPIO_ACTIVE_HIGH>;
82 default-state = "off";
83 };
84
Andrew F. Davis722cb0f2016-10-07 09:44:23 -050085 led-out6 {
Lokesh Vutla2061d742016-03-23 09:04:13 +053086 label = "out6";
87 gpios = <&tpic2810 6 GPIO_ACTIVE_HIGH>;
88 default-state = "off";
89 };
90
Andrew F. Davis722cb0f2016-10-07 09:44:23 -050091 led-out7 {
Lokesh Vutla2061d742016-03-23 09:04:13 +053092 label = "out7";
93 gpios = <&tpic2810 7 GPIO_ACTIVE_HIGH>;
94 default-state = "off";
95 };
96 };
97
98 /* Tricolor status LEDs */
Javier Martinez Canillasc731abd2016-08-01 12:47:03 -040099 leds1 {
Lokesh Vutla2061d742016-03-23 09:04:13 +0530100 compatible = "gpio-leds";
101 pinctrl-names = "default";
102 pinctrl-0 = <&user_leds>;
103
Javier Martinez Canillasc731abd2016-08-01 12:47:03 -0400104 led0 {
Lokesh Vutla2061d742016-03-23 09:04:13 +0530105 label = "status0:red:cpu0";
106 gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
107 default-state = "off";
108 linux,default-trigger = "cpu0";
109 };
110
Javier Martinez Canillasc731abd2016-08-01 12:47:03 -0400111 led1 {
Lokesh Vutla2061d742016-03-23 09:04:13 +0530112 label = "status0:green:usr";
113 gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
114 default-state = "off";
115 };
116
Javier Martinez Canillasc731abd2016-08-01 12:47:03 -0400117 led2 {
Lokesh Vutla2061d742016-03-23 09:04:13 +0530118 label = "status0:yellow:usr";
119 gpios = <&gpio3 9 GPIO_ACTIVE_HIGH>;
120 default-state = "off";
121 };
122
Javier Martinez Canillasc731abd2016-08-01 12:47:03 -0400123 led3 {
Lokesh Vutla2061d742016-03-23 09:04:13 +0530124 label = "status1:red:mmc0";
125 gpios = <&gpio1 30 GPIO_ACTIVE_HIGH>;
126 default-state = "off";
127 linux,default-trigger = "mmc0";
128 };
129
Javier Martinez Canillasc731abd2016-08-01 12:47:03 -0400130 led4 {
Lokesh Vutla2061d742016-03-23 09:04:13 +0530131 label = "status1:green:usr";
132 gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
133 default-state = "off";
134 };
135
Javier Martinez Canillasc731abd2016-08-01 12:47:03 -0400136 led5 {
Lokesh Vutla2061d742016-03-23 09:04:13 +0530137 label = "status1:yellow:usr";
138 gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>;
139 default-state = "off";
140 };
141 };
Vignesh R6c6b3c32016-08-24 13:28:59 +0530142 gpio-decoder {
143 compatible = "gpio-decoder";
144 gpios = <&pca9536 3 GPIO_ACTIVE_HIGH>,
145 <&pca9536 2 GPIO_ACTIVE_HIGH>,
146 <&pca9536 1 GPIO_ACTIVE_HIGH>,
147 <&pca9536 0 GPIO_ACTIVE_HIGH>;
148 linux,axis = <0>; /* ABS_X */
149 decoder-max-value = <9>;
150 };
Lokesh Vutla2061d742016-03-23 09:04:13 +0530151};
152
153&am33xx_pinmux {
154 user_leds: user_leds {
155 pinctrl-single,pins = <
156 AM33XX_IOPAD(0x91c, PIN_OUTPUT | MUX_MODE7) /* (J18) gmii1_txd3.gpio0[16] */
157 AM33XX_IOPAD(0x920, PIN_OUTPUT | MUX_MODE7) /* (K15) gmii1_txd2.gpio0[17] */
158 AM33XX_IOPAD(0x9b0, PIN_OUTPUT | MUX_MODE7) /* (A15) xdma_event_intr0.gpio0[19] */
159 AM33XX_IOPAD(0x9b4, PIN_OUTPUT | MUX_MODE7) /* (D14) xdma_event_intr1.gpio0[20] */
160 AM33XX_IOPAD(0x880, PIN_OUTPUT | MUX_MODE7) /* (U9) gpmc_csn1.gpio1[30] */
161 AM33XX_IOPAD(0x92c, PIN_OUTPUT | MUX_MODE7) /* (K18) gmii1_txclk.gpio3[9] */
162 >;
163 };
164
165 mmc0_pins_default: mmc0_pins_default {
166 pinctrl-single,pins = <
167 AM33XX_IOPAD(0x8f0, PIN_INPUT_PULLUP | MUX_MODE0) /* (F17) mmc0_dat3.mmc0_dat3 */
168 AM33XX_IOPAD(0x8f4, PIN_INPUT_PULLUP | MUX_MODE0) /* (F18) mmc0_dat2.mmc0_dat2 */
169 AM33XX_IOPAD(0x8f8, PIN_INPUT_PULLUP | MUX_MODE0) /* (G15) mmc0_dat1.mmc0_dat1 */
170 AM33XX_IOPAD(0x8fc, PIN_INPUT_PULLUP | MUX_MODE0) /* (G16) mmc0_dat0.mmc0_dat0 */
171 AM33XX_IOPAD(0x900, PIN_INPUT_PULLUP | MUX_MODE0) /* (G17) mmc0_clk.mmc0_clk */
172 AM33XX_IOPAD(0x904, PIN_INPUT_PULLUP | MUX_MODE0) /* (G18) mmc0_cmd.mmc0_cmd */
173 AM33XX_IOPAD(0x960, PIN_INPUT_PULLUP | MUX_MODE5) /* (C15) spi0_cs1.mmc0_sdcd */
174 >;
175 };
176
177 i2c0_pins_default: i2c0_pins_default {
178 pinctrl-single,pins = <
179 AM33XX_IOPAD(0x988, PIN_INPUT | MUX_MODE0) /* (C17) I2C0_SDA.I2C0_SDA */
180 AM33XX_IOPAD(0x98c, PIN_INPUT | MUX_MODE0) /* (C16) I2C0_SCL.I2C0_SCL */
181 >;
182 };
183
184 spi0_pins_default: spi0_pins_default {
185 pinctrl-single,pins = <
186 AM33XX_IOPAD(0x950, PIN_INPUT_PULLUP | MUX_MODE0) /* (A17) spi0_sclk.spi0_sclk */
187 AM33XX_IOPAD(0x954, PIN_INPUT_PULLUP | MUX_MODE0) /* (B17) spi0_d0.spi0_d0 */
188 AM33XX_IOPAD(0x958, PIN_INPUT_PULLUP | MUX_MODE0) /* (B16) spi0_d1.spi0_d1 */
189 AM33XX_IOPAD(0x95c, PIN_INPUT_PULLUP | MUX_MODE0) /* (A16) spi0_cs0.spi0_cs0 */
Andrew F. Davis3c558b32016-10-07 09:44:22 -0500190 AM33XX_IOPAD(0x960, PIN_INPUT_PULLUP | MUX_MODE0) /* (C15) spi0_cs1.spi0_cs1 */
191 AM33XX_IOPAD(0x9a0, PIN_INPUT_PULLUP | MUX_MODE7) /* (B12) mcasp0_aclkr.gpio3[18] */
Lokesh Vutla2061d742016-03-23 09:04:13 +0530192 >;
193 };
194
195 uart3_pins_default: uart3_pins_default {
196 pinctrl-single,pins = <
197 AM33XX_IOPAD(0x934, PIN_INPUT_PULLUP | MUX_MODE1) /* (L17) gmii1_rxd3.uart3_rxd */
198 AM33XX_IOPAD(0x938, PIN_OUTPUT_PULLUP | MUX_MODE1) /* (L16) gmii1_rxd2.uart3_txd */
199 >;
200 };
201};
202
203&i2c0 {
204 pinctrl-names = "default";
205 pinctrl-0 = <&i2c0_pins_default>;
206
207 status = "okay";
208 clock-frequency = <400000>;
209
210 tps: power-controller@2d {
211 reg = <0x2d>;
212 };
213
214 tpic2810: gpio@60 {
215 compatible = "ti,tpic2810";
216 reg = <0x60>;
217 gpio-controller;
218 #gpio-cells = <2>;
219 };
Vignesh Reaa03e42016-05-19 12:17:30 +0530220
221 pca9536: gpio@41 {
222 compatible = "ti,pca9536";
223 reg = <0x41>;
224 gpio-controller;
225 #gpio-cells = <2>;
226 };
Lokesh Vutla2061d742016-03-23 09:04:13 +0530227};
228
Andrew F. Davis3c558b32016-10-07 09:44:22 -0500229&spi0 {
230 status = "okay";
231 pinctrl-names = "default";
232 pinctrl-0 = <&spi0_pins_default>;
233
234 sn65hvs882@1 {
235 compatible = "pisosr-gpio";
236 gpio-controller;
237 #gpio-cells = <2>;
238
239 load-gpios = <&gpio3 18 GPIO_ACTIVE_LOW>;
240
241 reg = <1>;
242 spi-max-frequency = <1000000>;
243 spi-cpol;
244 };
245};
246
Andrew F. Davisa59c2232016-10-07 09:44:24 -0500247&tscadc {
248 status = "okay";
249 adc {
250 ti,adc-channels = <1 2 3 4 5 6 7>;
251 };
252};
253
Lokesh Vutla2061d742016-03-23 09:04:13 +0530254#include "tps65910.dtsi"
255
256&tps {
257 vcc1-supply = <&vbat>;
258 vcc2-supply = <&vbat>;
259 vcc3-supply = <&vbat>;
260 vcc4-supply = <&vbat>;
261 vcc5-supply = <&vbat>;
262 vcc6-supply = <&vbat>;
263 vcc7-supply = <&vbat>;
264 vccio-supply = <&vbat>;
265
266 regulators {
267 vrtc_reg: regulator@0 {
268 regulator-always-on;
269 };
270
271 vio_reg: regulator@1 {
272 regulator-always-on;
273 };
274
275 vdd1_reg: regulator@2 {
276 regulator-name = "vdd_mpu";
277 regulator-min-microvolt = <912500>;
278 regulator-max-microvolt = <1326000>;
279 regulator-boot-on;
280 regulator-always-on;
281 };
282
283 vdd2_reg: regulator@3 {
284 regulator-name = "vdd_core";
285 regulator-min-microvolt = <912500>;
286 regulator-max-microvolt = <1144000>;
287 regulator-boot-on;
288 regulator-always-on;
289 };
290
291 vdd3_reg: regulator@4 {
292 regulator-always-on;
293 };
294
295 vdig1_reg: regulator@5 {
296 regulator-always-on;
297 };
298
299 vdig2_reg: regulator@6 {
300 regulator-always-on;
301 };
302
303 vpll_reg: regulator@7 {
304 regulator-always-on;
305 };
306
307 vdac_reg: regulator@8 {
308 regulator-always-on;
309 };
310
311 vaux1_reg: regulator@9 {
312 regulator-always-on;
313 };
314
315 vaux2_reg: regulator@10 {
316 regulator-always-on;
317 };
318
319 vaux33_reg: regulator@11 {
320 regulator-always-on;
321 };
322
323 vmmc_reg: regulator@12 {
324 regulator-min-microvolt = <1800000>;
325 regulator-max-microvolt = <3300000>;
326 regulator-always-on;
327 };
328 };
329};
330
331&mmc1 {
332 status = "okay";
333 vmmc-supply = <&vmmc_reg>;
334 bus-width = <4>;
335 pinctrl-names = "default";
336 pinctrl-0 = <&mmc0_pins_default>;
337};
338
339&gpio0 {
340 /* Do not idle the GPIO used for holding the VTT regulator */
341 ti,no-reset-on-init;
342 ti,no-idle-on-init;
343};
344
345&uart3 {
346 pinctrl-names = "default";
347 pinctrl-0 = <&uart3_pins_default>;
348 status = "okay";
349};