xref: /freebsd-src/sys/contrib/device-tree/src/arm/ti/omap/dra72-evm-revc.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Copyright (C) 2016 Texas Instruments Incorporated - https://www.ti.com/
4*f126890aSEmmanuel Vadot */
5*f126890aSEmmanuel Vadot#include "dra72-evm-common.dtsi"
6*f126890aSEmmanuel Vadot#include "dra72x-mmc-iodelay.dtsi"
7*f126890aSEmmanuel Vadot#include <dt-bindings/net/ti-dp83867.h>
8*f126890aSEmmanuel Vadot
9*f126890aSEmmanuel Vadot/ {
10*f126890aSEmmanuel Vadot	model = "TI DRA722 Rev C EVM";
11*f126890aSEmmanuel Vadot
12*f126890aSEmmanuel Vadot	memory@0 {
13*f126890aSEmmanuel Vadot		device_type = "memory";
14*f126890aSEmmanuel Vadot		reg = <0x0 0x80000000 0x0 0x80000000>; /* 2GB */
15*f126890aSEmmanuel Vadot	};
16*f126890aSEmmanuel Vadot
17*f126890aSEmmanuel Vadot	reserved-memory {
18*f126890aSEmmanuel Vadot		#address-cells = <2>;
19*f126890aSEmmanuel Vadot		#size-cells = <2>;
20*f126890aSEmmanuel Vadot		ranges;
21*f126890aSEmmanuel Vadot
22*f126890aSEmmanuel Vadot		ipu2_cma_pool: ipu2_cma@95800000 {
23*f126890aSEmmanuel Vadot			compatible = "shared-dma-pool";
24*f126890aSEmmanuel Vadot			reg = <0x0 0x95800000 0x0 0x3800000>;
25*f126890aSEmmanuel Vadot			reusable;
26*f126890aSEmmanuel Vadot			status = "okay";
27*f126890aSEmmanuel Vadot		};
28*f126890aSEmmanuel Vadot
29*f126890aSEmmanuel Vadot		dsp1_cma_pool: dsp1_cma@99000000 {
30*f126890aSEmmanuel Vadot			compatible = "shared-dma-pool";
31*f126890aSEmmanuel Vadot			reg = <0x0 0x99000000 0x0 0x4000000>;
32*f126890aSEmmanuel Vadot			reusable;
33*f126890aSEmmanuel Vadot			status = "okay";
34*f126890aSEmmanuel Vadot		};
35*f126890aSEmmanuel Vadot
36*f126890aSEmmanuel Vadot		ipu1_cma_pool: ipu1_cma@9d000000 {
37*f126890aSEmmanuel Vadot			compatible = "shared-dma-pool";
38*f126890aSEmmanuel Vadot			reg = <0x0 0x9d000000 0x0 0x2000000>;
39*f126890aSEmmanuel Vadot			reusable;
40*f126890aSEmmanuel Vadot			status = "okay";
41*f126890aSEmmanuel Vadot		};
42*f126890aSEmmanuel Vadot	};
43*f126890aSEmmanuel Vadot
44*f126890aSEmmanuel Vadot	evm_1v8_sw: fixedregulator-evm_1v8 {
45*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
46*f126890aSEmmanuel Vadot		regulator-name = "evm_1v8";
47*f126890aSEmmanuel Vadot		regulator-min-microvolt = <1800000>;
48*f126890aSEmmanuel Vadot		regulator-max-microvolt = <1800000>;
49*f126890aSEmmanuel Vadot		vin-supply = <&smps4_reg>;
50*f126890aSEmmanuel Vadot		regulator-always-on;
51*f126890aSEmmanuel Vadot		regulator-boot-on;
52*f126890aSEmmanuel Vadot	};
53*f126890aSEmmanuel Vadot};
54*f126890aSEmmanuel Vadot
55*f126890aSEmmanuel Vadot&i2c1 {
56*f126890aSEmmanuel Vadot	tps65917: tps65917@58 {
57*f126890aSEmmanuel Vadot		reg = <0x58>;
58*f126890aSEmmanuel Vadot
59*f126890aSEmmanuel Vadot		interrupts = <GIC_SPI 2 IRQ_TYPE_NONE>;  /* IRQ_SYS_1N */
60*f126890aSEmmanuel Vadot	};
61*f126890aSEmmanuel Vadot};
62*f126890aSEmmanuel Vadot
63*f126890aSEmmanuel Vadot#include "dra72-evm-tps65917.dtsi"
64*f126890aSEmmanuel Vadot
65*f126890aSEmmanuel Vadot&ldo2_reg {
66*f126890aSEmmanuel Vadot	/* LDO2_OUT --> VDDA_1V8_PHY2 */
67*f126890aSEmmanuel Vadot	regulator-always-on;
68*f126890aSEmmanuel Vadot	regulator-boot-on;
69*f126890aSEmmanuel Vadot};
70*f126890aSEmmanuel Vadot
71*f126890aSEmmanuel Vadot&hdmi {
72*f126890aSEmmanuel Vadot	vdda-supply = <&ldo2_reg>;
73*f126890aSEmmanuel Vadot};
74*f126890aSEmmanuel Vadot
75*f126890aSEmmanuel Vadot&pcf_gpio_21 {
76*f126890aSEmmanuel Vadot	interrupt-parent = <&gpio3>;
77*f126890aSEmmanuel Vadot	interrupts = <30 IRQ_TYPE_EDGE_FALLING>;
78*f126890aSEmmanuel Vadot};
79*f126890aSEmmanuel Vadot
80*f126890aSEmmanuel Vadot&mac_sw {
81*f126890aSEmmanuel Vadot	mode-gpios = <&pcf_gpio_21 4 GPIO_ACTIVE_LOW>,
82*f126890aSEmmanuel Vadot		     <&pcf_hdmi 9 GPIO_ACTIVE_LOW>,	/* P11 */
83*f126890aSEmmanuel Vadot		     <&pcf_hdmi 10 GPIO_ACTIVE_LOW>;	/* P12 */
84*f126890aSEmmanuel Vadot	status = "okay";
85*f126890aSEmmanuel Vadot};
86*f126890aSEmmanuel Vadot
87*f126890aSEmmanuel Vadot&cpsw_port1 {
88*f126890aSEmmanuel Vadot	phy-handle = <&dp83867_0>;
89*f126890aSEmmanuel Vadot	phy-mode = "rgmii-id";
90*f126890aSEmmanuel Vadot	ti,dual-emac-pvid = <1>;
91*f126890aSEmmanuel Vadot};
92*f126890aSEmmanuel Vadot
93*f126890aSEmmanuel Vadot&cpsw_port2 {
94*f126890aSEmmanuel Vadot	phy-handle = <&dp83867_1>;
95*f126890aSEmmanuel Vadot	phy-mode = "rgmii-id";
96*f126890aSEmmanuel Vadot	ti,dual-emac-pvid = <2>;
97*f126890aSEmmanuel Vadot};
98*f126890aSEmmanuel Vadot
99*f126890aSEmmanuel Vadot&davinci_mdio_sw {
100*f126890aSEmmanuel Vadot	dp83867_0: ethernet-phy@2 {
101*f126890aSEmmanuel Vadot		reg = <2>;
102*f126890aSEmmanuel Vadot		ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
103*f126890aSEmmanuel Vadot		ti,tx-internal-delay = <DP83867_RGMIIDCTL_250_PS>;
104*f126890aSEmmanuel Vadot		ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_8_B_NIB>;
105*f126890aSEmmanuel Vadot		ti,min-output-impedance;
106*f126890aSEmmanuel Vadot		interrupt-parent = <&gpio6>;
107*f126890aSEmmanuel Vadot		interrupts = <16 IRQ_TYPE_EDGE_FALLING>;
108*f126890aSEmmanuel Vadot		ti,dp83867-rxctrl-strap-quirk;
109*f126890aSEmmanuel Vadot	};
110*f126890aSEmmanuel Vadot
111*f126890aSEmmanuel Vadot	dp83867_1: ethernet-phy@3 {
112*f126890aSEmmanuel Vadot		reg = <3>;
113*f126890aSEmmanuel Vadot		ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
114*f126890aSEmmanuel Vadot		ti,tx-internal-delay = <DP83867_RGMIIDCTL_250_PS>;
115*f126890aSEmmanuel Vadot		ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_8_B_NIB>;
116*f126890aSEmmanuel Vadot		ti,min-output-impedance;
117*f126890aSEmmanuel Vadot		interrupt-parent = <&gpio6>;
118*f126890aSEmmanuel Vadot		interrupts = <16 IRQ_TYPE_EDGE_FALLING>;
119*f126890aSEmmanuel Vadot		ti,dp83867-rxctrl-strap-quirk;
120*f126890aSEmmanuel Vadot	};
121*f126890aSEmmanuel Vadot};
122*f126890aSEmmanuel Vadot
123*f126890aSEmmanuel Vadot&mmc1 {
124*f126890aSEmmanuel Vadot	pinctrl-names = "default", "hs", "sdr12", "sdr25", "sdr50", "ddr50", "sdr104";
125*f126890aSEmmanuel Vadot	pinctrl-0 = <&mmc1_pins_default>;
126*f126890aSEmmanuel Vadot	pinctrl-1 = <&mmc1_pins_hs>;
127*f126890aSEmmanuel Vadot	pinctrl-2 = <&mmc1_pins_sdr12>;
128*f126890aSEmmanuel Vadot	pinctrl-3 = <&mmc1_pins_sdr25>;
129*f126890aSEmmanuel Vadot	pinctrl-4 = <&mmc1_pins_sdr50>;
130*f126890aSEmmanuel Vadot	pinctrl-5 = <&mmc1_pins_ddr50_rev20 &mmc1_iodelay_ddr50_conf>;
131*f126890aSEmmanuel Vadot	pinctrl-6 = <&mmc1_pins_sdr104 &mmc1_iodelay_sdr104_rev20_conf>;
132*f126890aSEmmanuel Vadot	vqmmc-supply = <&ldo1_reg>;
133*f126890aSEmmanuel Vadot};
134*f126890aSEmmanuel Vadot
135*f126890aSEmmanuel Vadot&mmc2 {
136*f126890aSEmmanuel Vadot	pinctrl-names = "default", "hs", "ddr_1_8v", "hs200_1_8v";
137*f126890aSEmmanuel Vadot	pinctrl-0 = <&mmc2_pins_default>;
138*f126890aSEmmanuel Vadot	pinctrl-1 = <&mmc2_pins_hs>;
139*f126890aSEmmanuel Vadot	pinctrl-2 = <&mmc2_pins_ddr_rev20 &mmc2_iodelay_ddr_conf>;
140*f126890aSEmmanuel Vadot	pinctrl-3 = <&mmc2_pins_hs200 &mmc2_iodelay_hs200_rev20_conf>;
141*f126890aSEmmanuel Vadot	vmmc-supply = <&evm_1v8_sw>;
142*f126890aSEmmanuel Vadot};
143*f126890aSEmmanuel Vadot
144*f126890aSEmmanuel Vadot&ipu2 {
145*f126890aSEmmanuel Vadot	status = "okay";
146*f126890aSEmmanuel Vadot	memory-region = <&ipu2_cma_pool>;
147*f126890aSEmmanuel Vadot};
148*f126890aSEmmanuel Vadot
149*f126890aSEmmanuel Vadot&ipu1 {
150*f126890aSEmmanuel Vadot	status = "okay";
151*f126890aSEmmanuel Vadot	memory-region = <&ipu1_cma_pool>;
152*f126890aSEmmanuel Vadot};
153*f126890aSEmmanuel Vadot
154*f126890aSEmmanuel Vadot&dsp1 {
155*f126890aSEmmanuel Vadot	status = "okay";
156*f126890aSEmmanuel Vadot	memory-region = <&dsp1_cma_pool>;
157*f126890aSEmmanuel Vadot};
158