2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
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.
10 #include "dra74x.dtsi"
11 #include <dt-bindings/gpio/gpio.h>
15 compatible = "ti,dra7-evm", "ti,dra742", "ti,dra74", "ti,dra7";
18 device_type = "memory";
19 reg = <0x80000000 0x60000000>; /* 1536 MB */
22 evm_3v3_sd: fixedregulator-sd {
23 compatible = "regulator-fixed";
24 regulator-name = "evm_3v3_sd";
25 regulator-min-microvolt = <3300000>;
26 regulator-max-microvolt = <3300000>;
28 gpio = <&pcf_gpio_21 5 GPIO_ACTIVE_HIGH>;
31 mmc2_3v3: fixedregulator-mmc2 {
32 compatible = "regulator-fixed";
33 regulator-name = "mmc2_3v3";
34 regulator-min-microvolt = <3300000>;
35 regulator-max-microvolt = <3300000>;
38 extcon_usb1: extcon_usb1 {
39 compatible = "linux,extcon-usb-gpio";
40 id-gpio = <&pcf_gpio_21 1 GPIO_ACTIVE_HIGH>;
43 extcon_usb2: extcon_usb2 {
44 compatible = "linux,extcon-usb-gpio";
45 id-gpio = <&pcf_gpio_21 2 GPIO_ACTIVE_HIGH>;
48 vtt_fixed: fixedregulator-vtt {
49 compatible = "regulator-fixed";
50 regulator-name = "vtt_fixed";
51 regulator-min-microvolt = <1350000>;
52 regulator-max-microvolt = <1350000>;
56 gpio = <&gpio7 11 GPIO_ACTIVE_HIGH>;
61 pinctrl-names = "default";
62 pinctrl-0 = <&vtt_pin>;
64 vtt_pin: pinmux_vtt_pin {
65 pinctrl-single,pins = <
66 0x3b4 (PIN_OUTPUT | MUX_MODE14) /* spi1_cs1.gpio7_11 */
70 i2c1_pins: pinmux_i2c1_pins {
71 pinctrl-single,pins = <
72 0x400 (PIN_INPUT | MUX_MODE0) /* i2c1_sda */
73 0x404 (PIN_INPUT | MUX_MODE0) /* i2c1_scl */
77 i2c2_pins: pinmux_i2c2_pins {
78 pinctrl-single,pins = <
79 0x408 (PIN_INPUT | MUX_MODE0) /* i2c2_sda */
80 0x40c (PIN_INPUT | MUX_MODE0) /* i2c2_scl */
84 i2c3_pins: pinmux_i2c3_pins {
85 pinctrl-single,pins = <
86 0x288 (PIN_INPUT | MUX_MODE9) /* gpio6_14.i2c3_sda */
87 0x28c (PIN_INPUT | MUX_MODE9) /* gpio6_15.i2c3_scl */
91 mcspi1_pins: pinmux_mcspi1_pins {
92 pinctrl-single,pins = <
93 0x3a4 (PIN_INPUT | MUX_MODE0) /* spi1_sclk */
94 0x3a8 (PIN_INPUT | MUX_MODE0) /* spi1_d1 */
95 0x3ac (PIN_INPUT | MUX_MODE0) /* spi1_d0 */
96 0x3b0 (PIN_INPUT_SLEW | MUX_MODE0) /* spi1_cs0 */
97 0x3b8 (PIN_INPUT_SLEW | MUX_MODE6) /* spi1_cs2.hdmi1_hpd */
98 0x3bc (PIN_INPUT_SLEW | MUX_MODE6) /* spi1_cs3.hdmi1_cec */
102 mcspi2_pins: pinmux_mcspi2_pins {
103 pinctrl-single,pins = <
104 0x3c0 (PIN_INPUT | MUX_MODE0) /* spi2_sclk */
105 0x3c4 (PIN_INPUT_SLEW | MUX_MODE0) /* spi2_d1 */
106 0x3c8 (PIN_INPUT_SLEW | MUX_MODE0) /* spi2_d1 */
107 0x3cc (PIN_INPUT_SLEW | MUX_MODE0) /* spi2_cs0 */
111 uart1_pins: pinmux_uart1_pins {
112 pinctrl-single,pins = <
113 0x3e0 (PIN_INPUT_SLEW | MUX_MODE0) /* uart1_rxd */
114 0x3e4 (PIN_INPUT_SLEW | MUX_MODE0) /* uart1_txd */
115 0x3e8 (PIN_INPUT | MUX_MODE3) /* uart1_ctsn */
116 0x3ec (PIN_INPUT | MUX_MODE3) /* uart1_rtsn */
120 uart2_pins: pinmux_uart2_pins {
121 pinctrl-single,pins = <
122 0x3f0 (PIN_INPUT | MUX_MODE0) /* uart2_rxd */
123 0x3f4 (PIN_INPUT | MUX_MODE0) /* uart2_txd */
124 0x3f8 (PIN_INPUT | MUX_MODE0) /* uart2_ctsn */
125 0x3fc (PIN_INPUT | MUX_MODE0) /* uart2_rtsn */
129 uart3_pins: pinmux_uart3_pins {
130 pinctrl-single,pins = <
131 0x248 (PIN_INPUT_SLEW | MUX_MODE0) /* uart3_rxd */
132 0x24c (PIN_INPUT_SLEW | MUX_MODE0) /* uart3_txd */
136 qspi1_pins: pinmux_qspi1_pins {
137 pinctrl-single,pins = <
138 0x4c (PIN_INPUT | MUX_MODE1) /* gpmc_a3.qspi1_cs2 */
139 0x50 (PIN_INPUT | MUX_MODE1) /* gpmc_a4.qspi1_cs3 */
140 0x74 (PIN_INPUT | MUX_MODE1) /* gpmc_a13.qspi1_rtclk */
141 0x78 (PIN_INPUT | MUX_MODE1) /* gpmc_a14.qspi1_d3 */
142 0x7c (PIN_INPUT | MUX_MODE1) /* gpmc_a15.qspi1_d2 */
143 0x80 (PIN_INPUT | MUX_MODE1) /* gpmc_a16.qspi1_d1 */
144 0x84 (PIN_INPUT | MUX_MODE1) /* gpmc_a17.qspi1_d0 */
145 0x88 (PIN_INPUT | MUX_MODE1) /* qpmc_a18.qspi1_sclk */
146 0xb8 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_cs2.qspi1_cs0 */
147 0xbc (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_cs3.qspi1_cs1 */
151 usb1_pins: pinmux_usb1_pins {
152 pinctrl-single,pins = <
153 0x280 (PIN_INPUT_SLEW | MUX_MODE0) /* usb1_drvvbus */
157 usb2_pins: pinmux_usb2_pins {
158 pinctrl-single,pins = <
159 0x284 (PIN_INPUT_SLEW | MUX_MODE0) /* usb2_drvvbus */
163 nand_flash_x16: nand_flash_x16 {
164 /* On DRA7 EVM, GPMC_WPN and NAND_BOOTn comes from DIP switch
165 * So NAND flash requires following switch settings:
166 * SW5.9 (GPMC_WPN) = LOW
167 * SW5.1 (NAND_BOOTn) = HIGH */
168 pinctrl-single,pins = <
169 0x0 (PIN_INPUT | MUX_MODE0) /* gpmc_ad0 */
170 0x4 (PIN_INPUT | MUX_MODE0) /* gpmc_ad1 */
171 0x8 (PIN_INPUT | MUX_MODE0) /* gpmc_ad2 */
172 0xc (PIN_INPUT | MUX_MODE0) /* gpmc_ad3 */
173 0x10 (PIN_INPUT | MUX_MODE0) /* gpmc_ad4 */
174 0x14 (PIN_INPUT | MUX_MODE0) /* gpmc_ad5 */
175 0x18 (PIN_INPUT | MUX_MODE0) /* gpmc_ad6 */
176 0x1c (PIN_INPUT | MUX_MODE0) /* gpmc_ad7 */
177 0x20 (PIN_INPUT | MUX_MODE0) /* gpmc_ad8 */
178 0x24 (PIN_INPUT | MUX_MODE0) /* gpmc_ad9 */
179 0x28 (PIN_INPUT | MUX_MODE0) /* gpmc_ad10 */
180 0x2c (PIN_INPUT | MUX_MODE0) /* gpmc_ad11 */
181 0x30 (PIN_INPUT | MUX_MODE0) /* gpmc_ad12 */
182 0x34 (PIN_INPUT | MUX_MODE0) /* gpmc_ad13 */
183 0x38 (PIN_INPUT | MUX_MODE0) /* gpmc_ad14 */
184 0x3c (PIN_INPUT | MUX_MODE0) /* gpmc_ad15 */
185 0xd8 (PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_wait0 */
186 0xcc (PIN_OUTPUT | MUX_MODE0) /* gpmc_wen */
187 0xb4 (PIN_OUTPUT_PULLUP | MUX_MODE0) /* gpmc_csn0 */
188 0xc4 (PIN_OUTPUT | MUX_MODE0) /* gpmc_advn_ale */
189 0xc8 (PIN_OUTPUT | MUX_MODE0) /* gpmc_oen_ren */
190 0xd0 (PIN_OUTPUT | MUX_MODE0) /* gpmc_be0n_cle */
194 cpsw_default: cpsw_default {
195 pinctrl-single,pins = <
197 0x250 (PIN_OUTPUT | MUX_MODE0) /* rgmii0_txc.rgmii0_txc */
198 0x254 (PIN_OUTPUT | MUX_MODE0) /* rgmii0_txctl.rgmii0_txctl */
199 0x258 (PIN_OUTPUT | MUX_MODE0) /* rgmii0_td3.rgmii0_txd3 */
200 0x25c (PIN_OUTPUT | MUX_MODE0) /* rgmii0_txd2.rgmii0_txd2 */
201 0x260 (PIN_OUTPUT | MUX_MODE0) /* rgmii0_txd1.rgmii0_txd1 */
202 0x264 (PIN_OUTPUT | MUX_MODE0) /* rgmii0_txd0.rgmii0_txd0 */
203 0x268 (PIN_INPUT | MUX_MODE0) /* rgmii0_rxc.rgmii0_rxc */
204 0x26c (PIN_INPUT | MUX_MODE0) /* rgmii0_rxctl.rgmii0_rxctl */
205 0x270 (PIN_INPUT | MUX_MODE0) /* rgmii0_rxd3.rgmii0_rxd3 */
206 0x274 (PIN_INPUT | MUX_MODE0) /* rgmii0_rxd2.rgmii0_rxd2 */
207 0x278 (PIN_INPUT | MUX_MODE0) /* rgmii0_rxd1.rgmii0_rxd1 */
208 0x27c (PIN_INPUT | MUX_MODE0) /* rgmii0_rxd0.rgmii0_rxd0 */
211 0x198 (PIN_OUTPUT | MUX_MODE3) /* vin2a_d12.rgmii1_txc */
212 0x19c (PIN_OUTPUT | MUX_MODE3) /* vin2a_d13.rgmii1_tctl */
213 0x1a0 (PIN_OUTPUT | MUX_MODE3) /* vin2a_d14.rgmii1_td3 */
214 0x1a4 (PIN_OUTPUT | MUX_MODE3) /* vin2a_d15.rgmii1_td2 */
215 0x1a8 (PIN_OUTPUT | MUX_MODE3) /* vin2a_d16.rgmii1_td1 */
216 0x1ac (PIN_OUTPUT | MUX_MODE3) /* vin2a_d17.rgmii1_td0 */
217 0x1b0 (PIN_INPUT | MUX_MODE3) /* vin2a_d18.rgmii1_rclk */
218 0x1b4 (PIN_INPUT | MUX_MODE3) /* vin2a_d19.rgmii1_rctl */
219 0x1b8 (PIN_INPUT | MUX_MODE3) /* vin2a_d20.rgmii1_rd3 */
220 0x1bc (PIN_INPUT | MUX_MODE3) /* vin2a_d21.rgmii1_rd2 */
221 0x1c0 (PIN_INPUT | MUX_MODE3) /* vin2a_d22.rgmii1_rd1 */
222 0x1c4 (PIN_INPUT | MUX_MODE3) /* vin2a_d23.rgmii1_rd0 */
227 cpsw_sleep: cpsw_sleep {
228 pinctrl-single,pins = <
259 davinci_mdio_default: davinci_mdio_default {
260 pinctrl-single,pins = <
261 0x23c (PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_d.mdio_d */
262 0x240 (PIN_INPUT_PULLUP | MUX_MODE0) /* mdio_clk.mdio_clk */
266 davinci_mdio_sleep: davinci_mdio_sleep {
267 pinctrl-single,pins = <
273 dcan1_pins_default: dcan1_pins_default {
274 pinctrl-single,pins = <
275 0x3d0 (PIN_OUTPUT_PULLUP | MUX_MODE0) /* dcan1_tx */
276 0x418 (PULL_UP | MUX_MODE1) /* wakeup0.dcan1_rx */
280 dcan1_pins_sleep: dcan1_pins_sleep {
281 pinctrl-single,pins = <
282 0x3d0 (MUX_MODE15 | PULL_UP) /* dcan1_tx.off */
283 0x418 (MUX_MODE15 | PULL_UP) /* wakeup0.off */
290 pinctrl-names = "default";
291 pinctrl-0 = <&i2c1_pins>;
292 clock-frequency = <400000>;
294 tps659038: tps659038@58 {
295 compatible = "ti,tps659038";
299 compatible = "ti,tps659038-pmic";
302 smps123_reg: smps123 {
304 regulator-name = "smps123";
305 regulator-min-microvolt = < 850000>;
306 regulator-max-microvolt = <1250000>;
313 regulator-name = "smps45";
314 regulator-min-microvolt = < 850000>;
315 regulator-max-microvolt = <1150000>;
321 /* VDD_GPU - over VDD_SMPS6 */
322 regulator-name = "smps6";
323 regulator-min-microvolt = <850000>;
324 regulator-max-microvolt = <1250000>;
331 regulator-name = "smps7";
332 regulator-min-microvolt = <850000>;
333 regulator-max-microvolt = <1060000>;
340 regulator-name = "smps8";
341 regulator-min-microvolt = < 850000>;
342 regulator-max-microvolt = <1250000>;
349 regulator-name = "smps9";
350 regulator-min-microvolt = <1800000>;
351 regulator-max-microvolt = <1800000>;
357 /* LDO1_OUT --> SDIO */
358 regulator-name = "ldo1";
359 regulator-min-microvolt = <1800000>;
360 regulator-max-microvolt = <3300000>;
367 /* LDO2 -> VDDSHV5, LDO2 also goes to CAN_PHY_3V3 */
368 regulator-name = "ldo2";
369 regulator-min-microvolt = <3300000>;
370 regulator-max-microvolt = <3300000>;
377 regulator-name = "ldo3";
378 regulator-min-microvolt = <1800000>;
379 regulator-max-microvolt = <1800000>;
386 regulator-name = "ldo9";
387 regulator-min-microvolt = <1050000>;
388 regulator-max-microvolt = <1050000>;
395 regulator-name = "ldoln";
396 regulator-min-microvolt = <1800000>;
397 regulator-max-microvolt = <1800000>;
403 /* VDDA_3V_USB: VDDA_USBHS33 */
404 regulator-name = "ldousb";
405 regulator-min-microvolt = <3300000>;
406 regulator-max-microvolt = <3300000>;
413 pcf_gpio_21: gpio@21 {
414 compatible = "ti,pcf8575";
416 lines-initial-states = <0x1408>;
419 interrupt-parent = <&gpio6>;
420 interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
421 interrupt-controller;
422 #interrupt-cells = <2>;
429 pinctrl-names = "default";
430 pinctrl-0 = <&i2c2_pins>;
431 clock-frequency = <400000>;
436 pinctrl-names = "default";
437 pinctrl-0 = <&i2c3_pins>;
438 clock-frequency = <400000>;
443 pinctrl-names = "default";
444 pinctrl-0 = <&mcspi1_pins>;
449 pinctrl-names = "default";
450 pinctrl-0 = <&mcspi2_pins>;
455 pinctrl-names = "default";
456 pinctrl-0 = <&uart1_pins>;
457 interrupts-extended = <&crossbar_mpu GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
458 <&dra7_pmx_core 0x3e0>;
463 pinctrl-names = "default";
464 pinctrl-0 = <&uart2_pins>;
469 pinctrl-names = "default";
470 pinctrl-0 = <&uart3_pins>;
475 vmmc-supply = <&evm_3v3_sd>;
476 vmmc_aux-supply = <&ldo1_reg>;
479 * SDCD signal is not being used here - using the fact that GPIO mode
480 * is always hardwired.
482 cd-gpios = <&gpio6 27 0>;
487 vmmc-supply = <&mmc2_3v3>;
492 cpu0-supply = <&smps123_reg>;
497 pinctrl-names = "default";
498 pinctrl-0 = <&qspi1_pins>;
500 spi-max-frequency = <48000000>;
502 compatible = "s25fl256s1";
503 spi-max-frequency = <48000000>;
505 spi-tx-bus-width = <1>;
506 spi-rx-bus-width = <4>;
509 #address-cells = <1>;
512 /* MTD partition table.
513 * The ROM checks the first four physical blocks
514 * for a valid file to boot and the flash here is
519 reg = <0x00000000 0x000010000>;
522 label = "QSPI.SPL.backup1";
523 reg = <0x00010000 0x00010000>;
526 label = "QSPI.SPL.backup2";
527 reg = <0x00020000 0x00010000>;
530 label = "QSPI.SPL.backup3";
531 reg = <0x00030000 0x00010000>;
534 label = "QSPI.u-boot";
535 reg = <0x00040000 0x00100000>;
538 label = "QSPI.u-boot-spl-os";
539 reg = <0x00140000 0x00080000>;
542 label = "QSPI.u-boot-env";
543 reg = <0x001c0000 0x00010000>;
546 label = "QSPI.u-boot-env.backup1";
547 reg = <0x001d0000 0x0010000>;
550 label = "QSPI.kernel";
551 reg = <0x001e0000 0x0800000>;
554 label = "QSPI.file-system";
555 reg = <0x009e0000 0x01620000>;
561 extcon = <&extcon_usb1>;
565 extcon = <&extcon_usb2>;
569 dr_mode = "peripheral";
570 pinctrl-names = "default";
571 pinctrl-0 = <&usb1_pins>;
576 pinctrl-names = "default";
577 pinctrl-0 = <&usb2_pins>;
586 pinctrl-names = "default";
587 pinctrl-0 = <&nand_flash_x16>;
588 ranges = <0 0 0 0x01000000>; /* minimum GPMC partition = 16MB */
590 reg = <0 0 4>; /* device IO registers */
591 ti,nand-ecc-opt = "bch8";
593 nand-bus-width = <16>;
594 gpmc,device-width = <2>;
595 gpmc,sync-clk-ps = <0>;
597 gpmc,cs-rd-off-ns = <80>;
598 gpmc,cs-wr-off-ns = <80>;
599 gpmc,adv-on-ns = <0>;
600 gpmc,adv-rd-off-ns = <60>;
601 gpmc,adv-wr-off-ns = <60>;
602 gpmc,we-on-ns = <10>;
603 gpmc,we-off-ns = <50>;
605 gpmc,oe-off-ns = <40>;
606 gpmc,access-ns = <40>;
607 gpmc,wr-access-ns = <80>;
608 gpmc,rd-cycle-ns = <80>;
609 gpmc,wr-cycle-ns = <80>;
610 gpmc,bus-turnaround-ns = <0>;
611 gpmc,cycle2cycle-delay-ns = <0>;
612 gpmc,clk-activation-ns = <0>;
613 gpmc,wait-monitoring-ns = <0>;
614 gpmc,wr-data-mux-bus-ns = <0>;
615 /* MTD partition table */
616 /* All SPL-* partitions are sized to minimal length
617 * which can be independently programmable. For
618 * NAND flash this is equal to size of erase-block */
619 #address-cells = <1>;
623 reg = <0x00000000 0x000020000>;
626 label = "NAND.SPL.backup1";
627 reg = <0x00020000 0x00020000>;
630 label = "NAND.SPL.backup2";
631 reg = <0x00040000 0x00020000>;
634 label = "NAND.SPL.backup3";
635 reg = <0x00060000 0x00020000>;
638 label = "NAND.u-boot-spl-os";
639 reg = <0x00080000 0x00040000>;
642 label = "NAND.u-boot";
643 reg = <0x000c0000 0x00100000>;
646 label = "NAND.u-boot-env";
647 reg = <0x001c0000 0x00020000>;
650 label = "NAND.u-boot-env.backup1";
651 reg = <0x001e0000 0x00020000>;
654 label = "NAND.kernel";
655 reg = <0x00200000 0x00800000>;
658 label = "NAND.file-system";
659 reg = <0x00a00000 0x0f600000>;
665 phy-supply = <&ldousb_reg>;
669 phy-supply = <&ldousb_reg>;
679 pinctrl-names = "default", "sleep";
680 pinctrl-0 = <&cpsw_default>;
681 pinctrl-1 = <&cpsw_sleep>;
686 phy_id = <&davinci_mdio>, <2>;
688 dual_emac_res_vlan = <1>;
692 phy_id = <&davinci_mdio>, <3>;
694 dual_emac_res_vlan = <2>;
698 pinctrl-names = "default", "sleep";
699 pinctrl-0 = <&davinci_mdio_default>;
700 pinctrl-1 = <&davinci_mdio_sleep>;
705 pinctrl-names = "default", "sleep", "active";
706 pinctrl-0 = <&dcan1_pins_sleep>;
707 pinctrl-1 = <&dcan1_pins_sleep>;
708 pinctrl-2 = <&dcan1_pins_default>;