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