• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// SPDX-License-Identifier: GPL-2.0
2/dts-v1/;
3
4#include <dt-bindings/input/input.h>
5#include "tegra30-apalis.dtsi"
6
7/ {
8	model = "Toradex Apalis T30 on Apalis Evaluation Board";
9	compatible = "toradex,apalis_t30-eval", "toradex,apalis_t30", "nvidia,tegra30";
10
11	aliases {
12		rtc0 = "/i2c@7000c000/rtc@68";
13		rtc1 = "/i2c@7000d000/tps65911@2d";
14		rtc2 = "/rtc@7000e000";
15		serial0 = &uarta;
16		serial1 = &uartb;
17		serial2 = &uartc;
18		serial3 = &uartd;
19	};
20
21	chosen {
22		stdout-path = "serial0:115200n8";
23	};
24
25	pcie@3000 {
26		status = "okay";
27
28		pci@1,0 {
29			status = "okay";
30		};
31
32		pci@2,0 {
33			status = "okay";
34		};
35
36		pci@3,0 {
37			status = "okay";
38		};
39	};
40
41	host1x@50000000 {
42		dc@54200000 {
43			rgb {
44				status = "okay";
45				nvidia,panel = <&panel>;
46			};
47		};
48		hdmi@54280000 {
49			status = "okay";
50		};
51	};
52
53	serial@70006000 {
54		status = "okay";
55	};
56
57	serial@70006040 {
58		compatible = "nvidia,tegra30-hsuart";
59		status = "okay";
60	};
61
62	serial@70006200 {
63		compatible = "nvidia,tegra30-hsuart";
64		status = "okay";
65	};
66
67	serial@70006300 {
68		compatible = "nvidia,tegra30-hsuart";
69		status = "okay";
70	};
71
72	pwm@7000a000 {
73		status = "okay";
74	};
75
76	/*
77	 * GEN1_I2C: I2C1_SDA/SCL on MXM3 pin 209/211 (e.g. RTC on carrier
78	 * board)
79	 */
80	i2c@7000c000 {
81		status = "okay";
82		clock-frequency = <100000>;
83
84		pcie-switch@58 {
85			compatible = "plx,pex8605";
86			reg = <0x58>;
87		};
88
89		/* M41T0M6 real time clock on carrier board */
90		rtc@68 {
91			compatible = "st,m41t00";
92			reg = <0x68>;
93		};
94	};
95
96	/* GEN2_I2C: unused */
97
98	/*
99	 * CAM_I2C: I2C3_SDA/SCL on MXM3 pin 201/203 (e.g. camera sensor on
100	 * carrier board)
101	 */
102	cami2c: i2c@7000c500 {
103		status = "okay";
104		clock-frequency = <400000>;
105	};
106
107	/* DDC: I2C2_SDA/SCL on MXM3 pin 205/207 (e.g. display EDID) */
108	hdmiddc: i2c@7000c700 {
109		status = "okay";
110	};
111
112	/* SPI1: Apalis SPI1 */
113	spi@7000d400 {
114		status = "okay";
115		spi-max-frequency = <25000000>;
116		spidev0: spidev@1 {
117			compatible = "spidev";
118			reg = <1>;
119			spi-max-frequency = <25000000>;
120		};
121	};
122
123	/* SPI5: Apalis SPI2 */
124	spi@7000dc00 {
125		status = "okay";
126		spi-max-frequency = <25000000>;
127		spidev1: spidev@2 {
128			compatible = "spidev";
129			reg = <2>;
130			spi-max-frequency = <25000000>;
131		};
132	};
133
134	hda@70030000 {
135		status = "okay";
136	};
137
138	sd1: sdhci@78000000 {
139		status = "okay";
140		bus-width = <4>;
141		/* SD1_CD# */
142		cd-gpios = <&gpio TEGRA_GPIO(CC, 5) GPIO_ACTIVE_LOW>;
143		no-1-8-v;
144	};
145
146	mmc1: sdhci@78000400 {
147		status = "okay";
148		bus-width = <8>;
149		/* MMC1_CD# */
150		cd-gpios = <&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_LOW>;
151		no-1-8-v;
152	};
153
154	/* EHCI instance 0: USB1_DP/N -> USBO1_DP/N */
155	usb@7d000000 {
156		status = "okay";
157	};
158
159	usb-phy@7d000000 {
160		status = "okay";
161		dr_mode = "otg";
162		vbus-supply = <&usbo1_vbus_reg>;
163	};
164
165	/* EHCI instance 1: USB2_DP/N -> USBH2_DP/N */
166	usb@7d004000 {
167		status = "okay";
168	};
169
170	usb-phy@7d004000 {
171		status = "okay";
172		vbus-supply = <&usbh_vbus_reg>;
173	};
174
175	/* EHCI instance 2: USB3_DP/N -> USBH3_DP/N */
176	usb@7d008000 {
177		status = "okay";
178	};
179
180	usb-phy@7d008000 {
181		status = "okay";
182		vbus-supply = <&usbh_vbus_reg>;
183	};
184
185	backlight: backlight {
186		compatible = "pwm-backlight";
187
188		/* PWM_BKL1 */
189		pwms = <&pwm 0 5000000>;
190		brightness-levels = <255 231 223 207 191 159 127 0>;
191		default-brightness-level = <6>;
192		/* BKL1_ON */
193		enable-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_HIGH>;
194	};
195
196	gpio-keys {
197		compatible = "gpio-keys";
198
199		wakeup {
200			label = "WAKE1_MICO";
201			gpios = <&gpio TEGRA_GPIO(V, 1) GPIO_ACTIVE_LOW>;
202			linux,code = <KEY_WAKEUP>;
203			debounce-interval = <10>;
204			wakeup-source;
205		};
206	};
207
208	panel: panel {
209		/*
210		 * edt,et057090dhu: EDT 5.7" LCD TFT
211		 * edt,et070080dh6: EDT 7.0" LCD TFT
212		 */
213		compatible = "edt,et057090dhu", "simple-panel";
214
215		backlight = <&backlight>;
216	};
217
218	pwmleds {
219		compatible = "pwm-leds";
220
221		pwm1 {
222			label = "PWM1";
223			pwms = <&pwm 3 19600>;
224			max-brightness = <255>;
225		};
226
227		pwm2 {
228			label = "PWM2";
229			pwms = <&pwm 2 19600>;
230			max-brightness = <255>;
231		};
232
233		pwm3 {
234			label = "PWM3";
235			pwms = <&pwm 1 19600>;
236			max-brightness = <255>;
237		};
238	};
239
240	regulators {
241		sys_5v0_reg: regulator@1 {
242			compatible = "regulator-fixed";
243			reg = <1>;
244			regulator-name = "5v0";
245			regulator-min-microvolt = <5000000>;
246			regulator-max-microvolt = <5000000>;
247			regulator-always-on;
248		};
249
250		/* USBO1_EN */
251		usbo1_vbus_reg: regulator@2 {
252			compatible = "regulator-fixed";
253			reg = <2>;
254			regulator-name = "usbo1_vbus";
255			regulator-min-microvolt = <5000000>;
256			regulator-max-microvolt = <5000000>;
257			gpio = <&gpio TEGRA_GPIO(T, 5) GPIO_ACTIVE_HIGH>;
258			enable-active-high;
259			vin-supply = <&sys_5v0_reg>;
260		};
261
262		/* USBH_EN */
263		usbh_vbus_reg: regulator@3 {
264			compatible = "regulator-fixed";
265			reg = <3>;
266			regulator-name = "usbh_vbus";
267			regulator-min-microvolt = <5000000>;
268			regulator-max-microvolt = <5000000>;
269			gpio = <&gpio TEGRA_GPIO(DD, 1) GPIO_ACTIVE_HIGH>;
270			enable-active-high;
271			vin-supply = <&sys_5v0_reg>;
272		};
273	};
274};
275