blob: 6f6bd98c98dff2502ca3bb02b869e8d4ba79d950 [file] [log] [blame]
Rajendra Nayak38b248d2014-04-29 16:35:10 +05301/*
2 * Copyright (C) 2014 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
10#include "dra72x.dtsi"
Roger Quadrosf56de322015-01-26 14:15:29 +020011#include <dt-bindings/gpio/gpio.h>
Rajendra Nayak38b248d2014-04-29 16:35:10 +053012
13/ {
14 model = "TI DRA722";
15 compatible = "ti,dra72-evm", "ti,dra722", "ti,dra72", "ti,dra7";
16
17 memory {
18 device_type = "memory";
19 reg = <0x80000000 0x40000000>; /* 1024 MB */
20 };
Nishanth Menon5b434d72014-10-21 09:35:56 -050021
Tomi Valkeinenfadf0d02015-02-12 09:55:46 +020022 aliases {
23 display0 = &hdmi0;
24 };
25
Nishanth Menon5b434d72014-10-21 09:35:56 -050026 evm_3v3: fixedregulator-evm_3v3 {
27 compatible = "regulator-fixed";
28 regulator-name = "evm_3v3";
29 regulator-min-microvolt = <3300000>;
30 regulator-max-microvolt = <3300000>;
31 };
Roger Quadrosf56de322015-01-26 14:15:29 +020032
Kishon Vijay Abraham Ia2387072015-07-30 13:43:34 +053033 evm_3v3_sd: fixedregulator-sd {
34 compatible = "regulator-fixed";
35 regulator-name = "evm_3v3_sd";
36 regulator-min-microvolt = <3300000>;
37 regulator-max-microvolt = <3300000>;
38 enable-active-high;
39 gpio = <&pcf_gpio_21 5 GPIO_ACTIVE_HIGH>;
40 };
41
Roger Quadrosf56de322015-01-26 14:15:29 +020042 extcon_usb1: extcon_usb1 {
43 compatible = "linux,extcon-usb-gpio";
44 id-gpio = <&pcf_gpio_21 1 GPIO_ACTIVE_HIGH>;
45 };
46
47 extcon_usb2: extcon_usb2 {
48 compatible = "linux,extcon-usb-gpio";
49 id-gpio = <&pcf_gpio_21 2 GPIO_ACTIVE_HIGH>;
50 };
Tomi Valkeinenfadf0d02015-02-12 09:55:46 +020051
52 hdmi0: connector {
53 compatible = "hdmi-connector";
54 label = "hdmi";
55
56 type = "a";
57
58 port {
59 hdmi_connector_in: endpoint {
60 remote-endpoint = <&tpd12s015_out>;
61 };
62 };
63 };
64
65 tpd12s015: encoder {
66 compatible = "ti,tpd12s015";
67
68 pinctrl-names = "default";
69 pinctrl-0 = <&tpd12s015_pins>;
70
71 gpios = <&pcf_hdmi 4 GPIO_ACTIVE_HIGH>, /* P4, CT CP HPD */
72 <&pcf_hdmi 5 GPIO_ACTIVE_HIGH>, /* P5, LS OE */
73 <&gpio7 12 GPIO_ACTIVE_HIGH>; /* gpio7_12/sp1_cs2, HPD */
74
75 ports {
76 #address-cells = <1>;
77 #size-cells = <0>;
78
79 port@0 {
80 reg = <0>;
81
82 tpd12s015_in: endpoint {
83 remote-endpoint = <&hdmi_out>;
84 };
85 };
86
87 port@1 {
88 reg = <1>;
89
90 tpd12s015_out: endpoint {
91 remote-endpoint = <&hdmi_connector_in>;
92 };
93 };
94 };
95 };
Rajendra Nayak38b248d2014-04-29 16:35:10 +053096};
97
Keerthy J7e9711a2014-07-28 11:48:53 +053098&dra7_pmx_core {
99 i2c1_pins: pinmux_i2c1_pins {
100 pinctrl-single,pins = <
101 0x400 (PIN_INPUT | MUX_MODE0) /* i2c1_sda.i2c1_sda */
102 0x404 (PIN_INPUT | MUX_MODE0) /* i2c1_scl.i2c1_scl */
103 >;
104 };
Roger Quadros09d49932014-10-21 13:41:17 +0300105
Tomi Valkeinenfadf0d02015-02-12 09:55:46 +0200106 i2c5_pins: pinmux_i2c5_pins {
107 pinctrl-single,pins = <
108 0x2b4 (PIN_INPUT | MUX_MODE10) /* mcasp1_axr0.i2c5_sda */
109 0x2b8 (PIN_INPUT | MUX_MODE10) /* mcasp1_axr1.i2c5_scl */
110 >;
111 };
112
Roger Quadros09d49932014-10-21 13:41:17 +0300113 nand_default: nand_default {
114 pinctrl-single,pins = <
115 0x0 (PIN_INPUT | MUX_MODE0) /* gpmc_ad0 */
116 0x4 (PIN_INPUT | MUX_MODE0) /* gpmc_ad1 */
117 0x8 (PIN_INPUT | MUX_MODE0) /* gpmc_ad2 */
118 0xc (PIN_INPUT | MUX_MODE0) /* gpmc_ad3 */
119 0x10 (PIN_INPUT | MUX_MODE0) /* gpmc_ad4 */
120 0x14 (PIN_INPUT | MUX_MODE0) /* gpmc_ad5 */
121 0x18 (PIN_INPUT | MUX_MODE0) /* gpmc_ad6 */
122 0x1c (PIN_INPUT | MUX_MODE0) /* gpmc_ad7 */
123 0x20 (PIN_INPUT | MUX_MODE0) /* gpmc_ad8 */
124 0x24 (PIN_INPUT | MUX_MODE0) /* gpmc_ad9 */
125 0x28 (PIN_INPUT | MUX_MODE0) /* gpmc_ad10 */
126 0x2c (PIN_INPUT | MUX_MODE0) /* gpmc_ad11 */
127 0x30 (PIN_INPUT | MUX_MODE0) /* gpmc_ad12 */
128 0x34 (PIN_INPUT | MUX_MODE0) /* gpmc_ad13 */
129 0x38 (PIN_INPUT | MUX_MODE0) /* gpmc_ad14 */
130 0x3c (PIN_INPUT | MUX_MODE0) /* gpmc_ad15 */
131 0xb4 (PIN_OUTPUT | MUX_MODE0) /* gpmc_cs0 */
132 0xc4 (PIN_OUTPUT | MUX_MODE0) /* gpmc_advn_ale */
133 0xcc (PIN_OUTPUT | MUX_MODE0) /* gpmc_wen */
134 0xc8 (PIN_OUTPUT | MUX_MODE0) /* gpmc_oen_ren */
135 0xd0 (PIN_OUTPUT | MUX_MODE0) /* gpmc_ben0 */
136 0xd8 (PIN_INPUT | MUX_MODE0) /* gpmc_wait0 */
137 >;
138 };
George Cherian95cc6af2014-10-21 13:41:19 +0300139
140 usb1_pins: pinmux_usb1_pins {
141 pinctrl-single,pins = <
142 0x280 (PIN_INPUT_SLEW | MUX_MODE0) /* usb1_drvvbus */
143 >;
144 };
145
146 usb2_pins: pinmux_usb2_pins {
147 pinctrl-single,pins = <
148 0x284 (PIN_INPUT_SLEW | MUX_MODE0) /* usb2_drvvbus */
149 >;
150 };
Nishanth Menon829acd02014-10-21 09:30:46 -0500151
152 tps65917_pins_default: tps65917_pins_default {
153 pinctrl-single,pins = <
154 0x424 (PIN_INPUT_PULLUP | MUX_MODE1) /* wakeup3.sys_nirq1 */
155 >;
156 };
Nishanth Menon5b434d72014-10-21 09:35:56 -0500157
158 mmc1_pins_default: mmc1_pins_default {
159 pinctrl-single,pins = <
160 0x36c (PIN_INPUT | MUX_MODE14) /* mmc1sdcd.gpio219 */
161 0x354 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_clk.clk */
162 0x358 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_cmd.cmd */
163 0x35c (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat0.dat0 */
164 0x360 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat1.dat1 */
165 0x364 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat2.dat2 */
166 0x368 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat3.dat3 */
167 >;
168 };
169
170 mmc2_pins_default: mmc2_pins_default {
171 pinctrl-single,pins = <
172 0x9c (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a23.mmc2_clk */
173 0xb0 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_cs1.mmc2_cmd */
174 0xa0 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a24.mmc2_dat0 */
175 0xa4 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a25.mmc2_dat1 */
176 0xa8 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a26.mmc2_dat2 */
177 0xac (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a27.mmc2_dat3 */
178 0x8c (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a19.mmc2_dat4 */
179 0x90 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a20.mmc2_dat5 */
180 0x94 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a21.mmc2_dat6 */
181 0x98 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a22.mmc2_dat7 */
182 >;
183 };
Roger Quadrosea95af3c2014-11-03 13:07:18 +0200184
185 dcan1_pins_default: dcan1_pins_default {
186 pinctrl-single,pins = <
Roger Quadrosd80d5812015-03-05 15:32:43 +0200187 0x3d0 (PIN_OUTPUT_PULLUP | MUX_MODE0) /* dcan1_tx */
188 0x418 (PULL_UP | MUX_MODE1) /* wakeup0.dcan1_rx */
Roger Quadrosea95af3c2014-11-03 13:07:18 +0200189 >;
190 };
191
192 dcan1_pins_sleep: dcan1_pins_sleep {
193 pinctrl-single,pins = <
Roger Quadrosd80d5812015-03-05 15:32:43 +0200194 0x3d0 (MUX_MODE15 | PULL_UP) /* dcan1_tx.off */
195 0x418 (MUX_MODE15 | PULL_UP) /* wakeup0.off */
Roger Quadrosea95af3c2014-11-03 13:07:18 +0200196 >;
197 };
Mugunthan V N1f43c452015-01-19 15:19:28 +0530198
199 qspi1_pins: pinmux_qspi1_pins {
200 pinctrl-single,pins = <
201 0x74 (PIN_OUTPUT | MUX_MODE1) /* gpmc_a13.qspi1_rtclk */
202 0x78 (PIN_INPUT | MUX_MODE1) /* gpmc_a14.qspi1_d3 */
203 0x7c (PIN_INPUT | MUX_MODE1) /* gpmc_a15.qspi1_d2 */
204 0x80 (PIN_INPUT | MUX_MODE1) /* gpmc_a16.qspi1_d1 */
205 0x84 (PIN_INPUT | MUX_MODE1) /* gpmc_a17.qspi1_d0 */
206 0x88 (PIN_OUTPUT | MUX_MODE1) /* qpmc_a18.qspi1_sclk */
207 0xb8 (PIN_OUTPUT | MUX_MODE1) /* gpmc_cs2.qspi1_cs0 */
208 >;
209 };
Tomi Valkeinenfadf0d02015-02-12 09:55:46 +0200210
211 hdmi_pins: pinmux_hdmi_pins {
212 pinctrl-single,pins = <
213 0x408 (PIN_INPUT | MUX_MODE1) /* i2c2_sda.hdmi1_ddc_scl */
214 0x40c (PIN_INPUT | MUX_MODE1) /* i2c2_scl.hdmi1_ddc_sda */
215 >;
216 };
217
218 tpd12s015_pins: pinmux_tpd12s015_pins {
219 pinctrl-single,pins = <
220 0x3b8 (PIN_INPUT_PULLDOWN | MUX_MODE14) /* gpio7_12 HPD */
221 >;
222 };
Keerthy J7e9711a2014-07-28 11:48:53 +0530223};
224
225&i2c1 {
226 status = "okay";
227 pinctrl-names = "default";
228 pinctrl-0 = <&i2c1_pins>;
229 clock-frequency = <400000>;
Keerthy Jb359c422014-07-28 11:48:54 +0530230
231 tps65917: tps65917@58 {
232 compatible = "ti,tps65917";
233 reg = <0x58>;
234
Nishanth Menon829acd02014-10-21 09:30:46 -0500235 pinctrl-names = "default";
236 pinctrl-0 = <&tps65917_pins_default>;
237
Keerthy Jb359c422014-07-28 11:48:54 +0530238 interrupts = <GIC_SPI 2 IRQ_TYPE_NONE>; /* IRQ_SYS_1N */
Keerthy Jb359c422014-07-28 11:48:54 +0530239 interrupt-controller;
240 #interrupt-cells = <2>;
241
242 ti,system-power-controller;
243
244 tps65917_pmic {
245 compatible = "ti,tps65917-pmic";
246
247 regulators {
248 smps1_reg: smps1 {
249 /* VDD_MPU */
250 regulator-name = "smps1";
251 regulator-min-microvolt = <850000>;
252 regulator-max-microvolt = <1250000>;
253 regulator-always-on;
254 regulator-boot-on;
255 };
256
257 smps2_reg: smps2 {
258 /* VDD_CORE */
259 regulator-name = "smps2";
260 regulator-min-microvolt = <850000>;
Ravikumar Kattekola70fcaf92014-12-03 17:33:57 +0530261 regulator-max-microvolt = <1060000>;
Keerthy Jb359c422014-07-28 11:48:54 +0530262 regulator-boot-on;
263 regulator-always-on;
264 };
265
266 smps3_reg: smps3 {
267 /* VDD_GPU IVA DSPEVE */
268 regulator-name = "smps3";
269 regulator-min-microvolt = <850000>;
270 regulator-max-microvolt = <1250000>;
271 regulator-boot-on;
272 regulator-always-on;
273 };
274
275 smps4_reg: smps4 {
276 /* VDDS1V8 */
277 regulator-name = "smps4";
278 regulator-min-microvolt = <1800000>;
279 regulator-max-microvolt = <1800000>;
280 regulator-always-on;
281 regulator-boot-on;
282 };
283
284 smps5_reg: smps5 {
285 /* VDD_DDR */
286 regulator-name = "smps5";
287 regulator-min-microvolt = <1350000>;
288 regulator-max-microvolt = <1350000>;
289 regulator-boot-on;
290 regulator-always-on;
291 };
292
293 ldo1_reg: ldo1 {
294 /* LDO1_OUT --> SDIO */
295 regulator-name = "ldo1";
296 regulator-min-microvolt = <1800000>;
297 regulator-max-microvolt = <3300000>;
Kishon Vijay Abraham Id62ce9f2015-07-30 13:43:40 +0530298 regulator-always-on;
Keerthy Jb359c422014-07-28 11:48:54 +0530299 regulator-boot-on;
300 };
301
302 ldo2_reg: ldo2 {
303 /* LDO2_OUT --> TP1017 (UNUSED) */
304 regulator-name = "ldo2";
305 regulator-min-microvolt = <1800000>;
306 regulator-max-microvolt = <3300000>;
307 };
308
309 ldo3_reg: ldo3 {
310 /* VDDA_1V8_PHY */
311 regulator-name = "ldo3";
312 regulator-min-microvolt = <1800000>;
313 regulator-max-microvolt = <1800000>;
314 regulator-boot-on;
315 regulator-always-on;
316 };
317
318 ldo5_reg: ldo5 {
319 /* VDDA_1V8_PLL */
320 regulator-name = "ldo5";
321 regulator-min-microvolt = <1800000>;
322 regulator-max-microvolt = <1800000>;
323 regulator-always-on;
324 regulator-boot-on;
325 };
326
327 ldo4_reg: ldo4 {
328 /* VDDA_3V_USB: VDDA_USBHS33 */
329 regulator-name = "ldo4";
330 regulator-min-microvolt = <3300000>;
331 regulator-max-microvolt = <3300000>;
332 regulator-boot-on;
333 };
334 };
335 };
Nishanth Menonab1d3c82014-10-21 09:30:47 -0500336
337 tps65917_power_button {
338 compatible = "ti,palmas-pwrbutton";
339 interrupt-parent = <&tps65917>;
340 interrupts = <1 IRQ_TYPE_NONE>;
341 wakeup-source;
342 ti,palmas-long-press-seconds = <6>;
343 };
Keerthy Jb359c422014-07-28 11:48:54 +0530344 };
Roger Quadrosf56de322015-01-26 14:15:29 +0200345
346 pcf_gpio_21: gpio@21 {
347 compatible = "ti,pcf8575";
348 reg = <0x21>;
349 lines-initial-states = <0x1408>;
350 gpio-controller;
351 #gpio-cells = <2>;
352 interrupt-parent = <&gpio6>;
353 interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
354 interrupt-controller;
355 #interrupt-cells = <2>;
Vignesh Rad548432015-06-22 14:33:44 +0530356
357 cpsw_sel_s0 {
358 gpio-hog;
359 gpios = <4 GPIO_ACTIVE_HIGH>;
360 output-low;
361 };
Roger Quadrosf56de322015-01-26 14:15:29 +0200362 };
Keerthy J7e9711a2014-07-28 11:48:53 +0530363};
364
Tomi Valkeinenfadf0d02015-02-12 09:55:46 +0200365&i2c5 {
366 status = "okay";
367 pinctrl-names = "default";
368 pinctrl-0 = <&i2c5_pins>;
369 clock-frequency = <400000>;
370
371 pcf_hdmi: pcf8575@26 {
372 compatible = "nxp,pcf8575";
373 reg = <0x26>;
374 gpio-controller;
375 #gpio-cells = <2>;
376 /*
377 * initial state is used here to keep the mdio interface
378 * selected on RU89 through SEL_VIN4_MUX_S0, VIN2_S1 and
379 * VIN2_S0 driven high otherwise Ethernet stops working
380 * VIN6_SEL_S0 is low, thus selecting McASP3 over VIN6
381 */
382 lines-initial-states = <0x0f2b>;
383 };
384};
385
Rajendra Nayak38b248d2014-04-29 16:35:10 +0530386&uart1 {
387 status = "okay";
388};
Roger Quadros09d49932014-10-21 13:41:17 +0300389
390&elm {
391 status = "okay";
392};
393
394&gpmc {
395 status = "okay";
396 pinctrl-names = "default";
397 pinctrl-0 = <&nand_default>;
398 ranges = <0 0 0 0x01000000>; /* minimum GPMC partition = 16MB */
399 nand@0,0 {
400 /* To use NAND, DIP switch SW5 must be set like so:
401 * SW5.1 (NAND_SELn) = ON (LOW)
402 * SW5.9 (GPMC_WPN) = OFF (HIGH)
403 */
404 reg = <0 0 4>; /* device IO registers */
405 ti,nand-ecc-opt = "bch8";
406 ti,elm-id = <&elm>;
407 nand-bus-width = <16>;
408 gpmc,device-width = <2>;
409 gpmc,sync-clk-ps = <0>;
410 gpmc,cs-on-ns = <0>;
411 gpmc,cs-rd-off-ns = <80>;
412 gpmc,cs-wr-off-ns = <80>;
413 gpmc,adv-on-ns = <0>;
414 gpmc,adv-rd-off-ns = <60>;
415 gpmc,adv-wr-off-ns = <60>;
416 gpmc,we-on-ns = <10>;
417 gpmc,we-off-ns = <50>;
418 gpmc,oe-on-ns = <4>;
419 gpmc,oe-off-ns = <40>;
420 gpmc,access-ns = <40>;
421 gpmc,wr-access-ns = <80>;
422 gpmc,rd-cycle-ns = <80>;
423 gpmc,wr-cycle-ns = <80>;
424 gpmc,bus-turnaround-ns = <0>;
425 gpmc,cycle2cycle-delay-ns = <0>;
426 gpmc,clk-activation-ns = <0>;
427 gpmc,wait-monitoring-ns = <0>;
428 gpmc,wr-data-mux-bus-ns = <0>;
429 /* MTD partition table */
430 /* All SPL-* partitions are sized to minimal length
431 * which can be independently programmable. For
432 * NAND flash this is equal to size of erase-block */
433 #address-cells = <1>;
434 #size-cells = <1>;
435 partition@0 {
436 label = "NAND.SPL";
437 reg = <0x00000000 0x000020000>;
438 };
439 partition@1 {
440 label = "NAND.SPL.backup1";
441 reg = <0x00020000 0x00020000>;
442 };
443 partition@2 {
444 label = "NAND.SPL.backup2";
445 reg = <0x00040000 0x00020000>;
446 };
447 partition@3 {
448 label = "NAND.SPL.backup3";
449 reg = <0x00060000 0x00020000>;
450 };
451 partition@4 {
452 label = "NAND.u-boot-spl-os";
453 reg = <0x00080000 0x00040000>;
454 };
455 partition@5 {
456 label = "NAND.u-boot";
457 reg = <0x000c0000 0x00100000>;
458 };
459 partition@6 {
460 label = "NAND.u-boot-env";
461 reg = <0x001c0000 0x00020000>;
462 };
463 partition@7 {
464 label = "NAND.u-boot-env.backup1";
465 reg = <0x001e0000 0x00020000>;
466 };
467 partition@8 {
468 label = "NAND.kernel";
469 reg = <0x00200000 0x00800000>;
470 };
471 partition@9 {
472 label = "NAND.file-system";
473 reg = <0x00a00000 0x0f600000>;
474 };
475 };
476};
George Cherian95cc6af2014-10-21 13:41:19 +0300477
Roger Quadros7a15c8e2014-10-21 13:41:20 +0300478&usb2_phy1 {
479 phy-supply = <&ldo4_reg>;
480};
481
482&usb2_phy2 {
483 phy-supply = <&ldo4_reg>;
484};
485
Roger Quadrosa7b0aa12015-03-17 11:43:51 +0200486&omap_dwc3_1 {
487 extcon = <&extcon_usb1>;
488};
489
490&omap_dwc3_2 {
491 extcon = <&extcon_usb2>;
492};
493
George Cherian95cc6af2014-10-21 13:41:19 +0300494&usb1 {
495 dr_mode = "peripheral";
496 pinctrl-names = "default";
497 pinctrl-0 = <&usb1_pins>;
498};
499
500&usb2 {
501 dr_mode = "host";
502 pinctrl-names = "default";
503 pinctrl-0 = <&usb2_pins>;
504};
Nishanth Menon5b434d72014-10-21 09:35:56 -0500505
506&mmc1 {
507 status = "okay";
508 pinctrl-names = "default";
509 pinctrl-0 = <&mmc1_pins_default>;
Kishon Vijay Abraham Ia2387072015-07-30 13:43:34 +0530510 vmmc-supply = <&evm_3v3_sd>;
511 vmmc_aux-supply = <&ldo1_reg>;
Nishanth Menon5b434d72014-10-21 09:35:56 -0500512 bus-width = <4>;
513 /*
514 * SDCD signal is not being used here - using the fact that GPIO mode
515 * is a viable alternative
516 */
517 cd-gpios = <&gpio6 27 0>;
Kishon Vijay Abraham Ie23b27d2015-07-30 13:43:36 +0530518 max-frequency = <192000000>;
Nishanth Menon5b434d72014-10-21 09:35:56 -0500519};
520
521&mmc2 {
522 /* SW5-3 in ON position */
523 status = "okay";
524 pinctrl-names = "default";
525 pinctrl-0 = <&mmc2_pins_default>;
526
527 vmmc-supply = <&evm_3v3>;
528 bus-width = <8>;
529 ti,non-removable;
Kishon Vijay Abraham Ie23b27d2015-07-30 13:43:36 +0530530 max-frequency = <192000000>;
Nishanth Menon5b434d72014-10-21 09:35:56 -0500531};
Mugunthan V Nd5475152014-11-03 15:28:13 +0530532
533&dra7_pmx_core {
534 cpsw_default: cpsw_default {
535 pinctrl-single,pins = <
536 /* Slave 2 */
537 0x198 (PIN_OUTPUT | MUX_MODE3) /* vin2a_d12.rgmii1_txc */
538 0x19c (PIN_OUTPUT | MUX_MODE3) /* vin2a_d13.rgmii1_tctl */
539 0x1a0 (PIN_OUTPUT | MUX_MODE3) /* vin2a_d14.rgmii1_td3 */
540 0x1a4 (PIN_OUTPUT | MUX_MODE3) /* vin2a_d15.rgmii1_td2 */
541 0x1a8 (PIN_OUTPUT | MUX_MODE3) /* vin2a_d16.rgmii1_td1 */
542 0x1ac (PIN_OUTPUT | MUX_MODE3) /* vin2a_d17.rgmii1_td0 */
543 0x1b0 (PIN_INPUT | MUX_MODE3) /* vin2a_d18.rgmii1_rclk */
544 0x1b4 (PIN_INPUT | MUX_MODE3) /* vin2a_d19.rgmii1_rctl */
545 0x1b8 (PIN_INPUT | MUX_MODE3) /* vin2a_d20.rgmii1_rd3 */
546 0x1bc (PIN_INPUT | MUX_MODE3) /* vin2a_d21.rgmii1_rd2 */
547 0x1c0 (PIN_INPUT | MUX_MODE3) /* vin2a_d22.rgmii1_rd1 */
548 0x1c4 (PIN_INPUT | MUX_MODE3) /* vin2a_d23.rgmii1_rd0 */
549 >;
550
551 };
552
553 cpsw_sleep: cpsw_sleep {
554 pinctrl-single,pins = <
555 /* Slave 2 */
556 0x198 (MUX_MODE15)
557 0x19c (MUX_MODE15)
558 0x1a0 (MUX_MODE15)
559 0x1a4 (MUX_MODE15)
560 0x1a8 (MUX_MODE15)
561 0x1ac (MUX_MODE15)
562 0x1b0 (MUX_MODE15)
563 0x1b4 (MUX_MODE15)
564 0x1b8 (MUX_MODE15)
565 0x1bc (MUX_MODE15)
566 0x1c0 (MUX_MODE15)
567 0x1c4 (MUX_MODE15)
568 >;
569 };
570
571 davinci_mdio_default: davinci_mdio_default {
572 pinctrl-single,pins = <
573 /* MDIO */
574 0x23c (PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_d.mdio_d */
575 0x240 (PIN_INPUT_PULLUP | MUX_MODE0) /* mdio_clk.mdio_clk */
576 >;
577 };
578
579 davinci_mdio_sleep: davinci_mdio_sleep {
580 pinctrl-single,pins = <
581 0x23c (MUX_MODE15)
582 0x240 (MUX_MODE15)
583 >;
584 };
585};
586
587&mac {
588 status = "okay";
589 pinctrl-names = "default", "sleep";
590 pinctrl-0 = <&cpsw_default>;
591 pinctrl-1 = <&cpsw_sleep>;
Vignesh Rad548432015-06-22 14:33:44 +0530592 slaves = <1>;
Mugunthan V Nd5475152014-11-03 15:28:13 +0530593};
594
Vignesh Rad548432015-06-22 14:33:44 +0530595&cpsw_emac0 {
Mugunthan V Nd5475152014-11-03 15:28:13 +0530596 phy_id = <&davinci_mdio>, <3>;
597 phy-mode = "rgmii";
598};
599
600&davinci_mdio {
601 pinctrl-names = "default", "sleep";
602 pinctrl-0 = <&davinci_mdio_default>;
603 pinctrl-1 = <&davinci_mdio_sleep>;
Mugunthan V Nd5475152014-11-03 15:28:13 +0530604};
Roger Quadrosea95af3c2014-11-03 13:07:18 +0200605
606&dcan1 {
607 status = "ok";
Roger Quadros2acb5c32015-07-07 17:27:57 +0300608 pinctrl-names = "default", "sleep", "active";
609 pinctrl-0 = <&dcan1_pins_sleep>;
Roger Quadrosea95af3c2014-11-03 13:07:18 +0200610 pinctrl-1 = <&dcan1_pins_sleep>;
Roger Quadros2acb5c32015-07-07 17:27:57 +0300611 pinctrl-2 = <&dcan1_pins_default>;
Roger Quadrosea95af3c2014-11-03 13:07:18 +0200612};
Mugunthan V N1f43c452015-01-19 15:19:28 +0530613
614&qspi {
615 status = "okay";
616 pinctrl-names = "default";
617 pinctrl-0 = <&qspi1_pins>;
618
619 spi-max-frequency = <48000000>;
620 m25p80@0 {
621 compatible = "s25fl256s1";
622 spi-max-frequency = <48000000>;
623 reg = <0>;
624 spi-tx-bus-width = <1>;
625 spi-rx-bus-width = <4>;
626 spi-cpol;
627 spi-cpha;
628 #address-cells = <1>;
629 #size-cells = <1>;
630
631 /* MTD partition table.
632 * The ROM checks the first four physical blocks
633 * for a valid file to boot and the flash here is
634 * 64KiB block size.
635 */
636 partition@0 {
637 label = "QSPI.SPL";
638 reg = <0x00000000 0x000010000>;
639 };
640 partition@1 {
641 label = "QSPI.SPL.backup1";
642 reg = <0x00010000 0x00010000>;
643 };
644 partition@2 {
645 label = "QSPI.SPL.backup2";
646 reg = <0x00020000 0x00010000>;
647 };
648 partition@3 {
649 label = "QSPI.SPL.backup3";
650 reg = <0x00030000 0x00010000>;
651 };
652 partition@4 {
653 label = "QSPI.u-boot";
654 reg = <0x00040000 0x00100000>;
655 };
656 partition@5 {
657 label = "QSPI.u-boot-spl-os";
658 reg = <0x00140000 0x00080000>;
659 };
660 partition@6 {
661 label = "QSPI.u-boot-env";
662 reg = <0x001c0000 0x00010000>;
663 };
664 partition@7 {
665 label = "QSPI.u-boot-env.backup1";
666 reg = <0x001d0000 0x0010000>;
667 };
668 partition@8 {
669 label = "QSPI.kernel";
670 reg = <0x001e0000 0x0800000>;
671 };
672 partition@9 {
673 label = "QSPI.file-system";
674 reg = <0x009e0000 0x01620000>;
675 };
676 };
677};
Tomi Valkeinenfadf0d02015-02-12 09:55:46 +0200678
679&dss {
680 status = "ok";
681
682 vdda_video-supply = <&ldo5_reg>;
683};
684
685&hdmi {
686 status = "ok";
687 vdda-supply = <&ldo3_reg>;
688
689 pinctrl-names = "default";
690 pinctrl-0 = <&hdmi_pins>;
691
692 port {
693 hdmi_out: endpoint {
694 remote-endpoint = <&tpd12s015_in>;
695 };
696 };
697};