• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// SPDX-License-Identifier: GPL-2.0
2/dts-v1/;
3
4#include "tegra30-colibri.dtsi"
5
6/ {
7	model = "Toradex Colibri T30 on Colibri Evaluation Board";
8	compatible = "toradex,colibri_t30-eval-v3", "toradex,colibri_t30", "nvidia,tegra30";
9
10	aliases {
11		rtc0 = "/i2c@7000c000/rtc@68";
12		rtc1 = "/i2c@7000d000/tps65911@2d";
13		rtc2 = "/rtc@7000e000";
14		serial0 = &uarta;
15		serial1 = &uartb;
16		serial2 = &uartd;
17	};
18
19	chosen {
20		stdout-path = "serial0:115200n8";
21	};
22
23	host1x@50000000 {
24		dc@54200000 {
25			rgb {
26				status = "okay";
27				nvidia,panel = <&panel>;
28			};
29		};
30		hdmi@54280000 {
31			status = "okay";
32		};
33	};
34
35	serial@70006000 {
36		status = "okay";
37	};
38
39	serial@70006040 {
40		compatible = "nvidia,tegra30-hsuart";
41		status = "okay";
42	};
43
44	serial@70006300 {
45		compatible = "nvidia,tegra30-hsuart";
46		status = "okay";
47	};
48
49	pwm@7000a000 {
50		status = "okay";
51	};
52
53	/*
54	 * GEN1_I2C: I2C_SDA/SCL on SODIMM pin 194/196 (e.g. RTC on carrier
55	 * board)
56	 */
57	i2c@7000c000 {
58		status = "okay";
59		clock-frequency = <400000>;
60
61		/* M41T0M6 real time clock on carrier board */
62		rtc@68 {
63			compatible = "st,m41t0";
64			reg = <0x68>;
65		};
66	};
67
68	/* DDC_CLOCK/DATA on X3 pin 15/16 (e.g. display EDID) */
69	hdmiddc: i2c@7000c700 {
70		status = "okay";
71	};
72
73	/* SPI1: Colibri SSP */
74	spi@7000d400 {
75		status = "okay";
76		spi-max-frequency = <25000000>;
77		can0: can@0 {
78			compatible = "microchip,mcp2515";
79			reg = <0>;
80			clocks = <&clk16m>;
81			interrupt-parent = <&gpio>;
82			/* CAN_INT */
83			interrupts = <TEGRA_GPIO(S, 0) IRQ_TYPE_EDGE_FALLING>;
84			spi-max-frequency = <10000000>;
85		};
86		spidev0: spi@1 {
87			compatible = "spidev";
88			reg = <1>;
89			spi-max-frequency = <25000000>;
90		};
91	};
92
93	/* SD/MMC */
94	sdhci@78000200 {
95		status = "okay";
96		bus-width = <4>;
97		cd-gpios = <&gpio TEGRA_GPIO(C, 7) GPIO_ACTIVE_LOW>;
98		no-1-8-v;
99	};
100
101	/* EHCI instance 0: USB1_DP/N -> USBC_P/N */
102	usb@7d000000 {
103		status = "okay";
104	};
105
106	usb-phy@7d000000 {
107		status = "okay";
108		dr_mode = "otg";
109		vbus-supply = <&usbc_vbus_reg>;
110	};
111
112	/* EHCI instance 2: USB3_DP/N -> USBH_P/N */
113	usb@7d008000 {
114		status = "okay";
115	};
116
117	usb-phy@7d008000 {
118		status = "okay";
119		vbus-supply = <&usbh_vbus_reg>;
120	};
121
122	backlight: backlight {
123		compatible = "pwm-backlight";
124
125		/* PWM<A> */
126		pwms = <&pwm 0 5000000>;
127		brightness-levels = <255 128 64 32 16 8 4 0>;
128		default-brightness-level = <6>;
129		/* BL_ON */
130		enable-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_HIGH>;
131	};
132
133	clocks {
134		clk16m: clk@1 {
135			compatible = "fixed-clock";
136			reg = <1>;
137			#clock-cells = <0>;
138			clock-frequency = <16000000>;
139			clock-output-names = "clk16m";
140		};
141	};
142
143	gpio-keys {
144		compatible = "gpio-keys";
145
146		wakeup {
147			label = "SODIMM pin 45 wakeup";
148			gpios = <&gpio TEGRA_GPIO(V, 1) GPIO_ACTIVE_HIGH>;
149			linux,code = <KEY_WAKEUP>;
150			debounce-interval = <10>;
151			wakeup-source;
152		};
153	};
154
155	panel: panel {
156		/*
157		 * edt,et057090dhu: EDT 5.7" LCD TFT
158		 * edt,et070080dh6: EDT 7.0" LCD TFT
159		 */
160		compatible = "edt,et057090dhu", "simple-panel";
161
162		backlight = <&backlight>;
163	};
164
165	pwmleds {
166		compatible = "pwm-leds";
167
168		pwmb {
169			label = "PWM<B>";
170			pwms = <&pwm 1 19600>;
171			max-brightness = <255>;
172		};
173		pwmc {
174			label = "PWM<C>";
175			pwms = <&pwm 2 19600>;
176			max-brightness = <255>;
177		};
178		pwmd {
179			label = "PWM<D>";
180			pwms = <&pwm 3 19600>;
181			max-brightness = <255>;
182		};
183	};
184
185	regulators {
186		sys_5v0_reg: regulator@1 {
187			compatible = "regulator-fixed";
188			reg = <1>;
189			regulator-name = "5v0";
190			regulator-min-microvolt = <5000000>;
191			regulator-max-microvolt = <5000000>;
192			regulator-always-on;
193		};
194
195		usbc_vbus_reg: regulator@2 {
196			compatible = "regulator-fixed";
197			reg = <2>;
198			regulator-name = "usbc_vbus";
199			regulator-min-microvolt = <5000000>;
200			regulator-max-microvolt = <5000000>;
201			vin-supply = <&sys_5v0_reg>;
202		};
203
204		/* USBH_PEN */
205		usbh_vbus_reg: regulator@3 {
206			compatible = "regulator-fixed";
207			reg = <3>;
208			regulator-name = "usbh_vbus";
209			regulator-min-microvolt = <5000000>;
210			regulator-max-microvolt = <5000000>;
211			gpio = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_LOW>;
212			vin-supply = <&sys_5v0_reg>;
213		};
214	};
215};
216