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";
23 device_type = "memory";
24 reg = <0x80000000 0x60000000>; /* 1536 MB */
27 mmc2_3v3: fixedregulator-mmc2 {
28 compatible = "regulator-fixed";
29 regulator-name = "mmc2_3v3";
30 regulator-min-microvolt = <3300000>;
31 regulator-max-microvolt = <3300000>;
34 extcon_usb1: extcon_usb1 {
35 compatible = "linux,extcon-usb-gpio";
36 id-gpio = <&pcf_gpio_21 1 GPIO_ACTIVE_HIGH>;
39 extcon_usb2: extcon_usb2 {
40 compatible = "linux,extcon-usb-gpio";
41 id-gpio = <&pcf_gpio_21 2 GPIO_ACTIVE_HIGH>;
44 vtt_fixed: fixedregulator-vtt {
45 compatible = "regulator-fixed";
46 regulator-name = "vtt_fixed";
47 regulator-min-microvolt = <1350000>;
48 regulator-max-microvolt = <1350000>;
52 gpio = <&gpio7 11 GPIO_ACTIVE_HIGH>;
57 pinctrl-names = "default";
58 pinctrl-0 = <&vtt_pin>;
60 vtt_pin: pinmux_vtt_pin {
61 pinctrl-single,pins = <
62 0x3b4 (PIN_OUTPUT | MUX_MODE14) /* spi1_cs1.gpio7_11 */
66 i2c1_pins: pinmux_i2c1_pins {
67 pinctrl-single,pins = <
68 0x400 (PIN_INPUT | MUX_MODE0) /* i2c1_sda */
69 0x404 (PIN_INPUT | MUX_MODE0) /* i2c1_scl */
73 i2c2_pins: pinmux_i2c2_pins {
74 pinctrl-single,pins = <
75 0x408 (PIN_INPUT | MUX_MODE0) /* i2c2_sda */
76 0x40c (PIN_INPUT | MUX_MODE0) /* i2c2_scl */
80 i2c3_pins: pinmux_i2c3_pins {
81 pinctrl-single,pins = <
82 0x288 (PIN_INPUT | MUX_MODE9) /* gpio6_14.i2c3_sda */
83 0x28c (PIN_INPUT | MUX_MODE9) /* gpio6_15.i2c3_scl */
87 mcspi1_pins: pinmux_mcspi1_pins {
88 pinctrl-single,pins = <
89 0x3a4 (PIN_INPUT | MUX_MODE0) /* spi1_sclk */
90 0x3a8 (PIN_INPUT | MUX_MODE0) /* spi1_d1 */
91 0x3ac (PIN_INPUT | MUX_MODE0) /* spi1_d0 */
92 0x3b0 (PIN_INPUT_SLEW | MUX_MODE0) /* spi1_cs0 */
93 0x3b8 (PIN_INPUT_SLEW | MUX_MODE6) /* spi1_cs2.hdmi1_hpd */
94 0x3bc (PIN_INPUT_SLEW | MUX_MODE6) /* spi1_cs3.hdmi1_cec */
98 mcspi2_pins: pinmux_mcspi2_pins {
99 pinctrl-single,pins = <
100 0x3c0 (PIN_INPUT | MUX_MODE0) /* spi2_sclk */
101 0x3c4 (PIN_INPUT_SLEW | MUX_MODE0) /* spi2_d1 */
102 0x3c8 (PIN_INPUT_SLEW | MUX_MODE0) /* spi2_d1 */
103 0x3cc (PIN_INPUT_SLEW | MUX_MODE0) /* spi2_cs0 */
107 uart1_pins: pinmux_uart1_pins {
108 pinctrl-single,pins = <
109 0x3e0 (PIN_INPUT_SLEW | MUX_MODE0) /* uart1_rxd */
110 0x3e4 (PIN_INPUT_SLEW | MUX_MODE0) /* uart1_txd */
111 0x3e8 (PIN_INPUT | MUX_MODE3) /* uart1_ctsn */
112 0x3ec (PIN_INPUT | MUX_MODE3) /* uart1_rtsn */
116 uart2_pins: pinmux_uart2_pins {
117 pinctrl-single,pins = <
118 0x3f0 (PIN_INPUT | MUX_MODE0) /* uart2_rxd */
119 0x3f4 (PIN_INPUT | MUX_MODE0) /* uart2_txd */
120 0x3f8 (PIN_INPUT | MUX_MODE0) /* uart2_ctsn */
121 0x3fc (PIN_INPUT | MUX_MODE0) /* uart2_rtsn */
125 uart3_pins: pinmux_uart3_pins {
126 pinctrl-single,pins = <
127 0x248 (PIN_INPUT_SLEW | MUX_MODE0) /* uart3_rxd */
128 0x24c (PIN_INPUT_SLEW | MUX_MODE0) /* uart3_txd */
132 qspi1_pins: pinmux_qspi1_pins {
133 pinctrl-single,pins = <
134 0x4c (PIN_INPUT | MUX_MODE1) /* gpmc_a3.qspi1_cs2 */
135 0x50 (PIN_INPUT | MUX_MODE1) /* gpmc_a4.qspi1_cs3 */
136 0x74 (PIN_INPUT | MUX_MODE1) /* gpmc_a13.qspi1_rtclk */
137 0x78 (PIN_INPUT | MUX_MODE1) /* gpmc_a14.qspi1_d3 */
138 0x7c (PIN_INPUT | MUX_MODE1) /* gpmc_a15.qspi1_d2 */
139 0x80 (PIN_INPUT | MUX_MODE1) /* gpmc_a16.qspi1_d1 */
140 0x84 (PIN_INPUT | MUX_MODE1) /* gpmc_a17.qspi1_d0 */
141 0x88 (PIN_INPUT | MUX_MODE1) /* qpmc_a18.qspi1_sclk */
142 0xb8 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_cs2.qspi1_cs0 */
143 0xbc (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_cs3.qspi1_cs1 */
147 usb1_pins: pinmux_usb1_pins {
148 pinctrl-single,pins = <
149 0x280 (PIN_INPUT_SLEW | MUX_MODE0) /* usb1_drvvbus */
153 usb2_pins: pinmux_usb2_pins {
154 pinctrl-single,pins = <
155 0x284 (PIN_INPUT_SLEW | MUX_MODE0) /* usb2_drvvbus */
159 nand_flash_x16: nand_flash_x16 {
160 /* On DRA7 EVM, GPMC_WPN and NAND_BOOTn comes from DIP switch
161 * So NAND flash requires following switch settings:
162 * SW5.9 (GPMC_WPN) = LOW
163 * SW5.1 (NAND_BOOTn) = HIGH */
164 pinctrl-single,pins = <
165 0x0 (PIN_INPUT | MUX_MODE0) /* gpmc_ad0 */
166 0x4 (PIN_INPUT | MUX_MODE0) /* gpmc_ad1 */
167 0x8 (PIN_INPUT | MUX_MODE0) /* gpmc_ad2 */
168 0xc (PIN_INPUT | MUX_MODE0) /* gpmc_ad3 */
169 0x10 (PIN_INPUT | MUX_MODE0) /* gpmc_ad4 */
170 0x14 (PIN_INPUT | MUX_MODE0) /* gpmc_ad5 */
171 0x18 (PIN_INPUT | MUX_MODE0) /* gpmc_ad6 */
172 0x1c (PIN_INPUT | MUX_MODE0) /* gpmc_ad7 */
173 0x20 (PIN_INPUT | MUX_MODE0) /* gpmc_ad8 */
174 0x24 (PIN_INPUT | MUX_MODE0) /* gpmc_ad9 */
175 0x28 (PIN_INPUT | MUX_MODE0) /* gpmc_ad10 */
176 0x2c (PIN_INPUT | MUX_MODE0) /* gpmc_ad11 */
177 0x30 (PIN_INPUT | MUX_MODE0) /* gpmc_ad12 */
178 0x34 (PIN_INPUT | MUX_MODE0) /* gpmc_ad13 */
179 0x38 (PIN_INPUT | MUX_MODE0) /* gpmc_ad14 */
180 0x3c (PIN_INPUT | MUX_MODE0) /* gpmc_ad15 */
181 0xd8 (PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_wait0 */
182 0xcc (PIN_OUTPUT | MUX_MODE0) /* gpmc_wen */
183 0xb4 (PIN_OUTPUT_PULLUP | MUX_MODE0) /* gpmc_csn0 */
184 0xc4 (PIN_OUTPUT | MUX_MODE0) /* gpmc_advn_ale */
185 0xc8 (PIN_OUTPUT | MUX_MODE0) /* gpmc_oen_ren */
186 0xd0 (PIN_OUTPUT | MUX_MODE0) /* gpmc_be0n_cle */
190 cpsw_default: cpsw_default {
191 pinctrl-single,pins = <
193 0x250 (PIN_OUTPUT | MUX_MODE0) /* rgmii0_txc.rgmii0_txc */
194 0x254 (PIN_OUTPUT | MUX_MODE0) /* rgmii0_txctl.rgmii0_txctl */
195 0x258 (PIN_OUTPUT | MUX_MODE0) /* rgmii0_td3.rgmii0_txd3 */
196 0x25c (PIN_OUTPUT | MUX_MODE0) /* rgmii0_txd2.rgmii0_txd2 */
197 0x260 (PIN_OUTPUT | MUX_MODE0) /* rgmii0_txd1.rgmii0_txd1 */
198 0x264 (PIN_OUTPUT | MUX_MODE0) /* rgmii0_txd0.rgmii0_txd0 */
199 0x268 (PIN_INPUT | MUX_MODE0) /* rgmii0_rxc.rgmii0_rxc */
200 0x26c (PIN_INPUT | MUX_MODE0) /* rgmii0_rxctl.rgmii0_rxctl */
201 0x270 (PIN_INPUT | MUX_MODE0) /* rgmii0_rxd3.rgmii0_rxd3 */
202 0x274 (PIN_INPUT | MUX_MODE0) /* rgmii0_rxd2.rgmii0_rxd2 */
203 0x278 (PIN_INPUT | MUX_MODE0) /* rgmii0_rxd1.rgmii0_rxd1 */
204 0x27c (PIN_INPUT | MUX_MODE0) /* rgmii0_rxd0.rgmii0_rxd0 */
207 0x198 (PIN_OUTPUT | MUX_MODE3) /* vin2a_d12.rgmii1_txc */
208 0x19c (PIN_OUTPUT | MUX_MODE3) /* vin2a_d13.rgmii1_tctl */
209 0x1a0 (PIN_OUTPUT | MUX_MODE3) /* vin2a_d14.rgmii1_td3 */
210 0x1a4 (PIN_OUTPUT | MUX_MODE3) /* vin2a_d15.rgmii1_td2 */
211 0x1a8 (PIN_OUTPUT | MUX_MODE3) /* vin2a_d16.rgmii1_td1 */
212 0x1ac (PIN_OUTPUT | MUX_MODE3) /* vin2a_d17.rgmii1_td0 */
213 0x1b0 (PIN_INPUT | MUX_MODE3) /* vin2a_d18.rgmii1_rclk */
214 0x1b4 (PIN_INPUT | MUX_MODE3) /* vin2a_d19.rgmii1_rctl */
215 0x1b8 (PIN_INPUT | MUX_MODE3) /* vin2a_d20.rgmii1_rd3 */
216 0x1bc (PIN_INPUT | MUX_MODE3) /* vin2a_d21.rgmii1_rd2 */
217 0x1c0 (PIN_INPUT | MUX_MODE3) /* vin2a_d22.rgmii1_rd1 */
218 0x1c4 (PIN_INPUT | MUX_MODE3) /* vin2a_d23.rgmii1_rd0 */
223 cpsw_sleep: cpsw_sleep {
224 pinctrl-single,pins = <
255 davinci_mdio_default: davinci_mdio_default {
256 pinctrl-single,pins = <
257 0x23c (PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_d.mdio_d */
258 0x240 (PIN_INPUT_PULLUP | MUX_MODE0) /* mdio_clk.mdio_clk */
262 davinci_mdio_sleep: davinci_mdio_sleep {
263 pinctrl-single,pins = <
269 dcan1_pins_default: dcan1_pins_default {
270 pinctrl-single,pins = <
271 0x3d0 (PIN_OUTPUT_PULLUP | MUX_MODE0) /* dcan1_tx */
272 0x418 (PULL_UP | MUX_MODE1) /* wakeup0.dcan1_rx */
276 dcan1_pins_sleep: dcan1_pins_sleep {
277 pinctrl-single,pins = <
278 0x3d0 (MUX_MODE15 | PULL_UP) /* dcan1_tx.off */
279 0x418 (MUX_MODE15 | PULL_UP) /* wakeup0.off */
286 pinctrl-names = "default";
287 pinctrl-0 = <&i2c1_pins>;
288 clock-frequency = <400000>;
290 tps659038: tps659038@58 {
291 compatible = "ti,tps659038";
295 compatible = "ti,tps659038-pmic";
298 smps123_reg: smps123 {
300 regulator-name = "smps123";
301 regulator-min-microvolt = < 850000>;
302 regulator-max-microvolt = <1250000>;
309 regulator-name = "smps45";
310 regulator-min-microvolt = < 850000>;
311 regulator-max-microvolt = <1150000>;
317 /* VDD_GPU - over VDD_SMPS6 */
318 regulator-name = "smps6";
319 regulator-min-microvolt = <850000>;
320 regulator-max-microvolt = <1250000>;
327 regulator-name = "smps7";
328 regulator-min-microvolt = <850000>;
329 regulator-max-microvolt = <1060000>;
336 regulator-name = "smps8";
337 regulator-min-microvolt = < 850000>;
338 regulator-max-microvolt = <1250000>;
345 regulator-name = "smps9";
346 regulator-min-microvolt = <1800000>;
347 regulator-max-microvolt = <1800000>;
353 /* LDO1_OUT --> SDIO */
354 regulator-name = "ldo1";
355 regulator-min-microvolt = <1800000>;
356 regulator-max-microvolt = <3300000>;
362 /* LDO2 -> VDDSHV5, LDO2 also goes to CAN_PHY_3V3 */
363 regulator-name = "ldo2";
364 regulator-min-microvolt = <3300000>;
365 regulator-max-microvolt = <3300000>;
372 regulator-name = "ldo3";
373 regulator-min-microvolt = <1800000>;
374 regulator-max-microvolt = <1800000>;
381 regulator-name = "ldo9";
382 regulator-min-microvolt = <1050000>;
383 regulator-max-microvolt = <1050000>;
390 regulator-name = "ldoln";
391 regulator-min-microvolt = <1800000>;
392 regulator-max-microvolt = <1800000>;
398 /* VDDA_3V_USB: VDDA_USBHS33 */
399 regulator-name = "ldousb";
400 regulator-min-microvolt = <3300000>;
401 regulator-max-microvolt = <3300000>;
408 pcf_gpio_21: gpio@21 {
409 compatible = "ti,pcf8575";
411 lines-initial-states = <0x1408>;
414 interrupt-parent = <&gpio6>;
415 interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
416 interrupt-controller;
417 #interrupt-cells = <2>;
424 pinctrl-names = "default";
425 pinctrl-0 = <&i2c2_pins>;
426 clock-frequency = <400000>;
431 pinctrl-names = "default";
432 pinctrl-0 = <&i2c3_pins>;
433 clock-frequency = <400000>;
438 pinctrl-names = "default";
439 pinctrl-0 = <&mcspi1_pins>;
444 pinctrl-names = "default";
445 pinctrl-0 = <&mcspi2_pins>;
450 pinctrl-names = "default";
451 pinctrl-0 = <&uart1_pins>;
452 interrupts-extended = <&crossbar_mpu GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
453 <&dra7_pmx_core 0x3e0>;
458 pinctrl-names = "default";
459 pinctrl-0 = <&uart2_pins>;
464 pinctrl-names = "default";
465 pinctrl-0 = <&uart3_pins>;
470 vmmc-supply = <&ldo1_reg>;
473 * SDCD signal is not being used here - using the fact that GPIO mode
474 * is always hardwired.
476 cd-gpios = <&gpio6 27 GPIO_ACTIVE_LOW>;
481 vmmc-supply = <&mmc2_3v3>;
486 cpu0-supply = <&smps123_reg>;
491 pinctrl-names = "default";
492 pinctrl-0 = <&qspi1_pins>;
494 spi-max-frequency = <48000000>;
496 compatible = "s25fl256s1","spi-flash";
497 spi-max-frequency = <48000000>;
499 spi-tx-bus-width = <1>;
500 spi-rx-bus-width = <4>;
503 #address-cells = <1>;
506 /* MTD partition table.
507 * The ROM checks the first four physical blocks
508 * for a valid file to boot and the flash here is
513 reg = <0x00000000 0x000010000>;
516 label = "QSPI.SPL.backup1";
517 reg = <0x00010000 0x00010000>;
520 label = "QSPI.SPL.backup2";
521 reg = <0x00020000 0x00010000>;
524 label = "QSPI.SPL.backup3";
525 reg = <0x00030000 0x00010000>;
528 label = "QSPI.u-boot";
529 reg = <0x00040000 0x00100000>;
532 label = "QSPI.u-boot-spl-os";
533 reg = <0x00140000 0x00080000>;
536 label = "QSPI.u-boot-env";
537 reg = <0x001c0000 0x00010000>;
540 label = "QSPI.u-boot-env.backup1";
541 reg = <0x001d0000 0x0010000>;
544 label = "QSPI.kernel";
545 reg = <0x001e0000 0x0800000>;
548 label = "QSPI.file-system";
549 reg = <0x009e0000 0x01620000>;
555 extcon = <&extcon_usb1>;
559 extcon = <&extcon_usb2>;
563 dr_mode = "peripheral";
564 pinctrl-names = "default";
565 pinctrl-0 = <&usb1_pins>;
570 pinctrl-names = "default";
571 pinctrl-0 = <&usb2_pins>;
580 pinctrl-names = "default";
581 pinctrl-0 = <&nand_flash_x16>;
582 ranges = <0 0 0 0x01000000>; /* minimum GPMC partition = 16MB */
584 reg = <0 0 4>; /* device IO registers */
585 ti,nand-ecc-opt = "bch8";
587 nand-bus-width = <16>;
588 gpmc,device-width = <2>;
589 gpmc,sync-clk-ps = <0>;
591 gpmc,cs-rd-off-ns = <80>;
592 gpmc,cs-wr-off-ns = <80>;
593 gpmc,adv-on-ns = <0>;
594 gpmc,adv-rd-off-ns = <60>;
595 gpmc,adv-wr-off-ns = <60>;
596 gpmc,we-on-ns = <10>;
597 gpmc,we-off-ns = <50>;
599 gpmc,oe-off-ns = <40>;
600 gpmc,access-ns = <40>;
601 gpmc,wr-access-ns = <80>;
602 gpmc,rd-cycle-ns = <80>;
603 gpmc,wr-cycle-ns = <80>;
604 gpmc,bus-turnaround-ns = <0>;
605 gpmc,cycle2cycle-delay-ns = <0>;
606 gpmc,clk-activation-ns = <0>;
607 gpmc,wait-monitoring-ns = <0>;
608 gpmc,wr-data-mux-bus-ns = <0>;
609 /* MTD partition table */
610 /* All SPL-* partitions are sized to minimal length
611 * which can be independently programmable. For
612 * NAND flash this is equal to size of erase-block */
613 #address-cells = <1>;
617 reg = <0x00000000 0x000020000>;
620 label = "NAND.SPL.backup1";
621 reg = <0x00020000 0x00020000>;
624 label = "NAND.SPL.backup2";
625 reg = <0x00040000 0x00020000>;
628 label = "NAND.SPL.backup3";
629 reg = <0x00060000 0x00020000>;
632 label = "NAND.u-boot-spl-os";
633 reg = <0x00080000 0x00040000>;
636 label = "NAND.u-boot";
637 reg = <0x000c0000 0x00100000>;
640 label = "NAND.u-boot-env";
641 reg = <0x001c0000 0x00020000>;
644 label = "NAND.u-boot-env.backup1";
645 reg = <0x001e0000 0x00020000>;
648 label = "NAND.kernel";
649 reg = <0x00200000 0x00800000>;
652 label = "NAND.file-system";
653 reg = <0x00a00000 0x0f600000>;
659 phy-supply = <&ldousb_reg>;
663 phy-supply = <&ldousb_reg>;
673 pinctrl-names = "default", "sleep";
674 pinctrl-0 = <&cpsw_default>;
675 pinctrl-1 = <&cpsw_sleep>;
680 phy_id = <&davinci_mdio>, <2>;
682 dual_emac_res_vlan = <1>;
686 phy_id = <&davinci_mdio>, <3>;
688 dual_emac_res_vlan = <2>;
692 pinctrl-names = "default", "sleep";
693 pinctrl-0 = <&davinci_mdio_default>;
694 pinctrl-1 = <&davinci_mdio_sleep>;
699 pinctrl-names = "default", "sleep", "active";
700 pinctrl-0 = <&dcan1_pins_sleep>;
701 pinctrl-1 = <&dcan1_pins_sleep>;
702 pinctrl-2 = <&dcan1_pins_default>;