1 // SPDX-License-Identifier: GPL-2.0
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/thermal/thermal.h>
6 #include "tegra20.dtsi"
7 #include "tegra20-cpu-opp.dtsi"
8 #include "tegra20-cpu-opp-microvolt.dtsi"
11 model = "NVIDIA Tegra20 Ventana evaluation board";
12 compatible = "nvidia,ventana", "nvidia,tegra20";
15 rtc0 = "/i2c@7000d000/tps6586x@34";
16 rtc1 = "/rtc@7000e000";
21 stdout-path = "serial0:115200n8";
25 reg = <0x00000000 0x40000000>;
33 nvidia,panel = <&panel>;
40 vdd-supply = <&hdmi_vdd_reg>;
41 pll-supply = <&hdmi_pll_reg>;
43 nvidia,ddc-i2c-bus = <&hdmi_ddc>;
44 nvidia,hpd-gpio = <&gpio TEGRA_GPIO(N, 7)
50 pinctrl-names = "default";
51 pinctrl-0 = <&state_default>;
53 state_default: pinmux {
56 nvidia,function = "ide";
59 nvidia,pins = "atb", "gma", "gme";
60 nvidia,function = "sdio4";
64 nvidia,function = "nand";
67 nvidia,pins = "atd", "ate", "gmb", "spia",
69 nvidia,function = "gmi";
72 nvidia,pins = "cdev1";
73 nvidia,function = "plla_out";
76 nvidia,pins = "cdev2";
77 nvidia,function = "pllp_out4";
80 nvidia,pins = "crtp", "lm1";
81 nvidia,function = "crt";
85 nvidia,function = "vi_sensor_clk";
89 nvidia,function = "dap1";
93 nvidia,function = "dap2";
97 nvidia,function = "dap3";
100 nvidia,pins = "dap4";
101 nvidia,function = "dap4";
104 nvidia,pins = "dta", "dtb", "dtc", "dtd", "dte";
105 nvidia,function = "vi";
109 nvidia,function = "i2c3";
113 nvidia,function = "uartd";
117 nvidia,function = "sflash";
121 nvidia,function = "pwm";
124 nvidia,pins = "gpu7";
125 nvidia,function = "rtck";
128 nvidia,pins = "gpv", "slxa", "slxk";
129 nvidia,function = "pcie";
132 nvidia,pins = "hdint";
133 nvidia,function = "hdmi";
136 nvidia,pins = "i2cp";
137 nvidia,function = "i2cp";
140 nvidia,pins = "irrx", "irtx";
141 nvidia,function = "uartb";
144 nvidia,pins = "kbca", "kbcb", "kbcc", "kbcd",
146 nvidia,function = "kbc";
149 nvidia,pins = "lcsn", "ldc", "lm0", "lpw1",
151 nvidia,function = "rsvd4";
154 nvidia,pins = "ld0", "ld1", "ld2", "ld3", "ld4",
155 "ld5", "ld6", "ld7", "ld8", "ld9",
156 "ld10", "ld11", "ld12", "ld13", "ld14",
157 "ld15", "ld16", "ld17", "ldi", "lhp0",
158 "lhp1", "lhp2", "lhs", "lpp", "lpw0",
159 "lpw2", "lsc0", "lsc1", "lsck", "lsda",
160 "lspi", "lvp1", "lvs";
161 nvidia,function = "displaya";
164 nvidia,pins = "owc", "spdi", "spdo", "uac";
165 nvidia,function = "rsvd2";
169 nvidia,function = "pwr_on";
173 nvidia,function = "i2c1";
176 nvidia,pins = "sdb", "sdc", "sdd", "slxc";
177 nvidia,function = "sdio3";
180 nvidia,pins = "sdio1";
181 nvidia,function = "sdio1";
184 nvidia,pins = "slxd";
185 nvidia,function = "spdif";
188 nvidia,pins = "spid", "spie", "spif";
189 nvidia,function = "spi1";
192 nvidia,pins = "spig", "spih";
193 nvidia,function = "spi2_alt";
196 nvidia,pins = "uaa", "uab", "uda";
197 nvidia,function = "ulpi";
201 nvidia,function = "irda";
204 nvidia,pins = "uca", "ucb";
205 nvidia,function = "uartc";
208 nvidia,pins = "ata", "atb", "atc", "atd",
209 "cdev1", "cdev2", "dap1", "dap2",
210 "dap4", "ddc", "dtf", "gma", "gmc",
211 "gme", "gpu", "gpu7", "i2cp", "irrx",
212 "irtx", "pta", "rm", "sdc", "sdd",
213 "slxc", "slxd", "slxk", "spdi", "spdo",
214 "uac", "uad", "uca", "ucb", "uda";
215 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
216 nvidia,tristate = <TEGRA_PIN_DISABLE>;
219 nvidia,pins = "ate", "csus", "dap3", "gmd",
220 "gpv", "owc", "spia", "spib", "spic",
221 "spid", "spie", "spig";
222 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
223 nvidia,tristate = <TEGRA_PIN_ENABLE>;
226 nvidia,pins = "ck32", "ddrc", "pmca", "pmcb",
227 "pmcc", "pmcd", "pmce", "xm2c", "xm2d";
228 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
231 nvidia,pins = "crtp", "gmb", "slxa", "spih";
232 nvidia,pull = <TEGRA_PIN_PULL_UP>;
233 nvidia,tristate = <TEGRA_PIN_ENABLE>;
236 nvidia,pins = "dta", "dtb", "dtc", "dtd";
237 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
238 nvidia,tristate = <TEGRA_PIN_DISABLE>;
241 nvidia,pins = "dte", "spif";
242 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
243 nvidia,tristate = <TEGRA_PIN_ENABLE>;
246 nvidia,pins = "hdint", "lcsn", "ldc", "lm1",
247 "lpw1", "lsck", "lsda", "lsdi", "lvp0";
248 nvidia,tristate = <TEGRA_PIN_ENABLE>;
251 nvidia,pins = "kbca", "kbcb", "kbcc", "kbcd",
252 "kbce", "kbcf", "sdio1", "uaa", "uab";
253 nvidia,pull = <TEGRA_PIN_PULL_UP>;
254 nvidia,tristate = <TEGRA_PIN_DISABLE>;
257 nvidia,pins = "lc", "ls";
258 nvidia,pull = <TEGRA_PIN_PULL_UP>;
261 nvidia,pins = "ld0", "ld1", "ld2", "ld3", "ld4",
262 "ld5", "ld6", "ld7", "ld8", "ld9",
263 "ld10", "ld11", "ld12", "ld13", "ld14",
264 "ld15", "ld16", "ld17", "ldi", "lhp0",
265 "lhp1", "lhp2", "lhs", "lm0", "lpp",
266 "lpw0", "lpw2", "lsc0", "lsc1", "lspi",
267 "lvp1", "lvs", "pmc", "sdb";
268 nvidia,tristate = <TEGRA_PIN_DISABLE>;
271 nvidia,pins = "ld17_0", "ld19_18", "ld21_20",
273 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
276 nvidia,pins = "drive_sdio1";
277 nvidia,high-speed-mode = <TEGRA_PIN_DISABLE>;
278 nvidia,schmitt = <TEGRA_PIN_ENABLE>;
279 nvidia,low-power-mode = <TEGRA_PIN_LP_DRIVE_DIV_1>;
280 nvidia,pull-down-strength = <31>;
281 nvidia,pull-up-strength = <31>;
282 nvidia,slew-rate-rising = <TEGRA_PIN_SLEW_RATE_SLOWEST>;
283 nvidia,slew-rate-falling = <TEGRA_PIN_SLEW_RATE_SLOWEST>;
287 state_i2cmux_ddc: pinmux_i2cmux_ddc {
290 nvidia,function = "i2c2";
294 nvidia,function = "rsvd4";
298 state_i2cmux_pta: pinmux_i2cmux_pta {
301 nvidia,function = "rsvd4";
305 nvidia,function = "i2c2";
309 state_i2cmux_idle: pinmux_i2cmux_idle {
312 nvidia,function = "rsvd4";
316 nvidia,function = "rsvd4";
335 clock-frequency = <400000>;
338 compatible = "wlf,wm8903";
340 interrupt-parent = <&gpio>;
341 interrupts = <TEGRA_GPIO(X, 3) IRQ_TYPE_LEVEL_HIGH>;
347 micdet-delay = <100>;
348 gpio-cfg = <0xffffffff 0xffffffff 0 0xffffffff 0xffffffff>;
351 /* ALS and proximity sensor */
353 compatible = "isil,isl29018";
355 interrupt-parent = <&gpio>;
356 interrupts = <TEGRA_GPIO(Z, 2) IRQ_TYPE_LEVEL_HIGH>;
362 clock-frequency = <100000>;
366 compatible = "i2c-mux-pinctrl";
367 #address-cells = <1>;
370 i2c-parent = <&{/i2c@7000c400}>;
372 pinctrl-names = "ddc", "pta", "idle";
373 pinctrl-0 = <&state_i2cmux_ddc>;
374 pinctrl-1 = <&state_i2cmux_pta>;
375 pinctrl-2 = <&state_i2cmux_idle>;
379 #address-cells = <1>;
385 #address-cells = <1>;
392 clock-frequency = <400000>;
397 clock-frequency = <400000>;
400 compatible = "ti,tps6586x";
402 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
404 ti,system-power-controller;
409 sys-supply = <&vdd_5v0_reg>;
410 vin-sm0-supply = <&sys_reg>;
411 vin-sm1-supply = <&sys_reg>;
412 vin-sm2-supply = <&sys_reg>;
413 vinldo01-supply = <&sm2_reg>;
414 vinldo23-supply = <&sm2_reg>;
415 vinldo4-supply = <&sm2_reg>;
416 vinldo678-supply = <&sm2_reg>;
417 vinldo9-supply = <&sm2_reg>;
421 regulator-name = "vdd_sys";
426 regulator-name = "vdd_sm0,vdd_core";
427 regulator-min-microvolt = <950000>;
428 regulator-max-microvolt = <1300000>;
429 regulator-coupled-with = <&rtc_vdd &vdd_cpu>;
430 regulator-coupled-max-spread = <170000 550000>;
434 nvidia,tegra-core-regulator;
438 regulator-name = "vdd_sm1,vdd_cpu";
439 regulator-min-microvolt = <750000>;
440 regulator-max-microvolt = <1125000>;
441 regulator-coupled-with = <&vdd_core &rtc_vdd>;
442 regulator-coupled-max-spread = <550000 550000>;
446 nvidia,tegra-cpu-regulator;
450 regulator-name = "vdd_sm2,vin_ldo*";
451 regulator-min-microvolt = <3700000>;
452 regulator-max-microvolt = <3700000>;
456 /* LDO0 is not connected to anything */
459 regulator-name = "vdd_ldo1,avdd_pll*";
460 regulator-min-microvolt = <1100000>;
461 regulator-max-microvolt = <1100000>;
466 regulator-name = "vdd_ldo2,vdd_rtc";
467 regulator-min-microvolt = <950000>;
468 regulator-max-microvolt = <1300000>;
469 regulator-coupled-with = <&vdd_core &vdd_cpu>;
470 regulator-coupled-max-spread = <170000 550000>;
474 nvidia,tegra-rtc-regulator;
478 regulator-name = "vdd_ldo3,avdd_usb*";
479 regulator-min-microvolt = <3300000>;
480 regulator-max-microvolt = <3300000>;
485 regulator-name = "vdd_ldo4,avdd_osc,vddio_sys";
486 regulator-min-microvolt = <1800000>;
487 regulator-max-microvolt = <1800000>;
492 regulator-name = "vdd_ldo5,vcore_mmc";
493 regulator-min-microvolt = <2850000>;
494 regulator-max-microvolt = <2850000>;
499 regulator-name = "vdd_ldo6,avdd_vdac";
500 regulator-min-microvolt = <1800000>;
501 regulator-max-microvolt = <1800000>;
505 regulator-name = "vdd_ldo7,avdd_hdmi,vdd_fuse";
506 regulator-min-microvolt = <3300000>;
507 regulator-max-microvolt = <3300000>;
511 regulator-name = "vdd_ldo8,avdd_hdmi_pll";
512 regulator-min-microvolt = <1800000>;
513 regulator-max-microvolt = <1800000>;
517 regulator-name = "vdd_ldo9,avdd_2v85,vdd_ddr_rx";
518 regulator-min-microvolt = <2850000>;
519 regulator-max-microvolt = <2850000>;
524 regulator-name = "vdd_rtc_out,vdd_cell";
525 regulator-min-microvolt = <3300000>;
526 regulator-max-microvolt = <3300000>;
532 nct1008: temperature-sensor@4c {
533 compatible = "onnn,nct1008";
535 #thermal-sensor-cells = <1>;
540 nvidia,invert-interrupt;
541 nvidia,suspend-mode = <1>;
542 nvidia,cpu-pwr-good-time = <2000>;
543 nvidia,cpu-pwr-off-time = <100>;
544 nvidia,core-pwr-good-time = <3845 3845>;
545 nvidia,core-pwr-off-time = <458>;
546 nvidia,sys-clock-req-active-high;
559 nvidia,phy-reset-gpio = <&gpio TEGRA_GPIO(V, 1)
565 nvidia,phy-reset-gpio = <&gpio TEGRA_GPIO(V, 1)
579 power-gpios = <&gpio TEGRA_GPIO(K, 6) GPIO_ACTIVE_HIGH>;
581 keep-power-in-suspend;
586 cd-gpios = <&gpio TEGRA_GPIO(I, 5) GPIO_ACTIVE_LOW>;
587 wp-gpios = <&gpio TEGRA_GPIO(H, 1) GPIO_ACTIVE_HIGH>;
588 power-gpios = <&gpio TEGRA_GPIO(I, 6) GPIO_ACTIVE_HIGH>;
598 backlight: backlight {
599 compatible = "pwm-backlight";
601 enable-gpios = <&gpio TEGRA_GPIO(D, 4) GPIO_ACTIVE_HIGH>;
602 power-supply = <&vdd_bl_reg>;
603 pwms = <&pwm 2 5000000>;
605 brightness-levels = <0 4 8 16 32 64 128 255>;
606 default-brightness-level = <6>;
610 compatible = "fixed-clock";
611 clock-frequency = <32768>;
617 cpu-supply = <&vdd_cpu>;
618 operating-points-v2 = <&cpu0_opp_table>;
619 #cooling-cells = <2>;
623 cpu-supply = <&vdd_cpu>;
624 operating-points-v2 = <&cpu0_opp_table>;
625 #cooling-cells = <2>;
630 compatible = "gpio-keys";
634 gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_LOW>;
635 linux,code = <KEY_POWER>;
641 compatible = "chunghwa,claa101wa01a";
643 power-supply = <&vdd_pnl_reg>;
644 enable-gpios = <&gpio TEGRA_GPIO(B, 2) GPIO_ACTIVE_HIGH>;
646 backlight = <&backlight>;
647 ddc-i2c-bus = <&lvds_ddc>;
650 vdd_5v0_reg: regulator@0 {
651 compatible = "regulator-fixed";
652 regulator-name = "vdd_5v0";
653 regulator-min-microvolt = <5000000>;
654 regulator-max-microvolt = <5000000>;
659 compatible = "regulator-fixed";
660 regulator-name = "vdd_1v5";
661 regulator-min-microvolt = <1500000>;
662 regulator-max-microvolt = <1500000>;
663 gpio = <&pmic 0 GPIO_ACTIVE_HIGH>;
667 compatible = "regulator-fixed";
668 regulator-name = "vdd_1v2";
669 regulator-min-microvolt = <1200000>;
670 regulator-max-microvolt = <1200000>;
671 gpio = <&pmic 1 GPIO_ACTIVE_HIGH>;
675 vdd_pnl_reg: regulator@3 {
676 compatible = "regulator-fixed";
677 regulator-name = "vdd_pnl";
678 regulator-min-microvolt = <2800000>;
679 regulator-max-microvolt = <2800000>;
680 gpio = <&gpio TEGRA_GPIO(C, 6) GPIO_ACTIVE_HIGH>;
684 vdd_bl_reg: regulator@4 {
685 compatible = "regulator-fixed";
686 regulator-name = "vdd_bl";
687 regulator-min-microvolt = <2800000>;
688 regulator-max-microvolt = <2800000>;
689 gpio = <&gpio TEGRA_GPIO(W, 0) GPIO_ACTIVE_HIGH>;
694 compatible = "nvidia,tegra-audio-wm8903-ventana",
695 "nvidia,tegra-audio-wm8903";
696 nvidia,model = "NVIDIA Tegra Ventana";
698 nvidia,audio-routing =
699 "Headphone Jack", "HPOUTR",
700 "Headphone Jack", "HPOUTL",
705 "Mic Jack", "MICBIAS",
708 nvidia,i2s-controller = <&tegra_i2s1>;
709 nvidia,audio-codec = <&wm8903>;
711 nvidia,spkr-en-gpios = <&wm8903 2 GPIO_ACTIVE_HIGH>;
712 nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_HIGH>;
713 nvidia,int-mic-en-gpios = <&gpio TEGRA_GPIO(X, 0)
715 nvidia,ext-mic-en-gpios = <&gpio TEGRA_GPIO(X, 1)
718 clocks = <&tegra_car TEGRA20_CLK_PLL_A>,
719 <&tegra_car TEGRA20_CLK_PLL_A_OUT0>,
720 <&tegra_car TEGRA20_CLK_CDEV1>;
721 clock-names = "pll_a", "pll_a_out0", "mclk";
726 polling-delay-passive = <1000>; /* milliseconds */
727 polling-delay = <5000>; /* milliseconds */
729 thermal-sensors = <&nct1008 1>;
733 /* start throttling at 50C */
734 temperature = <50000>;
740 /* shut down at 60C */
741 temperature = <60000>;
750 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
751 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;