xref: /linux/arch/arm/boot/dts/nvidia/tegra20-colibri-iris.dts (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1// SPDX-License-Identifier: GPL-2.0
2/dts-v1/;
3
4#include <dt-bindings/input/input.h>
5#include "tegra20-colibri.dtsi"
6
7/ {
8	model = "Toradex Colibri T20 on Iris";
9	compatible = "toradex,colibri_t20-iris", "toradex,colibri_t20",
10		     "nvidia,tegra20";
11
12	aliases {
13		rtc0 = "/i2c@7000c000/rtc@68";
14		rtc1 = "/i2c@7000d000/pmic@34";
15		rtc2 = "/rtc@7000e000";
16		serial0 = &uarta;
17		serial1 = &uartd;
18		serial2 = &uartb;
19	};
20
21	chosen {
22		stdout-path = "serial0:115200n8";
23	};
24
25	host1x@50000000 {
26		dc@54200000 {
27			rgb {
28				status = "okay";
29				nvidia,panel = <&panel>;
30			};
31		};
32
33		hdmi@54280000 {
34			status = "okay";
35			hdmi-supply = <&reg_5v0>;
36		};
37	};
38
39	pinmux@70000014 {
40		state_default: pinmux {
41			bl-on {
42				nvidia,tristate = <TEGRA_PIN_DISABLE>;
43			};
44
45			ddc {
46				nvidia,tristate = <TEGRA_PIN_DISABLE>;
47			};
48
49			hotplug-detect {
50				nvidia,tristate = <TEGRA_PIN_DISABLE>;
51			};
52
53			i2c {
54				nvidia,tristate = <TEGRA_PIN_DISABLE>;
55			};
56
57			lcd {
58				nvidia,tristate = <TEGRA_PIN_DISABLE>;
59			};
60
61			lm1 {
62				nvidia,tristate = <TEGRA_PIN_DISABLE>;
63			};
64
65			mmc {
66				nvidia,tristate = <TEGRA_PIN_DISABLE>;
67			};
68
69			mmccd {
70				nvidia,tristate = <TEGRA_PIN_DISABLE>;
71			};
72
73			sdc {
74				nvidia,tristate = <TEGRA_PIN_DISABLE>;
75			};
76
77			sdb_sdd {
78				nvidia,tristate = <TEGRA_PIN_DISABLE>;
79			};
80
81			ssp {
82				nvidia,tristate = <TEGRA_PIN_DISABLE>;
83			};
84
85			uart-a {
86				nvidia,tristate = <TEGRA_PIN_DISABLE>;
87			};
88
89			uart-b {
90				nvidia,tristate = <TEGRA_PIN_DISABLE>;
91			};
92
93			uart-c {
94				nvidia,tristate = <TEGRA_PIN_DISABLE>;
95			};
96
97			usbh-pen {
98				nvidia,tristate = <TEGRA_PIN_DISABLE>;
99			};
100		};
101	};
102
103	/* Colibri UART-A */
104	serial@70006000 {
105		/delete-property/ dmas;
106		/delete-property/ dma-names;
107		status = "okay";
108	};
109
110	/* Colibri UART-C */
111	serial@70006040 {
112		status = "okay";
113	};
114
115	/* Colibri UART-B */
116	serial@70006300 {
117		status = "okay";
118	};
119
120	pwm@7000a000 {
121		status = "okay";
122	};
123
124	/*
125	 * GEN1_I2C: I2C_SDA/SCL on SODIMM pin 194/196 (e.g. RTC on carrier
126	 * board)
127	 */
128	i2c@7000c000 {
129		status = "okay";
130		clock-frequency = <400000>;
131
132		/* M41T0M6 real time clock on carrier board */
133		rtc@68 {
134			compatible = "st,m41t0";
135			reg = <0x68>;
136		};
137	};
138
139	/* GEN2_I2C: unused */
140
141	/* CAM_I2C (I2C3): unused */
142
143	/* DDC_CLOCK/DATA on X3 pin 15/16 (e.g. display EDID) */
144	i2c@7000c400 {
145		status = "okay";
146	};
147
148	/* SPI4: Colibri SSP */
149	spi@7000da00 {
150		status = "okay";
151		spi-max-frequency = <25000000>;
152	};
153
154	/* EHCI instance 0: USB1_DP/N -> USBC_P/N */
155	usb@c5000000 {
156		status = "okay";
157		dr_mode = "otg";
158	};
159
160	usb-phy@c5000000 {
161		status = "okay";
162		vbus-supply = <&reg_usbc_vbus>;
163	};
164
165	/* EHCI instance 2: USB3_DP/N -> USBH_P/N */
166	usb@c5008000 {
167		status = "okay";
168	};
169
170	usb-phy@c5008000 {
171		status = "okay";
172		vbus-supply = <&reg_usbh_vbus>;
173	};
174
175	/* SD/MMC */
176	mmc@c8000600 {
177		status = "okay";
178		bus-width = <4>;
179		cd-gpios = <&gpio TEGRA_GPIO(C, 7) GPIO_ACTIVE_LOW>; /* MMCD */
180		no-1-8-v;
181	};
182
183	backlight: backlight {
184		compatible = "pwm-backlight";
185		brightness-levels = <255 128 64 32 16 8 4 0>;
186		default-brightness-level = <6>;
187		/* BL_ON */
188		enable-gpios = <&gpio TEGRA_GPIO(T, 4) GPIO_ACTIVE_HIGH>;
189		power-supply = <&reg_3v3>;
190		pwms = <&pwm 0 5000000>; /* PWM<A> */
191	};
192
193	gpio-keys {
194		compatible = "gpio-keys";
195
196		key-wakeup {
197			label = "SODIMM pin 45 wakeup";
198			gpios = <&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_HIGH>;
199			linux,code = <KEY_WAKEUP>;
200			debounce-interval = <10>;
201			wakeup-source;
202		};
203	};
204
205	panel: panel {
206		/*
207		 * edt,et057090dhu: EDT 5.7" LCD TFT
208		 * edt,et070080dh6: EDT 7.0" LCD TFT
209		 */
210		compatible = "edt,et057090dhu";
211		backlight = <&backlight>;
212		power-supply = <&reg_3v3>;
213	};
214
215	reg_3v3: regulator-3v3 {
216		compatible = "regulator-fixed";
217		regulator-name = "3.3V";
218		regulator-min-microvolt = <3300000>;
219		regulator-max-microvolt = <3300000>;
220	};
221
222	reg_5v0: regulator-5v0 {
223		compatible = "regulator-fixed";
224		regulator-name = "5V";
225		regulator-min-microvolt = <5000000>;
226		regulator-max-microvolt = <5000000>;
227	};
228
229	reg_usbc_vbus: regulator-usbc-vbus {
230		compatible = "regulator-fixed";
231		regulator-name = "VCC_USB2";
232		regulator-min-microvolt = <5000000>;
233		regulator-max-microvolt = <5000000>;
234		vin-supply = <&reg_5v0>;
235	};
236
237	/* USBH_PEN resp. USB_P_EN */
238	reg_usbh_vbus: regulator-usbh-vbus {
239		compatible = "regulator-fixed";
240		regulator-name = "VCC_USB1";
241		regulator-min-microvolt = <5000000>;
242		regulator-max-microvolt = <5000000>;
243		gpio = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_LOW>;
244		vin-supply = <&reg_5v0>;
245	};
246};
247