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