1 // SPDX-License-Identifier: GPL-2.0
2 #include "tegra30.dtsi"
5 * 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
10 model = "Toradex Apalis T30";
11 compatible = "toradex,apalis_t30", "nvidia,tegra30";
14 avdd-pexa-supply = <&vdd2_reg>;
15 vdd-pexa-supply = <&vdd2_reg>;
16 avdd-pexb-supply = <&vdd2_reg>;
17 vdd-pexb-supply = <&vdd2_reg>;
18 avdd-pex-pll-supply = <&vdd2_reg>;
19 avdd-plle-supply = <&ldo6_reg>;
20 vddio-pex-ctl-supply = <&sys_3v3_reg>;
21 hvdd-pex-supply = <&sys_3v3_reg>;
24 nvidia,num-lanes = <4>;
28 nvidia,num-lanes = <1>;
32 nvidia,num-lanes = <1>;
38 vdd-supply = <&avdd_hdmi_3v3_reg>;
39 pll-supply = <&avdd_hdmi_pll_1v8_reg>;
42 <&gpio TEGRA_GPIO(N, 7) GPIO_ACTIVE_HIGH>;
43 nvidia,ddc-i2c-bus = <&hdmiddc>;
48 pinctrl-names = "default";
49 pinctrl-0 = <&state_default>;
51 state_default: pinmux {
52 /* Analogue Audio (On-module) */
54 nvidia,pins = "clk1_out_pw4";
55 nvidia,function = "extperiph1";
56 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
57 nvidia,tristate = <TEGRA_PIN_DISABLE>;
58 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
61 nvidia,pins = "dap3_fs_pp0",
65 nvidia,function = "i2s2";
66 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
67 nvidia,tristate = <TEGRA_PIN_DISABLE>;
73 nvidia,function = "rsvd4";
74 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
75 nvidia,tristate = <TEGRA_PIN_DISABLE>;
80 nvidia,pins = "uart3_rts_n_pc0";
81 nvidia,function = "pwm0";
82 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
83 nvidia,tristate = <TEGRA_PIN_DISABLE>;
85 /* BKL1_PWM_EN#, disable TPS65911 PMIC PWM backlight */
87 nvidia,pins = "uart3_cts_n_pa1";
88 nvidia,function = "rsvd2";
89 nvidia,pull = <TEGRA_PIN_PULL_UP>;
90 nvidia,tristate = <TEGRA_PIN_DISABLE>;
93 /* Apalis CAN1 on SPI6 */
95 nvidia,pins = "spi2_cs0_n_px3",
99 nvidia,function = "spi6";
100 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
101 nvidia,tristate = <TEGRA_PIN_DISABLE>;
105 nvidia,pins = "spi2_cs1_n_pw2";
106 nvidia,function = "spi3";
107 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
108 nvidia,tristate = <TEGRA_PIN_DISABLE>;
109 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
112 /* Apalis CAN2 on SPI4 */
114 nvidia,pins = "gmi_a16_pj7",
118 nvidia,function = "spi4";
119 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
120 nvidia,tristate = <TEGRA_PIN_DISABLE>;
124 nvidia,pins = "spi2_cs2_n_pw3";
125 nvidia,function = "spi3";
126 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
127 nvidia,tristate = <TEGRA_PIN_DISABLE>;
128 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
131 /* Apalis Digital Audio */
133 nvidia,pins = "clk1_req_pee2";
134 nvidia,function = "hda";
135 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
136 nvidia,tristate = <TEGRA_PIN_DISABLE>;
139 nvidia,pins = "clk2_out_pw5";
140 nvidia,function = "extperiph2";
141 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
142 nvidia,tristate = <TEGRA_PIN_DISABLE>;
143 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
146 nvidia,pins = "dap1_fs_pn0",
150 nvidia,function = "hda";
151 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
152 nvidia,tristate = <TEGRA_PIN_DISABLE>;
157 nvidia,pins = "cam_i2c_scl_pbb1",
159 nvidia,function = "i2c3";
160 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
161 nvidia,tristate = <TEGRA_PIN_DISABLE>;
162 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
163 nvidia,lock = <TEGRA_PIN_DISABLE>;
164 nvidia,open-drain = <TEGRA_PIN_ENABLE>;
169 nvidia,pins = "sdmmc3_clk_pa6";
170 nvidia,function = "sdmmc3";
171 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
172 nvidia,tristate = <TEGRA_PIN_DISABLE>;
175 nvidia,pins = "sdmmc3_cmd_pa7",
184 nvidia,function = "sdmmc3";
185 nvidia,pull = <TEGRA_PIN_PULL_UP>;
186 nvidia,tristate = <TEGRA_PIN_DISABLE>;
188 /* Apalis MMC1_CD# */
191 nvidia,function = "rsvd2";
192 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
193 nvidia,tristate = <TEGRA_PIN_DISABLE>;
194 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
200 nvidia,function = "pwm3";
201 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
202 nvidia,tristate = <TEGRA_PIN_DISABLE>;
208 nvidia,function = "pwm2";
209 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
210 nvidia,tristate = <TEGRA_PIN_DISABLE>;
216 nvidia,function = "pwm1";
217 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
218 nvidia,tristate = <TEGRA_PIN_DISABLE>;
224 nvidia,function = "pwm0";
225 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
226 nvidia,tristate = <TEGRA_PIN_DISABLE>;
229 /* Apalis RESET_MOCI# */
231 nvidia,pins = "gmi_rst_n_pi4";
232 nvidia,function = "gmi";
233 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
234 nvidia,tristate = <TEGRA_PIN_DISABLE>;
239 nvidia,pins = "sdmmc1_clk_pz0";
240 nvidia,function = "sdmmc1";
241 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
242 nvidia,tristate = <TEGRA_PIN_DISABLE>;
245 nvidia,pins = "sdmmc1_cmd_pz1",
250 nvidia,function = "sdmmc1";
251 nvidia,pull = <TEGRA_PIN_PULL_UP>;
252 nvidia,tristate = <TEGRA_PIN_DISABLE>;
256 nvidia,pins = "clk2_req_pcc5";
257 nvidia,function = "rsvd2";
258 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
259 nvidia,tristate = <TEGRA_PIN_DISABLE>;
260 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
265 nvidia,pins = "spi1_sck_px5",
269 nvidia,function = "spi1";
270 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
271 nvidia,tristate = <TEGRA_PIN_DISABLE>;
276 nvidia,pins = "lcd_sck_pz4",
280 nvidia,function = "spi5";
281 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
282 nvidia,tristate = <TEGRA_PIN_DISABLE>;
287 nvidia,pins = "ulpi_data0_po1",
295 nvidia,function = "uarta";
296 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
297 nvidia,tristate = <TEGRA_PIN_DISABLE>;
302 nvidia,pins = "ulpi_clk_py0",
306 nvidia,function = "uartd";
307 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
308 nvidia,tristate = <TEGRA_PIN_DISABLE>;
313 nvidia,pins = "uart2_rxd_pc3",
315 nvidia,function = "uartb";
316 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
317 nvidia,tristate = <TEGRA_PIN_DISABLE>;
322 nvidia,pins = "uart3_rxd_pw7",
324 nvidia,function = "uartc";
325 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
326 nvidia,tristate = <TEGRA_PIN_DISABLE>;
329 /* Apalis USBO1_EN */
331 nvidia,pins = "gen2_i2c_scl_pt5";
332 nvidia,function = "rsvd4";
333 nvidia,open-drain = <TEGRA_PIN_DISABLE>;
334 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
335 nvidia,tristate = <TEGRA_PIN_DISABLE>;
338 /* Apalis USBO1_OC# */
340 nvidia,pins = "gen2_i2c_sda_pt6";
341 nvidia,function = "rsvd4";
342 nvidia,open-drain = <TEGRA_PIN_DISABLE>;
343 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
344 nvidia,tristate = <TEGRA_PIN_DISABLE>;
345 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
348 /* Apalis WAKE1_MICO */
351 nvidia,function = "rsvd1";
352 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
353 nvidia,tristate = <TEGRA_PIN_DISABLE>;
354 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
357 /* eMMC (On-module) */
359 nvidia,pins = "sdmmc4_clk_pcc4",
361 nvidia,function = "sdmmc4";
362 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
363 nvidia,tristate = <TEGRA_PIN_DISABLE>;
366 nvidia,pins = "sdmmc4_dat0_paa0",
374 nvidia,function = "sdmmc4";
375 nvidia,pull = <TEGRA_PIN_PULL_UP>;
376 nvidia,tristate = <TEGRA_PIN_DISABLE>;
379 /* LVDS Transceiver Configuration */
381 nvidia,pins = "pbb0",
385 nvidia,function = "rsvd2";
386 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
387 nvidia,tristate = <TEGRA_PIN_DISABLE>;
388 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
389 nvidia,lock = <TEGRA_PIN_DISABLE>;
392 nvidia,pins = "pbb3",
396 nvidia,function = "displayb";
397 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
398 nvidia,tristate = <TEGRA_PIN_DISABLE>;
399 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
400 nvidia,lock = <TEGRA_PIN_DISABLE>;
403 /* Power I2C (On-module) */
405 nvidia,pins = "pwr_i2c_scl_pz6",
407 nvidia,function = "i2cpwr";
408 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
409 nvidia,tristate = <TEGRA_PIN_DISABLE>;
410 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
411 nvidia,lock = <TEGRA_PIN_DISABLE>;
412 nvidia,open-drain = <TEGRA_PIN_ENABLE>;
416 * THERMD_ALERT#, unlatched I2C address pin of LM95245
417 * temperature sensor therefore requires disabling for
421 nvidia,pins = "lcd_dc1_pd2";
422 nvidia,function = "rsvd3";
423 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
424 nvidia,tristate = <TEGRA_PIN_DISABLE>;
425 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
431 nvidia,function = "rsvd1";
432 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
433 nvidia,tristate = <TEGRA_PIN_DISABLE>;
434 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
439 hdmiddc: i2c@7000c700 {
440 clock-frequency = <100000>;
444 * PWR_I2C: power I2C to audio codec, PMIC, temperature sensor and
445 * touch screen controller
449 clock-frequency = <100000>;
451 /* SGTL5000 audio codec */
453 compatible = "fsl,sgtl5000";
455 VDDA-supply = <&sys_3v3_reg>;
456 VDDIO-supply = <&sys_3v3_reg>;
457 clocks = <&tegra_car TEGRA30_CLK_EXTERN1>;
461 compatible = "ti,tps65911";
464 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
465 #interrupt-cells = <2>;
466 interrupt-controller;
468 ti,system-power-controller;
473 vcc1-supply = <&sys_3v3_reg>;
474 vcc2-supply = <&sys_3v3_reg>;
475 vcc3-supply = <&vio_reg>;
476 vcc4-supply = <&sys_3v3_reg>;
477 vcc5-supply = <&sys_3v3_reg>;
478 vcc6-supply = <&vio_reg>;
479 vcc7-supply = <&charge_pump_5v0_reg>;
480 vccio-supply = <&sys_3v3_reg>;
483 /* SW1: +V1.35_VDDIO_DDR */
485 regulator-name = "vddio_ddr_1v35";
486 regulator-min-microvolt = <1350000>;
487 regulator-max-microvolt = <1350000>;
494 "vdd_pexa,vdd_pexb,vdd_sata";
495 regulator-min-microvolt = <1050000>;
496 regulator-max-microvolt = <1050000>;
499 /* SW CTRL: +V1.0_VDD_CPU */
500 vddctrl_reg: vddctrl {
501 regulator-name = "vdd_cpu,vdd_sys";
502 regulator-min-microvolt = <1150000>;
503 regulator-max-microvolt = <1150000>;
509 regulator-name = "vdd_1v8_gen";
510 regulator-min-microvolt = <1800000>;
511 regulator-max-microvolt = <1800000>;
518 * EN_+V3.3 switching via FET:
519 * +V3.3_AUDIO_AVDD_S, +V3.3 and +V1.8_VDD_LAN
520 * see also v3_3 fixed supply
523 regulator-name = "en_3v3";
524 regulator-min-microvolt = <3300000>;
525 regulator-max-microvolt = <3300000>;
532 "avdd_dsi_csi,pwrdet_mipi";
533 regulator-min-microvolt = <1200000>;
534 regulator-max-microvolt = <1200000>;
539 regulator-name = "vdd_rtc";
540 regulator-min-microvolt = <1200000>;
541 regulator-max-microvolt = <1200000>;
547 * only required for analog RGB
550 regulator-name = "avdd_vdac";
551 regulator-min-microvolt = <2800000>;
552 regulator-max-microvolt = <2800000>;
557 * +V1.05_AVDD_PLLE: avdd_plle should be 1.05V
558 * but LDO6 can't set voltage in 50mV
562 regulator-name = "avdd_plle";
563 regulator-min-microvolt = <1100000>;
564 regulator-max-microvolt = <1100000>;
569 regulator-name = "avdd_pll";
570 regulator-min-microvolt = <1200000>;
571 regulator-max-microvolt = <1200000>;
575 /* +V1.0_VDD_DDR_HS */
577 regulator-name = "vdd_ddr_hs";
578 regulator-min-microvolt = <1000000>;
579 regulator-max-microvolt = <1000000>;
585 /* STMPE811 touch screen controller */
587 compatible = "st,stmpe811";
588 #address-cells = <1>;
591 interrupts = <TEGRA_GPIO(V, 0) IRQ_TYPE_LEVEL_LOW>;
592 interrupt-parent = <&gpio>;
593 interrupt-controller;
598 stmpe_touchscreen@0 {
599 compatible = "st,stmpe-ts";
601 /* 3.25 MHz ADC clock speed */
603 /* 8 sample average control */
605 /* 7 length fractional part in z */
608 * 50 mA typical 80 mA max touchscreen drivers
609 * current limit value
614 /* internal ADC reference */
616 /* ADC converstion time: 80 clocks */
617 st,sample-time = <4>;
618 /* 1 ms panel driver settling time */
620 /* 5 ms touch detect interrupt delay */
621 st,touch-det-delay = <5>;
626 * LM95245 temperature sensor
627 * Note: OVERT_N directly connected to PMIC PWRDN
630 compatible = "national,lm95245";
634 /* SW: +V1.2_VDD_CORE */
636 compatible = "ti,tps62362";
639 regulator-name = "tps62362-vout";
640 regulator-min-microvolt = <900000>;
641 regulator-max-microvolt = <1400000>;
645 /* VSEL1: EN_CORE_DVFS_N low for DVFS */
653 spi-max-frequency = <10000000>;
656 compatible = "microchip,mcp2515";
659 interrupt-parent = <&gpio>;
660 interrupts = <TEGRA_GPIO(W, 3) GPIO_ACTIVE_LOW>;
661 spi-max-frequency = <10000000>;
668 spi-max-frequency = <10000000>;
671 compatible = "microchip,mcp2515";
674 interrupt-parent = <&gpio>;
675 interrupts = <TEGRA_GPIO(W, 2) GPIO_ACTIVE_LOW>;
676 spi-max-frequency = <10000000>;
681 nvidia,invert-interrupt;
682 nvidia,suspend-mode = <1>;
683 nvidia,cpu-pwr-good-time = <5000>;
684 nvidia,cpu-pwr-off-time = <5000>;
685 nvidia,core-pwr-good-time = <3845 3845>;
686 nvidia,core-pwr-off-time = <0>;
687 nvidia,core-power-req-active-high;
688 nvidia,sys-clock-req-active-high;
705 compatible = "simple-bus";
706 #address-cells = <1>;
710 compatible = "fixed-clock";
713 clock-frequency = <32768>;
717 compatible = "fixed-clock";
720 clock-frequency = <16000000>;
721 clock-output-names = "clk16m";
726 compatible = "simple-bus";
727 #address-cells = <1>;
730 avdd_hdmi_pll_1v8_reg: regulator@100 {
731 compatible = "regulator-fixed";
733 regulator-name = "+V1.8_AVDD_HDMI_PLL";
734 regulator-min-microvolt = <1800000>;
735 regulator-max-microvolt = <1800000>;
737 gpio = <&pmic 6 GPIO_ACTIVE_HIGH>;
738 vin-supply = <&vio_reg>;
741 sys_3v3_reg: regulator@101 {
742 compatible = "regulator-fixed";
744 regulator-name = "3v3";
745 regulator-min-microvolt = <3300000>;
746 regulator-max-microvolt = <3300000>;
750 avdd_hdmi_3v3_reg: regulator@102 {
751 compatible = "regulator-fixed";
753 regulator-name = "+V3.3_AVDD_HDMI";
754 regulator-min-microvolt = <3300000>;
755 regulator-max-microvolt = <3300000>;
757 gpio = <&pmic 6 GPIO_ACTIVE_HIGH>;
758 vin-supply = <&sys_3v3_reg>;
761 charge_pump_5v0_reg: regulator@103 {
762 compatible = "regulator-fixed";
764 regulator-name = "5v0";
765 regulator-min-microvolt = <5000000>;
766 regulator-max-microvolt = <5000000>;
772 compatible = "toradex,tegra-audio-sgtl5000-apalis_t30",
773 "nvidia,tegra-audio-sgtl5000";
774 nvidia,model = "Toradex Apalis T30";
775 nvidia,audio-routing =
776 "Headphone Jack", "HP_OUT",
777 "LINE_IN", "Line In Jack",
778 "MIC_IN", "Mic Jack";
779 nvidia,i2s-controller = <&tegra_i2s2>;
780 nvidia,audio-codec = <&sgtl5000>;
781 clocks = <&tegra_car TEGRA30_CLK_PLL_A>,
782 <&tegra_car TEGRA30_CLK_PLL_A_OUT0>,
783 <&tegra_car TEGRA30_CLK_EXTERN1>;
784 clock-names = "pll_a", "pll_a_out0", "mclk";