blob: 1a66d359f3e3fe472fa18ccf33aea21c0b0ce8db [file] [log] [blame]
R Sricharan6e58b8f2013-08-14 19:08:20 +05301/*
2 * Copyright (C) 2013 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/dts-v1/;
9
Rajendra Nayak38b248d2014-04-29 16:35:10 +053010#include "dra74x.dtsi"
Lokesh Vutlac7cc9ba2014-09-04 08:23:28 -050011#include <dt-bindings/gpio/gpio.h>
Peter Ujfalusia9347bf2015-08-24 10:20:02 +030012#include <dt-bindings/clk/ti-dra7-atl.h>
R Sricharan6e58b8f2013-08-14 19:08:20 +053013
14/ {
Rajendra Nayak38b248d2014-04-29 16:35:10 +053015 model = "TI DRA742";
16 compatible = "ti,dra7-evm", "ti,dra742", "ti,dra74", "ti,dra7";
R Sricharan6e58b8f2013-08-14 19:08:20 +053017
18 memory {
19 device_type = "memory";
20 reg = <0x80000000 0x60000000>; /* 1536 MB */
21 };
Balaji T K6cf02db2013-10-07 21:55:04 +053022
Balaji T K4b935212015-07-30 13:43:35 +053023 evm_3v3_sd: fixedregulator-sd {
24 compatible = "regulator-fixed";
25 regulator-name = "evm_3v3_sd";
26 regulator-min-microvolt = <3300000>;
27 regulator-max-microvolt = <3300000>;
28 enable-active-high;
29 gpio = <&pcf_gpio_21 5 GPIO_ACTIVE_HIGH>;
30 };
31
Peter Ujfalusi27f39e52015-08-24 10:19:59 +030032 evm_3v3_sw: fixedregulator-evm_3v3_sw {
Balaji T K6cf02db2013-10-07 21:55:04 +053033 compatible = "regulator-fixed";
Peter Ujfalusi27f39e52015-08-24 10:19:59 +030034 regulator-name = "evm_3v3_sw";
Balaji T K6cf02db2013-10-07 21:55:04 +053035 regulator-min-microvolt = <3300000>;
36 regulator-max-microvolt = <3300000>;
37 };
Lokesh Vutlac7cc9ba2014-09-04 08:23:28 -050038
Peter Ujfalusid6818222015-08-24 10:20:00 +030039 aic_dvdd: fixedregulator-aic_dvdd {
40 /* TPS77018DBVT */
41 compatible = "regulator-fixed";
42 regulator-name = "aic_dvdd";
43 vin-supply = <&evm_3v3_sw>;
44 regulator-min-microvolt = <1800000>;
45 regulator-max-microvolt = <1800000>;
46 };
47
Roger Quadros87517d22015-01-26 14:15:28 +020048 extcon_usb1: extcon_usb1 {
49 compatible = "linux,extcon-usb-gpio";
50 id-gpio = <&pcf_gpio_21 1 GPIO_ACTIVE_HIGH>;
51 };
52
53 extcon_usb2: extcon_usb2 {
54 compatible = "linux,extcon-usb-gpio";
55 id-gpio = <&pcf_gpio_21 2 GPIO_ACTIVE_HIGH>;
56 };
57
Lokesh Vutlac7cc9ba2014-09-04 08:23:28 -050058 vtt_fixed: fixedregulator-vtt {
59 compatible = "regulator-fixed";
60 regulator-name = "vtt_fixed";
61 regulator-min-microvolt = <1350000>;
62 regulator-max-microvolt = <1350000>;
63 regulator-always-on;
64 regulator-boot-on;
65 enable-active-high;
66 gpio = <&gpio7 11 GPIO_ACTIVE_HIGH>;
67 };
Peter Ujfalusia9347bf2015-08-24 10:20:02 +030068
69 sound0: sound@0 {
70 compatible = "simple-audio-card";
71 simple-audio-card,name = "DRA7xx-EVM";
72 simple-audio-card,widgets =
73 "Headphone", "Headphone Jack",
74 "Line", "Line Out",
75 "Microphone", "Mic Jack",
76 "Line", "Line In";
77 simple-audio-card,routing =
78 "Headphone Jack", "HPLOUT",
79 "Headphone Jack", "HPROUT",
80 "Line Out", "LLOUT",
81 "Line Out", "RLOUT",
82 "MIC3L", "Mic Jack",
83 "MIC3R", "Mic Jack",
84 "Mic Jack", "Mic Bias",
85 "LINE1L", "Line In",
86 "LINE1R", "Line In";
87 simple-audio-card,format = "dsp_b";
88 simple-audio-card,bitclock-master = <&sound0_master>;
89 simple-audio-card,frame-master = <&sound0_master>;
90 simple-audio-card,bitclock-inversion;
91
92 sound0_master: simple-audio-card,cpu {
93 sound-dai = <&mcasp3>;
94 system-clock-frequency = <5644800>;
95 };
96
97 simple-audio-card,codec {
98 sound-dai = <&tlv320aic3106>;
99 clocks = <&atl_clkin2_ck>;
100 };
101 };
R Sricharan6e58b8f2013-08-14 19:08:20 +0530102};
103
104&dra7_pmx_core {
Lokesh Vutlac7cc9ba2014-09-04 08:23:28 -0500105 pinctrl-names = "default";
106 pinctrl-0 = <&vtt_pin>;
107
108 vtt_pin: pinmux_vtt_pin {
109 pinctrl-single,pins = <
110 0x3b4 (PIN_OUTPUT | MUX_MODE14) /* spi1_cs1.gpio7_11 */
111 >;
112 };
113
R Sricharan6e58b8f2013-08-14 19:08:20 +0530114 i2c1_pins: pinmux_i2c1_pins {
115 pinctrl-single,pins = <
116 0x400 (PIN_INPUT | MUX_MODE0) /* i2c1_sda */
117 0x404 (PIN_INPUT | MUX_MODE0) /* i2c1_scl */
118 >;
119 };
120
121 i2c2_pins: pinmux_i2c2_pins {
122 pinctrl-single,pins = <
123 0x408 (PIN_INPUT | MUX_MODE0) /* i2c2_sda */
124 0x40c (PIN_INPUT | MUX_MODE0) /* i2c2_scl */
125 >;
126 };
127
128 i2c3_pins: pinmux_i2c3_pins {
129 pinctrl-single,pins = <
Roger Quadros544d63d2014-09-03 14:17:31 +0300130 0x288 (PIN_INPUT | MUX_MODE9) /* gpio6_14.i2c3_sda */
131 0x28c (PIN_INPUT | MUX_MODE9) /* gpio6_15.i2c3_scl */
R Sricharan6e58b8f2013-08-14 19:08:20 +0530132 >;
133 };
134
135 mcspi1_pins: pinmux_mcspi1_pins {
136 pinctrl-single,pins = <
Nishanth Menon68e4d9e2014-09-04 08:33:37 -0500137 0x3a4 (PIN_INPUT | MUX_MODE0) /* spi1_sclk */
138 0x3a8 (PIN_INPUT | MUX_MODE0) /* spi1_d1 */
139 0x3ac (PIN_INPUT | MUX_MODE0) /* spi1_d0 */
140 0x3b0 (PIN_INPUT_SLEW | MUX_MODE0) /* spi1_cs0 */
Nishanth Menon68e4d9e2014-09-04 08:33:37 -0500141 0x3b8 (PIN_INPUT_SLEW | MUX_MODE6) /* spi1_cs2.hdmi1_hpd */
142 0x3bc (PIN_INPUT_SLEW | MUX_MODE6) /* spi1_cs3.hdmi1_cec */
R Sricharan6e58b8f2013-08-14 19:08:20 +0530143 >;
144 };
145
146 mcspi2_pins: pinmux_mcspi2_pins {
147 pinctrl-single,pins = <
148 0x3c0 (PIN_INPUT | MUX_MODE0) /* spi2_sclk */
149 0x3c4 (PIN_INPUT_SLEW | MUX_MODE0) /* spi2_d1 */
150 0x3c8 (PIN_INPUT_SLEW | MUX_MODE0) /* spi2_d1 */
151 0x3cc (PIN_INPUT_SLEW | MUX_MODE0) /* spi2_cs0 */
152 >;
153 };
154
155 uart1_pins: pinmux_uart1_pins {
156 pinctrl-single,pins = <
157 0x3e0 (PIN_INPUT_SLEW | MUX_MODE0) /* uart1_rxd */
158 0x3e4 (PIN_INPUT_SLEW | MUX_MODE0) /* uart1_txd */
159 0x3e8 (PIN_INPUT | MUX_MODE3) /* uart1_ctsn */
160 0x3ec (PIN_INPUT | MUX_MODE3) /* uart1_rtsn */
161 >;
162 };
163
164 uart2_pins: pinmux_uart2_pins {
165 pinctrl-single,pins = <
166 0x3f0 (PIN_INPUT | MUX_MODE0) /* uart2_rxd */
167 0x3f4 (PIN_INPUT | MUX_MODE0) /* uart2_txd */
168 0x3f8 (PIN_INPUT | MUX_MODE0) /* uart2_ctsn */
169 0x3fc (PIN_INPUT | MUX_MODE0) /* uart2_rtsn */
170 >;
171 };
172
173 uart3_pins: pinmux_uart3_pins {
174 pinctrl-single,pins = <
175 0x248 (PIN_INPUT_SLEW | MUX_MODE0) /* uart3_rxd */
176 0x24c (PIN_INPUT_SLEW | MUX_MODE0) /* uart3_txd */
177 >;
178 };
Sourav Poddardc2dd5b2014-05-06 16:37:24 +0530179
180 qspi1_pins: pinmux_qspi1_pins {
181 pinctrl-single,pins = <
182 0x4c (PIN_INPUT | MUX_MODE1) /* gpmc_a3.qspi1_cs2 */
183 0x50 (PIN_INPUT | MUX_MODE1) /* gpmc_a4.qspi1_cs3 */
184 0x74 (PIN_INPUT | MUX_MODE1) /* gpmc_a13.qspi1_rtclk */
185 0x78 (PIN_INPUT | MUX_MODE1) /* gpmc_a14.qspi1_d3 */
186 0x7c (PIN_INPUT | MUX_MODE1) /* gpmc_a15.qspi1_d2 */
187 0x80 (PIN_INPUT | MUX_MODE1) /* gpmc_a16.qspi1_d1 */
188 0x84 (PIN_INPUT | MUX_MODE1) /* gpmc_a17.qspi1_d0 */
189 0x88 (PIN_INPUT | MUX_MODE1) /* qpmc_a18.qspi1_sclk */
190 0xb8 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_cs2.qspi1_cs0 */
191 0xbc (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_cs3.qspi1_cs1 */
192 >;
193 };
Roger Quadros4b4437c2014-05-14 10:58:13 +0300194
195 usb1_pins: pinmux_usb1_pins {
196 pinctrl-single,pins = <
197 0x280 (PIN_INPUT_SLEW | MUX_MODE0) /* usb1_drvvbus */
198 >;
199 };
200
201 usb2_pins: pinmux_usb2_pins {
202 pinctrl-single,pins = <
203 0x284 (PIN_INPUT_SLEW | MUX_MODE0) /* usb2_drvvbus */
204 >;
205 };
Minal Shahff66a3c2014-05-19 14:45:47 +0530206
207 nand_flash_x16: nand_flash_x16 {
208 /* On DRA7 EVM, GPMC_WPN and NAND_BOOTn comes from DIP switch
209 * So NAND flash requires following switch settings:
210 * SW5.9 (GPMC_WPN) = LOW
211 * SW5.1 (NAND_BOOTn) = HIGH */
212 pinctrl-single,pins = <
213 0x0 (PIN_INPUT | MUX_MODE0) /* gpmc_ad0 */
214 0x4 (PIN_INPUT | MUX_MODE0) /* gpmc_ad1 */
215 0x8 (PIN_INPUT | MUX_MODE0) /* gpmc_ad2 */
216 0xc (PIN_INPUT | MUX_MODE0) /* gpmc_ad3 */
217 0x10 (PIN_INPUT | MUX_MODE0) /* gpmc_ad4 */
218 0x14 (PIN_INPUT | MUX_MODE0) /* gpmc_ad5 */
219 0x18 (PIN_INPUT | MUX_MODE0) /* gpmc_ad6 */
220 0x1c (PIN_INPUT | MUX_MODE0) /* gpmc_ad7 */
221 0x20 (PIN_INPUT | MUX_MODE0) /* gpmc_ad8 */
222 0x24 (PIN_INPUT | MUX_MODE0) /* gpmc_ad9 */
223 0x28 (PIN_INPUT | MUX_MODE0) /* gpmc_ad10 */
224 0x2c (PIN_INPUT | MUX_MODE0) /* gpmc_ad11 */
225 0x30 (PIN_INPUT | MUX_MODE0) /* gpmc_ad12 */
226 0x34 (PIN_INPUT | MUX_MODE0) /* gpmc_ad13 */
227 0x38 (PIN_INPUT | MUX_MODE0) /* gpmc_ad14 */
228 0x3c (PIN_INPUT | MUX_MODE0) /* gpmc_ad15 */
229 0xd8 (PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_wait0 */
230 0xcc (PIN_OUTPUT | MUX_MODE0) /* gpmc_wen */
231 0xb4 (PIN_OUTPUT_PULLUP | MUX_MODE0) /* gpmc_csn0 */
232 0xc4 (PIN_OUTPUT | MUX_MODE0) /* gpmc_advn_ale */
233 0xc8 (PIN_OUTPUT | MUX_MODE0) /* gpmc_oen_ren */
234 0xd0 (PIN_OUTPUT | MUX_MODE0) /* gpmc_be0n_cle */
235 >;
236 };
Mugunthan V N8d039292014-10-21 15:31:01 +0530237
238 cpsw_default: cpsw_default {
239 pinctrl-single,pins = <
240 /* Slave 1 */
241 0x250 (PIN_OUTPUT | MUX_MODE0) /* rgmii0_txc.rgmii0_txc */
242 0x254 (PIN_OUTPUT | MUX_MODE0) /* rgmii0_txctl.rgmii0_txctl */
243 0x258 (PIN_OUTPUT | MUX_MODE0) /* rgmii0_td3.rgmii0_txd3 */
244 0x25c (PIN_OUTPUT | MUX_MODE0) /* rgmii0_txd2.rgmii0_txd2 */
245 0x260 (PIN_OUTPUT | MUX_MODE0) /* rgmii0_txd1.rgmii0_txd1 */
246 0x264 (PIN_OUTPUT | MUX_MODE0) /* rgmii0_txd0.rgmii0_txd0 */
247 0x268 (PIN_INPUT | MUX_MODE0) /* rgmii0_rxc.rgmii0_rxc */
248 0x26c (PIN_INPUT | MUX_MODE0) /* rgmii0_rxctl.rgmii0_rxctl */
249 0x270 (PIN_INPUT | MUX_MODE0) /* rgmii0_rxd3.rgmii0_rxd3 */
250 0x274 (PIN_INPUT | MUX_MODE0) /* rgmii0_rxd2.rgmii0_rxd2 */
251 0x278 (PIN_INPUT | MUX_MODE0) /* rgmii0_rxd1.rgmii0_rxd1 */
252 0x27c (PIN_INPUT | MUX_MODE0) /* rgmii0_rxd0.rgmii0_rxd0 */
253
254 /* Slave 2 */
255 0x198 (PIN_OUTPUT | MUX_MODE3) /* vin2a_d12.rgmii1_txc */
256 0x19c (PIN_OUTPUT | MUX_MODE3) /* vin2a_d13.rgmii1_tctl */
257 0x1a0 (PIN_OUTPUT | MUX_MODE3) /* vin2a_d14.rgmii1_td3 */
258 0x1a4 (PIN_OUTPUT | MUX_MODE3) /* vin2a_d15.rgmii1_td2 */
259 0x1a8 (PIN_OUTPUT | MUX_MODE3) /* vin2a_d16.rgmii1_td1 */
260 0x1ac (PIN_OUTPUT | MUX_MODE3) /* vin2a_d17.rgmii1_td0 */
261 0x1b0 (PIN_INPUT | MUX_MODE3) /* vin2a_d18.rgmii1_rclk */
262 0x1b4 (PIN_INPUT | MUX_MODE3) /* vin2a_d19.rgmii1_rctl */
263 0x1b8 (PIN_INPUT | MUX_MODE3) /* vin2a_d20.rgmii1_rd3 */
264 0x1bc (PIN_INPUT | MUX_MODE3) /* vin2a_d21.rgmii1_rd2 */
265 0x1c0 (PIN_INPUT | MUX_MODE3) /* vin2a_d22.rgmii1_rd1 */
266 0x1c4 (PIN_INPUT | MUX_MODE3) /* vin2a_d23.rgmii1_rd0 */
267 >;
268
269 };
270
271 cpsw_sleep: cpsw_sleep {
272 pinctrl-single,pins = <
273 /* Slave 1 */
274 0x250 (MUX_MODE15)
275 0x254 (MUX_MODE15)
276 0x258 (MUX_MODE15)
277 0x25c (MUX_MODE15)
278 0x260 (MUX_MODE15)
279 0x264 (MUX_MODE15)
280 0x268 (MUX_MODE15)
281 0x26c (MUX_MODE15)
282 0x270 (MUX_MODE15)
283 0x274 (MUX_MODE15)
284 0x278 (MUX_MODE15)
285 0x27c (MUX_MODE15)
286
287 /* Slave 2 */
288 0x198 (MUX_MODE15)
289 0x19c (MUX_MODE15)
290 0x1a0 (MUX_MODE15)
291 0x1a4 (MUX_MODE15)
292 0x1a8 (MUX_MODE15)
293 0x1ac (MUX_MODE15)
294 0x1b0 (MUX_MODE15)
295 0x1b4 (MUX_MODE15)
296 0x1b8 (MUX_MODE15)
297 0x1bc (MUX_MODE15)
298 0x1c0 (MUX_MODE15)
299 0x1c4 (MUX_MODE15)
300 >;
301 };
302
303 davinci_mdio_default: davinci_mdio_default {
304 pinctrl-single,pins = <
305 0x23c (PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_d.mdio_d */
306 0x240 (PIN_INPUT_PULLUP | MUX_MODE0) /* mdio_clk.mdio_clk */
307 >;
308 };
309
310 davinci_mdio_sleep: davinci_mdio_sleep {
311 pinctrl-single,pins = <
312 0x23c (MUX_MODE15)
313 0x240 (MUX_MODE15)
314 >;
315 };
316
Roger Quadrosb41502e2014-08-15 16:09:19 +0300317 dcan1_pins_default: dcan1_pins_default {
318 pinctrl-single,pins = <
Roger Quadrosd80d5812015-03-05 15:32:43 +0200319 0x3d0 (PIN_OUTPUT_PULLUP | MUX_MODE0) /* dcan1_tx */
320 0x418 (PULL_UP | MUX_MODE1) /* wakeup0.dcan1_rx */
Roger Quadrosb41502e2014-08-15 16:09:19 +0300321 >;
322 };
323
324 dcan1_pins_sleep: dcan1_pins_sleep {
325 pinctrl-single,pins = <
Roger Quadrosd80d5812015-03-05 15:32:43 +0200326 0x3d0 (MUX_MODE15 | PULL_UP) /* dcan1_tx.off */
327 0x418 (MUX_MODE15 | PULL_UP) /* wakeup0.off */
Roger Quadrosb41502e2014-08-15 16:09:19 +0300328 >;
329 };
Peter Ujfalusia9347bf2015-08-24 10:20:02 +0300330
331 atl_pins: pinmux_atl_pins {
332 pinctrl-single,pins = <
333 0x298 (PIN_OUTPUT | MUX_MODE5) /* xref_clk1.atl_clk1 */
334 0x29c (PIN_OUTPUT | MUX_MODE5) /* xref_clk2.atl_clk2 */
335 >;
336 };
337
338 mcasp3_pins: pinmux_mcasp3_pins {
339 pinctrl-single,pins = <
340 0x324 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mcasp3_aclkx */
341 0x328 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mcasp3_fsx */
342 0x32c (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mcasp3_axr0 */
343 0x330 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp3_axr1 */
344 >;
345 };
346
347 mcasp3_sleep_pins: pinmux_mcasp3_sleep_pins {
348 pinctrl-single,pins = <
349 0x324 (MUX_MODE15)
350 0x328 (MUX_MODE15)
351 0x32c (MUX_MODE15)
352 0x330 (MUX_MODE15)
353 >;
354 };
R Sricharan6e58b8f2013-08-14 19:08:20 +0530355};
356
357&i2c1 {
358 status = "okay";
359 pinctrl-names = "default";
360 pinctrl-0 = <&i2c1_pins>;
361 clock-frequency = <400000>;
Keerthyc56a8312013-08-26 11:06:51 +0530362
363 tps659038: tps659038@58 {
364 compatible = "ti,tps659038";
365 reg = <0x58>;
366
367 tps659038_pmic {
368 compatible = "ti,tps659038-pmic";
369
370 regulators {
371 smps123_reg: smps123 {
372 /* VDD_MPU */
373 regulator-name = "smps123";
374 regulator-min-microvolt = < 850000>;
375 regulator-max-microvolt = <1250000>;
376 regulator-always-on;
377 regulator-boot-on;
378 };
379
380 smps45_reg: smps45 {
381 /* VDD_DSPEVE */
382 regulator-name = "smps45";
383 regulator-min-microvolt = < 850000>;
384 regulator-max-microvolt = <1150000>;
Nishanth Menon395b23c2014-10-21 09:38:10 -0500385 regulator-always-on;
Keerthyc56a8312013-08-26 11:06:51 +0530386 regulator-boot-on;
387 };
388
389 smps6_reg: smps6 {
390 /* VDD_GPU - over VDD_SMPS6 */
391 regulator-name = "smps6";
392 regulator-min-microvolt = <850000>;
Ravikumar Kattekolad114e852014-12-03 17:33:56 +0530393 regulator-max-microvolt = <1250000>;
Nishanth Menon395b23c2014-10-21 09:38:10 -0500394 regulator-always-on;
Keerthyc56a8312013-08-26 11:06:51 +0530395 regulator-boot-on;
396 };
397
398 smps7_reg: smps7 {
399 /* CORE_VDD */
400 regulator-name = "smps7";
401 regulator-min-microvolt = <850000>;
Ravikumar Kattekola70fcaf92014-12-03 17:33:57 +0530402 regulator-max-microvolt = <1060000>;
Keerthyc56a8312013-08-26 11:06:51 +0530403 regulator-always-on;
404 regulator-boot-on;
405 };
406
407 smps8_reg: smps8 {
408 /* VDD_IVAHD */
409 regulator-name = "smps8";
410 regulator-min-microvolt = < 850000>;
411 regulator-max-microvolt = <1250000>;
Nishanth Menon395b23c2014-10-21 09:38:10 -0500412 regulator-always-on;
Keerthyc56a8312013-08-26 11:06:51 +0530413 regulator-boot-on;
414 };
415
416 smps9_reg: smps9 {
417 /* VDDS1V8 */
418 regulator-name = "smps9";
419 regulator-min-microvolt = <1800000>;
420 regulator-max-microvolt = <1800000>;
421 regulator-always-on;
422 regulator-boot-on;
423 };
424
425 ldo1_reg: ldo1 {
426 /* LDO1_OUT --> SDIO */
427 regulator-name = "ldo1";
428 regulator-min-microvolt = <1800000>;
429 regulator-max-microvolt = <3300000>;
Kishon Vijay Abraham I9f04cee2015-07-30 13:43:39 +0530430 regulator-always-on;
Keerthyc56a8312013-08-26 11:06:51 +0530431 regulator-boot-on;
432 };
433
434 ldo2_reg: ldo2 {
435 /* VDD_RTCIO */
436 /* LDO2 -> VDDSHV5, LDO2 also goes to CAN_PHY_3V3 */
437 regulator-name = "ldo2";
438 regulator-min-microvolt = <3300000>;
439 regulator-max-microvolt = <3300000>;
Nishanth Menon395b23c2014-10-21 09:38:10 -0500440 regulator-always-on;
Keerthyc56a8312013-08-26 11:06:51 +0530441 regulator-boot-on;
442 };
443
444 ldo3_reg: ldo3 {
445 /* VDDA_1V8_PHY */
446 regulator-name = "ldo3";
447 regulator-min-microvolt = <1800000>;
448 regulator-max-microvolt = <1800000>;
Roger Quadrose120fb42014-07-04 12:55:43 +0300449 regulator-always-on;
Keerthyc56a8312013-08-26 11:06:51 +0530450 regulator-boot-on;
451 };
452
453 ldo9_reg: ldo9 {
454 /* VDD_RTC */
455 regulator-name = "ldo9";
456 regulator-min-microvolt = <1050000>;
457 regulator-max-microvolt = <1050000>;
Nishanth Menon395b23c2014-10-21 09:38:10 -0500458 regulator-always-on;
Keerthyc56a8312013-08-26 11:06:51 +0530459 regulator-boot-on;
460 };
461
462 ldoln_reg: ldoln {
463 /* VDDA_1V8_PLL */
464 regulator-name = "ldoln";
465 regulator-min-microvolt = <1800000>;
466 regulator-max-microvolt = <1800000>;
467 regulator-always-on;
468 regulator-boot-on;
469 };
470
471 ldousb_reg: ldousb {
472 /* VDDA_3V_USB: VDDA_USBHS33 */
473 regulator-name = "ldousb";
474 regulator-min-microvolt = <3300000>;
475 regulator-max-microvolt = <3300000>;
476 regulator-boot-on;
477 };
478 };
479 };
480 };
Roger Quadros87517d22015-01-26 14:15:28 +0200481
482 pcf_gpio_21: gpio@21 {
483 compatible = "ti,pcf8575";
484 reg = <0x21>;
485 lines-initial-states = <0x1408>;
486 gpio-controller;
487 #gpio-cells = <2>;
488 interrupt-parent = <&gpio6>;
489 interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
490 interrupt-controller;
491 #interrupt-cells = <2>;
492 };
493
Peter Ujfalusia9347bf2015-08-24 10:20:02 +0300494 tlv320aic3106: tlv320aic3106@19 {
495 #sound-dai-cells = <0>;
496 compatible = "ti,tlv320aic3106";
497 reg = <0x19>;
498 adc-settle-ms = <40>;
499 ai3x-micbias-vg = <1>; /* 2.0V */
500 status = "okay";
501
502 /* Regulators */
503 AVDD-supply = <&evm_3v3_sw>;
504 IOVDD-supply = <&evm_3v3_sw>;
505 DRVDD-supply = <&evm_3v3_sw>;
506 DVDD-supply = <&aic_dvdd>;
507 };
R Sricharan6e58b8f2013-08-14 19:08:20 +0530508};
509
510&i2c2 {
511 status = "okay";
512 pinctrl-names = "default";
513 pinctrl-0 = <&i2c2_pins>;
514 clock-frequency = <400000>;
Peter Ujfalusic5d294d2015-08-24 10:20:01 +0300515
516 pcf_hdmi: gpio@26 {
517 compatible = "nxp,pcf8575";
518 reg = <0x26>;
519 gpio-controller;
520 #gpio-cells = <2>;
521 p1 {
522 /* vin6_sel_s0: high: VIN6, low: audio */
523 gpio-hog;
524 gpios = <1 GPIO_ACTIVE_HIGH>;
525 output-low;
526 line-name = "vin6_sel_s0";
527 };
528 };
R Sricharan6e58b8f2013-08-14 19:08:20 +0530529};
530
531&i2c3 {
532 status = "okay";
533 pinctrl-names = "default";
534 pinctrl-0 = <&i2c3_pins>;
Roger Quadros544d63d2014-09-03 14:17:31 +0300535 clock-frequency = <400000>;
R Sricharan6e58b8f2013-08-14 19:08:20 +0530536};
537
538&mcspi1 {
539 status = "okay";
540 pinctrl-names = "default";
541 pinctrl-0 = <&mcspi1_pins>;
542};
543
544&mcspi2 {
545 status = "okay";
546 pinctrl-names = "default";
547 pinctrl-0 = <&mcspi2_pins>;
548};
549
550&uart1 {
551 status = "okay";
552 pinctrl-names = "default";
553 pinctrl-0 = <&uart1_pins>;
Marc Zyngier783d3182015-03-11 15:43:44 +0000554 interrupts-extended = <&crossbar_mpu GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
Nishanth Menon66b04362014-06-06 20:53:22 -0500555 <&dra7_pmx_core 0x3e0>;
R Sricharan6e58b8f2013-08-14 19:08:20 +0530556};
557
558&uart2 {
559 status = "okay";
560 pinctrl-names = "default";
561 pinctrl-0 = <&uart2_pins>;
562};
563
564&uart3 {
565 status = "okay";
566 pinctrl-names = "default";
567 pinctrl-0 = <&uart3_pins>;
568};
Balaji T Kbf1788d2013-10-07 21:55:03 +0530569
570&mmc1 {
571 status = "okay";
Balaji T K4b935212015-07-30 13:43:35 +0530572 vmmc-supply = <&evm_3v3_sd>;
573 vmmc_aux-supply = <&ldo1_reg>;
Balaji T Kbf1788d2013-10-07 21:55:03 +0530574 bus-width = <4>;
Nishanth Menonf4eaf9e2015-07-30 13:43:37 +0530575 /*
576 * SDCD signal is not being used here - using the fact that GPIO mode
577 * is always hardwired.
578 */
579 cd-gpios = <&gpio6 27 0>;
Balaji T Kbf1788d2013-10-07 21:55:03 +0530580};
Balaji T K6cf02db2013-10-07 21:55:04 +0530581
582&mmc2 {
583 status = "okay";
Peter Ujfalusi27f39e52015-08-24 10:19:59 +0300584 vmmc-supply = <&evm_3v3_sw>;
Balaji T K6cf02db2013-10-07 21:55:04 +0530585 bus-width = <8>;
586};
J Keerthy22f1e7e2013-10-16 10:39:05 -0500587
588&cpu0 {
589 cpu0-supply = <&smps123_reg>;
590};
Sourav Poddardc2dd5b2014-05-06 16:37:24 +0530591
592&qspi {
593 status = "okay";
594 pinctrl-names = "default";
595 pinctrl-0 = <&qspi1_pins>;
596
597 spi-max-frequency = <48000000>;
598 m25p80@0 {
599 compatible = "s25fl256s1";
600 spi-max-frequency = <48000000>;
601 reg = <0>;
602 spi-tx-bus-width = <1>;
603 spi-rx-bus-width = <4>;
604 spi-cpol;
605 spi-cpha;
606 #address-cells = <1>;
607 #size-cells = <1>;
608
609 /* MTD partition table.
610 * The ROM checks the first four physical blocks
611 * for a valid file to boot and the flash here is
612 * 64KiB block size.
613 */
614 partition@0 {
615 label = "QSPI.SPL";
616 reg = <0x00000000 0x000010000>;
617 };
618 partition@1 {
619 label = "QSPI.SPL.backup1";
620 reg = <0x00010000 0x00010000>;
621 };
622 partition@2 {
623 label = "QSPI.SPL.backup2";
624 reg = <0x00020000 0x00010000>;
625 };
626 partition@3 {
627 label = "QSPI.SPL.backup3";
628 reg = <0x00030000 0x00010000>;
629 };
630 partition@4 {
631 label = "QSPI.u-boot";
632 reg = <0x00040000 0x00100000>;
633 };
634 partition@5 {
635 label = "QSPI.u-boot-spl-os";
Mugunthan V N69d26262015-01-05 15:45:45 -0800636 reg = <0x00140000 0x00080000>;
Sourav Poddardc2dd5b2014-05-06 16:37:24 +0530637 };
638 partition@6 {
639 label = "QSPI.u-boot-env";
Mugunthan V N69d26262015-01-05 15:45:45 -0800640 reg = <0x001c0000 0x00010000>;
Sourav Poddardc2dd5b2014-05-06 16:37:24 +0530641 };
642 partition@7 {
643 label = "QSPI.u-boot-env.backup1";
Mugunthan V N69d26262015-01-05 15:45:45 -0800644 reg = <0x001d0000 0x0010000>;
Sourav Poddardc2dd5b2014-05-06 16:37:24 +0530645 };
646 partition@8 {
647 label = "QSPI.kernel";
Mugunthan V N69d26262015-01-05 15:45:45 -0800648 reg = <0x001e0000 0x0800000>;
Sourav Poddardc2dd5b2014-05-06 16:37:24 +0530649 };
650 partition@9 {
651 label = "QSPI.file-system";
Mugunthan V N69d26262015-01-05 15:45:45 -0800652 reg = <0x009e0000 0x01620000>;
Sourav Poddardc2dd5b2014-05-06 16:37:24 +0530653 };
654 };
655};
Roger Quadros4b4437c2014-05-14 10:58:13 +0300656
Roger Quadrosa7b0aa12015-03-17 11:43:51 +0200657&omap_dwc3_1 {
658 extcon = <&extcon_usb1>;
659};
660
661&omap_dwc3_2 {
662 extcon = <&extcon_usb2>;
663};
664
Roger Quadros4b4437c2014-05-14 10:58:13 +0300665&usb1 {
666 dr_mode = "peripheral";
667 pinctrl-names = "default";
668 pinctrl-0 = <&usb1_pins>;
669};
670
671&usb2 {
672 dr_mode = "host";
673 pinctrl-names = "default";
674 pinctrl-0 = <&usb2_pins>;
675};
Minal Shahff66a3c2014-05-19 14:45:47 +0530676
677&elm {
678 status = "okay";
679};
680
681&gpmc {
682 status = "okay";
683 pinctrl-names = "default";
684 pinctrl-0 = <&nand_flash_x16>;
685 ranges = <0 0 0 0x01000000>; /* minimum GPMC partition = 16MB */
686 nand@0,0 {
687 reg = <0 0 4>; /* device IO registers */
688 ti,nand-ecc-opt = "bch8";
689 ti,elm-id = <&elm>;
690 nand-bus-width = <16>;
691 gpmc,device-width = <2>;
692 gpmc,sync-clk-ps = <0>;
693 gpmc,cs-on-ns = <0>;
Roger Quadros59900472014-09-10 08:57:11 -0700694 gpmc,cs-rd-off-ns = <80>;
695 gpmc,cs-wr-off-ns = <80>;
Minal Shahff66a3c2014-05-19 14:45:47 +0530696 gpmc,adv-on-ns = <0>;
Roger Quadros59900472014-09-10 08:57:11 -0700697 gpmc,adv-rd-off-ns = <60>;
698 gpmc,adv-wr-off-ns = <60>;
699 gpmc,we-on-ns = <10>;
700 gpmc,we-off-ns = <50>;
701 gpmc,oe-on-ns = <4>;
702 gpmc,oe-off-ns = <40>;
703 gpmc,access-ns = <40>;
704 gpmc,wr-access-ns = <80>;
705 gpmc,rd-cycle-ns = <80>;
706 gpmc,wr-cycle-ns = <80>;
Minal Shahff66a3c2014-05-19 14:45:47 +0530707 gpmc,bus-turnaround-ns = <0>;
708 gpmc,cycle2cycle-delay-ns = <0>;
709 gpmc,clk-activation-ns = <0>;
710 gpmc,wait-monitoring-ns = <0>;
711 gpmc,wr-data-mux-bus-ns = <0>;
712 /* MTD partition table */
713 /* All SPL-* partitions are sized to minimal length
714 * which can be independently programmable. For
715 * NAND flash this is equal to size of erase-block */
716 #address-cells = <1>;
717 #size-cells = <1>;
718 partition@0 {
719 label = "NAND.SPL";
720 reg = <0x00000000 0x000020000>;
721 };
722 partition@1 {
723 label = "NAND.SPL.backup1";
724 reg = <0x00020000 0x00020000>;
725 };
726 partition@2 {
727 label = "NAND.SPL.backup2";
728 reg = <0x00040000 0x00020000>;
729 };
730 partition@3 {
731 label = "NAND.SPL.backup3";
732 reg = <0x00060000 0x00020000>;
733 };
734 partition@4 {
735 label = "NAND.u-boot-spl-os";
736 reg = <0x00080000 0x00040000>;
737 };
738 partition@5 {
739 label = "NAND.u-boot";
740 reg = <0x000c0000 0x00100000>;
741 };
742 partition@6 {
743 label = "NAND.u-boot-env";
744 reg = <0x001c0000 0x00020000>;
745 };
746 partition@7 {
Roger Quadrosf0e9fab2014-09-03 14:17:32 +0300747 label = "NAND.u-boot-env.backup1";
Minal Shahff66a3c2014-05-19 14:45:47 +0530748 reg = <0x001e0000 0x00020000>;
749 };
750 partition@8 {
751 label = "NAND.kernel";
752 reg = <0x00200000 0x00800000>;
753 };
754 partition@9 {
755 label = "NAND.file-system";
756 reg = <0x00a00000 0x0f600000>;
757 };
758 };
759};
Roger Quadrosae28ea82014-06-30 14:00:38 +0300760
761&usb2_phy1 {
762 phy-supply = <&ldousb_reg>;
763};
764
765&usb2_phy2 {
766 phy-supply = <&ldousb_reg>;
767};
Lokesh Vutlac7cc9ba2014-09-04 08:23:28 -0500768
769&gpio7 {
770 ti,no-reset-on-init;
771 ti,no-idle-on-init;
772};
Mugunthan V N8d039292014-10-21 15:31:01 +0530773
774&mac {
775 status = "okay";
776 pinctrl-names = "default", "sleep";
777 pinctrl-0 = <&cpsw_default>;
778 pinctrl-1 = <&cpsw_sleep>;
779 dual_emac;
780};
781
782&cpsw_emac0 {
783 phy_id = <&davinci_mdio>, <2>;
784 phy-mode = "rgmii";
785 dual_emac_res_vlan = <1>;
786};
787
788&cpsw_emac1 {
789 phy_id = <&davinci_mdio>, <3>;
790 phy-mode = "rgmii";
791 dual_emac_res_vlan = <2>;
792};
793
794&davinci_mdio {
795 pinctrl-names = "default", "sleep";
796 pinctrl-0 = <&davinci_mdio_default>;
797 pinctrl-1 = <&davinci_mdio_sleep>;
798};
Roger Quadrosb41502e2014-08-15 16:09:19 +0300799
800&dcan1 {
801 status = "ok";
Roger Quadros2acb5c32015-07-07 17:27:57 +0300802 pinctrl-names = "default", "sleep", "active";
803 pinctrl-0 = <&dcan1_pins_sleep>;
Roger Quadrosb41502e2014-08-15 16:09:19 +0300804 pinctrl-1 = <&dcan1_pins_sleep>;
Roger Quadros2acb5c32015-07-07 17:27:57 +0300805 pinctrl-2 = <&dcan1_pins_default>;
Roger Quadrosb41502e2014-08-15 16:09:19 +0300806};
Peter Ujfalusia9347bf2015-08-24 10:20:02 +0300807
808&atl {
809 pinctrl-names = "default";
810 pinctrl-0 = <&atl_pins>;
811
812 assigned-clocks = <&abe_dpll_sys_clk_mux>,
813 <&atl_gfclk_mux>,
814 <&dpll_abe_ck>,
815 <&dpll_abe_m2x2_ck>,
816 <&atl_clkin2_ck>;
817 assigned-clock-parents = <&sys_clkin2>, <&dpll_abe_m2_ck>;
818 assigned-clock-rates = <0>, <0>, <180633600>, <361267200>, <5644800>;
819
820 status = "okay";
821
822 atl2 {
823 bws = <DRA7_ATL_WS_MCASP2_FSX>;
824 aws = <DRA7_ATL_WS_MCASP3_FSX>;
825 };
826};
827
828&mcasp3 {
829 #sound-dai-cells = <0>;
830 pinctrl-names = "default", "sleep";
831 pinctrl-0 = <&mcasp3_pins>;
832 pinctrl-1 = <&mcasp3_sleep_pins>;
833
834 assigned-clocks = <&mcasp3_ahclkx_mux>;
835 assigned-clock-parents = <&atl_clkin2_ck>;
836
837 status = "okay";
838
839 op-mode = <0>; /* MCASP_IIS_MODE */
840 tdm-slots = <2>;
841 /* 4 serializer */
842 serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */
843 1 2 0 0
844 >;
845};