1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2014-2016 Texas Instruments Incorporated - https://www.ti.com/
8 #include "dra7-ipu-dsp-common.dtsi"
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/clock/ti-dra7-atl.h>
13 compatible = "ti,dra72-evm", "ti,dra722", "ti,dra72", "ti,dra7";
23 evm_12v0: fixedregulator-evm12v0 {
25 compatible = "regulator-fixed";
26 regulator-name = "evm_12v0";
27 regulator-min-microvolt = <12000000>;
28 regulator-max-microvolt = <12000000>;
33 evm_5v0: fixedregulator-evm5v0 {
34 /* Output 1 of TPS43351QDAPRQ1 on dra72-evm */
35 /* Output 1 of LM5140QRWGTQ1 on dra71-evm */
36 compatible = "regulator-fixed";
37 regulator-name = "evm_5v0";
38 regulator-min-microvolt = <5000000>;
39 regulator-max-microvolt = <5000000>;
40 vin-supply = <&evm_12v0>;
45 evm_3v6: fixedregulator-evm_3v6 {
46 compatible = "regulator-fixed";
47 regulator-name = "evm_3v6";
48 regulator-min-microvolt = <3600000>;
49 regulator-max-microvolt = <3600000>;
50 vin-supply = <&evm_5v0>;
55 vsys_3v3: fixedregulator-vsys3v3 {
56 /* Output 2 of TPS43351QDAPRQ1 on dra72-evm */
57 /* Output 2 of LM5140QRWGTQ1 on dra71-evm */
58 compatible = "regulator-fixed";
59 regulator-name = "vsys_3v3";
60 regulator-min-microvolt = <3300000>;
61 regulator-max-microvolt = <3300000>;
62 vin-supply = <&evm_12v0>;
67 evm_3v3_sw: fixedregulator-evm_3v3 {
69 compatible = "regulator-fixed";
70 regulator-name = "evm_3v3";
71 regulator-min-microvolt = <3300000>;
72 regulator-max-microvolt = <3300000>;
73 vin-supply = <&vsys_3v3>;
78 aic_dvdd: fixedregulator-aic_dvdd {
80 compatible = "regulator-fixed";
81 regulator-name = "aic_dvdd";
82 vin-supply = <&evm_3v3_sw>;
83 regulator-min-microvolt = <1800000>;
84 regulator-max-microvolt = <1800000>;
87 evm_3v3_sd: fixedregulator-sd {
88 compatible = "regulator-fixed";
89 regulator-name = "evm_3v3_sd";
90 regulator-min-microvolt = <3300000>;
91 regulator-max-microvolt = <3300000>;
92 vin-supply = <&evm_3v3_sw>;
94 gpio = <&pcf_gpio_21 5 GPIO_ACTIVE_HIGH>;
97 extcon_usb1: extcon_usb1 {
98 compatible = "linux,extcon-usb-gpio";
99 id-gpio = <&pcf_gpio_21 1 GPIO_ACTIVE_HIGH>;
102 extcon_usb2: extcon_usb2 {
103 compatible = "linux,extcon-usb-gpio";
104 id-gpio = <&pcf_gpio_21 2 GPIO_ACTIVE_HIGH>;
108 compatible = "hdmi-connector";
114 hdmi_connector_in: endpoint {
115 remote-endpoint = <&tpd12s015_out>;
121 compatible = "ti,tpd12s015";
123 gpios = <&pcf_hdmi 4 GPIO_ACTIVE_HIGH>, /* P4, CT CP HPD */
124 <&pcf_hdmi 5 GPIO_ACTIVE_HIGH>, /* P5, LS OE */
125 <&gpio7 12 GPIO_ACTIVE_HIGH>; /* gpio7_12/sp1_cs2, HPD */
128 #address-cells = <1>;
134 tpd12s015_in: endpoint {
135 remote-endpoint = <&hdmi_out>;
142 tpd12s015_out: endpoint {
143 remote-endpoint = <&hdmi_connector_in>;
150 compatible = "simple-audio-card";
151 simple-audio-card,name = "DRA7xx-EVM";
152 simple-audio-card,widgets =
153 "Headphone", "Headphone Jack",
155 "Microphone", "Mic Jack",
157 simple-audio-card,routing =
158 "Headphone Jack", "HPLOUT",
159 "Headphone Jack", "HPROUT",
164 "Mic Jack", "Mic Bias",
167 simple-audio-card,format = "dsp_b";
168 simple-audio-card,bitclock-master = <&sound0_master>;
169 simple-audio-card,frame-master = <&sound0_master>;
170 simple-audio-card,bitclock-inversion;
172 sound0_master: simple-audio-card,cpu {
173 sound-dai = <&mcasp3>;
174 system-clock-frequency = <5644800>;
177 simple-audio-card,codec {
178 sound-dai = <&tlv320aic3106>;
179 clocks = <&atl_clkin2_ck>;
183 vmmcwl_fixed: fixedregulator-mmcwl {
184 compatible = "regulator-fixed";
185 regulator-name = "vmmcwl_fixed";
186 regulator-min-microvolt = <1800000>;
187 regulator-max-microvolt = <1800000>;
188 gpio = <&gpio5 8 GPIO_ACTIVE_HIGH>;
192 clk_ov5640_fixed: clock {
193 compatible = "fixed-clock";
195 clock-frequency = <24000000>;
200 dcan1_pins_default: dcan1_pins_default {
201 pinctrl-single,pins = <
202 DRA7XX_CORE_IOPAD(0x37d0, PIN_OUTPUT_PULLUP | MUX_MODE0) /* dcan1_tx */
203 DRA7XX_CORE_IOPAD(0x3818, PULL_UP | MUX_MODE1) /* wakeup0.dcan1_rx */
207 dcan1_pins_sleep: dcan1_pins_sleep {
208 pinctrl-single,pins = <
209 DRA7XX_CORE_IOPAD(0x37d0, MUX_MODE15 | PULL_UP) /* dcan1_tx.off */
210 DRA7XX_CORE_IOPAD(0x3818, MUX_MODE15 | PULL_UP) /* wakeup0.off */
217 clock-frequency = <400000>;
220 compatible = "nxp,pcf8575";
224 interrupt-controller;
225 #interrupt-cells = <2>;
228 pcf_gpio_21: gpio@21 {
229 compatible = "ti,pcf8575", "nxp,pcf8575";
231 lines-initial-states = <0x1408>;
234 interrupt-controller;
235 #interrupt-cells = <2>;
238 tlv320aic3106: tlv320aic3106@19 {
239 #sound-dai-cells = <0>;
240 compatible = "ti,tlv320aic3106";
242 adc-settle-ms = <40>;
243 ai3x-micbias-vg = <1>; /* 2.0V */
247 AVDD-supply = <&evm_3v3_sw>;
248 IOVDD-supply = <&evm_3v3_sw>;
249 DRVDD-supply = <&evm_3v3_sw>;
250 DVDD-supply = <&aic_dvdd>;
256 clock-frequency = <400000>;
258 pcf_hdmi: pcf8575@26 {
259 compatible = "ti,pcf8575", "nxp,pcf8575";
264 * initial state is used here to keep the mdio interface
265 * selected on RU89 through SEL_VIN4_MUX_S0, VIN2_S1 and
266 * VIN2_S0 driven high otherwise Ethernet stops working
267 * VIN6_SEL_S0 is low, thus selecting McASP3 over VIN6
269 lines-initial-states = <0x0f2b>;
272 /* vin6_sel_s0: high: VIN6, low: audio */
274 gpios = <1 GPIO_ACTIVE_HIGH>;
276 line-name = "vin6_sel_s0";
281 compatible = "ovti,ov5640";
284 clocks = <&clk_ov5640_fixed>;
285 clock-names = "xclk";
288 csi2_cam0: endpoint {
289 remote-endpoint = <&csi2_phy0>;
300 interrupts-extended = <&crossbar_mpu GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
301 <&dra7_pmx_core 0x3e0>;
310 * For the existing IOdelay configuration via U-Boot we don't
311 * support NAND on dra72-evm. Keep it disabled. Enabling it
312 * requires a different configuration by U-Boot.
315 ranges = <0 0 0x08000000 0x01000000>; /* minimum GPMC partition = 16MB */
317 /* To use NAND, DIP switch SW5 must be set like so:
318 * SW5.1 (NAND_SELn) = ON (LOW)
319 * SW5.9 (GPMC_WPN) = OFF (HIGH)
321 compatible = "ti,omap2-nand";
322 reg = <0 0 4>; /* device IO registers */
323 interrupt-parent = <&gpmc>;
324 interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
325 <1 IRQ_TYPE_NONE>; /* termcount */
326 rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 pin */
327 ti,nand-xfer-type = "prefetch-dma";
328 ti,nand-ecc-opt = "bch8";
330 nand-bus-width = <16>;
331 gpmc,device-width = <2>;
332 gpmc,sync-clk-ps = <0>;
334 gpmc,cs-rd-off-ns = <80>;
335 gpmc,cs-wr-off-ns = <80>;
336 gpmc,adv-on-ns = <0>;
337 gpmc,adv-rd-off-ns = <60>;
338 gpmc,adv-wr-off-ns = <60>;
339 gpmc,we-on-ns = <10>;
340 gpmc,we-off-ns = <50>;
342 gpmc,oe-off-ns = <40>;
343 gpmc,access-ns = <40>;
344 gpmc,wr-access-ns = <80>;
345 gpmc,rd-cycle-ns = <80>;
346 gpmc,wr-cycle-ns = <80>;
347 gpmc,bus-turnaround-ns = <0>;
348 gpmc,cycle2cycle-delay-ns = <0>;
349 gpmc,clk-activation-ns = <0>;
350 gpmc,wr-data-mux-bus-ns = <0>;
351 /* MTD partition table */
352 /* All SPL-* partitions are sized to minimal length
353 * which can be independently programmable. For
354 * NAND flash this is equal to size of erase-block */
355 #address-cells = <1>;
359 reg = <0x00000000 0x000020000>;
362 label = "NAND.SPL.backup1";
363 reg = <0x00020000 0x00020000>;
366 label = "NAND.SPL.backup2";
367 reg = <0x00040000 0x00020000>;
370 label = "NAND.SPL.backup3";
371 reg = <0x00060000 0x00020000>;
374 label = "NAND.u-boot-spl-os";
375 reg = <0x00080000 0x00040000>;
378 label = "NAND.u-boot";
379 reg = <0x000c0000 0x00100000>;
382 label = "NAND.u-boot-env";
383 reg = <0x001c0000 0x00020000>;
386 label = "NAND.u-boot-env.backup1";
387 reg = <0x001e0000 0x00020000>;
390 label = "NAND.kernel";
391 reg = <0x00200000 0x00800000>;
394 label = "NAND.file-system";
395 reg = <0x00a00000 0x0f600000>;
401 extcon = <&extcon_usb1>;
405 extcon = <&extcon_usb2>;
410 extcon = <&extcon_usb1>;
415 extcon = <&extcon_usb2>;
420 pinctrl-names = "default";
421 pinctrl-0 = <&mmc1_pins_default>;
422 vmmc-supply = <&evm_3v3_sd>;
425 * SDCD signal is not being used here - using the fact that GPIO mode
426 * is a viable alternative
428 cd-gpios = <&gpio6 27 GPIO_ACTIVE_LOW>;
429 max-frequency = <192000000>;
433 /* SW5-3 in ON position */
435 pinctrl-names = "default";
436 pinctrl-0 = <&mmc2_pins_default>;
439 max-frequency = <192000000>;
444 vmmc-supply = <&evm_3v6>;
445 vqmmc-supply = <&vmmcwl_fixed>;
448 keep-power-in-suspend;
450 pinctrl-names = "default", "hs", "sdr12", "sdr25";
451 pinctrl-0 = <&mmc4_pins_default>;
452 pinctrl-1 = <&mmc4_pins_default>;
453 pinctrl-2 = <&mmc4_pins_default>;
454 pinctrl-3 = <&mmc4_pins_default>;
455 #address-cells = <1>;
458 compatible = "ti,wl1835";
460 interrupt-parent = <&gpio5>;
461 interrupts = <7 IRQ_TYPE_EDGE_RISING>;
467 pinctrl-names = "default", "sleep", "active";
468 pinctrl-0 = <&dcan1_pins_sleep>;
469 pinctrl-1 = <&dcan1_pins_sleep>;
470 pinctrl-2 = <&dcan1_pins_default>;
476 spi-max-frequency = <76800000>;
478 compatible = "s25fl256s1";
479 spi-max-frequency = <76800000>;
481 spi-tx-bus-width = <1>;
482 spi-rx-bus-width = <4>;
483 #address-cells = <1>;
486 /* MTD partition table.
487 * The ROM checks the first four physical blocks
488 * for a valid file to boot and the flash here is
493 reg = <0x00000000 0x000010000>;
496 label = "QSPI.SPL.backup1";
497 reg = <0x00010000 0x00010000>;
500 label = "QSPI.SPL.backup2";
501 reg = <0x00020000 0x00010000>;
504 label = "QSPI.SPL.backup3";
505 reg = <0x00030000 0x00010000>;
508 label = "QSPI.u-boot";
509 reg = <0x00040000 0x00100000>;
512 label = "QSPI.u-boot-spl-os";
513 reg = <0x00140000 0x00080000>;
516 label = "QSPI.u-boot-env";
517 reg = <0x001c0000 0x00010000>;
520 label = "QSPI.u-boot-env.backup1";
521 reg = <0x001d0000 0x0010000>;
524 label = "QSPI.kernel";
525 reg = <0x001e0000 0x0800000>;
528 label = "QSPI.file-system";
529 reg = <0x009e0000 0x01620000>;
543 remote-endpoint = <&tpd12s015_in>;
549 assigned-clocks = <&abe_dpll_sys_clk_mux>,
550 <&atl_clkctrl DRA7_ATL_ATL_CLKCTRL 26>,
554 assigned-clock-parents = <&sys_clkin2>, <&dpll_abe_m2_ck>;
555 assigned-clock-rates = <0>, <0>, <180633600>, <361267200>, <5644800>;
560 bws = <DRA7_ATL_WS_MCASP2_FSX>;
561 aws = <DRA7_ATL_WS_MCASP3_FSX>;
566 #sound-dai-cells = <0>;
568 assigned-clocks = <&l4per2_clkctrl DRA7_L4PER2_MCASP3_CLKCTRL 24>;
569 assigned-clock-parents = <&atl_clkin2_ck>;
573 op-mode = <0>; /* MCASP_IIS_MODE */
576 serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */
588 csi2_phy0: endpoint {
589 remote-endpoint = <&csi2_cam0>;