1 // SPDX-License-Identifier: GPL-2.0
4 #include <dt-bindings/input/input.h>
5 #include "tegra20.dtsi"
6 #include "tegra20-cpu-opp.dtsi"
9 model = "NVIDIA Tegra20 Ventana evaluation board";
10 compatible = "nvidia,ventana", "nvidia,tegra20";
13 rtc0 = "/i2c@7000d000/tps6586x@34";
14 rtc1 = "/rtc@7000e000";
19 stdout-path = "serial0:115200n8";
23 reg = <0x00000000 0x40000000>;
31 nvidia,panel = <&panel>;
38 vdd-supply = <&hdmi_vdd_reg>;
39 pll-supply = <&hdmi_pll_reg>;
41 nvidia,ddc-i2c-bus = <&hdmi_ddc>;
42 nvidia,hpd-gpio = <&gpio TEGRA_GPIO(N, 7)
48 pinctrl-names = "default";
49 pinctrl-0 = <&state_default>;
51 state_default: pinmux {
54 nvidia,function = "ide";
57 nvidia,pins = "atb", "gma", "gme";
58 nvidia,function = "sdio4";
62 nvidia,function = "nand";
65 nvidia,pins = "atd", "ate", "gmb", "spia",
67 nvidia,function = "gmi";
70 nvidia,pins = "cdev1";
71 nvidia,function = "plla_out";
74 nvidia,pins = "cdev2";
75 nvidia,function = "pllp_out4";
78 nvidia,pins = "crtp", "lm1";
79 nvidia,function = "crt";
83 nvidia,function = "vi_sensor_clk";
87 nvidia,function = "dap1";
91 nvidia,function = "dap2";
95 nvidia,function = "dap3";
99 nvidia,function = "dap4";
102 nvidia,pins = "dta", "dtb", "dtc", "dtd", "dte";
103 nvidia,function = "vi";
107 nvidia,function = "i2c3";
111 nvidia,function = "uartd";
115 nvidia,function = "sflash";
119 nvidia,function = "pwm";
122 nvidia,pins = "gpu7";
123 nvidia,function = "rtck";
126 nvidia,pins = "gpv", "slxa", "slxk";
127 nvidia,function = "pcie";
130 nvidia,pins = "hdint";
131 nvidia,function = "hdmi";
134 nvidia,pins = "i2cp";
135 nvidia,function = "i2cp";
138 nvidia,pins = "irrx", "irtx";
139 nvidia,function = "uartb";
142 nvidia,pins = "kbca", "kbcb", "kbcc", "kbcd",
144 nvidia,function = "kbc";
147 nvidia,pins = "lcsn", "ldc", "lm0", "lpw1",
149 nvidia,function = "rsvd4";
152 nvidia,pins = "ld0", "ld1", "ld2", "ld3", "ld4",
153 "ld5", "ld6", "ld7", "ld8", "ld9",
154 "ld10", "ld11", "ld12", "ld13", "ld14",
155 "ld15", "ld16", "ld17", "ldi", "lhp0",
156 "lhp1", "lhp2", "lhs", "lpp", "lpw0",
157 "lpw2", "lsc0", "lsc1", "lsck", "lsda",
158 "lspi", "lvp1", "lvs";
159 nvidia,function = "displaya";
162 nvidia,pins = "owc", "spdi", "spdo", "uac";
163 nvidia,function = "rsvd2";
167 nvidia,function = "pwr_on";
171 nvidia,function = "i2c1";
174 nvidia,pins = "sdb", "sdc", "sdd", "slxc";
175 nvidia,function = "sdio3";
178 nvidia,pins = "sdio1";
179 nvidia,function = "sdio1";
182 nvidia,pins = "slxd";
183 nvidia,function = "spdif";
186 nvidia,pins = "spid", "spie", "spif";
187 nvidia,function = "spi1";
190 nvidia,pins = "spig", "spih";
191 nvidia,function = "spi2_alt";
194 nvidia,pins = "uaa", "uab", "uda";
195 nvidia,function = "ulpi";
199 nvidia,function = "irda";
202 nvidia,pins = "uca", "ucb";
203 nvidia,function = "uartc";
206 nvidia,pins = "ata", "atb", "atc", "atd",
207 "cdev1", "cdev2", "dap1", "dap2",
208 "dap4", "ddc", "dtf", "gma", "gmc",
209 "gme", "gpu", "gpu7", "i2cp", "irrx",
210 "irtx", "pta", "rm", "sdc", "sdd",
211 "slxc", "slxd", "slxk", "spdi", "spdo",
212 "uac", "uad", "uca", "ucb", "uda";
213 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
214 nvidia,tristate = <TEGRA_PIN_DISABLE>;
217 nvidia,pins = "ate", "csus", "dap3", "gmd",
218 "gpv", "owc", "spia", "spib", "spic",
219 "spid", "spie", "spig";
220 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
221 nvidia,tristate = <TEGRA_PIN_ENABLE>;
224 nvidia,pins = "ck32", "ddrc", "pmca", "pmcb",
225 "pmcc", "pmcd", "pmce", "xm2c", "xm2d";
226 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
229 nvidia,pins = "crtp", "gmb", "slxa", "spih";
230 nvidia,pull = <TEGRA_PIN_PULL_UP>;
231 nvidia,tristate = <TEGRA_PIN_ENABLE>;
234 nvidia,pins = "dta", "dtb", "dtc", "dtd";
235 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
236 nvidia,tristate = <TEGRA_PIN_DISABLE>;
239 nvidia,pins = "dte", "spif";
240 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
241 nvidia,tristate = <TEGRA_PIN_ENABLE>;
244 nvidia,pins = "hdint", "lcsn", "ldc", "lm1",
245 "lpw1", "lsck", "lsda", "lsdi", "lvp0";
246 nvidia,tristate = <TEGRA_PIN_ENABLE>;
249 nvidia,pins = "kbca", "kbcb", "kbcc", "kbcd",
250 "kbce", "kbcf", "sdio1", "uaa", "uab";
251 nvidia,pull = <TEGRA_PIN_PULL_UP>;
252 nvidia,tristate = <TEGRA_PIN_DISABLE>;
255 nvidia,pins = "lc", "ls";
256 nvidia,pull = <TEGRA_PIN_PULL_UP>;
259 nvidia,pins = "ld0", "ld1", "ld2", "ld3", "ld4",
260 "ld5", "ld6", "ld7", "ld8", "ld9",
261 "ld10", "ld11", "ld12", "ld13", "ld14",
262 "ld15", "ld16", "ld17", "ldi", "lhp0",
263 "lhp1", "lhp2", "lhs", "lm0", "lpp",
264 "lpw0", "lpw2", "lsc0", "lsc1", "lspi",
265 "lvp1", "lvs", "pmc", "sdb";
266 nvidia,tristate = <TEGRA_PIN_DISABLE>;
269 nvidia,pins = "ld17_0", "ld19_18", "ld21_20",
271 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
274 nvidia,pins = "drive_sdio1";
275 nvidia,high-speed-mode = <TEGRA_PIN_DISABLE>;
276 nvidia,schmitt = <TEGRA_PIN_ENABLE>;
277 nvidia,low-power-mode = <TEGRA_PIN_LP_DRIVE_DIV_1>;
278 nvidia,pull-down-strength = <31>;
279 nvidia,pull-up-strength = <31>;
280 nvidia,slew-rate-rising = <TEGRA_PIN_SLEW_RATE_SLOWEST>;
281 nvidia,slew-rate-falling = <TEGRA_PIN_SLEW_RATE_SLOWEST>;
285 state_i2cmux_ddc: pinmux_i2cmux_ddc {
288 nvidia,function = "i2c2";
292 nvidia,function = "rsvd4";
296 state_i2cmux_pta: pinmux_i2cmux_pta {
299 nvidia,function = "rsvd4";
303 nvidia,function = "i2c2";
307 state_i2cmux_idle: pinmux_i2cmux_idle {
310 nvidia,function = "rsvd4";
314 nvidia,function = "rsvd4";
333 clock-frequency = <400000>;
336 compatible = "wlf,wm8903";
338 interrupt-parent = <&gpio>;
339 interrupts = <TEGRA_GPIO(X, 3) IRQ_TYPE_LEVEL_HIGH>;
345 micdet-delay = <100>;
346 gpio-cfg = <0xffffffff 0xffffffff 0 0xffffffff 0xffffffff>;
349 /* ALS and proximity sensor */
351 compatible = "isil,isl29018";
353 interrupt-parent = <&gpio>;
354 interrupts = <TEGRA_GPIO(Z, 2) IRQ_TYPE_LEVEL_HIGH>;
360 clock-frequency = <100000>;
364 compatible = "i2c-mux-pinctrl";
365 #address-cells = <1>;
368 i2c-parent = <&{/i2c@7000c400}>;
370 pinctrl-names = "ddc", "pta", "idle";
371 pinctrl-0 = <&state_i2cmux_ddc>;
372 pinctrl-1 = <&state_i2cmux_pta>;
373 pinctrl-2 = <&state_i2cmux_idle>;
377 #address-cells = <1>;
383 #address-cells = <1>;
390 clock-frequency = <400000>;
395 clock-frequency = <400000>;
398 compatible = "ti,tps6586x";
400 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
402 ti,system-power-controller;
407 sys-supply = <&vdd_5v0_reg>;
408 vin-sm0-supply = <&sys_reg>;
409 vin-sm1-supply = <&sys_reg>;
410 vin-sm2-supply = <&sys_reg>;
411 vinldo01-supply = <&sm2_reg>;
412 vinldo23-supply = <&sm2_reg>;
413 vinldo4-supply = <&sm2_reg>;
414 vinldo678-supply = <&sm2_reg>;
415 vinldo9-supply = <&sm2_reg>;
419 regulator-name = "vdd_sys";
424 regulator-name = "vdd_sm0,vdd_core";
425 regulator-min-microvolt = <1200000>;
426 regulator-max-microvolt = <1200000>;
431 regulator-name = "vdd_sm1,vdd_cpu";
432 regulator-min-microvolt = <1000000>;
433 regulator-max-microvolt = <1000000>;
438 regulator-name = "vdd_sm2,vin_ldo*";
439 regulator-min-microvolt = <3700000>;
440 regulator-max-microvolt = <3700000>;
444 /* LDO0 is not connected to anything */
447 regulator-name = "vdd_ldo1,avdd_pll*";
448 regulator-min-microvolt = <1100000>;
449 regulator-max-microvolt = <1100000>;
454 regulator-name = "vdd_ldo2,vdd_rtc";
455 regulator-min-microvolt = <1200000>;
456 regulator-max-microvolt = <1200000>;
460 regulator-name = "vdd_ldo3,avdd_usb*";
461 regulator-min-microvolt = <3300000>;
462 regulator-max-microvolt = <3300000>;
467 regulator-name = "vdd_ldo4,avdd_osc,vddio_sys";
468 regulator-min-microvolt = <1800000>;
469 regulator-max-microvolt = <1800000>;
474 regulator-name = "vdd_ldo5,vcore_mmc";
475 regulator-min-microvolt = <2850000>;
476 regulator-max-microvolt = <2850000>;
481 regulator-name = "vdd_ldo6,avdd_vdac";
482 regulator-min-microvolt = <1800000>;
483 regulator-max-microvolt = <1800000>;
487 regulator-name = "vdd_ldo7,avdd_hdmi,vdd_fuse";
488 regulator-min-microvolt = <3300000>;
489 regulator-max-microvolt = <3300000>;
493 regulator-name = "vdd_ldo8,avdd_hdmi_pll";
494 regulator-min-microvolt = <1800000>;
495 regulator-max-microvolt = <1800000>;
499 regulator-name = "vdd_ldo9,avdd_2v85,vdd_ddr_rx";
500 regulator-min-microvolt = <2850000>;
501 regulator-max-microvolt = <2850000>;
506 regulator-name = "vdd_rtc_out,vdd_cell";
507 regulator-min-microvolt = <3300000>;
508 regulator-max-microvolt = <3300000>;
514 temperature-sensor@4c {
515 compatible = "onnn,nct1008";
521 nvidia,invert-interrupt;
522 nvidia,suspend-mode = <1>;
523 nvidia,cpu-pwr-good-time = <2000>;
524 nvidia,cpu-pwr-off-time = <100>;
525 nvidia,core-pwr-good-time = <3845 3845>;
526 nvidia,core-pwr-off-time = <458>;
527 nvidia,sys-clock-req-active-high;
540 nvidia,phy-reset-gpio = <&gpio TEGRA_GPIO(V, 1)
546 nvidia,phy-reset-gpio = <&gpio TEGRA_GPIO(V, 1)
560 power-gpios = <&gpio TEGRA_GPIO(K, 6) GPIO_ACTIVE_HIGH>;
562 keep-power-in-suspend;
567 cd-gpios = <&gpio TEGRA_GPIO(I, 5) GPIO_ACTIVE_LOW>;
568 wp-gpios = <&gpio TEGRA_GPIO(H, 1) GPIO_ACTIVE_HIGH>;
569 power-gpios = <&gpio TEGRA_GPIO(I, 6) GPIO_ACTIVE_HIGH>;
579 backlight: backlight {
580 compatible = "pwm-backlight";
582 enable-gpios = <&gpio TEGRA_GPIO(D, 4) GPIO_ACTIVE_HIGH>;
583 power-supply = <&vdd_bl_reg>;
584 pwms = <&pwm 2 5000000>;
586 brightness-levels = <0 4 8 16 32 64 128 255>;
587 default-brightness-level = <6>;
591 compatible = "fixed-clock";
592 clock-frequency = <32768>;
598 operating-points-v2 = <&cpu0_opp_table>;
602 operating-points-v2 = <&cpu0_opp_table>;
607 compatible = "gpio-keys";
611 gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_LOW>;
612 linux,code = <KEY_POWER>;
618 compatible = "chunghwa,claa101wa01a";
620 power-supply = <&vdd_pnl_reg>;
621 enable-gpios = <&gpio TEGRA_GPIO(B, 2) GPIO_ACTIVE_HIGH>;
623 backlight = <&backlight>;
624 ddc-i2c-bus = <&lvds_ddc>;
627 vdd_5v0_reg: regulator@0 {
628 compatible = "regulator-fixed";
629 regulator-name = "vdd_5v0";
630 regulator-min-microvolt = <5000000>;
631 regulator-max-microvolt = <5000000>;
636 compatible = "regulator-fixed";
637 regulator-name = "vdd_1v5";
638 regulator-min-microvolt = <1500000>;
639 regulator-max-microvolt = <1500000>;
640 gpio = <&pmic 0 GPIO_ACTIVE_HIGH>;
644 compatible = "regulator-fixed";
645 regulator-name = "vdd_1v2";
646 regulator-min-microvolt = <1200000>;
647 regulator-max-microvolt = <1200000>;
648 gpio = <&pmic 1 GPIO_ACTIVE_HIGH>;
652 vdd_pnl_reg: regulator@3 {
653 compatible = "regulator-fixed";
654 regulator-name = "vdd_pnl";
655 regulator-min-microvolt = <2800000>;
656 regulator-max-microvolt = <2800000>;
657 gpio = <&gpio TEGRA_GPIO(C, 6) GPIO_ACTIVE_HIGH>;
661 vdd_bl_reg: regulator@4 {
662 compatible = "regulator-fixed";
663 regulator-name = "vdd_bl";
664 regulator-min-microvolt = <2800000>;
665 regulator-max-microvolt = <2800000>;
666 gpio = <&gpio TEGRA_GPIO(W, 0) GPIO_ACTIVE_HIGH>;
671 compatible = "nvidia,tegra-audio-wm8903-ventana",
672 "nvidia,tegra-audio-wm8903";
673 nvidia,model = "NVIDIA Tegra Ventana";
675 nvidia,audio-routing =
676 "Headphone Jack", "HPOUTR",
677 "Headphone Jack", "HPOUTL",
682 "Mic Jack", "MICBIAS",
685 nvidia,i2s-controller = <&tegra_i2s1>;
686 nvidia,audio-codec = <&wm8903>;
688 nvidia,spkr-en-gpios = <&wm8903 2 GPIO_ACTIVE_HIGH>;
689 nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_HIGH>;
690 nvidia,int-mic-en-gpios = <&gpio TEGRA_GPIO(X, 0)
692 nvidia,ext-mic-en-gpios = <&gpio TEGRA_GPIO(X, 1)
695 clocks = <&tegra_car TEGRA20_CLK_PLL_A>,
696 <&tegra_car TEGRA20_CLK_PLL_A_OUT0>,
697 <&tegra_car TEGRA20_CLK_CDEV1>;
698 clock-names = "pll_a", "pll_a_out0", "mclk";