blob: 9bdc4cb71449c8bfb70ffd91f324ce7a0f452820 [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
Marcel Ziswilerb57d6b92018-08-31 18:38:16 +02006 * Compatible for Revisions 1GB: V1.0A; 2GB: V1.0B, V1.0C, V1.0E
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +02007 */
8/ {
Krzysztof Kozlowski48299762018-07-09 18:05:17 +02009 memory@80000000 {
10 reg = <0x80000000 0x40000000>;
Krzysztof Kozlowskif48ba1a2018-07-09 18:05:16 +020011 };
12
Rob Herring508d6902017-03-21 21:03:06 -050013 pcie@3000 {
Marcel Ziswiler7890d782018-08-31 18:37:47 +020014 status = "okay";
Marcel Ziswilerb607b192014-06-25 22:10:01 +020015 avdd-pexa-supply = <&vdd2_reg>;
Marcel Ziswilerb607b192014-06-25 22:10:01 +020016 avdd-pexb-supply = <&vdd2_reg>;
Marcel Ziswilerb607b192014-06-25 22:10:01 +020017 avdd-pex-pll-supply = <&vdd2_reg>;
18 avdd-plle-supply = <&ldo6_reg>;
Marcel Ziswilerf98439c2018-08-31 18:37:49 +020019 hvdd-pex-supply = <&reg_module_3v3>;
20 vddio-pex-ctl-supply = <&reg_module_3v3>;
Marcel Ziswiler4f6b07a2018-08-31 18:37:46 +020021 vdd-pexa-supply = <&vdd2_reg>;
22 vdd-pexb-supply = <&vdd2_reg>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +020023
Marcel Ziswiler7890d782018-08-31 18:37:47 +020024 /* Apalis type specific */
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +020025 pci@1,0 {
26 nvidia,num-lanes = <4>;
27 };
28
Marcel Ziswiler7890d782018-08-31 18:37:47 +020029 /* Apalis PCIe */
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +020030 pci@2,0 {
31 nvidia,num-lanes = <1>;
32 };
33
Marcel Ziswiler7890d782018-08-31 18:37:47 +020034 /* I210/I211 Gigabit Ethernet Controller (on-module) */
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +020035 pci@3,0 {
Marcel Ziswiler7890d782018-08-31 18:37:47 +020036 status = "okay";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +020037 nvidia,num-lanes = <1>;
Marcel Ziswiler4eb7e5e2018-08-31 18:37:53 +020038
Thierry Redingcc761752020-06-11 19:36:25 +020039 ethernet@0,0 {
Marcel Ziswiler2c874412018-08-31 18:37:45 +020040 reg = <0 0 0 0 0>;
41 local-mac-address = [00 00 00 00 00 00];
42 };
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +020043 };
44 };
45
46 host1x@50000000 {
47 hdmi@54280000 {
Marcel Ziswiler46717602018-08-31 18:38:12 +020048 nvidia,ddc-i2c-bus = <&hdmi_ddc>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +020049 nvidia,hpd-gpio =
50 <&gpio TEGRA_GPIO(N, 7) GPIO_ACTIVE_HIGH>;
Marcel Ziswilerf98439c2018-08-31 18:37:49 +020051 pll-supply = <&reg_1v8_avdd_hdmi_pll>;
52 vdd-supply = <&reg_3v3_avdd_hdmi>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +020053 };
54 };
55
56 pinmux@70000868 {
57 pinctrl-names = "default";
58 pinctrl-0 = <&state_default>;
59
60 state_default: pinmux {
Marcel Ziswiler8948e742016-06-19 03:00:01 +020061 /* Analogue Audio (On-module) */
Marcel Ziswiler727002e2018-08-31 18:37:59 +020062 clk1-out-pw4 {
Marcel Ziswiler8948e742016-06-19 03:00:01 +020063 nvidia,pins = "clk1_out_pw4";
64 nvidia,function = "extperiph1";
65 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
66 nvidia,tristate = <TEGRA_PIN_DISABLE>;
67 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
68 };
Marcel Ziswiler727002e2018-08-31 18:37:59 +020069 dap3-fs-pp0 {
70 nvidia,pins = "dap3_fs_pp0",
71 "dap3_sclk_pp3",
72 "dap3_din_pp1",
73 "dap3_dout_pp2";
Marcel Ziswiler8948e742016-06-19 03:00:01 +020074 nvidia,function = "i2s2";
75 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
76 nvidia,tristate = <TEGRA_PIN_DISABLE>;
77 };
78
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +020079 /* Apalis BKL1_ON */
80 pv2 {
81 nvidia,pins = "pv2";
82 nvidia,function = "rsvd4";
83 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
84 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Marcel Ziswiler727002e2018-08-31 18:37:59 +020085 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +020086 };
87
88 /* Apalis BKL1_PWM */
Marcel Ziswiler727002e2018-08-31 18:37:59 +020089 uart3-rts-n-pc0 {
Thierry Reding40699b922015-09-15 10:29:57 +020090 nvidia,pins = "uart3_rts_n_pc0";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +020091 nvidia,function = "pwm0";
92 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
93 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Marcel Ziswiler727002e2018-08-31 18:37:59 +020094 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +020095 };
96 /* BKL1_PWM_EN#, disable TPS65911 PMIC PWM backlight */
Marcel Ziswiler727002e2018-08-31 18:37:59 +020097 uart3-cts-n-pa1 {
Thierry Reding40699b922015-09-15 10:29:57 +020098 nvidia,pins = "uart3_cts_n_pa1";
Marcel Ziswiler0f44de62015-08-28 14:42:30 +020099 nvidia,function = "rsvd2";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200100 nvidia,pull = <TEGRA_PIN_PULL_UP>;
101 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200102 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200103 };
104
105 /* Apalis CAN1 on SPI6 */
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200106 spi2-cs0-n-px3 {
Thierry Reding40699b922015-09-15 10:29:57 +0200107 nvidia,pins = "spi2_cs0_n_px3",
108 "spi2_miso_px1",
109 "spi2_mosi_px0",
110 "spi2_sck_px2";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200111 nvidia,function = "spi6";
112 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
113 nvidia,tristate = <TEGRA_PIN_DISABLE>;
114 };
115 /* CAN_INT1 */
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200116 spi2-cs1-n-pw2 {
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200117 nvidia,pins = "spi2_cs1_n_pw2";
118 nvidia,function = "spi3";
119 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
120 nvidia,tristate = <TEGRA_PIN_DISABLE>;
121 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
122 };
123
124 /* Apalis CAN2 on SPI4 */
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200125 gmi-a16-pj7 {
Thierry Reding40699b922015-09-15 10:29:57 +0200126 nvidia,pins = "gmi_a16_pj7",
127 "gmi_a17_pb0",
128 "gmi_a18_pb1",
129 "gmi_a19_pk7";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200130 nvidia,function = "spi4";
131 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
132 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Marcel Ziswiler700253e2018-07-03 17:03:39 +0200133 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200134 };
135 /* CAN_INT2 */
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200136 spi2-cs2-n-pw3 {
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200137 nvidia,pins = "spi2_cs2_n_pw3";
138 nvidia,function = "spi3";
139 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
140 nvidia,tristate = <TEGRA_PIN_DISABLE>;
141 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
142 };
143
Marcel Ziswiler4399f402015-08-28 14:42:32 +0200144 /* Apalis Digital Audio */
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200145 clk1-req-pee2 {
Thierry Reding40699b922015-09-15 10:29:57 +0200146 nvidia,pins = "clk1_req_pee2";
Marcel Ziswiler4399f402015-08-28 14:42:32 +0200147 nvidia,function = "hda";
148 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
149 nvidia,tristate = <TEGRA_PIN_DISABLE>;
150 };
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200151 clk2-out-pw5 {
Marcel Ziswiler4399f402015-08-28 14:42:32 +0200152 nvidia,pins = "clk2_out_pw5";
153 nvidia,function = "extperiph2";
154 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
155 nvidia,tristate = <TEGRA_PIN_DISABLE>;
156 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
157 };
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200158 dap1-fs-pn0 {
Thierry Reding40699b922015-09-15 10:29:57 +0200159 nvidia,pins = "dap1_fs_pn0",
160 "dap1_din_pn1",
161 "dap1_dout_pn2",
162 "dap1_sclk_pn3";
Marcel Ziswiler4399f402015-08-28 14:42:32 +0200163 nvidia,function = "hda";
164 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
165 nvidia,tristate = <TEGRA_PIN_DISABLE>;
166 };
167
Marcel Ziswiler368f1392018-08-31 18:38:00 +0200168 /* Apalis GPIO */
169 kb-col0-pq0 {
170 nvidia,pins = "kb_col0_pq0",
171 "kb_col1_pq1",
172 "kb_row10_ps2",
173 "kb_row11_ps3",
174 "kb_row12_ps4",
175 "kb_row13_ps5",
176 "kb_row14_ps6",
177 "kb_row15_ps7";
178 nvidia,function = "kbc";
179 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
180 nvidia,tristate = <TEGRA_PIN_DISABLE>;
181 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
182 };
183 /* Multiplexed and therefore disabled */
184 owr {
185 nvidia,pins = "owr";
186 nvidia,function = "rsvd3";
187 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
188 nvidia,tristate = <TEGRA_PIN_ENABLE>;
189 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
190 };
191
192 /* Apalis HDMI1 */
193 hdmi-cec-pee3 {
194 nvidia,pins = "hdmi_cec_pee3";
195 nvidia,function = "cec";
196 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
197 nvidia,tristate = <TEGRA_PIN_DISABLE>;
198 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
199 nvidia,open-drain = <TEGRA_PIN_DISABLE>;
200 };
201 hdmi-int-pn7 {
202 nvidia,pins = "hdmi_int_pn7";
203 nvidia,function = "hdmi";
204 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
205 nvidia,tristate = <TEGRA_PIN_ENABLE>;
206 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
207 };
208
209 /* Apalis I2C1 */
210 gen1-i2c-scl-pc4 {
211 nvidia,pins = "gen1_i2c_scl_pc4",
212 "gen1_i2c_sda_pc5";
213 nvidia,function = "i2c1";
214 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
215 nvidia,tristate = <TEGRA_PIN_DISABLE>;
216 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
217 nvidia,open-drain = <TEGRA_PIN_ENABLE>;
218 };
219
220 /* Apalis I2C2 (DDC) */
221 ddc-scl-pv4 {
222 nvidia,pins = "ddc_scl_pv4",
223 "ddc_sda_pv5";
224 nvidia,function = "i2c4";
225 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
226 nvidia,tristate = <TEGRA_PIN_DISABLE>;
227 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
228 };
229
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200230 /* Apalis I2C3 (CAM) */
231 cam-i2c-scl-pbb1 {
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200232 nvidia,pins = "cam_i2c_scl_pbb1",
233 "cam_i2c_sda_pbb2";
234 nvidia,function = "i2c3";
235 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
236 nvidia,tristate = <TEGRA_PIN_DISABLE>;
237 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200238 nvidia,open-drain = <TEGRA_PIN_ENABLE>;
239 };
240
Marcel Ziswiler368f1392018-08-31 18:38:00 +0200241 /* Apalis LCD1 */
242 lcd-d0-pe0 {
243 nvidia,pins = "lcd_d0_pe0",
244 "lcd_d1_pe1",
245 "lcd_d2_pe2",
246 "lcd_d3_pe3",
247 "lcd_d4_pe4",
248 "lcd_d5_pe5",
249 "lcd_d6_pe6",
250 "lcd_d7_pe7",
251 "lcd_d8_pf0",
252 "lcd_d9_pf1",
253 "lcd_d10_pf2",
254 "lcd_d11_pf3",
255 "lcd_d12_pf4",
256 "lcd_d13_pf5",
257 "lcd_d14_pf6",
258 "lcd_d15_pf7",
259 "lcd_d16_pm0",
260 "lcd_d17_pm1",
261 "lcd_d18_pm2",
262 "lcd_d19_pm3",
263 "lcd_d20_pm4",
264 "lcd_d21_pm5",
265 "lcd_d22_pm6",
266 "lcd_d23_pm7",
267 "lcd_de_pj1",
268 "lcd_hsync_pj3",
269 "lcd_pclk_pb3",
270 "lcd_vsync_pj4";
271 nvidia,function = "displaya";
272 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
273 nvidia,tristate = <TEGRA_PIN_DISABLE>;
274 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
275 };
276
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200277 /* Apalis MMC1 */
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200278 sdmmc3-clk-pa6 {
Marcel Ziswiler1c997fe2018-08-31 18:37:43 +0200279 nvidia,pins = "sdmmc3_clk_pa6";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200280 nvidia,function = "sdmmc3";
281 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
282 nvidia,tristate = <TEGRA_PIN_DISABLE>;
283 };
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200284 sdmmc3-dat0-pb7 {
Marcel Ziswiler1c997fe2018-08-31 18:37:43 +0200285 nvidia,pins = "sdmmc3_cmd_pa7",
286 "sdmmc3_dat0_pb7",
Thierry Reding40699b922015-09-15 10:29:57 +0200287 "sdmmc3_dat1_pb6",
288 "sdmmc3_dat2_pb5",
289 "sdmmc3_dat3_pb4",
290 "sdmmc3_dat4_pd1",
291 "sdmmc3_dat5_pd0",
292 "sdmmc3_dat6_pd3",
293 "sdmmc3_dat7_pd4";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200294 nvidia,function = "sdmmc3";
295 nvidia,pull = <TEGRA_PIN_PULL_UP>;
296 nvidia,tristate = <TEGRA_PIN_DISABLE>;
297 };
298 /* Apalis MMC1_CD# */
299 pv3 {
300 nvidia,pins = "pv3";
301 nvidia,function = "rsvd2";
Marcel Ziswiler055c0102018-08-31 18:37:44 +0200302 nvidia,pull = <TEGRA_PIN_PULL_UP>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200303 nvidia,tristate = <TEGRA_PIN_DISABLE>;
304 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
305 };
306
Marcel Ziswiler368f1392018-08-31 18:38:00 +0200307 /* Apalis Parallel Camera */
308 cam-mclk-pcc0 {
309 nvidia,pins = "cam_mclk_pcc0";
310 nvidia,function = "vi_alt3";
311 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
312 nvidia,tristate = <TEGRA_PIN_DISABLE>;
313 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
314 };
315 vi-vsync-pd6 {
316 nvidia,pins = "vi_d0_pt4",
317 "vi_d1_pd5",
318 "vi_d2_pl0",
319 "vi_d3_pl1",
320 "vi_d4_pl2",
321 "vi_d5_pl3",
322 "vi_d6_pl4",
323 "vi_d7_pl5",
324 "vi_d8_pl6",
325 "vi_d9_pl7",
326 "vi_d10_pt2",
327 "vi_d11_pt3",
328 "vi_hsync_pd7",
329 "vi_pclk_pt0",
330 "vi_vsync_pd6";
331 nvidia,function = "vi";
332 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
333 nvidia,tristate = <TEGRA_PIN_DISABLE>;
334 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
335 };
336 /* Multiplexed and therefore disabled */
337 kb-col2-pq2 {
338 nvidia,pins = "kb_col2_pq2",
339 "kb_col3_pq3",
340 "kb_col4_pq4",
341 "kb_row4_pr4";
342 nvidia,function = "rsvd4";
343 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
344 nvidia,tristate = <TEGRA_PIN_ENABLE>;
345 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
346 };
347 kb-row0-pr0 {
348 nvidia,pins = "kb_row0_pr0",
349 "kb_row1_pr1",
350 "kb_row2_pr2",
351 "kb_row3_pr3";
352 nvidia,function = "rsvd3";
353 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
354 nvidia,tristate = <TEGRA_PIN_ENABLE>;
355 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
356 };
357 kb-row5-pr5 {
358 nvidia,pins = "kb_row5_pr5",
359 "kb_row6_pr6",
360 "kb_row7_pr7";
361 nvidia,function = "kbc";
362 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
363 nvidia,tristate = <TEGRA_PIN_ENABLE>;
364 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
365 };
366 /*
367 * VI level-shifter direction
368 * (pull-down => default direction input)
369 */
370 vi-mclk-pt1 {
371 nvidia,pins = "vi_mclk_pt1";
372 nvidia,function = "vi_alt3";
373 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
374 nvidia,tristate = <TEGRA_PIN_ENABLE>;
375 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
376 };
377
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200378 /* Apalis PWM1 */
Marcel Ziswiler0f44de62015-08-28 14:42:30 +0200379 pu6 {
Thierry Reding40699b922015-09-15 10:29:57 +0200380 nvidia,pins = "pu6";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200381 nvidia,function = "pwm3";
382 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
383 nvidia,tristate = <TEGRA_PIN_DISABLE>;
384 };
385
386 /* Apalis PWM2 */
Marcel Ziswiler0f44de62015-08-28 14:42:30 +0200387 pu5 {
Thierry Reding40699b922015-09-15 10:29:57 +0200388 nvidia,pins = "pu5";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200389 nvidia,function = "pwm2";
390 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
391 nvidia,tristate = <TEGRA_PIN_DISABLE>;
392 };
393
394 /* Apalis PWM3 */
Marcel Ziswiler0f44de62015-08-28 14:42:30 +0200395 pu4 {
Thierry Reding40699b922015-09-15 10:29:57 +0200396 nvidia,pins = "pu4";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200397 nvidia,function = "pwm1";
398 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
399 nvidia,tristate = <TEGRA_PIN_DISABLE>;
400 };
401
402 /* Apalis PWM4 */
Marcel Ziswiler0f44de62015-08-28 14:42:30 +0200403 pu3 {
Thierry Reding40699b922015-09-15 10:29:57 +0200404 nvidia,pins = "pu3";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200405 nvidia,function = "pwm0";
406 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
407 nvidia,tristate = <TEGRA_PIN_DISABLE>;
408 };
409
410 /* Apalis RESET_MOCI# */
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200411 gmi-rst-n-pi4 {
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200412 nvidia,pins = "gmi_rst_n_pi4";
413 nvidia,function = "gmi";
414 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
415 nvidia,tristate = <TEGRA_PIN_DISABLE>;
416 };
417
Marcel Ziswiler368f1392018-08-31 18:38:00 +0200418 /* Apalis SATA1_ACT# */
419 pex-l0-prsnt-n-pdd0 {
420 nvidia,pins = "pex_l0_prsnt_n_pdd0";
421 nvidia,function = "rsvd3";
422 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
423 nvidia,tristate = <TEGRA_PIN_DISABLE>;
424 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
425 };
426
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200427 /* Apalis SD1 */
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200428 sdmmc1-clk-pz0 {
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200429 nvidia,pins = "sdmmc1_clk_pz0";
430 nvidia,function = "sdmmc1";
431 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
432 nvidia,tristate = <TEGRA_PIN_DISABLE>;
433 };
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200434 sdmmc1-cmd-pz1 {
Thierry Reding40699b922015-09-15 10:29:57 +0200435 nvidia,pins = "sdmmc1_cmd_pz1",
436 "sdmmc1_dat0_py7",
437 "sdmmc1_dat1_py6",
438 "sdmmc1_dat2_py5",
439 "sdmmc1_dat3_py4";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200440 nvidia,function = "sdmmc1";
441 nvidia,pull = <TEGRA_PIN_PULL_UP>;
442 nvidia,tristate = <TEGRA_PIN_DISABLE>;
443 };
444 /* Apalis SD1_CD# */
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200445 clk2-req-pcc5 {
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200446 nvidia,pins = "clk2_req_pcc5";
447 nvidia,function = "rsvd2";
Marcel Ziswiler055c0102018-08-31 18:37:44 +0200448 nvidia,pull = <TEGRA_PIN_PULL_UP>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200449 nvidia,tristate = <TEGRA_PIN_DISABLE>;
450 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
451 };
452
Marcel Ziswiler368f1392018-08-31 18:38:00 +0200453 /* Apalis SPDIF1 */
454 spdif-out-pk5 {
455 nvidia,pins = "spdif_out_pk5",
456 "spdif_in_pk6";
457 nvidia,function = "spdif";
458 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
459 nvidia,tristate = <TEGRA_PIN_DISABLE>;
460 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
461 };
462
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200463 /* Apalis SPI1 */
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200464 spi1-sck-px5 {
Thierry Reding40699b922015-09-15 10:29:57 +0200465 nvidia,pins = "spi1_sck_px5",
466 "spi1_mosi_px4",
467 "spi1_miso_px7",
468 "spi1_cs0_n_px6";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200469 nvidia,function = "spi1";
470 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
471 nvidia,tristate = <TEGRA_PIN_DISABLE>;
472 };
473
474 /* Apalis SPI2 */
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200475 lcd-sck-pz4 {
Thierry Reding40699b922015-09-15 10:29:57 +0200476 nvidia,pins = "lcd_sck_pz4",
477 "lcd_sdout_pn5",
478 "lcd_sdin_pz2",
479 "lcd_cs0_n_pn4";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200480 nvidia,function = "spi5";
481 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
482 nvidia,tristate = <TEGRA_PIN_DISABLE>;
483 };
484
Marcel Ziswiler368f1392018-08-31 18:38:00 +0200485 /*
486 * Apalis TS (Low-speed type specific)
487 * pins may be used as GPIOs
488 */
489 kb-col5-pq5 {
490 nvidia,pins = "kb_col5_pq5";
491 nvidia,function = "rsvd4";
492 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
493 nvidia,tristate = <TEGRA_PIN_DISABLE>;
494 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
495 };
496 kb-col6-pq6 {
497 nvidia,pins = "kb_col6_pq6",
498 "kb_col7_pq7",
499 "kb_row8_ps0",
500 "kb_row9_ps1";
501 nvidia,function = "kbc";
502 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
503 nvidia,tristate = <TEGRA_PIN_DISABLE>;
504 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
505 };
506
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200507 /* Apalis UART1 */
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200508 ulpi-data0 {
Thierry Reding40699b922015-09-15 10:29:57 +0200509 nvidia,pins = "ulpi_data0_po1",
510 "ulpi_data1_po2",
511 "ulpi_data2_po3",
512 "ulpi_data3_po4",
513 "ulpi_data4_po5",
514 "ulpi_data5_po6",
515 "ulpi_data6_po7",
516 "ulpi_data7_po0";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200517 nvidia,function = "uarta";
518 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
519 nvidia,tristate = <TEGRA_PIN_DISABLE>;
520 };
521
522 /* Apalis UART2 */
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200523 ulpi-clk-py0 {
Thierry Reding40699b922015-09-15 10:29:57 +0200524 nvidia,pins = "ulpi_clk_py0",
525 "ulpi_dir_py1",
526 "ulpi_nxt_py2",
527 "ulpi_stp_py3";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200528 nvidia,function = "uartd";
529 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
530 nvidia,tristate = <TEGRA_PIN_DISABLE>;
531 };
532
533 /* Apalis UART3 */
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200534 uart2-rxd-pc3 {
Thierry Reding40699b922015-09-15 10:29:57 +0200535 nvidia,pins = "uart2_rxd_pc3",
536 "uart2_txd_pc2";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200537 nvidia,function = "uartb";
538 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
539 nvidia,tristate = <TEGRA_PIN_DISABLE>;
540 };
541
542 /* Apalis UART4 */
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200543 uart3-rxd-pw7 {
Thierry Reding40699b922015-09-15 10:29:57 +0200544 nvidia,pins = "uart3_rxd_pw7",
545 "uart3_txd_pw6";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200546 nvidia,function = "uartc";
547 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
548 nvidia,tristate = <TEGRA_PIN_DISABLE>;
549 };
550
Marcel Ziswiler368f1392018-08-31 18:38:00 +0200551 /* Apalis USBH_EN */
552 pex-l0-rst-n-pdd1 {
553 nvidia,pins = "pex_l0_rst_n_pdd1";
554 nvidia,function = "rsvd3";
555 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
556 nvidia,tristate = <TEGRA_PIN_DISABLE>;
557 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
558 };
559
560 /* Apalis USBH_OC# */
561 pex-l0-clkreq-n-pdd2 {
562 nvidia,pins = "pex_l0_clkreq_n_pdd2";
563 nvidia,function = "rsvd3";
564 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
565 nvidia,tristate = <TEGRA_PIN_DISABLE>;
566 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
567 };
568
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200569 /* Apalis USBO1_EN */
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200570 gen2-i2c-scl-pt5 {
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200571 nvidia,pins = "gen2_i2c_scl_pt5";
572 nvidia,function = "rsvd4";
573 nvidia,open-drain = <TEGRA_PIN_DISABLE>;
574 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
575 nvidia,tristate = <TEGRA_PIN_DISABLE>;
576 };
577
578 /* Apalis USBO1_OC# */
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200579 gen2-i2c-sda-pt6 {
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200580 nvidia,pins = "gen2_i2c_sda_pt6";
581 nvidia,function = "rsvd4";
582 nvidia,open-drain = <TEGRA_PIN_DISABLE>;
583 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
584 nvidia,tristate = <TEGRA_PIN_DISABLE>;
585 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
586 };
587
Marcel Ziswiler368f1392018-08-31 18:38:00 +0200588 /* Apalis VGA1 not supported and therefore disabled */
589 crt-hsync-pv6 {
590 nvidia,pins = "crt_hsync_pv6",
591 "crt_vsync_pv7";
592 nvidia,function = "rsvd2";
593 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
594 nvidia,tristate = <TEGRA_PIN_ENABLE>;
595 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
596 };
597
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200598 /* Apalis WAKE1_MICO */
599 pv1 {
600 nvidia,pins = "pv1";
601 nvidia,function = "rsvd1";
602 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
603 nvidia,tristate = <TEGRA_PIN_DISABLE>;
604 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
605 };
606
607 /* eMMC (On-module) */
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200608 sdmmc4-clk-pcc4 {
Thierry Reding40699b922015-09-15 10:29:57 +0200609 nvidia,pins = "sdmmc4_clk_pcc4",
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200610 "sdmmc4_cmd_pt7",
Thierry Reding40699b922015-09-15 10:29:57 +0200611 "sdmmc4_rst_n_pcc3";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200612 nvidia,function = "sdmmc4";
613 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
614 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200615 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200616 };
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200617 sdmmc4-dat0-paa0 {
Thierry Reding40699b922015-09-15 10:29:57 +0200618 nvidia,pins = "sdmmc4_dat0_paa0",
619 "sdmmc4_dat1_paa1",
620 "sdmmc4_dat2_paa2",
621 "sdmmc4_dat3_paa3",
622 "sdmmc4_dat4_paa4",
623 "sdmmc4_dat5_paa5",
624 "sdmmc4_dat6_paa6",
625 "sdmmc4_dat7_paa7";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200626 nvidia,function = "sdmmc4";
627 nvidia,pull = <TEGRA_PIN_PULL_UP>;
628 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200629 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200630 };
631
Marcel Ziswiler368f1392018-08-31 18:38:00 +0200632 /* LAN i210/i211 DEV_OFF_N, PE_RST_N (On-module) */
633 pex-l2-prsnt-n-pdd7 {
634 nvidia,pins = "pex_l2_prsnt_n_pdd7",
635 "pex_l2_rst_n_pcc6";
636 nvidia,function = "pcie";
637 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
638 nvidia,tristate = <TEGRA_PIN_DISABLE>;
639 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
640 };
641 /* LAN i210/i211 PE_WAKE_N, SDP3 (On-module) */
642 pex-wake-n-pdd3 {
643 nvidia,pins = "pex_wake_n_pdd3",
644 "pex_l2_clkreq_n_pcc7";
645 nvidia,function = "pcie";
646 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
647 nvidia,tristate = <TEGRA_PIN_DISABLE>;
648 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
649 };
650 /* LAN i210/i211 SMB_ALERT_N (On-module) */
651 sys-clk-req-pz5 {
652 nvidia,pins = "sys_clk_req_pz5";
653 nvidia,function = "rsvd2";
654 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
655 nvidia,tristate = <TEGRA_PIN_DISABLE>;
656 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
657 };
658
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200659 /* LVDS Transceiver Configuration */
660 pbb0 {
Thierry Reding40699b922015-09-15 10:29:57 +0200661 nvidia,pins = "pbb0",
662 "pbb7",
663 "pcc1",
664 "pcc2";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200665 nvidia,function = "rsvd2";
666 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
667 nvidia,tristate = <TEGRA_PIN_DISABLE>;
668 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200669 };
670 pbb3 {
Thierry Reding40699b922015-09-15 10:29:57 +0200671 nvidia,pins = "pbb3",
672 "pbb4",
673 "pbb5",
674 "pbb6";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200675 nvidia,function = "displayb";
676 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
677 nvidia,tristate = <TEGRA_PIN_DISABLE>;
678 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200679 };
680
Marcel Ziswiler368f1392018-08-31 18:38:00 +0200681 /* Not connected and therefore disabled */
682 clk-32k-out-pa0 {
683 nvidia,pins = "clk3_out_pee0",
684 "clk3_req_pee1",
685 "clk_32k_out_pa0",
686 "dap4_din_pp5",
687 "dap4_dout_pp6",
688 "dap4_fs_pp4",
689 "dap4_sclk_pp7";
690 nvidia,function = "rsvd2";
691 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
692 nvidia,tristate = <TEGRA_PIN_ENABLE>;
693 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
694 };
695 dap2-fs-pa2 {
696 nvidia,pins = "dap2_fs_pa2",
697 "dap2_sclk_pa3",
698 "dap2_din_pa4",
699 "dap2_dout_pa5",
700 "lcd_dc0_pn6",
701 "lcd_m1_pw1",
702 "lcd_pwr1_pc1",
703 "pex_l1_clkreq_n_pdd6",
704 "pex_l1_prsnt_n_pdd4",
705 "pex_l1_rst_n_pdd5";
706 nvidia,function = "rsvd3";
707 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
708 nvidia,tristate = <TEGRA_PIN_ENABLE>;
709 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
710 };
711 gmi-ad0-pg0 {
712 nvidia,pins = "gmi_ad0_pg0",
713 "gmi_ad2_pg2",
714 "gmi_ad3_pg3",
715 "gmi_ad4_pg4",
716 "gmi_ad5_pg5",
717 "gmi_ad6_pg6",
718 "gmi_ad7_pg7",
719 "gmi_ad8_ph0",
720 "gmi_ad9_ph1",
721 "gmi_ad10_ph2",
722 "gmi_ad11_ph3",
723 "gmi_ad12_ph4",
724 "gmi_ad13_ph5",
725 "gmi_ad14_ph6",
726 "gmi_ad15_ph7",
727 "gmi_adv_n_pk0",
728 "gmi_clk_pk1",
729 "gmi_cs4_n_pk2",
730 "gmi_cs2_n_pk3",
731 "gmi_dqs_pi2",
732 "gmi_iordy_pi5",
733 "gmi_oe_n_pi1",
734 "gmi_wait_pi7",
735 "gmi_wr_n_pi0",
736 "lcd_cs1_n_pw0",
737 "pu0",
738 "pu1",
739 "pu2";
740 nvidia,function = "rsvd4";
741 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
742 nvidia,tristate = <TEGRA_PIN_ENABLE>;
743 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
744 };
745 gmi-cs0-n-pj0 {
746 nvidia,pins = "gmi_cs0_n_pj0",
747 "gmi_cs1_n_pj2",
748 "gmi_cs3_n_pk4";
749 nvidia,function = "rsvd1";
750 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
751 nvidia,tristate = <TEGRA_PIN_ENABLE>;
752 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
753 };
754 gmi-cs6-n-pi3 {
755 nvidia,pins = "gmi_cs6_n_pi3";
756 nvidia,function = "sata";
757 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
758 nvidia,tristate = <TEGRA_PIN_ENABLE>;
759 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
760 };
761 gmi-cs7-n-pi6 {
762 nvidia,pins = "gmi_cs7_n_pi6";
763 nvidia,function = "gmi_alt";
764 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
765 nvidia,tristate = <TEGRA_PIN_ENABLE>;
766 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
767 };
768 lcd-pwr0-pb2 {
769 nvidia,pins = "lcd_pwr0_pb2",
770 "lcd_pwr2_pc6",
771 "lcd_wr_n_pz3";
772 nvidia,function = "hdcp";
773 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
774 nvidia,tristate = <TEGRA_PIN_ENABLE>;
775 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
776 };
777 uart2-cts-n-pj5 {
778 nvidia,pins = "uart2_cts_n_pj5",
779 "uart2_rts_n_pj6";
780 nvidia,function = "gmi";
781 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
782 nvidia,tristate = <TEGRA_PIN_ENABLE>;
783 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
784 };
785
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200786 /* Power I2C (On-module) */
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200787 pwr-i2c-scl-pz6 {
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200788 nvidia,pins = "pwr_i2c_scl_pz6",
789 "pwr_i2c_sda_pz7";
790 nvidia,function = "i2cpwr";
791 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
792 nvidia,tristate = <TEGRA_PIN_DISABLE>;
793 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200794 nvidia,open-drain = <TEGRA_PIN_ENABLE>;
795 };
796
797 /*
798 * THERMD_ALERT#, unlatched I2C address pin of LM95245
799 * temperature sensor therefore requires disabling for
800 * now
801 */
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200802 lcd-dc1-pd2 {
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200803 nvidia,pins = "lcd_dc1_pd2";
804 nvidia,function = "rsvd3";
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200805 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
806 nvidia,tristate = <TEGRA_PIN_ENABLE>;
807 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200808 };
809
Marcel Ziswiler727002e2018-08-31 18:37:59 +0200810 /* TOUCH_PEN_INT# (On-module) */
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200811 pv0 {
812 nvidia,pins = "pv0";
813 nvidia,function = "rsvd1";
814 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
815 nvidia,tristate = <TEGRA_PIN_DISABLE>;
816 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
817 };
818 };
819 };
820
Marcel Ziswilere0734522018-08-31 18:37:51 +0200821 serial@70006040 {
822 compatible = "nvidia,tegra30-hsuart";
Thierry Reding9ab9ecd2021-12-07 11:11:33 +0100823 /delete-property/ reg-shift;
Marcel Ziswilere0734522018-08-31 18:37:51 +0200824 };
825
826 serial@70006200 {
827 compatible = "nvidia,tegra30-hsuart";
Thierry Reding9ab9ecd2021-12-07 11:11:33 +0100828 /delete-property/ reg-shift;
Marcel Ziswilere0734522018-08-31 18:37:51 +0200829 };
830
831 serial@70006300 {
832 compatible = "nvidia,tegra30-hsuart";
Thierry Reding9ab9ecd2021-12-07 11:11:33 +0100833 /delete-property/ reg-shift;
Marcel Ziswilere0734522018-08-31 18:37:51 +0200834 };
835
Marcel Ziswiler46717602018-08-31 18:38:12 +0200836 hdmi_ddc: i2c@7000c700 {
Marcel Ziswiler1c3389e2018-02-10 02:36:36 +0100837 clock-frequency = <10000>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200838 };
839
840 /*
841 * PWR_I2C: power I2C to audio codec, PMIC, temperature sensor and
842 * touch screen controller
843 */
844 i2c@7000d000 {
845 status = "okay";
846 clock-frequency = <100000>;
847
Marcel Ziswiler8948e742016-06-19 03:00:01 +0200848 /* SGTL5000 audio codec */
849 sgtl5000: codec@a {
850 compatible = "fsl,sgtl5000";
851 reg = <0x0a>;
Thierry Reding1bc5af22020-06-11 19:31:33 +0200852 #sound-dai-cells = <0>;
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 Ziswilerb4cfc772018-08-31 18:38:13 +0200859 pmic: pmic@2d {
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200860 compatible = "ti,tps65911";
861 reg = <0x2d>;
862
863 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
864 #interrupt-cells = <2>;
865 interrupt-controller;
Dmitry Osipenkob0077442021-03-02 15:10:03 +0300866 wakeup-source;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200867
868 ti,system-power-controller;
869
870 #gpio-cells = <2>;
871 gpio-controller;
872
Marcel Ziswilerf98439c2018-08-31 18:37:49 +0200873 vcc1-supply = <&reg_module_3v3>;
874 vcc2-supply = <&reg_module_3v3>;
875 vcc3-supply = <&reg_1v8_vio>;
876 vcc4-supply = <&reg_module_3v3>;
877 vcc5-supply = <&reg_module_3v3>;
878 vcc6-supply = <&reg_1v8_vio>;
879 vcc7-supply = <&reg_5v0_charge_pump>;
880 vccio-supply = <&reg_module_3v3>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200881
882 regulators {
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200883 vdd1_reg: vdd1 {
Marcel Ziswilerf98439c2018-08-31 18:37:49 +0200884 regulator-name = "+V1.35_VDDIO_DDR";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200885 regulator-min-microvolt = <1350000>;
886 regulator-max-microvolt = <1350000>;
887 regulator-always-on;
888 };
889
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200890 vdd2_reg: vdd2 {
Marcel Ziswilerf98439c2018-08-31 18:37:49 +0200891 regulator-name = "+V1.05";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200892 regulator-min-microvolt = <1050000>;
893 regulator-max-microvolt = <1050000>;
894 };
895
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200896 vddctrl_reg: vddctrl {
Marcel Ziswilerf98439c2018-08-31 18:37:49 +0200897 regulator-name = "+V1.0_VDD_CPU";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200898 regulator-min-microvolt = <1150000>;
899 regulator-max-microvolt = <1150000>;
900 regulator-always-on;
901 };
902
Marcel Ziswilerf98439c2018-08-31 18:37:49 +0200903 reg_1v8_vio: vio {
904 regulator-name = "+V1.8";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200905 regulator-min-microvolt = <1800000>;
906 regulator-max-microvolt = <1800000>;
907 regulator-always-on;
908 };
909
910 /* LDO1: unused */
911
912 /*
913 * EN_+V3.3 switching via FET:
Marcel Ziswilerf98439c2018-08-31 18:37:49 +0200914 * +V3.3_AUDIO_AVDD_S, +V3.3
915 * see also +V3.3 fixed supply
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200916 */
917 ldo2_reg: ldo2 {
Marcel Ziswilerf98439c2018-08-31 18:37:49 +0200918 regulator-name = "EN_+V3.3";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200919 regulator-min-microvolt = <3300000>;
920 regulator-max-microvolt = <3300000>;
921 regulator-always-on;
922 };
923
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200924 ldo3_reg: ldo3 {
Marcel Ziswilerf98439c2018-08-31 18:37:49 +0200925 regulator-name = "+V1.2_CSI";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200926 regulator-min-microvolt = <1200000>;
927 regulator-max-microvolt = <1200000>;
928 };
929
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200930 ldo4_reg: ldo4 {
Marcel Ziswilerf98439c2018-08-31 18:37:49 +0200931 regulator-name = "+V1.2_VDD_RTC";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200932 regulator-min-microvolt = <1200000>;
933 regulator-max-microvolt = <1200000>;
934 regulator-always-on;
935 };
936
937 /*
938 * +V2.8_AVDD_VDAC:
Marcel Ziswilerf98439c2018-08-31 18:37:49 +0200939 * only required for (unsupported) analog RGB
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200940 */
941 ldo5_reg: ldo5 {
Marcel Ziswilerf98439c2018-08-31 18:37:49 +0200942 regulator-name = "+V2.8_AVDD_VDAC";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200943 regulator-min-microvolt = <2800000>;
944 regulator-max-microvolt = <2800000>;
945 regulator-always-on;
946 };
947
948 /*
949 * +V1.05_AVDD_PLLE: avdd_plle should be 1.05V
950 * but LDO6 can't set voltage in 50mV
951 * granularity
952 */
953 ldo6_reg: ldo6 {
Marcel Ziswilerf98439c2018-08-31 18:37:49 +0200954 regulator-name = "+V1.05_AVDD_PLLE";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200955 regulator-min-microvolt = <1100000>;
956 regulator-max-microvolt = <1100000>;
957 };
958
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200959 ldo7_reg: ldo7 {
Marcel Ziswilerf98439c2018-08-31 18:37:49 +0200960 regulator-name = "+V1.2_AVDD_PLL";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200961 regulator-min-microvolt = <1200000>;
962 regulator-max-microvolt = <1200000>;
963 regulator-always-on;
964 };
965
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200966 ldo8_reg: ldo8 {
Marcel Ziswilerf98439c2018-08-31 18:37:49 +0200967 regulator-name = "+V1.0_VDD_DDR_HS";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200968 regulator-min-microvolt = <1000000>;
969 regulator-max-microvolt = <1000000>;
970 regulator-always-on;
971 };
972 };
973 };
974
975 /* STMPE811 touch screen controller */
Marcel Ziswilerb4cfc772018-08-31 18:38:13 +0200976 touchscreen@41 {
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200977 compatible = "st,stmpe811";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200978 reg = <0x41>;
Marcel Ziswilerf38f7992018-08-31 18:38:01 +0200979 irq-gpio = <&gpio TEGRA_GPIO(V, 0) IRQ_TYPE_LEVEL_LOW>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200980 interrupt-controller;
981 id = <0>;
982 blocks = <0x5>;
983 irq-trigger = <0x1>;
Philippe Schenker05a6a622019-08-14 10:53:38 +0000984 /* 3.25 MHz ADC clock speed */
985 st,adc-freq = <1>;
986 /* 12-bit ADC */
987 st,mod-12b = <1>;
988 /* internal ADC reference */
989 st,ref-sel = <0>;
990 /* ADC converstion time: 80 clocks */
991 st,sample-time = <4>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200992
Krzysztof Kozlowski35a21222018-07-09 18:05:18 +0200993 stmpe_touchscreen {
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200994 compatible = "st,stmpe-ts";
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +0200995 /* 8 sample average control */
996 st,ave-ctrl = <3>;
997 /* 7 length fractional part in z */
998 st,fraction-z = <7>;
999 /*
1000 * 50 mA typical 80 mA max touchscreen drivers
1001 * current limit value
1002 */
1003 st,i-drive = <1>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +02001004 /* 1 ms panel driver settling time */
1005 st,settling = <3>;
1006 /* 5 ms touch detect interrupt delay */
1007 st,touch-det-delay = <5>;
1008 };
Philippe Schenker05a6a622019-08-14 10:53:38 +00001009
1010 stmpe_adc {
1011 compatible = "st,stmpe-adc";
1012 /* forbid to use ADC channels 3-0 (touch) */
1013 st,norequest-mask = <0x0F>;
1014 };
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +02001015 };
1016
1017 /*
1018 * LM95245 temperature sensor
Marcel Ziswiler16f53ab2018-08-31 18:38:02 +02001019 * Note: OVERT1# directly connected to TPS65911 PMIC PWRDN
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +02001020 */
1021 temp-sensor@4c {
1022 compatible = "national,lm95245";
1023 reg = <0x4c>;
1024 };
1025
1026 /* SW: +V1.2_VDD_CORE */
Marcel Ziswilerb4cfc772018-08-31 18:38:13 +02001027 regulator@60 {
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +02001028 compatible = "ti,tps62362";
1029 reg = <0x60>;
1030
1031 regulator-name = "tps62362-vout";
1032 regulator-min-microvolt = <900000>;
1033 regulator-max-microvolt = <1400000>;
1034 regulator-boot-on;
1035 regulator-always-on;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +02001036 };
1037 };
1038
1039 /* SPI4: CAN2 */
1040 spi@7000da00 {
1041 status = "okay";
1042 spi-max-frequency = <10000000>;
1043
1044 can@1 {
1045 compatible = "microchip,mcp2515";
1046 reg = <1>;
1047 clocks = <&clk16m>;
1048 interrupt-parent = <&gpio>;
Marcel Ziswilerb38f6aa2018-08-31 18:38:14 +02001049 interrupts = <TEGRA_GPIO(W, 3) IRQ_TYPE_EDGE_FALLING>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +02001050 spi-max-frequency = <10000000>;
1051 };
1052 };
1053
1054 /* SPI6: CAN1 */
1055 spi@7000de00 {
1056 status = "okay";
1057 spi-max-frequency = <10000000>;
1058
1059 can@0 {
1060 compatible = "microchip,mcp2515";
1061 reg = <0>;
1062 clocks = <&clk16m>;
1063 interrupt-parent = <&gpio>;
Marcel Ziswilerb38f6aa2018-08-31 18:38:14 +02001064 interrupts = <TEGRA_GPIO(W, 2) IRQ_TYPE_EDGE_FALLING>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +02001065 spi-max-frequency = <10000000>;
1066 };
1067 };
1068
1069 pmc@7000e400 {
1070 nvidia,invert-interrupt;
1071 nvidia,suspend-mode = <1>;
1072 nvidia,cpu-pwr-good-time = <5000>;
1073 nvidia,cpu-pwr-off-time = <5000>;
1074 nvidia,core-pwr-good-time = <3845 3845>;
1075 nvidia,core-pwr-off-time = <0>;
1076 nvidia,core-power-req-active-high;
1077 nvidia,sys-clock-req-active-high;
Marcel Ziswiler5f1fe7b2018-08-31 18:38:03 +02001078
1079 /* Set DEV_OFF bit in DCDC control register of TPS65911 PMIC */
1080 i2c-thermtrip {
1081 nvidia,i2c-controller-id = <4>;
1082 nvidia,bus-addr = <0x2d>;
1083 nvidia,reg-addr = <0x3f>;
1084 nvidia,reg-data = <0x1>;
1085 };
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +02001086 };
1087
Marcel Ziswilera472e002018-08-31 18:38:15 +02001088 hda@70030000 {
1089 status = "okay";
1090 };
1091
Marcel Ziswiler8948e742016-06-19 03:00:01 +02001092 ahub@70080000 {
1093 i2s@70080500 {
1094 status = "okay";
1095 };
1096 };
1097
Marcel Ziswiler7be74b02015-08-28 14:42:31 +02001098 /* eMMC */
Thierry Reding32c096c2020-06-11 19:21:17 +02001099 mmc@78000600 {
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +02001100 status = "okay";
1101 bus-width = <8>;
1102 non-removable;
Marcel Ziswiler0f0a3832018-08-31 18:38:04 +02001103 vmmc-supply = <&reg_module_3v3>; /* VCC */
1104 vqmmc-supply = <&reg_1v8_vio>; /* VCCQ */
Marcel Ziswiler200be312018-08-31 18:38:05 +02001105 mmc-ddr-1_8v;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +02001106 };
1107
Marcel Ziswiler7b0f47aa2018-08-31 18:38:06 +02001108 clk32k_in: xtal1 {
1109 compatible = "fixed-clock";
1110 #clock-cells = <0>;
1111 clock-frequency = <32768>;
1112 };
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +02001113
Marcel Ziswiler7b0f47aa2018-08-31 18:38:06 +02001114 clk16m: osc4 {
1115 compatible = "fixed-clock";
1116 #clock-cells = <0>;
1117 clock-frequency = <16000000>;
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +02001118 };
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>,
Sowjanya Komatinenibdb2c522020-01-13 23:24:20 -08001176 <&tegra_pmc TEGRA_PMC_CLK_OUT_1>;
Marcel Ziswiler8948e742016-06-19 03:00:01 +02001177 clock-names = "pll_a", "pll_a_out0", "mclk";
Sowjanya Komatinenibdb2c522020-01-13 23:24:20 -08001178
1179 assigned-clocks = <&tegra_car TEGRA30_CLK_EXTERN1>,
1180 <&tegra_pmc TEGRA_PMC_CLK_OUT_1>;
1181
1182 assigned-clock-parents = <&tegra_car TEGRA30_CLK_PLL_A_OUT0>,
1183 <&tegra_car TEGRA30_CLK_EXTERN1>;
Marcel Ziswiler8948e742016-06-19 03:00:01 +02001184 };
Marcel Ziswiler6d0a0672014-06-10 00:52:46 +02001185};