xref: /freebsd-src/sys/contrib/device-tree/src/arm/nvidia/tegra30-apalis-v1.1-eval.dts (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0 OR MIT
2f126890aSEmmanuel Vadot/dts-v1/;
3f126890aSEmmanuel Vadot
4f126890aSEmmanuel Vadot#include <dt-bindings/input/input.h>
5f126890aSEmmanuel Vadot#include "tegra30-apalis-v1.1.dtsi"
6f126890aSEmmanuel Vadot
7f126890aSEmmanuel Vadot/ {
8f126890aSEmmanuel Vadot	model = "Toradex Apalis T30 on Apalis Evaluation Board";
9f126890aSEmmanuel Vadot	compatible = "toradex,apalis_t30-v1.1-eval", "toradex,apalis_t30-eval",
10f126890aSEmmanuel Vadot		     "toradex,apalis_t30-v1.1", "toradex,apalis_t30",
11f126890aSEmmanuel Vadot		     "nvidia,tegra30";
12f126890aSEmmanuel Vadot
13f126890aSEmmanuel Vadot	aliases {
14f126890aSEmmanuel Vadot		rtc0 = "/i2c@7000c000/rtc@68";
15f126890aSEmmanuel Vadot		rtc1 = "/i2c@7000d000/pmic@2d";
16f126890aSEmmanuel Vadot		rtc2 = "/rtc@7000e000";
17f126890aSEmmanuel Vadot		serial0 = &uarta;
18f126890aSEmmanuel Vadot		serial1 = &uartb;
19f126890aSEmmanuel Vadot		serial2 = &uartc;
20f126890aSEmmanuel Vadot		serial3 = &uartd;
21f126890aSEmmanuel Vadot	};
22f126890aSEmmanuel Vadot
23f126890aSEmmanuel Vadot	chosen {
24f126890aSEmmanuel Vadot		stdout-path = "serial0:115200n8";
25f126890aSEmmanuel Vadot	};
26f126890aSEmmanuel Vadot
27f126890aSEmmanuel Vadot	pcie@3000 {
28f126890aSEmmanuel Vadot		pci@1,0 {
29f126890aSEmmanuel Vadot			status = "okay";
30f126890aSEmmanuel Vadot		};
31f126890aSEmmanuel Vadot
32f126890aSEmmanuel Vadot		pci@2,0 {
33f126890aSEmmanuel Vadot			status = "okay";
34f126890aSEmmanuel Vadot		};
35f126890aSEmmanuel Vadot	};
36f126890aSEmmanuel Vadot
37f126890aSEmmanuel Vadot	host1x@50000000 {
38f126890aSEmmanuel Vadot		dc@54200000 {
39f126890aSEmmanuel Vadot			rgb {
40f126890aSEmmanuel Vadot				status = "okay";
41f126890aSEmmanuel Vadot				nvidia,panel = <&panel>;
42f126890aSEmmanuel Vadot			};
43f126890aSEmmanuel Vadot		};
44f126890aSEmmanuel Vadot
45f126890aSEmmanuel Vadot		hdmi@54280000 {
46f126890aSEmmanuel Vadot			status = "okay";
47f126890aSEmmanuel Vadot			hdmi-supply = <&reg_5v0>;
48f126890aSEmmanuel Vadot		};
49f126890aSEmmanuel Vadot	};
50f126890aSEmmanuel Vadot
51f126890aSEmmanuel Vadot	gpio@6000d000 {
52f126890aSEmmanuel Vadot		/* Apalis GPIO7 MXM3 pin 15 PLX PEX 8605 PCIe Switch Reset */
53f126890aSEmmanuel Vadot		pex-perst-n-hog {
54f126890aSEmmanuel Vadot			gpio-hog;
55f126890aSEmmanuel Vadot			gpios = <TEGRA_GPIO(S, 7) GPIO_ACTIVE_HIGH>;
56f126890aSEmmanuel Vadot			output-high;
57f126890aSEmmanuel Vadot			line-name = "PEX_PERST_N";
58f126890aSEmmanuel Vadot		};
59f126890aSEmmanuel Vadot	};
60f126890aSEmmanuel Vadot
61f126890aSEmmanuel Vadot	/* Apalis UART1 */
62f126890aSEmmanuel Vadot	serial@70006000 {
63*aa1a8ff2SEmmanuel Vadot		/delete-property/ dmas;
64*aa1a8ff2SEmmanuel Vadot		/delete-property/ dma-names;
65f126890aSEmmanuel Vadot		status = "okay";
66f126890aSEmmanuel Vadot	};
67f126890aSEmmanuel Vadot
68f126890aSEmmanuel Vadot	/* Apalis UART2 */
69f126890aSEmmanuel Vadot	serial@70006040 {
70f126890aSEmmanuel Vadot		status = "okay";
71f126890aSEmmanuel Vadot	};
72f126890aSEmmanuel Vadot
73f126890aSEmmanuel Vadot	/* Apalis UART3 */
74f126890aSEmmanuel Vadot	serial@70006200 {
75f126890aSEmmanuel Vadot		status = "okay";
76f126890aSEmmanuel Vadot	};
77f126890aSEmmanuel Vadot
78f126890aSEmmanuel Vadot	/* Apalis UART4 */
79f126890aSEmmanuel Vadot	serial@70006300 {
80f126890aSEmmanuel Vadot		status = "okay";
81f126890aSEmmanuel Vadot	};
82f126890aSEmmanuel Vadot
83f126890aSEmmanuel Vadot	pwm@7000a000 {
84f126890aSEmmanuel Vadot		status = "okay";
85f126890aSEmmanuel Vadot	};
86f126890aSEmmanuel Vadot
87f126890aSEmmanuel Vadot	/*
88f126890aSEmmanuel Vadot	 * GEN1_I2C: I2C1_SDA/SCL on MXM3 pin 209/211 (e.g. RTC on carrier
89f126890aSEmmanuel Vadot	 * board)
90f126890aSEmmanuel Vadot	 */
91f126890aSEmmanuel Vadot	i2c@7000c000 {
92f126890aSEmmanuel Vadot		status = "okay";
93f126890aSEmmanuel Vadot		clock-frequency = <400000>;
94f126890aSEmmanuel Vadot
95f126890aSEmmanuel Vadot		pcie-switch@58 {
96f126890aSEmmanuel Vadot			compatible = "plx,pex8605";
97f126890aSEmmanuel Vadot			reg = <0x58>;
98f126890aSEmmanuel Vadot		};
99f126890aSEmmanuel Vadot
100f126890aSEmmanuel Vadot		/* M41T0M6 real time clock on carrier board */
101f126890aSEmmanuel Vadot		rtc@68 {
102f126890aSEmmanuel Vadot			compatible = "st,m41t0";
103f126890aSEmmanuel Vadot			reg = <0x68>;
104f126890aSEmmanuel Vadot		};
105f126890aSEmmanuel Vadot	};
106f126890aSEmmanuel Vadot
107f126890aSEmmanuel Vadot	/* GEN2_I2C: unused */
108f126890aSEmmanuel Vadot
109f126890aSEmmanuel Vadot	/*
110f126890aSEmmanuel Vadot	 * CAM_I2C: I2C3_SDA/SCL on MXM3 pin 201/203 (e.g. camera sensor on
111f126890aSEmmanuel Vadot	 * carrier board)
112f126890aSEmmanuel Vadot	 */
113f126890aSEmmanuel Vadot	i2c@7000c500 {
114f126890aSEmmanuel Vadot		status = "okay";
115f126890aSEmmanuel Vadot		clock-frequency = <400000>;
116f126890aSEmmanuel Vadot	};
117f126890aSEmmanuel Vadot
118f126890aSEmmanuel Vadot	/* DDC: I2C2_SDA/SCL on MXM3 pin 205/207 (e.g. display EDID) */
119f126890aSEmmanuel Vadot	i2c@7000c700 {
120f126890aSEmmanuel Vadot		status = "okay";
121f126890aSEmmanuel Vadot	};
122f126890aSEmmanuel Vadot
123f126890aSEmmanuel Vadot	/* SPI1: Apalis SPI1 */
124f126890aSEmmanuel Vadot	spi@7000d400 {
125f126890aSEmmanuel Vadot		status = "okay";
126f126890aSEmmanuel Vadot		spi-max-frequency = <25000000>;
127f126890aSEmmanuel Vadot	};
128f126890aSEmmanuel Vadot
129f126890aSEmmanuel Vadot	/* SPI5: Apalis SPI2 */
130f126890aSEmmanuel Vadot	spi@7000dc00 {
131f126890aSEmmanuel Vadot		status = "okay";
132f126890aSEmmanuel Vadot		spi-max-frequency = <25000000>;
133f126890aSEmmanuel Vadot	};
134f126890aSEmmanuel Vadot
135f126890aSEmmanuel Vadot	/* Apalis SD1 */
136f126890aSEmmanuel Vadot	mmc@78000000 {
137f126890aSEmmanuel Vadot		status = "okay";
138f126890aSEmmanuel Vadot		bus-width = <4>;
139f126890aSEmmanuel Vadot		/* SD1_CD# */
140f126890aSEmmanuel Vadot		cd-gpios = <&gpio TEGRA_GPIO(CC, 5) GPIO_ACTIVE_LOW>;
141f126890aSEmmanuel Vadot		no-1-8-v;
142f126890aSEmmanuel Vadot	};
143f126890aSEmmanuel Vadot
144f126890aSEmmanuel Vadot	/* Apalis MMC1 */
145f126890aSEmmanuel Vadot	mmc@78000400 {
146f126890aSEmmanuel Vadot		status = "okay";
147f126890aSEmmanuel Vadot		bus-width = <8>;
148f126890aSEmmanuel Vadot		/* MMC1_CD# */
149f126890aSEmmanuel Vadot		cd-gpios = <&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_LOW>;
150f126890aSEmmanuel Vadot		vqmmc-supply = <&reg_vddio_sdmmc3>;
151f126890aSEmmanuel Vadot	};
152f126890aSEmmanuel Vadot
153f126890aSEmmanuel Vadot	/* EHCI instance 0: USB1_DP/N -> USBO1_DP/N */
154f126890aSEmmanuel Vadot	usb@7d000000 {
155f126890aSEmmanuel Vadot		status = "okay";
156f126890aSEmmanuel Vadot		dr_mode = "otg";
157f126890aSEmmanuel Vadot	};
158f126890aSEmmanuel Vadot
159f126890aSEmmanuel Vadot	usb-phy@7d000000 {
160f126890aSEmmanuel Vadot		status = "okay";
161f126890aSEmmanuel Vadot		vbus-supply = <&reg_usbo1_vbus>;
162f126890aSEmmanuel Vadot	};
163f126890aSEmmanuel Vadot
164f126890aSEmmanuel Vadot	/* EHCI instance 1: USB2_DP/N -> USBH2_DP/N */
165f126890aSEmmanuel Vadot	usb@7d004000 {
166f126890aSEmmanuel Vadot		status = "okay";
167f126890aSEmmanuel Vadot	};
168f126890aSEmmanuel Vadot
169f126890aSEmmanuel Vadot	usb-phy@7d004000 {
170f126890aSEmmanuel Vadot		status = "okay";
171f126890aSEmmanuel Vadot		vbus-supply = <&reg_usbh_vbus>;
172f126890aSEmmanuel Vadot	};
173f126890aSEmmanuel Vadot
174f126890aSEmmanuel Vadot	/* EHCI instance 2: USB3_DP/N -> USBH3_DP/N */
175f126890aSEmmanuel Vadot	usb@7d008000 {
176f126890aSEmmanuel Vadot		status = "okay";
177f126890aSEmmanuel Vadot	};
178f126890aSEmmanuel Vadot
179f126890aSEmmanuel Vadot	usb-phy@7d008000 {
180f126890aSEmmanuel Vadot		status = "okay";
181f126890aSEmmanuel Vadot		vbus-supply = <&reg_usbh_vbus>;
182f126890aSEmmanuel Vadot	};
183f126890aSEmmanuel Vadot
184f126890aSEmmanuel Vadot	backlight: backlight {
185f126890aSEmmanuel Vadot		compatible = "pwm-backlight";
186f126890aSEmmanuel Vadot		brightness-levels = <255 231 223 207 191 159 127 0>;
187f126890aSEmmanuel Vadot		default-brightness-level = <6>;
188f126890aSEmmanuel Vadot		/* BKL1_ON */
189f126890aSEmmanuel Vadot		enable-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_HIGH>;
190f126890aSEmmanuel Vadot		power-supply = <&reg_3v3>;
191f126890aSEmmanuel Vadot		pwms = <&pwm 0 5000000>; /* BKL1_PWM */
192f126890aSEmmanuel Vadot	};
193f126890aSEmmanuel Vadot
194f126890aSEmmanuel Vadot	gpio-keys {
195f126890aSEmmanuel Vadot		compatible = "gpio-keys";
196f126890aSEmmanuel Vadot
197f126890aSEmmanuel Vadot		key-wakeup {
198f126890aSEmmanuel Vadot			label = "WAKE1_MICO";
199f126890aSEmmanuel Vadot			gpios = <&gpio TEGRA_GPIO(V, 1) GPIO_ACTIVE_LOW>;
200f126890aSEmmanuel Vadot			linux,code = <KEY_WAKEUP>;
201f126890aSEmmanuel Vadot			debounce-interval = <10>;
202f126890aSEmmanuel Vadot			wakeup-source;
203f126890aSEmmanuel Vadot		};
204f126890aSEmmanuel Vadot	};
205f126890aSEmmanuel Vadot
206f126890aSEmmanuel Vadot	panel: panel {
207f126890aSEmmanuel Vadot		/*
208f126890aSEmmanuel Vadot		 * edt,et057090dhu: EDT 5.7" LCD TFT
209f126890aSEmmanuel Vadot		 * edt,et070080dh6: EDT 7.0" LCD TFT
210f126890aSEmmanuel Vadot		 */
211f126890aSEmmanuel Vadot		compatible = "edt,et057090dhu";
212f126890aSEmmanuel Vadot		backlight = <&backlight>;
213f126890aSEmmanuel Vadot		power-supply = <&reg_3v3>;
214f126890aSEmmanuel Vadot	};
215f126890aSEmmanuel Vadot
216f126890aSEmmanuel Vadot	reg_3v3: regulator-3v3 {
217f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
218f126890aSEmmanuel Vadot		regulator-name = "3.3V_SW";
219f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
220f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
221f126890aSEmmanuel Vadot	};
222f126890aSEmmanuel Vadot
223f126890aSEmmanuel Vadot	reg_5v0: regulator-5v0 {
224f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
225f126890aSEmmanuel Vadot		regulator-name = "5V_SW";
226f126890aSEmmanuel Vadot		regulator-min-microvolt = <5000000>;
227f126890aSEmmanuel Vadot		regulator-max-microvolt = <5000000>;
228f126890aSEmmanuel Vadot	};
229f126890aSEmmanuel Vadot
230f126890aSEmmanuel Vadot	/* USBO1_EN */
231f126890aSEmmanuel Vadot	reg_usbo1_vbus: regulator-usbo1-vbus {
232f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
233f126890aSEmmanuel Vadot		regulator-name = "VCC_USBO1";
234f126890aSEmmanuel Vadot		regulator-min-microvolt = <5000000>;
235f126890aSEmmanuel Vadot		regulator-max-microvolt = <5000000>;
236f126890aSEmmanuel Vadot		gpio = <&gpio TEGRA_GPIO(T, 5) GPIO_ACTIVE_HIGH>;
237f126890aSEmmanuel Vadot		enable-active-high;
238f126890aSEmmanuel Vadot		vin-supply = <&reg_5v0>;
239f126890aSEmmanuel Vadot	};
240f126890aSEmmanuel Vadot
241f126890aSEmmanuel Vadot	/* USBH_EN */
242f126890aSEmmanuel Vadot	reg_usbh_vbus: regulator-usbh-vbus {
243f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
244f126890aSEmmanuel Vadot		regulator-name = "VCC_USBH(2A|2C|2D|3|4)";
245f126890aSEmmanuel Vadot		regulator-min-microvolt = <5000000>;
246f126890aSEmmanuel Vadot		regulator-max-microvolt = <5000000>;
247f126890aSEmmanuel Vadot		gpio = <&gpio TEGRA_GPIO(DD, 1) GPIO_ACTIVE_HIGH>;
248f126890aSEmmanuel Vadot		enable-active-high;
249f126890aSEmmanuel Vadot		vin-supply = <&reg_5v0>;
250f126890aSEmmanuel Vadot	};
251f126890aSEmmanuel Vadot
252f126890aSEmmanuel Vadot	/*
253f126890aSEmmanuel Vadot	 * 1.8 volt resp. 3.3 volt VDDIO_SDMMC3 depending on
254f126890aSEmmanuel Vadot	 * EN_+3.3_SDMMC3 GPIO
255f126890aSEmmanuel Vadot	 */
256f126890aSEmmanuel Vadot	reg_vddio_sdmmc3: regulator-vddio-sdmmc3 {
257f126890aSEmmanuel Vadot		compatible = "regulator-gpio";
258f126890aSEmmanuel Vadot		regulator-name = "VDDIO_SDMMC3";
259f126890aSEmmanuel Vadot		regulator-min-microvolt = <1800000>;
260f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
261f126890aSEmmanuel Vadot		regulator-type = "voltage";
262f126890aSEmmanuel Vadot		gpios = <&gpio TEGRA_GPIO(J, 5) GPIO_ACTIVE_HIGH>;
263f126890aSEmmanuel Vadot		states = <1800000 0x0>,
264f126890aSEmmanuel Vadot			 <3300000 0x1>;
265f126890aSEmmanuel Vadot		startup-delay-us = <100000>;
266f126890aSEmmanuel Vadot		vin-supply = <&vddio_sdmmc_1v8_reg>;
267f126890aSEmmanuel Vadot	};
268f126890aSEmmanuel Vadot};
269