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