1 #include "tegra30.dtsi"
4 * Toradex Apalis T30 Module Device Tree
5 * Compatible for Revisions 1GB: V1.0A, V1.1A; 1GB IT: V1.1A;
6 * 2GB: V1.0B, V1.0C, V1.0E, V1.1A
9 model = "Toradex Apalis T30";
10 compatible = "toradex,apalis_t30", "nvidia,tegra30";
12 pcie-controller@00003000 {
13 avdd-pexa-supply = <&vdd2_reg>;
14 vdd-pexa-supply = <&vdd2_reg>;
15 avdd-pexb-supply = <&vdd2_reg>;
16 vdd-pexb-supply = <&vdd2_reg>;
17 avdd-pex-pll-supply = <&vdd2_reg>;
18 avdd-plle-supply = <&ldo6_reg>;
19 vddio-pex-ctl-supply = <&sys_3v3_reg>;
20 hvdd-pex-supply = <&sys_3v3_reg>;
23 nvidia,num-lanes = <4>;
27 nvidia,num-lanes = <1>;
31 nvidia,num-lanes = <1>;
37 vdd-supply = <&avdd_hdmi_3v3_reg>;
38 pll-supply = <&avdd_hdmi_pll_1v8_reg>;
41 <&gpio TEGRA_GPIO(N, 7) GPIO_ACTIVE_HIGH>;
42 nvidia,ddc-i2c-bus = <&hdmiddc>;
47 pinctrl-names = "default";
48 pinctrl-0 = <&state_default>;
50 state_default: pinmux {
51 /* Analogue Audio (On-module) */
53 nvidia,pins = "clk1_out_pw4";
54 nvidia,function = "extperiph1";
55 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
56 nvidia,tristate = <TEGRA_PIN_DISABLE>;
57 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
60 nvidia,pins = "dap3_fs_pp0",
64 nvidia,function = "i2s2";
65 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
66 nvidia,tristate = <TEGRA_PIN_DISABLE>;
72 nvidia,function = "rsvd4";
73 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
74 nvidia,tristate = <TEGRA_PIN_DISABLE>;
79 nvidia,pins = "uart3_rts_n_pc0";
80 nvidia,function = "pwm0";
81 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
82 nvidia,tristate = <TEGRA_PIN_DISABLE>;
84 /* BKL1_PWM_EN#, disable TPS65911 PMIC PWM backlight */
86 nvidia,pins = "uart3_cts_n_pa1";
87 nvidia,function = "rsvd2";
88 nvidia,pull = <TEGRA_PIN_PULL_UP>;
89 nvidia,tristate = <TEGRA_PIN_DISABLE>;
92 /* Apalis CAN1 on SPI6 */
94 nvidia,pins = "spi2_cs0_n_px3",
98 nvidia,function = "spi6";
99 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
100 nvidia,tristate = <TEGRA_PIN_DISABLE>;
104 nvidia,pins = "spi2_cs1_n_pw2";
105 nvidia,function = "spi3";
106 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
107 nvidia,tristate = <TEGRA_PIN_DISABLE>;
108 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
111 /* Apalis CAN2 on SPI4 */
113 nvidia,pins = "gmi_a16_pj7",
117 nvidia,function = "spi4";
118 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
119 nvidia,tristate = <TEGRA_PIN_DISABLE>;
123 nvidia,pins = "spi2_cs2_n_pw3";
124 nvidia,function = "spi3";
125 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
126 nvidia,tristate = <TEGRA_PIN_DISABLE>;
127 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
130 /* Apalis Digital Audio */
132 nvidia,pins = "clk1_req_pee2";
133 nvidia,function = "hda";
134 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
135 nvidia,tristate = <TEGRA_PIN_DISABLE>;
138 nvidia,pins = "clk2_out_pw5";
139 nvidia,function = "extperiph2";
140 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
141 nvidia,tristate = <TEGRA_PIN_DISABLE>;
142 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
145 nvidia,pins = "dap1_fs_pn0",
149 nvidia,function = "hda";
150 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
151 nvidia,tristate = <TEGRA_PIN_DISABLE>;
156 nvidia,pins = "cam_i2c_scl_pbb1",
158 nvidia,function = "i2c3";
159 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
160 nvidia,tristate = <TEGRA_PIN_DISABLE>;
161 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
162 nvidia,lock = <TEGRA_PIN_DISABLE>;
163 nvidia,open-drain = <TEGRA_PIN_ENABLE>;
168 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_dat0_pb7",
183 nvidia,function = "sdmmc3";
184 nvidia,pull = <TEGRA_PIN_PULL_UP>;
185 nvidia,tristate = <TEGRA_PIN_DISABLE>;
187 /* Apalis MMC1_CD# */
190 nvidia,function = "rsvd2";
191 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
192 nvidia,tristate = <TEGRA_PIN_DISABLE>;
193 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
199 nvidia,function = "pwm3";
200 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
201 nvidia,tristate = <TEGRA_PIN_DISABLE>;
207 nvidia,function = "pwm2";
208 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
209 nvidia,tristate = <TEGRA_PIN_DISABLE>;
215 nvidia,function = "pwm1";
216 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
217 nvidia,tristate = <TEGRA_PIN_DISABLE>;
223 nvidia,function = "pwm0";
224 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
225 nvidia,tristate = <TEGRA_PIN_DISABLE>;
228 /* Apalis RESET_MOCI# */
230 nvidia,pins = "gmi_rst_n_pi4";
231 nvidia,function = "gmi";
232 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
233 nvidia,tristate = <TEGRA_PIN_DISABLE>;
238 nvidia,pins = "sdmmc1_clk_pz0";
239 nvidia,function = "sdmmc1";
240 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
241 nvidia,tristate = <TEGRA_PIN_DISABLE>;
244 nvidia,pins = "sdmmc1_cmd_pz1",
249 nvidia,function = "sdmmc1";
250 nvidia,pull = <TEGRA_PIN_PULL_UP>;
251 nvidia,tristate = <TEGRA_PIN_DISABLE>;
255 nvidia,pins = "clk2_req_pcc5";
256 nvidia,function = "rsvd2";
257 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
258 nvidia,tristate = <TEGRA_PIN_DISABLE>;
259 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
264 nvidia,pins = "spi1_sck_px5",
268 nvidia,function = "spi1";
269 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
270 nvidia,tristate = <TEGRA_PIN_DISABLE>;
275 nvidia,pins = "lcd_sck_pz4",
279 nvidia,function = "spi5";
280 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
281 nvidia,tristate = <TEGRA_PIN_DISABLE>;
286 nvidia,pins = "ulpi_data0_po1",
294 nvidia,function = "uarta";
295 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
296 nvidia,tristate = <TEGRA_PIN_DISABLE>;
301 nvidia,pins = "ulpi_clk_py0",
305 nvidia,function = "uartd";
306 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
307 nvidia,tristate = <TEGRA_PIN_DISABLE>;
312 nvidia,pins = "uart2_rxd_pc3",
314 nvidia,function = "uartb";
315 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
316 nvidia,tristate = <TEGRA_PIN_DISABLE>;
321 nvidia,pins = "uart3_rxd_pw7",
323 nvidia,function = "uartc";
324 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
325 nvidia,tristate = <TEGRA_PIN_DISABLE>;
328 /* Apalis USBO1_EN */
330 nvidia,pins = "gen2_i2c_scl_pt5";
331 nvidia,function = "rsvd4";
332 nvidia,open-drain = <TEGRA_PIN_DISABLE>;
333 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
334 nvidia,tristate = <TEGRA_PIN_DISABLE>;
337 /* Apalis USBO1_OC# */
339 nvidia,pins = "gen2_i2c_sda_pt6";
340 nvidia,function = "rsvd4";
341 nvidia,open-drain = <TEGRA_PIN_DISABLE>;
342 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
343 nvidia,tristate = <TEGRA_PIN_DISABLE>;
344 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
347 /* Apalis WAKE1_MICO */
350 nvidia,function = "rsvd1";
351 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
352 nvidia,tristate = <TEGRA_PIN_DISABLE>;
353 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
356 /* eMMC (On-module) */
358 nvidia,pins = "sdmmc4_clk_pcc4",
360 nvidia,function = "sdmmc4";
361 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
362 nvidia,tristate = <TEGRA_PIN_DISABLE>;
365 nvidia,pins = "sdmmc4_dat0_paa0",
373 nvidia,function = "sdmmc4";
374 nvidia,pull = <TEGRA_PIN_PULL_UP>;
375 nvidia,tristate = <TEGRA_PIN_DISABLE>;
378 /* LVDS Transceiver Configuration */
380 nvidia,pins = "pbb0",
384 nvidia,function = "rsvd2";
385 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
386 nvidia,tristate = <TEGRA_PIN_DISABLE>;
387 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
388 nvidia,lock = <TEGRA_PIN_DISABLE>;
391 nvidia,pins = "pbb3",
395 nvidia,function = "displayb";
396 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
397 nvidia,tristate = <TEGRA_PIN_DISABLE>;
398 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
399 nvidia,lock = <TEGRA_PIN_DISABLE>;
402 /* Power I2C (On-module) */
404 nvidia,pins = "pwr_i2c_scl_pz6",
406 nvidia,function = "i2cpwr";
407 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
408 nvidia,tristate = <TEGRA_PIN_DISABLE>;
409 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
410 nvidia,lock = <TEGRA_PIN_DISABLE>;
411 nvidia,open-drain = <TEGRA_PIN_ENABLE>;
415 * THERMD_ALERT#, unlatched I2C address pin of LM95245
416 * temperature sensor therefore requires disabling for
420 nvidia,pins = "lcd_dc1_pd2";
421 nvidia,function = "rsvd3";
422 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
423 nvidia,tristate = <TEGRA_PIN_DISABLE>;
424 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
430 nvidia,function = "rsvd1";
431 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
432 nvidia,tristate = <TEGRA_PIN_DISABLE>;
433 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
438 hdmiddc: i2c@7000c700 {
439 clock-frequency = <100000>;
443 * PWR_I2C: power I2C to audio codec, PMIC, temperature sensor and
444 * touch screen controller
448 clock-frequency = <100000>;
450 /* SGTL5000 audio codec */
452 compatible = "fsl,sgtl5000";
454 VDDA-supply = <&sys_3v3_reg>;
455 VDDIO-supply = <&sys_3v3_reg>;
456 clocks = <&tegra_car TEGRA30_CLK_EXTERN1>;
460 compatible = "ti,tps65911";
463 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
464 #interrupt-cells = <2>;
465 interrupt-controller;
467 ti,system-power-controller;
472 vcc1-supply = <&sys_3v3_reg>;
473 vcc2-supply = <&sys_3v3_reg>;
474 vcc3-supply = <&vio_reg>;
475 vcc4-supply = <&sys_3v3_reg>;
476 vcc5-supply = <&sys_3v3_reg>;
477 vcc6-supply = <&vio_reg>;
478 vcc7-supply = <&charge_pump_5v0_reg>;
479 vccio-supply = <&sys_3v3_reg>;
482 /* SW1: +V1.35_VDDIO_DDR */
484 regulator-name = "vddio_ddr_1v35";
485 regulator-min-microvolt = <1350000>;
486 regulator-max-microvolt = <1350000>;
493 "vdd_pexa,vdd_pexb,vdd_sata";
494 regulator-min-microvolt = <1050000>;
495 regulator-max-microvolt = <1050000>;
498 /* SW CTRL: +V1.0_VDD_CPU */
499 vddctrl_reg: vddctrl {
500 regulator-name = "vdd_cpu,vdd_sys";
501 regulator-min-microvolt = <1150000>;
502 regulator-max-microvolt = <1150000>;
508 regulator-name = "vdd_1v8_gen";
509 regulator-min-microvolt = <1800000>;
510 regulator-max-microvolt = <1800000>;
517 * EN_+V3.3 switching via FET:
518 * +V3.3_AUDIO_AVDD_S, +V3.3 and +V1.8_VDD_LAN
519 * see also v3_3 fixed supply
522 regulator-name = "en_3v3";
523 regulator-min-microvolt = <3300000>;
524 regulator-max-microvolt = <3300000>;
531 "avdd_dsi_csi,pwrdet_mipi";
532 regulator-min-microvolt = <1200000>;
533 regulator-max-microvolt = <1200000>;
538 regulator-name = "vdd_rtc";
539 regulator-min-microvolt = <1200000>;
540 regulator-max-microvolt = <1200000>;
546 * only required for analog RGB
549 regulator-name = "avdd_vdac";
550 regulator-min-microvolt = <2800000>;
551 regulator-max-microvolt = <2800000>;
556 * +V1.05_AVDD_PLLE: avdd_plle should be 1.05V
557 * but LDO6 can't set voltage in 50mV
561 regulator-name = "avdd_plle";
562 regulator-min-microvolt = <1100000>;
563 regulator-max-microvolt = <1100000>;
568 regulator-name = "avdd_pll";
569 regulator-min-microvolt = <1200000>;
570 regulator-max-microvolt = <1200000>;
574 /* +V1.0_VDD_DDR_HS */
576 regulator-name = "vdd_ddr_hs";
577 regulator-min-microvolt = <1000000>;
578 regulator-max-microvolt = <1000000>;
584 /* STMPE811 touch screen controller */
586 compatible = "st,stmpe811";
587 #address-cells = <1>;
590 interrupts = <TEGRA_GPIO(V, 0) IRQ_TYPE_LEVEL_LOW>;
591 interrupt-parent = <&gpio>;
592 interrupt-controller;
597 stmpe_touchscreen@0 {
598 compatible = "st,stmpe-ts";
600 /* 3.25 MHz ADC clock speed */
602 /* 8 sample average control */
604 /* 7 length fractional part in z */
607 * 50 mA typical 80 mA max touchscreen drivers
608 * current limit value
613 /* internal ADC reference */
615 /* ADC converstion time: 80 clocks */
616 st,sample-time = <4>;
617 /* 1 ms panel driver settling time */
619 /* 5 ms touch detect interrupt delay */
620 st,touch-det-delay = <5>;
625 * LM95245 temperature sensor
626 * Note: OVERT_N directly connected to PMIC PWRDN
629 compatible = "national,lm95245";
633 /* SW: +V1.2_VDD_CORE */
635 compatible = "ti,tps62362";
638 regulator-name = "tps62362-vout";
639 regulator-min-microvolt = <900000>;
640 regulator-max-microvolt = <1400000>;
644 /* VSEL1: EN_CORE_DVFS_N low for DVFS */
652 spi-max-frequency = <10000000>;
655 compatible = "microchip,mcp2515";
658 interrupt-parent = <&gpio>;
659 interrupts = <TEGRA_GPIO(W, 3) GPIO_ACTIVE_LOW>;
660 spi-max-frequency = <10000000>;
667 spi-max-frequency = <10000000>;
670 compatible = "microchip,mcp2515";
673 interrupt-parent = <&gpio>;
674 interrupts = <TEGRA_GPIO(W, 2) GPIO_ACTIVE_LOW>;
675 spi-max-frequency = <10000000>;
680 nvidia,invert-interrupt;
681 nvidia,suspend-mode = <1>;
682 nvidia,cpu-pwr-good-time = <5000>;
683 nvidia,cpu-pwr-off-time = <5000>;
684 nvidia,core-pwr-good-time = <3845 3845>;
685 nvidia,core-pwr-off-time = <0>;
686 nvidia,core-power-req-active-high;
687 nvidia,sys-clock-req-active-high;
704 compatible = "simple-bus";
705 #address-cells = <1>;
709 compatible = "fixed-clock";
712 clock-frequency = <32768>;
716 compatible = "fixed-clock";
719 clock-frequency = <16000000>;
720 clock-output-names = "clk16m";
725 compatible = "simple-bus";
726 #address-cells = <1>;
729 avdd_hdmi_pll_1v8_reg: regulator@100 {
730 compatible = "regulator-fixed";
732 regulator-name = "+V1.8_AVDD_HDMI_PLL";
733 regulator-min-microvolt = <1800000>;
734 regulator-max-microvolt = <1800000>;
736 gpio = <&pmic 6 GPIO_ACTIVE_HIGH>;
737 vin-supply = <&vio_reg>;
740 sys_3v3_reg: regulator@101 {
741 compatible = "regulator-fixed";
743 regulator-name = "3v3";
744 regulator-min-microvolt = <3300000>;
745 regulator-max-microvolt = <3300000>;
749 avdd_hdmi_3v3_reg: regulator@102 {
750 compatible = "regulator-fixed";
752 regulator-name = "+V3.3_AVDD_HDMI";
753 regulator-min-microvolt = <3300000>;
754 regulator-max-microvolt = <3300000>;
756 gpio = <&pmic 6 GPIO_ACTIVE_HIGH>;
757 vin-supply = <&sys_3v3_reg>;
760 charge_pump_5v0_reg: regulator@103 {
761 compatible = "regulator-fixed";
763 regulator-name = "5v0";
764 regulator-min-microvolt = <5000000>;
765 regulator-max-microvolt = <5000000>;
771 compatible = "toradex,tegra-audio-sgtl5000-apalis_t30",
772 "nvidia,tegra-audio-sgtl5000";
773 nvidia,model = "Toradex Apalis T30";
774 nvidia,audio-routing =
775 "Headphone Jack", "HP_OUT",
776 "LINE_IN", "Line In Jack",
777 "MIC_IN", "Mic Jack";
778 nvidia,i2s-controller = <&tegra_i2s2>;
779 nvidia,audio-codec = <&sgtl5000>;
780 clocks = <&tegra_car TEGRA30_CLK_PLL_A>,
781 <&tegra_car TEGRA30_CLK_PLL_A_OUT0>,
782 <&tegra_car TEGRA30_CLK_EXTERN1>;
783 clock-names = "pll_a", "pll_a_out0", "mclk";