2 * Copyright (C) 2014 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 "dra72x.dtsi"
11 #include <dt-bindings/gpio/gpio.h>
15 compatible = "ti,dra72-evm", "ti,dra722", "ti,dra72", "ti,dra7";
18 device_type = "memory";
19 reg = <0x80000000 0x40000000>; /* 1024 MB */
26 evm_3v3: fixedregulator-evm_3v3 {
27 compatible = "regulator-fixed";
28 regulator-name = "evm_3v3";
29 regulator-min-microvolt = <3300000>;
30 regulator-max-microvolt = <3300000>;
33 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>;
39 gpio = <&pcf_gpio_21 5 GPIO_ACTIVE_HIGH>;
42 extcon_usb1: extcon_usb1 {
43 compatible = "linux,extcon-usb-gpio";
44 id-gpio = <&pcf_gpio_21 1 GPIO_ACTIVE_HIGH>;
47 extcon_usb2: extcon_usb2 {
48 compatible = "linux,extcon-usb-gpio";
49 id-gpio = <&pcf_gpio_21 2 GPIO_ACTIVE_HIGH>;
53 compatible = "hdmi-connector";
59 hdmi_connector_in: endpoint {
60 remote-endpoint = <&tpd12s015_out>;
66 compatible = "ti,tpd12s015";
68 pinctrl-names = "default";
69 pinctrl-0 = <&tpd12s015_pins>;
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 */
82 tpd12s015_in: endpoint {
83 remote-endpoint = <&hdmi_out>;
90 tpd12s015_out: endpoint {
91 remote-endpoint = <&hdmi_connector_in>;
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 */
106 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 */
113 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 */
140 usb1_pins: pinmux_usb1_pins {
141 pinctrl-single,pins = <
142 0x280 (PIN_INPUT_SLEW | MUX_MODE0) /* usb1_drvvbus */
146 usb2_pins: pinmux_usb2_pins {
147 pinctrl-single,pins = <
148 0x284 (PIN_INPUT_SLEW | MUX_MODE0) /* usb2_drvvbus */
152 tps65917_pins_default: tps65917_pins_default {
153 pinctrl-single,pins = <
154 0x424 (PIN_INPUT_PULLUP | MUX_MODE1) /* wakeup3.sys_nirq1 */
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 */
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 */
185 dcan1_pins_default: dcan1_pins_default {
186 pinctrl-single,pins = <
187 0x3d0 (PIN_OUTPUT_PULLUP | MUX_MODE0) /* dcan1_tx */
188 0x418 (PULL_UP | MUX_MODE1) /* wakeup0.dcan1_rx */
192 dcan1_pins_sleep: dcan1_pins_sleep {
193 pinctrl-single,pins = <
194 0x3d0 (MUX_MODE15 | PULL_UP) /* dcan1_tx.off */
195 0x418 (MUX_MODE15 | PULL_UP) /* wakeup0.off */
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 */
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 */
218 tpd12s015_pins: pinmux_tpd12s015_pins {
219 pinctrl-single,pins = <
220 0x3b8 (PIN_INPUT_PULLDOWN | MUX_MODE14) /* gpio7_12 HPD */
227 pinctrl-names = "default";
228 pinctrl-0 = <&i2c1_pins>;
229 clock-frequency = <400000>;
231 tps65917: tps65917@58 {
232 compatible = "ti,tps65917";
235 pinctrl-names = "default";
236 pinctrl-0 = <&tps65917_pins_default>;
238 interrupts = <GIC_SPI 2 IRQ_TYPE_NONE>; /* IRQ_SYS_1N */
239 interrupt-controller;
240 #interrupt-cells = <2>;
242 ti,system-power-controller;
245 compatible = "ti,tps65917-pmic";
250 regulator-name = "smps1";
251 regulator-min-microvolt = <850000>;
252 regulator-max-microvolt = <1250000>;
259 regulator-name = "smps2";
260 regulator-min-microvolt = <850000>;
261 regulator-max-microvolt = <1060000>;
267 /* VDD_GPU IVA DSPEVE */
268 regulator-name = "smps3";
269 regulator-min-microvolt = <850000>;
270 regulator-max-microvolt = <1250000>;
277 regulator-name = "smps4";
278 regulator-min-microvolt = <1800000>;
279 regulator-max-microvolt = <1800000>;
286 regulator-name = "smps5";
287 regulator-min-microvolt = <1350000>;
288 regulator-max-microvolt = <1350000>;
294 /* LDO1_OUT --> SDIO */
295 regulator-name = "ldo1";
296 regulator-min-microvolt = <1800000>;
297 regulator-max-microvolt = <3300000>;
302 /* LDO2_OUT --> TP1017 (UNUSED) */
303 regulator-name = "ldo2";
304 regulator-min-microvolt = <1800000>;
305 regulator-max-microvolt = <3300000>;
310 regulator-name = "ldo3";
311 regulator-min-microvolt = <1800000>;
312 regulator-max-microvolt = <1800000>;
319 regulator-name = "ldo5";
320 regulator-min-microvolt = <1800000>;
321 regulator-max-microvolt = <1800000>;
327 /* VDDA_3V_USB: VDDA_USBHS33 */
328 regulator-name = "ldo4";
329 regulator-min-microvolt = <3300000>;
330 regulator-max-microvolt = <3300000>;
336 tps65917_power_button {
337 compatible = "ti,palmas-pwrbutton";
338 interrupt-parent = <&tps65917>;
339 interrupts = <1 IRQ_TYPE_NONE>;
341 ti,palmas-long-press-seconds = <6>;
345 pcf_gpio_21: gpio@21 {
346 compatible = "ti,pcf8575";
348 lines-initial-states = <0x1408>;
351 interrupt-parent = <&gpio6>;
352 interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
353 interrupt-controller;
354 #interrupt-cells = <2>;
358 gpios = <4 GPIO_ACTIVE_HIGH>;
366 pinctrl-names = "default";
367 pinctrl-0 = <&i2c5_pins>;
368 clock-frequency = <400000>;
370 pcf_hdmi: pcf8575@26 {
371 compatible = "nxp,pcf8575";
376 * initial state is used here to keep the mdio interface
377 * selected on RU89 through SEL_VIN4_MUX_S0, VIN2_S1 and
378 * VIN2_S0 driven high otherwise Ethernet stops working
379 * VIN6_SEL_S0 is low, thus selecting McASP3 over VIN6
381 lines-initial-states = <0x0f2b>;
395 pinctrl-names = "default";
396 pinctrl-0 = <&nand_default>;
397 ranges = <0 0 0 0x01000000>; /* minimum GPMC partition = 16MB */
399 /* To use NAND, DIP switch SW5 must be set like so:
400 * SW5.1 (NAND_SELn) = ON (LOW)
401 * SW5.9 (GPMC_WPN) = OFF (HIGH)
403 reg = <0 0 4>; /* device IO registers */
404 ti,nand-ecc-opt = "bch8";
406 nand-bus-width = <16>;
407 gpmc,device-width = <2>;
408 gpmc,sync-clk-ps = <0>;
410 gpmc,cs-rd-off-ns = <80>;
411 gpmc,cs-wr-off-ns = <80>;
412 gpmc,adv-on-ns = <0>;
413 gpmc,adv-rd-off-ns = <60>;
414 gpmc,adv-wr-off-ns = <60>;
415 gpmc,we-on-ns = <10>;
416 gpmc,we-off-ns = <50>;
418 gpmc,oe-off-ns = <40>;
419 gpmc,access-ns = <40>;
420 gpmc,wr-access-ns = <80>;
421 gpmc,rd-cycle-ns = <80>;
422 gpmc,wr-cycle-ns = <80>;
423 gpmc,bus-turnaround-ns = <0>;
424 gpmc,cycle2cycle-delay-ns = <0>;
425 gpmc,clk-activation-ns = <0>;
426 gpmc,wait-monitoring-ns = <0>;
427 gpmc,wr-data-mux-bus-ns = <0>;
428 /* MTD partition table */
429 /* All SPL-* partitions are sized to minimal length
430 * which can be independently programmable. For
431 * NAND flash this is equal to size of erase-block */
432 #address-cells = <1>;
436 reg = <0x00000000 0x000020000>;
439 label = "NAND.SPL.backup1";
440 reg = <0x00020000 0x00020000>;
443 label = "NAND.SPL.backup2";
444 reg = <0x00040000 0x00020000>;
447 label = "NAND.SPL.backup3";
448 reg = <0x00060000 0x00020000>;
451 label = "NAND.u-boot-spl-os";
452 reg = <0x00080000 0x00040000>;
455 label = "NAND.u-boot";
456 reg = <0x000c0000 0x00100000>;
459 label = "NAND.u-boot-env";
460 reg = <0x001c0000 0x00020000>;
463 label = "NAND.u-boot-env.backup1";
464 reg = <0x001e0000 0x00020000>;
467 label = "NAND.kernel";
468 reg = <0x00200000 0x00800000>;
471 label = "NAND.file-system";
472 reg = <0x00a00000 0x0f600000>;
478 phy-supply = <&ldo4_reg>;
482 phy-supply = <&ldo4_reg>;
486 extcon = <&extcon_usb1>;
490 extcon = <&extcon_usb2>;
494 dr_mode = "peripheral";
495 pinctrl-names = "default";
496 pinctrl-0 = <&usb1_pins>;
501 pinctrl-names = "default";
502 pinctrl-0 = <&usb2_pins>;
507 pinctrl-names = "default";
508 pinctrl-0 = <&mmc1_pins_default>;
509 vmmc-supply = <&evm_3v3_sd>;
510 vmmc_aux-supply = <&ldo1_reg>;
513 * SDCD signal is not being used here - using the fact that GPIO mode
514 * is a viable alternative
516 cd-gpios = <&gpio6 27 0>;
520 /* SW5-3 in ON position */
522 pinctrl-names = "default";
523 pinctrl-0 = <&mmc2_pins_default>;
525 vmmc-supply = <&evm_3v3>;
531 cpsw_default: cpsw_default {
532 pinctrl-single,pins = <
534 0x198 (PIN_OUTPUT | MUX_MODE3) /* vin2a_d12.rgmii1_txc */
535 0x19c (PIN_OUTPUT | MUX_MODE3) /* vin2a_d13.rgmii1_tctl */
536 0x1a0 (PIN_OUTPUT | MUX_MODE3) /* vin2a_d14.rgmii1_td3 */
537 0x1a4 (PIN_OUTPUT | MUX_MODE3) /* vin2a_d15.rgmii1_td2 */
538 0x1a8 (PIN_OUTPUT | MUX_MODE3) /* vin2a_d16.rgmii1_td1 */
539 0x1ac (PIN_OUTPUT | MUX_MODE3) /* vin2a_d17.rgmii1_td0 */
540 0x1b0 (PIN_INPUT | MUX_MODE3) /* vin2a_d18.rgmii1_rclk */
541 0x1b4 (PIN_INPUT | MUX_MODE3) /* vin2a_d19.rgmii1_rctl */
542 0x1b8 (PIN_INPUT | MUX_MODE3) /* vin2a_d20.rgmii1_rd3 */
543 0x1bc (PIN_INPUT | MUX_MODE3) /* vin2a_d21.rgmii1_rd2 */
544 0x1c0 (PIN_INPUT | MUX_MODE3) /* vin2a_d22.rgmii1_rd1 */
545 0x1c4 (PIN_INPUT | MUX_MODE3) /* vin2a_d23.rgmii1_rd0 */
550 cpsw_sleep: cpsw_sleep {
551 pinctrl-single,pins = <
568 davinci_mdio_default: davinci_mdio_default {
569 pinctrl-single,pins = <
571 0x23c (PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_d.mdio_d */
572 0x240 (PIN_INPUT_PULLUP | MUX_MODE0) /* mdio_clk.mdio_clk */
576 davinci_mdio_sleep: davinci_mdio_sleep {
577 pinctrl-single,pins = <
586 pinctrl-names = "default", "sleep";
587 pinctrl-0 = <&cpsw_default>;
588 pinctrl-1 = <&cpsw_sleep>;
593 phy_id = <&davinci_mdio>, <3>;
598 pinctrl-names = "default", "sleep";
599 pinctrl-0 = <&davinci_mdio_default>;
600 pinctrl-1 = <&davinci_mdio_sleep>;
605 pinctrl-names = "default", "sleep";
606 pinctrl-0 = <&dcan1_pins_default>;
607 pinctrl-1 = <&dcan1_pins_sleep>;
612 pinctrl-names = "default";
613 pinctrl-0 = <&qspi1_pins>;
615 spi-max-frequency = <48000000>;
617 compatible = "s25fl256s1";
618 spi-max-frequency = <48000000>;
620 spi-tx-bus-width = <1>;
621 spi-rx-bus-width = <4>;
624 #address-cells = <1>;
627 /* MTD partition table.
628 * The ROM checks the first four physical blocks
629 * for a valid file to boot and the flash here is
634 reg = <0x00000000 0x000010000>;
637 label = "QSPI.SPL.backup1";
638 reg = <0x00010000 0x00010000>;
641 label = "QSPI.SPL.backup2";
642 reg = <0x00020000 0x00010000>;
645 label = "QSPI.SPL.backup3";
646 reg = <0x00030000 0x00010000>;
649 label = "QSPI.u-boot";
650 reg = <0x00040000 0x00100000>;
653 label = "QSPI.u-boot-spl-os";
654 reg = <0x00140000 0x00080000>;
657 label = "QSPI.u-boot-env";
658 reg = <0x001c0000 0x00010000>;
661 label = "QSPI.u-boot-env.backup1";
662 reg = <0x001d0000 0x0010000>;
665 label = "QSPI.kernel";
666 reg = <0x001e0000 0x0800000>;
669 label = "QSPI.file-system";
670 reg = <0x009e0000 0x01620000>;
678 vdda_video-supply = <&ldo5_reg>;
683 vdda-supply = <&ldo3_reg>;
685 pinctrl-names = "default";
686 pinctrl-0 = <&hdmi_pins>;
690 remote-endpoint = <&tpd12s015_in>;