1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2017 Texas Instruments Incorporated - http://www.ti.com/
8 #include "dra7-evm-common.dtsi"
9 #include "dra76x-mmc-iodelay.dtsi"
10 #include <dt-bindings/net/ti-dp83867.h>
13 model = "TI DRA762 EVM";
14 compatible = "ti,dra76-evm", "ti,dra762", "ti,dra7";
24 device_type = "memory";
25 reg = <0x0 0x80000000 0x0 0x80000000>;
28 vsys_12v0: fixedregulator-vsys12v0 {
30 compatible = "regulator-fixed";
31 regulator-name = "vsys_12v0";
32 regulator-min-microvolt = <12000000>;
33 regulator-max-microvolt = <12000000>;
38 vsys_5v0: fixedregulator-vsys5v0 {
39 /* Output of Cntlr B of TPS43351-Q1 on dra76-evm */
40 compatible = "regulator-fixed";
41 regulator-name = "vsys_5v0";
42 regulator-min-microvolt = <5000000>;
43 regulator-max-microvolt = <5000000>;
44 vin-supply = <&vsys_12v0>;
49 vio_3v6: fixedregulator-vio_3v6 {
50 compatible = "regulator-fixed";
51 regulator-name = "vio_3v6";
52 regulator-min-microvolt = <3600000>;
53 regulator-max-microvolt = <3600000>;
54 vin-supply = <&vsys_5v0>;
59 vsys_3v3: fixedregulator-vsys3v3 {
60 /* Output of Cntlr A of TPS43351-Q1 on dra76-evm */
61 compatible = "regulator-fixed";
62 regulator-name = "vsys_3v3";
63 regulator-min-microvolt = <3300000>;
64 regulator-max-microvolt = <3300000>;
65 vin-supply = <&vsys_12v0>;
70 vio_3v3: fixedregulator-vio_3v3 {
71 compatible = "regulator-fixed";
72 regulator-name = "vio_3v3";
73 regulator-min-microvolt = <3300000>;
74 regulator-max-microvolt = <3300000>;
75 vin-supply = <&vsys_3v3>;
80 vio_3v3_sd: fixedregulator-sd {
81 compatible = "regulator-fixed";
82 regulator-name = "vio_3v3_sd";
83 regulator-min-microvolt = <3300000>;
84 regulator-max-microvolt = <3300000>;
85 vin-supply = <&vio_3v3>;
87 gpio = <&gpio4 21 GPIO_ACTIVE_HIGH>;
90 vio_1v8: fixedregulator-vio_1v8 {
91 compatible = "regulator-fixed";
92 regulator-name = "vio_1v8";
93 regulator-min-microvolt = <1800000>;
94 regulator-max-microvolt = <1800000>;
95 vin-supply = <&smps5_reg>;
98 vmmcwl_fixed: fixedregulator-mmcwl {
99 compatible = "regulator-fixed";
100 regulator-name = "vmmcwl_fixed";
101 regulator-min-microvolt = <1800000>;
102 regulator-max-microvolt = <1800000>;
103 gpio = <&gpio5 8 0>; /* gpio5_8 */
104 startup-delay-us = <70000>;
108 vtt_fixed: fixedregulator-vtt {
109 compatible = "regulator-fixed";
110 regulator-name = "vtt_fixed";
111 regulator-min-microvolt = <1350000>;
112 regulator-max-microvolt = <1350000>;
113 vin-supply = <&vsys_3v3>;
118 aic_dvdd: fixedregulator-aic_dvdd {
120 compatible = "regulator-fixed";
121 regulator-name = "aic_dvdd";
122 vin-supply = <&vio_3v3>;
123 regulator-min-microvolt = <1800000>;
124 regulator-max-microvolt = <1800000>;
128 compatible = "hdmi-connector";
134 hdmi_connector_in: endpoint {
135 remote-endpoint = <&tpd12s015_out>;
141 compatible = "ti,tpd12s015";
143 gpios = <&gpio7 30 GPIO_ACTIVE_HIGH>, /* gpio7_30, CT CP HPD */
144 <&gpio7 31 GPIO_ACTIVE_HIGH>, /* gpio7_31, LS OE */
145 <&gpio7 12 GPIO_ACTIVE_HIGH>; /* gpio7_12/sp1_cs2, HPD */
148 #address-cells = <1>;
154 tpd12s015_in: endpoint {
155 remote-endpoint = <&hdmi_out>;
162 tpd12s015_out: endpoint {
163 remote-endpoint = <&hdmi_connector_in>;
172 clock-frequency = <400000>;
174 tps65917: tps65917@58 {
175 compatible = "ti,tps65917";
177 ti,system-power-controller;
178 ti,palmas-override-powerhold;
179 interrupt-controller;
180 #interrupt-cells = <2>;
183 compatible = "ti,tps65917-pmic";
185 smps12-in-supply = <&vsys_3v3>;
186 smps3-in-supply = <&vsys_3v3>;
187 smps4-in-supply = <&vsys_3v3>;
188 smps5-in-supply = <&vsys_3v3>;
189 ldo1-in-supply = <&vsys_3v3>;
190 ldo2-in-supply = <&vsys_3v3>;
191 ldo3-in-supply = <&vsys_5v0>;
192 ldo4-in-supply = <&vsys_5v0>;
193 ldo5-in-supply = <&vsys_3v3>;
195 tps65917_regulators: regulators {
198 regulator-name = "smps12";
199 regulator-min-microvolt = <850000>;
200 regulator-max-microvolt = <1250000>;
207 regulator-name = "smps3";
208 regulator-min-microvolt = <850000>;
209 regulator-max-microvolt = <1250000>;
216 regulator-name = "smps4";
217 regulator-min-microvolt = <850000>;
218 regulator-max-microvolt = <1250000>;
225 regulator-name = "smps5";
226 regulator-min-microvolt = <1800000>;
227 regulator-max-microvolt = <1800000>;
233 /* LDO1_OUT --> VDA_PHY1_1V8 */
234 regulator-name = "ldo1";
235 regulator-min-microvolt = <1800000>;
236 regulator-max-microvolt = <1800000>;
239 regulator-allow-bypass;
243 /* LDO2_OUT --> VDA_PHY2_1V8 */
244 regulator-name = "ldo2";
245 regulator-min-microvolt = <1800000>;
246 regulator-max-microvolt = <1800000>;
247 regulator-allow-bypass;
253 regulator-name = "ldo3";
254 regulator-min-microvolt = <3300000>;
255 regulator-max-microvolt = <3300000>;
262 regulator-name = "ldo5";
263 regulator-min-microvolt = <1800000>;
264 regulator-max-microvolt = <1800000>;
271 regulator-name = "ldo4";
272 regulator-min-microvolt = <1800000>;
273 regulator-max-microvolt = <3300000>;
280 tps65917_power_button {
281 compatible = "ti,palmas-pwrbutton";
282 interrupt-parent = <&tps65917>;
283 interrupts = <1 IRQ_TYPE_NONE>;
285 ti,palmas-long-press-seconds = <6>;
289 lp87565: lp87565@60 {
290 compatible = "ti,lp87565-q1";
293 buck10-in-supply =<&vsys_3v3>;
294 buck23-in-supply =<&vsys_3v3>;
296 regulators: regulators {
299 regulator-name = "buck10";
300 regulator-min-microvolt = <850000>;
301 regulator-max-microvolt = <1250000>;
308 regulator-name = "buck23";
309 regulator-min-microvolt = <850000>;
310 regulator-max-microvolt = <1250000>;
317 pcf_lcd: pcf8757@20 {
318 compatible = "ti,pcf8575", "nxp,pcf8575";
322 interrupt-controller;
323 #interrupt-cells = <2>;
324 interrupt-parent = <&gpio1>;
325 interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
328 pcf_gpio_21: pcf8757@21 {
329 compatible = "ti,pcf8575", "nxp,pcf8575";
333 interrupt-parent = <&gpio1>;
334 interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
335 interrupt-controller;
336 #interrupt-cells = <2>;
339 pcf_hdmi: pcf8575@26 {
340 compatible = "ti,pcf8575", "nxp,pcf8575";
345 /* vin6_sel_s0: high: VIN6, low: audio */
347 gpios = <1 GPIO_ACTIVE_HIGH>;
349 line-name = "vin6_sel_s0";
353 tlv320aic3106: tlv320aic3106@19 {
354 #sound-dai-cells = <0>;
355 compatible = "ti,tlv320aic3106";
357 adc-settle-ms = <40>;
358 ai3x-micbias-vg = <1>; /* 2.0V */
362 AVDD-supply = <&vio_3v3>;
363 IOVDD-supply = <&vio_3v3>;
364 DRVDD-supply = <&vio_3v3>;
365 DVDD-supply = <&aic_dvdd>;
370 vdd-supply = <&buck10_reg>;
375 vmmc-supply = <&vio_3v3_sd>;
376 vqmmc-supply = <&ldo4_reg>;
379 * SDCD signal is not being used here - using the fact that GPIO mode
380 * is always hardwired.
382 cd-gpios = <&gpio6 27 GPIO_ACTIVE_LOW>;
383 pinctrl-names = "default", "hs";
384 pinctrl-0 = <&mmc1_pins_default>;
385 pinctrl-1 = <&mmc1_pins_hs>;
390 vmmc-supply = <&vio_1v8>;
391 vqmmc-supply = <&vio_1v8>;
394 pinctrl-names = "default", "hs", "ddr_1_8v", "hs200_1_8v";
395 pinctrl-0 = <&mmc2_pins_default>;
396 pinctrl-1 = <&mmc2_pins_default>;
397 pinctrl-2 = <&mmc2_pins_default>;
398 pinctrl-3 = <&mmc2_pins_hs200 &mmc2_iodelay_hs200_conf>;
403 vmmc-supply = <&vio_3v6>;
404 vqmmc-supply = <&vmmcwl_fixed>;
405 pinctrl-names = "default", "hs", "sdr12", "sdr25";
406 pinctrl-0 = <&mmc4_pins_hs &mmc4_iodelay_default_conf>;
407 pinctrl-1 = <&mmc4_pins_hs &mmc4_iodelay_manual1_conf>;
408 pinctrl-2 = <&mmc4_pins_hs &mmc4_iodelay_manual1_conf>;
409 pinctrl-3 = <&mmc4_pins_hs &mmc4_iodelay_manual1_conf>;
412 /* No RTC on this device */
424 phy-handle = <&dp83867_0>;
425 phy-mode = "rgmii-id";
426 dual_emac_res_vlan = <1>;
430 phy-handle = <&dp83867_1>;
431 phy-mode = "rgmii-id";
432 dual_emac_res_vlan = <2>;
436 dp83867_0: ethernet-phy@2 {
438 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
439 ti,tx-internal-delay = <DP83867_RGMIIDCTL_250_PS>;
440 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_8_B_NIB>;
441 ti,min-output-impedance;
442 ti,dp83867-rxctrl-strap-quirk;
445 dp83867_1: ethernet-phy@3 {
447 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
448 ti,tx-internal-delay = <DP83867_RGMIIDCTL_250_PS>;
449 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_8_B_NIB>;
450 ti,min-output-impedance;
451 ti,dp83867-rxctrl-strap-quirk;
456 phy-supply = <&ldo3_reg>;
460 phy-supply = <&ldo3_reg>;
465 vdda_video-supply = <&ldo5_reg>;
471 vdda-supply = <&ldo1_reg>;
475 remote-endpoint = <&tpd12s015_in>;
481 spi-max-frequency = <96000000>;
483 spi-max-frequency = <96000000>;
493 phys = <&pcie1_phy>, <&pcie2_phy>;
494 phy-names = "pcie-phy0", "pcie-phy1";
499 phys = <&pcie1_phy>, <&pcie2_phy>;
500 phy-names = "pcie-phy0", "pcie-phy1";
504 vbus-gpio = <&pcf_lcd 14 GPIO_ACTIVE_HIGH>;
508 vbus-gpio = <&pcf_lcd 15 GPIO_ACTIVE_HIGH>;
513 max-bitrate = <5000000>;