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