1 // SPDX-License-Identifier: GPL-2.0
4 #include <dt-bindings/input/input.h>
5 #include "tegra20.dtsi"
8 model = "NVIDIA Tegra20 Ventana evaluation board";
9 compatible = "nvidia,ventana", "nvidia,tegra20";
12 rtc0 = "/i2c@7000d000/tps6586x@34";
13 rtc1 = "/rtc@7000e000";
18 stdout-path = "serial0:115200n8";
22 reg = <0x00000000 0x40000000>;
30 nvidia,panel = <&panel>;
37 vdd-supply = <&hdmi_vdd_reg>;
38 pll-supply = <&hdmi_pll_reg>;
40 nvidia,ddc-i2c-bus = <&hdmi_ddc>;
41 nvidia,hpd-gpio = <&gpio TEGRA_GPIO(N, 7)
47 pinctrl-names = "default";
48 pinctrl-0 = <&state_default>;
50 state_default: pinmux {
53 nvidia,function = "ide";
56 nvidia,pins = "atb", "gma", "gme";
57 nvidia,function = "sdio4";
61 nvidia,function = "nand";
64 nvidia,pins = "atd", "ate", "gmb", "spia",
66 nvidia,function = "gmi";
69 nvidia,pins = "cdev1";
70 nvidia,function = "plla_out";
73 nvidia,pins = "cdev2";
74 nvidia,function = "pllp_out4";
77 nvidia,pins = "crtp", "lm1";
78 nvidia,function = "crt";
82 nvidia,function = "vi_sensor_clk";
86 nvidia,function = "dap1";
90 nvidia,function = "dap2";
94 nvidia,function = "dap3";
98 nvidia,function = "dap4";
101 nvidia,pins = "dta", "dtb", "dtc", "dtd", "dte";
102 nvidia,function = "vi";
106 nvidia,function = "i2c3";
110 nvidia,function = "uartd";
114 nvidia,function = "sflash";
118 nvidia,function = "pwm";
121 nvidia,pins = "gpu7";
122 nvidia,function = "rtck";
125 nvidia,pins = "gpv", "slxa", "slxk";
126 nvidia,function = "pcie";
129 nvidia,pins = "hdint";
130 nvidia,function = "hdmi";
133 nvidia,pins = "i2cp";
134 nvidia,function = "i2cp";
137 nvidia,pins = "irrx", "irtx";
138 nvidia,function = "uartb";
141 nvidia,pins = "kbca", "kbcb", "kbcc", "kbcd",
143 nvidia,function = "kbc";
146 nvidia,pins = "lcsn", "ldc", "lm0", "lpw1",
148 nvidia,function = "rsvd4";
151 nvidia,pins = "ld0", "ld1", "ld2", "ld3", "ld4",
152 "ld5", "ld6", "ld7", "ld8", "ld9",
153 "ld10", "ld11", "ld12", "ld13", "ld14",
154 "ld15", "ld16", "ld17", "ldi", "lhp0",
155 "lhp1", "lhp2", "lhs", "lpp", "lpw0",
156 "lpw2", "lsc0", "lsc1", "lsck", "lsda",
157 "lspi", "lvp1", "lvs";
158 nvidia,function = "displaya";
161 nvidia,pins = "owc", "spdi", "spdo", "uac";
162 nvidia,function = "rsvd2";
166 nvidia,function = "pwr_on";
170 nvidia,function = "i2c1";
173 nvidia,pins = "sdb", "sdc", "sdd", "slxc";
174 nvidia,function = "sdio3";
177 nvidia,pins = "sdio1";
178 nvidia,function = "sdio1";
181 nvidia,pins = "slxd";
182 nvidia,function = "spdif";
185 nvidia,pins = "spid", "spie", "spif";
186 nvidia,function = "spi1";
189 nvidia,pins = "spig", "spih";
190 nvidia,function = "spi2_alt";
193 nvidia,pins = "uaa", "uab", "uda";
194 nvidia,function = "ulpi";
198 nvidia,function = "irda";
201 nvidia,pins = "uca", "ucb";
202 nvidia,function = "uartc";
205 nvidia,pins = "ata", "atb", "atc", "atd",
206 "cdev1", "cdev2", "dap1", "dap2",
207 "dap4", "ddc", "dtf", "gma", "gmc",
208 "gme", "gpu", "gpu7", "i2cp", "irrx",
209 "irtx", "pta", "rm", "sdc", "sdd",
210 "slxc", "slxd", "slxk", "spdi", "spdo",
211 "uac", "uad", "uca", "ucb", "uda";
212 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
213 nvidia,tristate = <TEGRA_PIN_DISABLE>;
216 nvidia,pins = "ate", "csus", "dap3", "gmd",
217 "gpv", "owc", "spia", "spib", "spic",
218 "spid", "spie", "spig";
219 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
220 nvidia,tristate = <TEGRA_PIN_ENABLE>;
223 nvidia,pins = "ck32", "ddrc", "pmca", "pmcb",
224 "pmcc", "pmcd", "pmce", "xm2c", "xm2d";
225 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
228 nvidia,pins = "crtp", "gmb", "slxa", "spih";
229 nvidia,pull = <TEGRA_PIN_PULL_UP>;
230 nvidia,tristate = <TEGRA_PIN_ENABLE>;
233 nvidia,pins = "dta", "dtb", "dtc", "dtd";
234 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
235 nvidia,tristate = <TEGRA_PIN_DISABLE>;
238 nvidia,pins = "dte", "spif";
239 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
240 nvidia,tristate = <TEGRA_PIN_ENABLE>;
243 nvidia,pins = "hdint", "lcsn", "ldc", "lm1",
244 "lpw1", "lsck", "lsda", "lsdi", "lvp0";
245 nvidia,tristate = <TEGRA_PIN_ENABLE>;
248 nvidia,pins = "kbca", "kbcb", "kbcc", "kbcd",
249 "kbce", "kbcf", "sdio1", "uaa", "uab";
250 nvidia,pull = <TEGRA_PIN_PULL_UP>;
251 nvidia,tristate = <TEGRA_PIN_DISABLE>;
254 nvidia,pins = "lc", "ls";
255 nvidia,pull = <TEGRA_PIN_PULL_UP>;
258 nvidia,pins = "ld0", "ld1", "ld2", "ld3", "ld4",
259 "ld5", "ld6", "ld7", "ld8", "ld9",
260 "ld10", "ld11", "ld12", "ld13", "ld14",
261 "ld15", "ld16", "ld17", "ldi", "lhp0",
262 "lhp1", "lhp2", "lhs", "lm0", "lpp",
263 "lpw0", "lpw2", "lsc0", "lsc1", "lspi",
264 "lvp1", "lvs", "pmc", "sdb";
265 nvidia,tristate = <TEGRA_PIN_DISABLE>;
268 nvidia,pins = "ld17_0", "ld19_18", "ld21_20",
270 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
273 nvidia,pins = "drive_sdio1";
274 nvidia,high-speed-mode = <TEGRA_PIN_DISABLE>;
275 nvidia,schmitt = <TEGRA_PIN_ENABLE>;
276 nvidia,low-power-mode = <TEGRA_PIN_LP_DRIVE_DIV_1>;
277 nvidia,pull-down-strength = <31>;
278 nvidia,pull-up-strength = <31>;
279 nvidia,slew-rate-rising = <TEGRA_PIN_SLEW_RATE_SLOWEST>;
280 nvidia,slew-rate-falling = <TEGRA_PIN_SLEW_RATE_SLOWEST>;
284 state_i2cmux_ddc: pinmux_i2cmux_ddc {
287 nvidia,function = "i2c2";
291 nvidia,function = "rsvd4";
295 state_i2cmux_pta: pinmux_i2cmux_pta {
298 nvidia,function = "rsvd4";
302 nvidia,function = "i2c2";
306 state_i2cmux_idle: pinmux_i2cmux_idle {
309 nvidia,function = "rsvd4";
313 nvidia,function = "rsvd4";
332 clock-frequency = <400000>;
335 compatible = "wlf,wm8903";
337 interrupt-parent = <&gpio>;
338 interrupts = <TEGRA_GPIO(X, 3) IRQ_TYPE_LEVEL_HIGH>;
344 micdet-delay = <100>;
345 gpio-cfg = <0xffffffff 0xffffffff 0 0xffffffff 0xffffffff>;
348 /* ALS and proximity sensor */
350 compatible = "isil,isl29018";
352 interrupt-parent = <&gpio>;
353 interrupts = <TEGRA_GPIO(Z, 2) IRQ_TYPE_LEVEL_HIGH>;
359 clock-frequency = <100000>;
363 compatible = "i2c-mux-pinctrl";
364 #address-cells = <1>;
367 i2c-parent = <&{/i2c@7000c400}>;
369 pinctrl-names = "ddc", "pta", "idle";
370 pinctrl-0 = <&state_i2cmux_ddc>;
371 pinctrl-1 = <&state_i2cmux_pta>;
372 pinctrl-2 = <&state_i2cmux_idle>;
376 #address-cells = <1>;
382 #address-cells = <1>;
389 clock-frequency = <400000>;
394 clock-frequency = <400000>;
397 compatible = "ti,tps6586x";
399 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
401 ti,system-power-controller;
406 sys-supply = <&vdd_5v0_reg>;
407 vin-sm0-supply = <&sys_reg>;
408 vin-sm1-supply = <&sys_reg>;
409 vin-sm2-supply = <&sys_reg>;
410 vinldo01-supply = <&sm2_reg>;
411 vinldo23-supply = <&sm2_reg>;
412 vinldo4-supply = <&sm2_reg>;
413 vinldo678-supply = <&sm2_reg>;
414 vinldo9-supply = <&sm2_reg>;
418 regulator-name = "vdd_sys";
423 regulator-name = "vdd_sm0,vdd_core";
424 regulator-min-microvolt = <1200000>;
425 regulator-max-microvolt = <1200000>;
430 regulator-name = "vdd_sm1,vdd_cpu";
431 regulator-min-microvolt = <1000000>;
432 regulator-max-microvolt = <1000000>;
437 regulator-name = "vdd_sm2,vin_ldo*";
438 regulator-min-microvolt = <3700000>;
439 regulator-max-microvolt = <3700000>;
443 /* LDO0 is not connected to anything */
446 regulator-name = "vdd_ldo1,avdd_pll*";
447 regulator-min-microvolt = <1100000>;
448 regulator-max-microvolt = <1100000>;
453 regulator-name = "vdd_ldo2,vdd_rtc";
454 regulator-min-microvolt = <1200000>;
455 regulator-max-microvolt = <1200000>;
459 regulator-name = "vdd_ldo3,avdd_usb*";
460 regulator-min-microvolt = <3300000>;
461 regulator-max-microvolt = <3300000>;
466 regulator-name = "vdd_ldo4,avdd_osc,vddio_sys";
467 regulator-min-microvolt = <1800000>;
468 regulator-max-microvolt = <1800000>;
473 regulator-name = "vdd_ldo5,vcore_mmc";
474 regulator-min-microvolt = <2850000>;
475 regulator-max-microvolt = <2850000>;
480 regulator-name = "vdd_ldo6,avdd_vdac";
481 regulator-min-microvolt = <1800000>;
482 regulator-max-microvolt = <1800000>;
486 regulator-name = "vdd_ldo7,avdd_hdmi,vdd_fuse";
487 regulator-min-microvolt = <3300000>;
488 regulator-max-microvolt = <3300000>;
492 regulator-name = "vdd_ldo8,avdd_hdmi_pll";
493 regulator-min-microvolt = <1800000>;
494 regulator-max-microvolt = <1800000>;
498 regulator-name = "vdd_ldo9,avdd_2v85,vdd_ddr_rx";
499 regulator-min-microvolt = <2850000>;
500 regulator-max-microvolt = <2850000>;
505 regulator-name = "vdd_rtc_out,vdd_cell";
506 regulator-min-microvolt = <3300000>;
507 regulator-max-microvolt = <3300000>;
513 temperature-sensor@4c {
514 compatible = "onnn,nct1008";
520 nvidia,invert-interrupt;
521 nvidia,suspend-mode = <1>;
522 nvidia,cpu-pwr-good-time = <2000>;
523 nvidia,cpu-pwr-off-time = <100>;
524 nvidia,core-pwr-good-time = <3845 3845>;
525 nvidia,core-pwr-off-time = <458>;
526 nvidia,sys-clock-req-active-high;
539 nvidia,phy-reset-gpio = <&gpio TEGRA_GPIO(V, 1)
545 nvidia,phy-reset-gpio = <&gpio TEGRA_GPIO(V, 1)
559 power-gpios = <&gpio TEGRA_GPIO(K, 6) GPIO_ACTIVE_HIGH>;
561 keep-power-in-suspend;
566 cd-gpios = <&gpio TEGRA_GPIO(I, 5) GPIO_ACTIVE_LOW>;
567 wp-gpios = <&gpio TEGRA_GPIO(H, 1) GPIO_ACTIVE_HIGH>;
568 power-gpios = <&gpio TEGRA_GPIO(I, 6) GPIO_ACTIVE_HIGH>;
578 backlight: backlight {
579 compatible = "pwm-backlight";
581 enable-gpios = <&gpio TEGRA_GPIO(D, 4) GPIO_ACTIVE_HIGH>;
582 power-supply = <&vdd_bl_reg>;
583 pwms = <&pwm 2 5000000>;
585 brightness-levels = <0 4 8 16 32 64 128 255>;
586 default-brightness-level = <6>;
590 compatible = "simple-bus";
591 #address-cells = <1>;
595 compatible = "fixed-clock";
598 clock-frequency = <32768>;
603 compatible = "gpio-keys";
607 gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_LOW>;
608 linux,code = <KEY_POWER>;
614 compatible = "chunghwa,claa101wa01a", "simple-panel";
616 power-supply = <&vdd_pnl_reg>;
617 enable-gpios = <&gpio TEGRA_GPIO(B, 2) GPIO_ACTIVE_HIGH>;
619 backlight = <&backlight>;
620 ddc-i2c-bus = <&lvds_ddc>;
624 compatible = "simple-bus";
625 #address-cells = <1>;
628 vdd_5v0_reg: regulator@0 {
629 compatible = "regulator-fixed";
631 regulator-name = "vdd_5v0";
632 regulator-min-microvolt = <5000000>;
633 regulator-max-microvolt = <5000000>;
638 compatible = "regulator-fixed";
640 regulator-name = "vdd_1v5";
641 regulator-min-microvolt = <1500000>;
642 regulator-max-microvolt = <1500000>;
643 gpio = <&pmic 0 GPIO_ACTIVE_HIGH>;
647 compatible = "regulator-fixed";
649 regulator-name = "vdd_1v2";
650 regulator-min-microvolt = <1200000>;
651 regulator-max-microvolt = <1200000>;
652 gpio = <&pmic 1 GPIO_ACTIVE_HIGH>;
656 vdd_pnl_reg: regulator@3 {
657 compatible = "regulator-fixed";
659 regulator-name = "vdd_pnl";
660 regulator-min-microvolt = <2800000>;
661 regulator-max-microvolt = <2800000>;
662 gpio = <&gpio TEGRA_GPIO(C, 6) GPIO_ACTIVE_HIGH>;
666 vdd_bl_reg: regulator@4 {
667 compatible = "regulator-fixed";
669 regulator-name = "vdd_bl";
670 regulator-min-microvolt = <2800000>;
671 regulator-max-microvolt = <2800000>;
672 gpio = <&gpio TEGRA_GPIO(W, 0) GPIO_ACTIVE_HIGH>;
678 compatible = "nvidia,tegra-audio-wm8903-ventana",
679 "nvidia,tegra-audio-wm8903";
680 nvidia,model = "NVIDIA Tegra Ventana";
682 nvidia,audio-routing =
683 "Headphone Jack", "HPOUTR",
684 "Headphone Jack", "HPOUTL",
689 "Mic Jack", "MICBIAS",
692 nvidia,i2s-controller = <&tegra_i2s1>;
693 nvidia,audio-codec = <&wm8903>;
695 nvidia,spkr-en-gpios = <&wm8903 2 GPIO_ACTIVE_HIGH>;
696 nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_HIGH>;
697 nvidia,int-mic-en-gpios = <&gpio TEGRA_GPIO(X, 0)
699 nvidia,ext-mic-en-gpios = <&gpio TEGRA_GPIO(X, 1)
702 clocks = <&tegra_car TEGRA20_CLK_PLL_A>,
703 <&tegra_car TEGRA20_CLK_PLL_A_OUT0>,
704 <&tegra_car TEGRA20_CLK_CDEV1>;
705 clock-names = "pll_a", "pll_a_out0", "mclk";