blob: 2e2cdd454fe398f05005dccb3602565612edf12a [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001// SPDX-License-Identifier: GPL-2.0
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +02002#include "tegra30.dtsi"
3
4/*
Marcel Ziswilera5e27202015-08-28 14:42:28 +02005 * Toradex Apalis T30 Module Device Tree
6 * Compatible for Revisions 1GB: V1.0A, V1.1A; 1GB IT: V1.1A;
7 * 2GB: V1.0B, V1.0C, V1.0E, V1.1A
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +02008 */
9/ {
10 model = "Toradex Apalis T30";
11 compatible = "toradex,apalis_t30", "nvidia,tegra30";
12
Krzysztof Kozlowski48299762018-07-09 18:05:17 +020013 memory@80000000 {
14 reg = <0x80000000 0x40000000>;
Krzysztof Kozlowskif48ba1a2018-07-09 18:05:16 +020015 };
16
Rob Herring508d6902017-03-21 21:03:06 -050017 pcie@3000 {
Marcel Ziswiler7890d782018-08-31 18:37:47 +020018 status = "okay";
Marcel Ziswilerb607b192014-06-25 22:10:01 +020019 avdd-pexa-supply = <&vdd2_reg>;
Marcel Ziswilerb607b192014-06-25 22:10:01 +020020 avdd-pexb-supply = <&vdd2_reg>;
Marcel Ziswilerb607b192014-06-25 22:10:01 +020021 avdd-pex-pll-supply = <&vdd2_reg>;
22 avdd-plle-supply = <&ldo6_reg>;
Marcel Ziswilerf98439c2018-08-31 18:37:49 +020023 hvdd-pex-supply = <&reg_module_3v3>;
24 vddio-pex-ctl-supply = <&reg_module_3v3>;
Marcel Ziswiler4f6b07a2018-08-31 18:37:46 +020025 vdd-pexa-supply = <&vdd2_reg>;
26 vdd-pexb-supply = <&vdd2_reg>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +020027
Marcel Ziswiler7890d782018-08-31 18:37:47 +020028 /* Apalis type specific */
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +020029 pci@1,0 {
30 nvidia,num-lanes = <4>;
31 };
32
Marcel Ziswiler7890d782018-08-31 18:37:47 +020033 /* Apalis PCIe */
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +020034 pci@2,0 {
35 nvidia,num-lanes = <1>;
36 };
37
Marcel Ziswiler7890d782018-08-31 18:37:47 +020038 /* I210/I211 Gigabit Ethernet Controller (on-module) */
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +020039 pci@3,0 {
Marcel Ziswiler7890d782018-08-31 18:37:47 +020040 status = "okay";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +020041 nvidia,num-lanes = <1>;
Marcel Ziswiler4eb7e5e2018-08-31 18:37:53 +020042
Marcel Ziswiler2c874412018-08-31 18:37:45 +020043 pcie@0 {
44 reg = <0 0 0 0 0>;
45 local-mac-address = [00 00 00 00 00 00];
46 };
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +020047 };
48 };
49
50 host1x@50000000 {
51 hdmi@54280000 {
Marcel Ziswilera772d282018-08-31 18:37:48 +020052 nvidia,ddc-i2c-bus = <&hdmiddc>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +020053 nvidia,hpd-gpio =
54 <&gpio TEGRA_GPIO(N, 7) GPIO_ACTIVE_HIGH>;
Marcel Ziswilerf98439c2018-08-31 18:37:49 +020055 pll-supply = <&reg_1v8_avdd_hdmi_pll>;
56 vdd-supply = <&reg_3v3_avdd_hdmi>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +020057 };
58 };
59
60 pinmux@70000868 {
61 pinctrl-names = "default";
62 pinctrl-0 = <&state_default>;
63
64 state_default: pinmux {
Marcel Ziswiler8948e742016-06-19 03:00:01 +020065 /* Analogue Audio (On-module) */
Marcel Ziswiler727002e2018-08-31 18:37:59 +020066 clk1-out-pw4 {
Marcel Ziswiler8948e742016-06-19 03:00:01 +020067 nvidia,pins = "clk1_out_pw4";
68 nvidia,function = "extperiph1";
69 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
70 nvidia,tristate = <TEGRA_PIN_DISABLE>;
71 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
72 };
Marcel Ziswiler727002e2018-08-31 18:37:59 +020073 dap3-fs-pp0 {
74 nvidia,pins = "dap3_fs_pp0",
75 "dap3_sclk_pp3",
76 "dap3_din_pp1",
77 "dap3_dout_pp2";
Marcel Ziswiler8948e742016-06-19 03:00:01 +020078 nvidia,function = "i2s2";
79 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
80 nvidia,tristate = <TEGRA_PIN_DISABLE>;
81 };
82
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +020083 /* Apalis BKL1_ON */
84 pv2 {
85 nvidia,pins = "pv2";
86 nvidia,function = "rsvd4";
87 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
88 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Marcel Ziswiler727002e2018-08-31 18:37:59 +020089 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +020090 };
91
92 /* Apalis BKL1_PWM */
Marcel Ziswiler727002e2018-08-31 18:37:59 +020093 uart3-rts-n-pc0 {
Thierry Reding40699b922015-09-15 10:29:57 +020094 nvidia,pins = "uart3_rts_n_pc0";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +020095 nvidia,function = "pwm0";
96 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
97 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Marcel Ziswiler727002e2018-08-31 18:37:59 +020098 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +020099 };
100 /* BKL1_PWM_EN#, disable TPS65911 PMIC PWM backlight */
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200101 uart3-cts-n-pa1 {
Thierry Reding40699b922015-09-15 10:29:57 +0200102 nvidia,pins = "uart3_cts_n_pa1";
Marcel Ziswiler0f44de62015-08-28 14:42:30 +0200103 nvidia,function = "rsvd2";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200104 nvidia,pull = <TEGRA_PIN_PULL_UP>;
105 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200106 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200107 };
108
109 /* Apalis CAN1 on SPI6 */
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200110 spi2-cs0-n-px3 {
Thierry Reding40699b922015-09-15 10:29:57 +0200111 nvidia,pins = "spi2_cs0_n_px3",
112 "spi2_miso_px1",
113 "spi2_mosi_px0",
114 "spi2_sck_px2";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200115 nvidia,function = "spi6";
116 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
117 nvidia,tristate = <TEGRA_PIN_DISABLE>;
118 };
119 /* CAN_INT1 */
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200120 spi2-cs1-n-pw2 {
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200121 nvidia,pins = "spi2_cs1_n_pw2";
122 nvidia,function = "spi3";
123 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
124 nvidia,tristate = <TEGRA_PIN_DISABLE>;
125 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
126 };
127
128 /* Apalis CAN2 on SPI4 */
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200129 gmi-a16-pj7 {
Thierry Reding40699b922015-09-15 10:29:57 +0200130 nvidia,pins = "gmi_a16_pj7",
131 "gmi_a17_pb0",
132 "gmi_a18_pb1",
133 "gmi_a19_pk7";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200134 nvidia,function = "spi4";
135 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
136 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Marcel Ziswiler700253e2018-07-03 17:03:39 +0200137 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200138 };
139 /* CAN_INT2 */
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200140 spi2-cs2-n-pw3 {
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200141 nvidia,pins = "spi2_cs2_n_pw3";
142 nvidia,function = "spi3";
143 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
144 nvidia,tristate = <TEGRA_PIN_DISABLE>;
145 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
146 };
147
Marcel Ziswiler4399f402015-08-28 14:42:32 +0200148 /* Apalis Digital Audio */
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200149 clk1-req-pee2 {
Thierry Reding40699b922015-09-15 10:29:57 +0200150 nvidia,pins = "clk1_req_pee2";
Marcel Ziswiler4399f402015-08-28 14:42:32 +0200151 nvidia,function = "hda";
152 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
153 nvidia,tristate = <TEGRA_PIN_DISABLE>;
154 };
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200155 clk2-out-pw5 {
Marcel Ziswiler4399f402015-08-28 14:42:32 +0200156 nvidia,pins = "clk2_out_pw5";
157 nvidia,function = "extperiph2";
158 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
159 nvidia,tristate = <TEGRA_PIN_DISABLE>;
160 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
161 };
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200162 dap1-fs-pn0 {
Thierry Reding40699b922015-09-15 10:29:57 +0200163 nvidia,pins = "dap1_fs_pn0",
164 "dap1_din_pn1",
165 "dap1_dout_pn2",
166 "dap1_sclk_pn3";
Marcel Ziswiler4399f402015-08-28 14:42:32 +0200167 nvidia,function = "hda";
168 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
169 nvidia,tristate = <TEGRA_PIN_DISABLE>;
170 };
171
Marcel Ziswiler368f1392018-08-31 18:38:00 +0200172 /* Apalis GPIO */
173 kb-col0-pq0 {
174 nvidia,pins = "kb_col0_pq0",
175 "kb_col1_pq1",
176 "kb_row10_ps2",
177 "kb_row11_ps3",
178 "kb_row12_ps4",
179 "kb_row13_ps5",
180 "kb_row14_ps6",
181 "kb_row15_ps7";
182 nvidia,function = "kbc";
183 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
184 nvidia,tristate = <TEGRA_PIN_DISABLE>;
185 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
186 };
187 /* Multiplexed and therefore disabled */
188 owr {
189 nvidia,pins = "owr";
190 nvidia,function = "rsvd3";
191 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
192 nvidia,tristate = <TEGRA_PIN_ENABLE>;
193 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
194 };
195
196 /* Apalis HDMI1 */
197 hdmi-cec-pee3 {
198 nvidia,pins = "hdmi_cec_pee3";
199 nvidia,function = "cec";
200 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
201 nvidia,tristate = <TEGRA_PIN_DISABLE>;
202 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
203 nvidia,open-drain = <TEGRA_PIN_DISABLE>;
204 };
205 hdmi-int-pn7 {
206 nvidia,pins = "hdmi_int_pn7";
207 nvidia,function = "hdmi";
208 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
209 nvidia,tristate = <TEGRA_PIN_ENABLE>;
210 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
211 };
212
213 /* Apalis I2C1 */
214 gen1-i2c-scl-pc4 {
215 nvidia,pins = "gen1_i2c_scl_pc4",
216 "gen1_i2c_sda_pc5";
217 nvidia,function = "i2c1";
218 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
219 nvidia,tristate = <TEGRA_PIN_DISABLE>;
220 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
221 nvidia,open-drain = <TEGRA_PIN_ENABLE>;
222 };
223
224 /* Apalis I2C2 (DDC) */
225 ddc-scl-pv4 {
226 nvidia,pins = "ddc_scl_pv4",
227 "ddc_sda_pv5";
228 nvidia,function = "i2c4";
229 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
230 nvidia,tristate = <TEGRA_PIN_DISABLE>;
231 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
232 };
233
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200234 /* Apalis I2C3 (CAM) */
235 cam-i2c-scl-pbb1 {
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200236 nvidia,pins = "cam_i2c_scl_pbb1",
237 "cam_i2c_sda_pbb2";
238 nvidia,function = "i2c3";
239 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
240 nvidia,tristate = <TEGRA_PIN_DISABLE>;
241 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200242 nvidia,open-drain = <TEGRA_PIN_ENABLE>;
243 };
244
Marcel Ziswiler368f1392018-08-31 18:38:00 +0200245 /* Apalis LCD1 */
246 lcd-d0-pe0 {
247 nvidia,pins = "lcd_d0_pe0",
248 "lcd_d1_pe1",
249 "lcd_d2_pe2",
250 "lcd_d3_pe3",
251 "lcd_d4_pe4",
252 "lcd_d5_pe5",
253 "lcd_d6_pe6",
254 "lcd_d7_pe7",
255 "lcd_d8_pf0",
256 "lcd_d9_pf1",
257 "lcd_d10_pf2",
258 "lcd_d11_pf3",
259 "lcd_d12_pf4",
260 "lcd_d13_pf5",
261 "lcd_d14_pf6",
262 "lcd_d15_pf7",
263 "lcd_d16_pm0",
264 "lcd_d17_pm1",
265 "lcd_d18_pm2",
266 "lcd_d19_pm3",
267 "lcd_d20_pm4",
268 "lcd_d21_pm5",
269 "lcd_d22_pm6",
270 "lcd_d23_pm7",
271 "lcd_de_pj1",
272 "lcd_hsync_pj3",
273 "lcd_pclk_pb3",
274 "lcd_vsync_pj4";
275 nvidia,function = "displaya";
276 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
277 nvidia,tristate = <TEGRA_PIN_DISABLE>;
278 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
279 };
280
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200281 /* Apalis MMC1 */
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200282 sdmmc3-clk-pa6 {
Marcel Ziswiler1c997fe2018-08-31 18:37:43 +0200283 nvidia,pins = "sdmmc3_clk_pa6";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200284 nvidia,function = "sdmmc3";
285 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
286 nvidia,tristate = <TEGRA_PIN_DISABLE>;
287 };
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200288 sdmmc3-dat0-pb7 {
Marcel Ziswiler1c997fe2018-08-31 18:37:43 +0200289 nvidia,pins = "sdmmc3_cmd_pa7",
290 "sdmmc3_dat0_pb7",
Thierry Reding40699b922015-09-15 10:29:57 +0200291 "sdmmc3_dat1_pb6",
292 "sdmmc3_dat2_pb5",
293 "sdmmc3_dat3_pb4",
294 "sdmmc3_dat4_pd1",
295 "sdmmc3_dat5_pd0",
296 "sdmmc3_dat6_pd3",
297 "sdmmc3_dat7_pd4";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200298 nvidia,function = "sdmmc3";
299 nvidia,pull = <TEGRA_PIN_PULL_UP>;
300 nvidia,tristate = <TEGRA_PIN_DISABLE>;
301 };
302 /* Apalis MMC1_CD# */
303 pv3 {
304 nvidia,pins = "pv3";
305 nvidia,function = "rsvd2";
Marcel Ziswiler055c0102018-08-31 18:37:44 +0200306 nvidia,pull = <TEGRA_PIN_PULL_UP>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200307 nvidia,tristate = <TEGRA_PIN_DISABLE>;
308 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
309 };
310
Marcel Ziswiler368f1392018-08-31 18:38:00 +0200311 /* Apalis Parallel Camera */
312 cam-mclk-pcc0 {
313 nvidia,pins = "cam_mclk_pcc0";
314 nvidia,function = "vi_alt3";
315 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
316 nvidia,tristate = <TEGRA_PIN_DISABLE>;
317 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
318 };
319 vi-vsync-pd6 {
320 nvidia,pins = "vi_d0_pt4",
321 "vi_d1_pd5",
322 "vi_d2_pl0",
323 "vi_d3_pl1",
324 "vi_d4_pl2",
325 "vi_d5_pl3",
326 "vi_d6_pl4",
327 "vi_d7_pl5",
328 "vi_d8_pl6",
329 "vi_d9_pl7",
330 "vi_d10_pt2",
331 "vi_d11_pt3",
332 "vi_hsync_pd7",
333 "vi_pclk_pt0",
334 "vi_vsync_pd6";
335 nvidia,function = "vi";
336 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
337 nvidia,tristate = <TEGRA_PIN_DISABLE>;
338 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
339 };
340 /* Multiplexed and therefore disabled */
341 kb-col2-pq2 {
342 nvidia,pins = "kb_col2_pq2",
343 "kb_col3_pq3",
344 "kb_col4_pq4",
345 "kb_row4_pr4";
346 nvidia,function = "rsvd4";
347 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
348 nvidia,tristate = <TEGRA_PIN_ENABLE>;
349 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
350 };
351 kb-row0-pr0 {
352 nvidia,pins = "kb_row0_pr0",
353 "kb_row1_pr1",
354 "kb_row2_pr2",
355 "kb_row3_pr3";
356 nvidia,function = "rsvd3";
357 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
358 nvidia,tristate = <TEGRA_PIN_ENABLE>;
359 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
360 };
361 kb-row5-pr5 {
362 nvidia,pins = "kb_row5_pr5",
363 "kb_row6_pr6",
364 "kb_row7_pr7";
365 nvidia,function = "kbc";
366 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
367 nvidia,tristate = <TEGRA_PIN_ENABLE>;
368 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
369 };
370 /*
371 * VI level-shifter direction
372 * (pull-down => default direction input)
373 */
374 vi-mclk-pt1 {
375 nvidia,pins = "vi_mclk_pt1";
376 nvidia,function = "vi_alt3";
377 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
378 nvidia,tristate = <TEGRA_PIN_ENABLE>;
379 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
380 };
381
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200382 /* Apalis PWM1 */
Marcel Ziswiler0f44de62015-08-28 14:42:30 +0200383 pu6 {
Thierry Reding40699b922015-09-15 10:29:57 +0200384 nvidia,pins = "pu6";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200385 nvidia,function = "pwm3";
386 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
387 nvidia,tristate = <TEGRA_PIN_DISABLE>;
388 };
389
390 /* Apalis PWM2 */
Marcel Ziswiler0f44de62015-08-28 14:42:30 +0200391 pu5 {
Thierry Reding40699b922015-09-15 10:29:57 +0200392 nvidia,pins = "pu5";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200393 nvidia,function = "pwm2";
394 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
395 nvidia,tristate = <TEGRA_PIN_DISABLE>;
396 };
397
398 /* Apalis PWM3 */
Marcel Ziswiler0f44de62015-08-28 14:42:30 +0200399 pu4 {
Thierry Reding40699b922015-09-15 10:29:57 +0200400 nvidia,pins = "pu4";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200401 nvidia,function = "pwm1";
402 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
403 nvidia,tristate = <TEGRA_PIN_DISABLE>;
404 };
405
406 /* Apalis PWM4 */
Marcel Ziswiler0f44de62015-08-28 14:42:30 +0200407 pu3 {
Thierry Reding40699b922015-09-15 10:29:57 +0200408 nvidia,pins = "pu3";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200409 nvidia,function = "pwm0";
410 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
411 nvidia,tristate = <TEGRA_PIN_DISABLE>;
412 };
413
414 /* Apalis RESET_MOCI# */
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200415 gmi-rst-n-pi4 {
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200416 nvidia,pins = "gmi_rst_n_pi4";
417 nvidia,function = "gmi";
418 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
419 nvidia,tristate = <TEGRA_PIN_DISABLE>;
420 };
421
Marcel Ziswiler368f1392018-08-31 18:38:00 +0200422 /* Apalis SATA1_ACT# */
423 pex-l0-prsnt-n-pdd0 {
424 nvidia,pins = "pex_l0_prsnt_n_pdd0";
425 nvidia,function = "rsvd3";
426 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
427 nvidia,tristate = <TEGRA_PIN_DISABLE>;
428 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
429 };
430
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200431 /* Apalis SD1 */
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200432 sdmmc1-clk-pz0 {
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200433 nvidia,pins = "sdmmc1_clk_pz0";
434 nvidia,function = "sdmmc1";
435 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
436 nvidia,tristate = <TEGRA_PIN_DISABLE>;
437 };
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200438 sdmmc1-cmd-pz1 {
Thierry Reding40699b922015-09-15 10:29:57 +0200439 nvidia,pins = "sdmmc1_cmd_pz1",
440 "sdmmc1_dat0_py7",
441 "sdmmc1_dat1_py6",
442 "sdmmc1_dat2_py5",
443 "sdmmc1_dat3_py4";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200444 nvidia,function = "sdmmc1";
445 nvidia,pull = <TEGRA_PIN_PULL_UP>;
446 nvidia,tristate = <TEGRA_PIN_DISABLE>;
447 };
448 /* Apalis SD1_CD# */
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200449 clk2-req-pcc5 {
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200450 nvidia,pins = "clk2_req_pcc5";
451 nvidia,function = "rsvd2";
Marcel Ziswiler055c0102018-08-31 18:37:44 +0200452 nvidia,pull = <TEGRA_PIN_PULL_UP>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200453 nvidia,tristate = <TEGRA_PIN_DISABLE>;
454 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
455 };
456
Marcel Ziswiler368f1392018-08-31 18:38:00 +0200457 /* Apalis SPDIF1 */
458 spdif-out-pk5 {
459 nvidia,pins = "spdif_out_pk5",
460 "spdif_in_pk6";
461 nvidia,function = "spdif";
462 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
463 nvidia,tristate = <TEGRA_PIN_DISABLE>;
464 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
465 };
466
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200467 /* Apalis SPI1 */
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200468 spi1-sck-px5 {
Thierry Reding40699b922015-09-15 10:29:57 +0200469 nvidia,pins = "spi1_sck_px5",
470 "spi1_mosi_px4",
471 "spi1_miso_px7",
472 "spi1_cs0_n_px6";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200473 nvidia,function = "spi1";
474 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
475 nvidia,tristate = <TEGRA_PIN_DISABLE>;
476 };
477
478 /* Apalis SPI2 */
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200479 lcd-sck-pz4 {
Thierry Reding40699b922015-09-15 10:29:57 +0200480 nvidia,pins = "lcd_sck_pz4",
481 "lcd_sdout_pn5",
482 "lcd_sdin_pz2",
483 "lcd_cs0_n_pn4";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200484 nvidia,function = "spi5";
485 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
486 nvidia,tristate = <TEGRA_PIN_DISABLE>;
487 };
488
Marcel Ziswiler368f1392018-08-31 18:38:00 +0200489 /*
490 * Apalis TS (Low-speed type specific)
491 * pins may be used as GPIOs
492 */
493 kb-col5-pq5 {
494 nvidia,pins = "kb_col5_pq5";
495 nvidia,function = "rsvd4";
496 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
497 nvidia,tristate = <TEGRA_PIN_DISABLE>;
498 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
499 };
500 kb-col6-pq6 {
501 nvidia,pins = "kb_col6_pq6",
502 "kb_col7_pq7",
503 "kb_row8_ps0",
504 "kb_row9_ps1";
505 nvidia,function = "kbc";
506 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
507 nvidia,tristate = <TEGRA_PIN_DISABLE>;
508 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
509 };
510
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200511 /* Apalis UART1 */
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200512 ulpi-data0 {
Thierry Reding40699b922015-09-15 10:29:57 +0200513 nvidia,pins = "ulpi_data0_po1",
514 "ulpi_data1_po2",
515 "ulpi_data2_po3",
516 "ulpi_data3_po4",
517 "ulpi_data4_po5",
518 "ulpi_data5_po6",
519 "ulpi_data6_po7",
520 "ulpi_data7_po0";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200521 nvidia,function = "uarta";
522 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
523 nvidia,tristate = <TEGRA_PIN_DISABLE>;
524 };
525
526 /* Apalis UART2 */
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200527 ulpi-clk-py0 {
Thierry Reding40699b922015-09-15 10:29:57 +0200528 nvidia,pins = "ulpi_clk_py0",
529 "ulpi_dir_py1",
530 "ulpi_nxt_py2",
531 "ulpi_stp_py3";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200532 nvidia,function = "uartd";
533 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
534 nvidia,tristate = <TEGRA_PIN_DISABLE>;
535 };
536
537 /* Apalis UART3 */
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200538 uart2-rxd-pc3 {
Thierry Reding40699b922015-09-15 10:29:57 +0200539 nvidia,pins = "uart2_rxd_pc3",
540 "uart2_txd_pc2";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200541 nvidia,function = "uartb";
542 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
543 nvidia,tristate = <TEGRA_PIN_DISABLE>;
544 };
545
546 /* Apalis UART4 */
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200547 uart3-rxd-pw7 {
Thierry Reding40699b922015-09-15 10:29:57 +0200548 nvidia,pins = "uart3_rxd_pw7",
549 "uart3_txd_pw6";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200550 nvidia,function = "uartc";
551 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
552 nvidia,tristate = <TEGRA_PIN_DISABLE>;
553 };
554
Marcel Ziswiler368f1392018-08-31 18:38:00 +0200555 /* Apalis USBH_EN */
556 pex-l0-rst-n-pdd1 {
557 nvidia,pins = "pex_l0_rst_n_pdd1";
558 nvidia,function = "rsvd3";
559 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
560 nvidia,tristate = <TEGRA_PIN_DISABLE>;
561 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
562 };
563
564 /* Apalis USBH_OC# */
565 pex-l0-clkreq-n-pdd2 {
566 nvidia,pins = "pex_l0_clkreq_n_pdd2";
567 nvidia,function = "rsvd3";
568 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
569 nvidia,tristate = <TEGRA_PIN_DISABLE>;
570 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
571 };
572
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200573 /* Apalis USBO1_EN */
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200574 gen2-i2c-scl-pt5 {
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200575 nvidia,pins = "gen2_i2c_scl_pt5";
576 nvidia,function = "rsvd4";
577 nvidia,open-drain = <TEGRA_PIN_DISABLE>;
578 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
579 nvidia,tristate = <TEGRA_PIN_DISABLE>;
580 };
581
582 /* Apalis USBO1_OC# */
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200583 gen2-i2c-sda-pt6 {
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200584 nvidia,pins = "gen2_i2c_sda_pt6";
585 nvidia,function = "rsvd4";
586 nvidia,open-drain = <TEGRA_PIN_DISABLE>;
587 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
588 nvidia,tristate = <TEGRA_PIN_DISABLE>;
589 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
590 };
591
Marcel Ziswiler368f1392018-08-31 18:38:00 +0200592 /* Apalis VGA1 not supported and therefore disabled */
593 crt-hsync-pv6 {
594 nvidia,pins = "crt_hsync_pv6",
595 "crt_vsync_pv7";
596 nvidia,function = "rsvd2";
597 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
598 nvidia,tristate = <TEGRA_PIN_ENABLE>;
599 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
600 };
601
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200602 /* Apalis WAKE1_MICO */
603 pv1 {
604 nvidia,pins = "pv1";
605 nvidia,function = "rsvd1";
606 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
607 nvidia,tristate = <TEGRA_PIN_DISABLE>;
608 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
609 };
610
611 /* eMMC (On-module) */
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200612 sdmmc4-clk-pcc4 {
Thierry Reding40699b922015-09-15 10:29:57 +0200613 nvidia,pins = "sdmmc4_clk_pcc4",
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200614 "sdmmc4_cmd_pt7",
Thierry Reding40699b922015-09-15 10:29:57 +0200615 "sdmmc4_rst_n_pcc3";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200616 nvidia,function = "sdmmc4";
617 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
618 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200619 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200620 };
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200621 sdmmc4-dat0-paa0 {
Thierry Reding40699b922015-09-15 10:29:57 +0200622 nvidia,pins = "sdmmc4_dat0_paa0",
623 "sdmmc4_dat1_paa1",
624 "sdmmc4_dat2_paa2",
625 "sdmmc4_dat3_paa3",
626 "sdmmc4_dat4_paa4",
627 "sdmmc4_dat5_paa5",
628 "sdmmc4_dat6_paa6",
629 "sdmmc4_dat7_paa7";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200630 nvidia,function = "sdmmc4";
631 nvidia,pull = <TEGRA_PIN_PULL_UP>;
632 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200633 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200634 };
635
Marcel Ziswiler368f1392018-08-31 18:38:00 +0200636 /* LAN i210/i211 DEV_OFF_N, PE_RST_N (On-module) */
637 pex-l2-prsnt-n-pdd7 {
638 nvidia,pins = "pex_l2_prsnt_n_pdd7",
639 "pex_l2_rst_n_pcc6";
640 nvidia,function = "pcie";
641 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
642 nvidia,tristate = <TEGRA_PIN_DISABLE>;
643 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
644 };
645 /* LAN i210/i211 PE_WAKE_N, SDP3 (On-module) */
646 pex-wake-n-pdd3 {
647 nvidia,pins = "pex_wake_n_pdd3",
648 "pex_l2_clkreq_n_pcc7";
649 nvidia,function = "pcie";
650 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
651 nvidia,tristate = <TEGRA_PIN_DISABLE>;
652 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
653 };
654 /* LAN i210/i211 SMB_ALERT_N (On-module) */
655 sys-clk-req-pz5 {
656 nvidia,pins = "sys_clk_req_pz5";
657 nvidia,function = "rsvd2";
658 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
659 nvidia,tristate = <TEGRA_PIN_DISABLE>;
660 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
661 };
662
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200663 /* LVDS Transceiver Configuration */
664 pbb0 {
Thierry Reding40699b922015-09-15 10:29:57 +0200665 nvidia,pins = "pbb0",
666 "pbb7",
667 "pcc1",
668 "pcc2";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200669 nvidia,function = "rsvd2";
670 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
671 nvidia,tristate = <TEGRA_PIN_DISABLE>;
672 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200673 };
674 pbb3 {
Thierry Reding40699b922015-09-15 10:29:57 +0200675 nvidia,pins = "pbb3",
676 "pbb4",
677 "pbb5",
678 "pbb6";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200679 nvidia,function = "displayb";
680 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
681 nvidia,tristate = <TEGRA_PIN_DISABLE>;
682 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200683 };
684
Marcel Ziswiler368f1392018-08-31 18:38:00 +0200685 /* Not connected and therefore disabled */
686 clk-32k-out-pa0 {
687 nvidia,pins = "clk3_out_pee0",
688 "clk3_req_pee1",
689 "clk_32k_out_pa0",
690 "dap4_din_pp5",
691 "dap4_dout_pp6",
692 "dap4_fs_pp4",
693 "dap4_sclk_pp7";
694 nvidia,function = "rsvd2";
695 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
696 nvidia,tristate = <TEGRA_PIN_ENABLE>;
697 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
698 };
699 dap2-fs-pa2 {
700 nvidia,pins = "dap2_fs_pa2",
701 "dap2_sclk_pa3",
702 "dap2_din_pa4",
703 "dap2_dout_pa5",
704 "lcd_dc0_pn6",
705 "lcd_m1_pw1",
706 "lcd_pwr1_pc1",
707 "pex_l1_clkreq_n_pdd6",
708 "pex_l1_prsnt_n_pdd4",
709 "pex_l1_rst_n_pdd5";
710 nvidia,function = "rsvd3";
711 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
712 nvidia,tristate = <TEGRA_PIN_ENABLE>;
713 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
714 };
715 gmi-ad0-pg0 {
716 nvidia,pins = "gmi_ad0_pg0",
717 "gmi_ad2_pg2",
718 "gmi_ad3_pg3",
719 "gmi_ad4_pg4",
720 "gmi_ad5_pg5",
721 "gmi_ad6_pg6",
722 "gmi_ad7_pg7",
723 "gmi_ad8_ph0",
724 "gmi_ad9_ph1",
725 "gmi_ad10_ph2",
726 "gmi_ad11_ph3",
727 "gmi_ad12_ph4",
728 "gmi_ad13_ph5",
729 "gmi_ad14_ph6",
730 "gmi_ad15_ph7",
731 "gmi_adv_n_pk0",
732 "gmi_clk_pk1",
733 "gmi_cs4_n_pk2",
734 "gmi_cs2_n_pk3",
735 "gmi_dqs_pi2",
736 "gmi_iordy_pi5",
737 "gmi_oe_n_pi1",
738 "gmi_wait_pi7",
739 "gmi_wr_n_pi0",
740 "lcd_cs1_n_pw0",
741 "pu0",
742 "pu1",
743 "pu2";
744 nvidia,function = "rsvd4";
745 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
746 nvidia,tristate = <TEGRA_PIN_ENABLE>;
747 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
748 };
749 gmi-cs0-n-pj0 {
750 nvidia,pins = "gmi_cs0_n_pj0",
751 "gmi_cs1_n_pj2",
752 "gmi_cs3_n_pk4";
753 nvidia,function = "rsvd1";
754 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
755 nvidia,tristate = <TEGRA_PIN_ENABLE>;
756 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
757 };
758 gmi-cs6-n-pi3 {
759 nvidia,pins = "gmi_cs6_n_pi3";
760 nvidia,function = "sata";
761 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
762 nvidia,tristate = <TEGRA_PIN_ENABLE>;
763 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
764 };
765 gmi-cs7-n-pi6 {
766 nvidia,pins = "gmi_cs7_n_pi6";
767 nvidia,function = "gmi_alt";
768 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
769 nvidia,tristate = <TEGRA_PIN_ENABLE>;
770 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
771 };
772 lcd-pwr0-pb2 {
773 nvidia,pins = "lcd_pwr0_pb2",
774 "lcd_pwr2_pc6",
775 "lcd_wr_n_pz3";
776 nvidia,function = "hdcp";
777 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
778 nvidia,tristate = <TEGRA_PIN_ENABLE>;
779 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
780 };
781 uart2-cts-n-pj5 {
782 nvidia,pins = "uart2_cts_n_pj5",
783 "uart2_rts_n_pj6";
784 nvidia,function = "gmi";
785 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
786 nvidia,tristate = <TEGRA_PIN_ENABLE>;
787 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
788 };
789
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200790 /* Power I2C (On-module) */
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200791 pwr-i2c-scl-pz6 {
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200792 nvidia,pins = "pwr_i2c_scl_pz6",
793 "pwr_i2c_sda_pz7";
794 nvidia,function = "i2cpwr";
795 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
796 nvidia,tristate = <TEGRA_PIN_DISABLE>;
797 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200798 nvidia,open-drain = <TEGRA_PIN_ENABLE>;
799 };
800
801 /*
802 * THERMD_ALERT#, unlatched I2C address pin of LM95245
803 * temperature sensor therefore requires disabling for
804 * now
805 */
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200806 lcd-dc1-pd2 {
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200807 nvidia,pins = "lcd_dc1_pd2";
808 nvidia,function = "rsvd3";
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200809 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
810 nvidia,tristate = <TEGRA_PIN_ENABLE>;
811 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200812 };
813
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200814 /* TOUCH_PEN_INT# (On-module) */
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200815 pv0 {
816 nvidia,pins = "pv0";
817 nvidia,function = "rsvd1";
818 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
819 nvidia,tristate = <TEGRA_PIN_DISABLE>;
820 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
821 };
822 };
823 };
824
Marcel Ziswilere0734522018-08-31 18:37:51 +0200825 serial@70006040 {
826 compatible = "nvidia,tegra30-hsuart";
827 };
828
829 serial@70006200 {
830 compatible = "nvidia,tegra30-hsuart";
831 };
832
833 serial@70006300 {
834 compatible = "nvidia,tegra30-hsuart";
835 };
836
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200837 hdmiddc: i2c@7000c700 {
Marcel Ziswiler1c3389e2018-02-10 02:36:36 +0100838 clock-frequency = <10000>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200839 };
840
841 /*
842 * PWR_I2C: power I2C to audio codec, PMIC, temperature sensor and
843 * touch screen controller
844 */
845 i2c@7000d000 {
846 status = "okay";
847 clock-frequency = <100000>;
848
Marcel Ziswiler8948e742016-06-19 03:00:01 +0200849 /* SGTL5000 audio codec */
850 sgtl5000: codec@a {
851 compatible = "fsl,sgtl5000";
852 reg = <0x0a>;
Marcel Ziswiler32980cb2018-08-31 18:37:50 +0200853 VDDA-supply = <&reg_module_3v3_audio>;
854 VDDD-supply = <&reg_1v8_vio>;
Marcel Ziswilerf98439c2018-08-31 18:37:49 +0200855 VDDIO-supply = <&reg_module_3v3>;
Marcel Ziswiler8948e742016-06-19 03:00:01 +0200856 clocks = <&tegra_car TEGRA30_CLK_EXTERN1>;
857 };
858
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200859 pmic: tps65911@2d {
860 compatible = "ti,tps65911";
861 reg = <0x2d>;
862
863 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
864 #interrupt-cells = <2>;
865 interrupt-controller;
866
867 ti,system-power-controller;
868
869 #gpio-cells = <2>;
870 gpio-controller;
871
Marcel Ziswilerf98439c2018-08-31 18:37:49 +0200872 vcc1-supply = <&reg_module_3v3>;
873 vcc2-supply = <&reg_module_3v3>;
874 vcc3-supply = <&reg_1v8_vio>;
875 vcc4-supply = <&reg_module_3v3>;
876 vcc5-supply = <&reg_module_3v3>;
877 vcc6-supply = <&reg_1v8_vio>;
878 vcc7-supply = <&reg_5v0_charge_pump>;
879 vccio-supply = <&reg_module_3v3>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200880
881 regulators {
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200882 vdd1_reg: vdd1 {
Marcel Ziswilerf98439c2018-08-31 18:37:49 +0200883 regulator-name = "+V1.35_VDDIO_DDR";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200884 regulator-min-microvolt = <1350000>;
885 regulator-max-microvolt = <1350000>;
886 regulator-always-on;
887 };
888
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200889 vdd2_reg: vdd2 {
Marcel Ziswilerf98439c2018-08-31 18:37:49 +0200890 regulator-name = "+V1.05";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200891 regulator-min-microvolt = <1050000>;
892 regulator-max-microvolt = <1050000>;
893 };
894
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200895 vddctrl_reg: vddctrl {
Marcel Ziswilerf98439c2018-08-31 18:37:49 +0200896 regulator-name = "+V1.0_VDD_CPU";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200897 regulator-min-microvolt = <1150000>;
898 regulator-max-microvolt = <1150000>;
899 regulator-always-on;
900 };
901
Marcel Ziswilerf98439c2018-08-31 18:37:49 +0200902 reg_1v8_vio: vio {
903 regulator-name = "+V1.8";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200904 regulator-min-microvolt = <1800000>;
905 regulator-max-microvolt = <1800000>;
906 regulator-always-on;
907 };
908
909 /* LDO1: unused */
910
911 /*
912 * EN_+V3.3 switching via FET:
Marcel Ziswilerf98439c2018-08-31 18:37:49 +0200913 * +V3.3_AUDIO_AVDD_S, +V3.3
914 * see also +V3.3 fixed supply
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200915 */
916 ldo2_reg: ldo2 {
Marcel Ziswilerf98439c2018-08-31 18:37:49 +0200917 regulator-name = "EN_+V3.3";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200918 regulator-min-microvolt = <3300000>;
919 regulator-max-microvolt = <3300000>;
920 regulator-always-on;
921 };
922
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200923 ldo3_reg: ldo3 {
Marcel Ziswilerf98439c2018-08-31 18:37:49 +0200924 regulator-name = "+V1.2_CSI";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200925 regulator-min-microvolt = <1200000>;
926 regulator-max-microvolt = <1200000>;
927 };
928
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200929 ldo4_reg: ldo4 {
Marcel Ziswilerf98439c2018-08-31 18:37:49 +0200930 regulator-name = "+V1.2_VDD_RTC";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200931 regulator-min-microvolt = <1200000>;
932 regulator-max-microvolt = <1200000>;
933 regulator-always-on;
934 };
935
936 /*
937 * +V2.8_AVDD_VDAC:
Marcel Ziswilerf98439c2018-08-31 18:37:49 +0200938 * only required for (unsupported) analog RGB
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200939 */
940 ldo5_reg: ldo5 {
Marcel Ziswilerf98439c2018-08-31 18:37:49 +0200941 regulator-name = "+V2.8_AVDD_VDAC";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200942 regulator-min-microvolt = <2800000>;
943 regulator-max-microvolt = <2800000>;
944 regulator-always-on;
945 };
946
947 /*
948 * +V1.05_AVDD_PLLE: avdd_plle should be 1.05V
949 * but LDO6 can't set voltage in 50mV
950 * granularity
951 */
952 ldo6_reg: ldo6 {
Marcel Ziswilerf98439c2018-08-31 18:37:49 +0200953 regulator-name = "+V1.05_AVDD_PLLE";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200954 regulator-min-microvolt = <1100000>;
955 regulator-max-microvolt = <1100000>;
956 };
957
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200958 ldo7_reg: ldo7 {
Marcel Ziswilerf98439c2018-08-31 18:37:49 +0200959 regulator-name = "+V1.2_AVDD_PLL";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200960 regulator-min-microvolt = <1200000>;
961 regulator-max-microvolt = <1200000>;
962 regulator-always-on;
963 };
964
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200965 ldo8_reg: ldo8 {
Marcel Ziswilerf98439c2018-08-31 18:37:49 +0200966 regulator-name = "+V1.0_VDD_DDR_HS";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200967 regulator-min-microvolt = <1000000>;
968 regulator-max-microvolt = <1000000>;
969 regulator-always-on;
970 };
971 };
972 };
973
974 /* STMPE811 touch screen controller */
975 stmpe811@41 {
976 compatible = "st,stmpe811";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200977 reg = <0x41>;
Marcel Ziswilerf38f7992018-08-31 18:38:01 +0200978 irq-gpio = <&gpio TEGRA_GPIO(V, 0) IRQ_TYPE_LEVEL_LOW>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200979 interrupt-controller;
980 id = <0>;
981 blocks = <0x5>;
982 irq-trigger = <0x1>;
983
Krzysztof Kozlowski35a21222018-07-09 18:05:18 +0200984 stmpe_touchscreen {
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200985 compatible = "st,stmpe-ts";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200986 /* 3.25 MHz ADC clock speed */
987 st,adc-freq = <1>;
988 /* 8 sample average control */
989 st,ave-ctrl = <3>;
990 /* 7 length fractional part in z */
991 st,fraction-z = <7>;
992 /*
993 * 50 mA typical 80 mA max touchscreen drivers
994 * current limit value
995 */
996 st,i-drive = <1>;
997 /* 12-bit ADC */
998 st,mod-12b = <1>;
999 /* internal ADC reference */
1000 st,ref-sel = <0>;
1001 /* ADC converstion time: 80 clocks */
1002 st,sample-time = <4>;
1003 /* 1 ms panel driver settling time */
1004 st,settling = <3>;
1005 /* 5 ms touch detect interrupt delay */
1006 st,touch-det-delay = <5>;
1007 };
1008 };
1009
1010 /*
1011 * LM95245 temperature sensor
Marcel Ziswiler16f53ab2018-08-31 18:38:02 +02001012 * Note: OVERT1# directly connected to TPS65911 PMIC PWRDN
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +02001013 */
1014 temp-sensor@4c {
1015 compatible = "national,lm95245";
1016 reg = <0x4c>;
1017 };
1018
1019 /* SW: +V1.2_VDD_CORE */
1020 tps62362@60 {
1021 compatible = "ti,tps62362";
1022 reg = <0x60>;
1023
1024 regulator-name = "tps62362-vout";
1025 regulator-min-microvolt = <900000>;
1026 regulator-max-microvolt = <1400000>;
1027 regulator-boot-on;
1028 regulator-always-on;
1029 ti,vsel0-state-low;
1030 /* VSEL1: EN_CORE_DVFS_N low for DVFS */
1031 ti,vsel1-state-low;
1032 };
1033 };
1034
1035 /* SPI4: CAN2 */
1036 spi@7000da00 {
1037 status = "okay";
1038 spi-max-frequency = <10000000>;
1039
1040 can@1 {
1041 compatible = "microchip,mcp2515";
1042 reg = <1>;
1043 clocks = <&clk16m>;
1044 interrupt-parent = <&gpio>;
Marcel Ziswilerb604ef92018-02-10 02:33:23 +01001045 interrupts = <TEGRA_GPIO(W, 3) IRQ_TYPE_EDGE_RISING>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +02001046 spi-max-frequency = <10000000>;
1047 };
1048 };
1049
1050 /* SPI6: CAN1 */
1051 spi@7000de00 {
1052 status = "okay";
1053 spi-max-frequency = <10000000>;
1054
1055 can@0 {
1056 compatible = "microchip,mcp2515";
1057 reg = <0>;
1058 clocks = <&clk16m>;
1059 interrupt-parent = <&gpio>;
Marcel Ziswilerb604ef92018-02-10 02:33:23 +01001060 interrupts = <TEGRA_GPIO(W, 2) IRQ_TYPE_EDGE_RISING>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +02001061 spi-max-frequency = <10000000>;
1062 };
1063 };
1064
1065 pmc@7000e400 {
1066 nvidia,invert-interrupt;
1067 nvidia,suspend-mode = <1>;
1068 nvidia,cpu-pwr-good-time = <5000>;
1069 nvidia,cpu-pwr-off-time = <5000>;
1070 nvidia,core-pwr-good-time = <3845 3845>;
1071 nvidia,core-pwr-off-time = <0>;
1072 nvidia,core-power-req-active-high;
1073 nvidia,sys-clock-req-active-high;
Marcel Ziswiler5f1fe7b2018-08-31 18:38:03 +02001074
1075 /* Set DEV_OFF bit in DCDC control register of TPS65911 PMIC */
1076 i2c-thermtrip {
1077 nvidia,i2c-controller-id = <4>;
1078 nvidia,bus-addr = <0x2d>;
1079 nvidia,reg-addr = <0x3f>;
1080 nvidia,reg-data = <0x1>;
1081 };
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +02001082 };
1083
Marcel Ziswiler8948e742016-06-19 03:00:01 +02001084 ahub@70080000 {
1085 i2s@70080500 {
1086 status = "okay";
1087 };
1088 };
1089
Marcel Ziswiler7be74b02015-08-28 14:42:31 +02001090 /* eMMC */
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +02001091 sdhci@78000600 {
1092 status = "okay";
1093 bus-width = <8>;
1094 non-removable;
Marcel Ziswiler0f0a3832018-08-31 18:38:04 +02001095 vmmc-supply = <&reg_module_3v3>; /* VCC */
1096 vqmmc-supply = <&reg_1v8_vio>; /* VCCQ */
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +02001097 };
1098
1099 clocks {
1100 compatible = "simple-bus";
1101 #address-cells = <1>;
1102 #size-cells = <0>;
1103
1104 clk32k_in: clk@0 {
1105 compatible = "fixed-clock";
Thierry Reding4ec2e602016-06-10 18:55:24 +02001106 reg = <0>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +02001107 #clock-cells = <0>;
1108 clock-frequency = <32768>;
1109 };
Thierry Reding4ec2e602016-06-10 18:55:24 +02001110
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +02001111 clk16m: clk@1 {
1112 compatible = "fixed-clock";
Thierry Reding4ec2e602016-06-10 18:55:24 +02001113 reg = <1>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +02001114 #clock-cells = <0>;
1115 clock-frequency = <16000000>;
1116 clock-output-names = "clk16m";
1117 };
1118 };
1119
Marcel Ziswilerf98439c2018-08-31 18:37:49 +02001120 reg_1v8_avdd_hdmi_pll: regulator-1v8-avdd-hdmi-pll {
1121 compatible = "regulator-fixed";
1122 regulator-name = "+V1.8_AVDD_HDMI_PLL";
1123 regulator-min-microvolt = <1800000>;
1124 regulator-max-microvolt = <1800000>;
1125 enable-active-high;
1126 gpio = <&pmic 6 GPIO_ACTIVE_HIGH>;
1127 vin-supply = <&reg_1v8_vio>;
1128 };
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +02001129
Marcel Ziswilerf98439c2018-08-31 18:37:49 +02001130 reg_3v3_avdd_hdmi: regulator-3v3-avdd-hdmi {
1131 compatible = "regulator-fixed";
1132 regulator-name = "+V3.3_AVDD_HDMI";
1133 regulator-min-microvolt = <3300000>;
1134 regulator-max-microvolt = <3300000>;
1135 enable-active-high;
1136 gpio = <&pmic 6 GPIO_ACTIVE_HIGH>;
1137 vin-supply = <&reg_module_3v3>;
1138 };
Marcel Ziswiler654b7d62015-08-28 14:42:29 +02001139
Marcel Ziswilerf98439c2018-08-31 18:37:49 +02001140 reg_5v0_charge_pump: regulator-5v0-charge-pump {
1141 compatible = "regulator-fixed";
1142 regulator-name = "+V5.0";
1143 regulator-min-microvolt = <5000000>;
1144 regulator-max-microvolt = <5000000>;
1145 regulator-always-on;
1146 };
Marcel Ziswilercaa9eac2014-08-22 13:25:10 -06001147
Marcel Ziswilerf98439c2018-08-31 18:37:49 +02001148 reg_module_3v3: regulator-module-3v3 {
1149 compatible = "regulator-fixed";
1150 regulator-name = "+V3.3";
1151 regulator-min-microvolt = <3300000>;
1152 regulator-max-microvolt = <3300000>;
1153 regulator-always-on;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +02001154 };
Marcel Ziswiler8948e742016-06-19 03:00:01 +02001155
Marcel Ziswiler32980cb2018-08-31 18:37:50 +02001156 reg_module_3v3_audio: regulator-module-3v3-audio {
1157 compatible = "regulator-fixed";
1158 regulator-name = "+V3.3_AUDIO_AVDD_S";
1159 regulator-min-microvolt = <3300000>;
1160 regulator-max-microvolt = <3300000>;
1161 regulator-always-on;
1162 };
1163
Marcel Ziswiler8948e742016-06-19 03:00:01 +02001164 sound {
1165 compatible = "toradex,tegra-audio-sgtl5000-apalis_t30",
1166 "nvidia,tegra-audio-sgtl5000";
1167 nvidia,model = "Toradex Apalis T30";
1168 nvidia,audio-routing =
1169 "Headphone Jack", "HP_OUT",
1170 "LINE_IN", "Line In Jack",
1171 "MIC_IN", "Mic Jack";
1172 nvidia,i2s-controller = <&tegra_i2s2>;
1173 nvidia,audio-codec = <&sgtl5000>;
1174 clocks = <&tegra_car TEGRA30_CLK_PLL_A>,
1175 <&tegra_car TEGRA30_CLK_PLL_A_OUT0>,
1176 <&tegra_car TEGRA30_CLK_EXTERN1>;
1177 clock-names = "pll_a", "pll_a_out0", "mclk";
1178 };
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +02001179};