1 // SPDX-License-Identifier: GPL-2.0
2 #include <dt-bindings/input/input.h>
3 #include <dt-bindings/thermal/thermal.h>
4 #include "tegra30.dtsi"
5 #include "tegra30-cpu-opp.dtsi"
6 #include "tegra30-cpu-opp-microvolt.dtsi"
9 * This file contains common DT entry for all fab version of Cardhu.
10 * There is multiple fab version of Cardhu starting from A01 to A07.
11 * Cardhu fab version A01 and A03 are not supported. Cardhu fab version
12 * A02 will have different sets of GPIOs for fixed regulator compare to
13 * Cardhu fab version A04. The Cardhu fab version A05, A06, A07 are
14 * compatible with fab version A04. Based on Cardhu fab version, the
15 * related dts file need to be chosen like for Cardhu fab version A02,
16 * use tegra30-cardhu-a02.dts, Cardhu fab version A04 and later, use
17 * tegra30-cardhu-a04.dts.
18 * The identification of board is done in two ways, by looking the sticker
19 * on PCB and by reading board id eeprom.
20 * The sticker will have number like 600-81291-1000-002 C.3. In this 4th
21 * number is the fab version like here it is 002 and hence fab version A02.
22 * The (downstream internal) U-Boot of Cardhu display the board-id as
24 * BoardID: 0C5B, SKU: 0A01, Fab: 02, Rev: 45.00
25 * In this Fab version is 02 i.e. A02.
26 * The BoardID I2C eeprom is interfaced through i2c5 (pwr_i2c address 0x56).
27 * The location 0x8 of this eeprom contains the Fab version. It is 1 byte
32 model = "NVIDIA Tegra30 Cardhu evaluation board";
33 compatible = "nvidia,cardhu", "nvidia,tegra30";
36 rtc0 = "/i2c@7000d000/tps65911@2d";
37 rtc1 = "/rtc@7000e000";
43 stdout-path = "serial0:115200n8";
47 reg = <0x80000000 0x40000000>;
53 /* AVDD_PEXA and VDD_PEXA inputs are grounded on Cardhu. */
54 avdd-pexb-supply = <&ldo1_reg>;
55 vdd-pexb-supply = <&ldo1_reg>;
56 avdd-pex-pll-supply = <&ldo1_reg>;
57 hvdd-pex-supply = <&pex_hvdd_3v3_reg>;
58 vddio-pex-ctl-supply = <&sys_3v3_reg>;
59 avdd-plle-supply = <&ldo2_reg>;
62 nvidia,num-lanes = <4>;
66 nvidia,num-lanes = <1>;
71 nvidia,num-lanes = <1>;
80 nvidia,panel = <&panel>;
86 pinctrl-names = "default";
87 pinctrl-0 = <&state_default>;
89 state_default: pinmux {
91 nvidia,pins = "sdmmc1_clk_pz0";
92 nvidia,function = "sdmmc1";
93 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
94 nvidia,tristate = <TEGRA_PIN_DISABLE>;
97 nvidia,pins = "sdmmc1_cmd_pz1",
102 nvidia,function = "sdmmc1";
103 nvidia,pull = <TEGRA_PIN_PULL_UP>;
104 nvidia,tristate = <TEGRA_PIN_DISABLE>;
107 nvidia,pins = "sdmmc3_clk_pa6";
108 nvidia,function = "sdmmc3";
109 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
110 nvidia,tristate = <TEGRA_PIN_DISABLE>;
113 nvidia,pins = "sdmmc3_cmd_pa7",
118 nvidia,function = "sdmmc3";
119 nvidia,pull = <TEGRA_PIN_PULL_UP>;
120 nvidia,tristate = <TEGRA_PIN_DISABLE>;
123 nvidia,pins = "sdmmc4_clk_pcc4",
125 nvidia,function = "sdmmc4";
126 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
127 nvidia,tristate = <TEGRA_PIN_DISABLE>;
130 nvidia,pins = "sdmmc4_dat0_paa0",
138 nvidia,function = "sdmmc4";
139 nvidia,pull = <TEGRA_PIN_PULL_UP>;
140 nvidia,tristate = <TEGRA_PIN_DISABLE>;
143 nvidia,pins = "dap2_fs_pa2",
147 nvidia,function = "i2s1";
148 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
149 nvidia,tristate = <TEGRA_PIN_DISABLE>;
152 nvidia,pins = "drive_sdio3";
153 nvidia,high-speed-mode = <TEGRA_PIN_DISABLE>;
154 nvidia,schmitt = <TEGRA_PIN_DISABLE>;
155 nvidia,pull-down-strength = <46>;
156 nvidia,pull-up-strength = <42>;
157 nvidia,slew-rate-rising = <TEGRA_PIN_SLEW_RATE_FAST>;
158 nvidia,slew-rate-falling = <TEGRA_PIN_SLEW_RATE_FAST>;
161 nvidia,pins = "uart3_txd_pw6",
165 nvidia,function = "uartc";
166 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
167 nvidia,tristate = <TEGRA_PIN_DISABLE>;
173 /delete-property/ dmas;
174 /delete-property/ dma-names;
179 compatible = "nvidia,tegra30-hsuart";
180 reset-names = "serial";
181 /delete-property/ reg-shift;
189 panelddc: i2c@7000c000 {
191 clock-frequency = <100000>;
196 clock-frequency = <100000>;
201 clock-frequency = <100000>;
203 /* ALS and Proximity sensor */
205 compatible = "isil,isl29028";
207 interrupt-parent = <&gpio>;
208 interrupts = <TEGRA_GPIO(L, 0) IRQ_TYPE_LEVEL_HIGH>;
212 compatible = "nxp,pca9546";
213 #address-cells = <1>;
216 reset-gpios = <&gpio TEGRA_GPIO(BB, 0) GPIO_ACTIVE_LOW>;
222 clock-frequency = <100000>;
227 clock-frequency = <100000>;
230 compatible = "wlf,wm8903";
232 interrupt-parent = <&gpio>;
233 interrupts = <TEGRA_GPIO(W, 3) IRQ_TYPE_LEVEL_HIGH>;
239 micdet-delay = <100>;
240 gpio-cfg = <0xffffffff 0xffffffff 0 0xffffffff 0xffffffff>;
244 compatible = "ti,tps65911";
247 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
248 #interrupt-cells = <2>;
249 interrupt-controller;
252 ti,system-power-controller;
257 vcc1-supply = <&vdd_ac_bat_reg>;
258 vcc2-supply = <&vdd_ac_bat_reg>;
259 vcc3-supply = <&vio_reg>;
260 vcc4-supply = <&vdd_5v0_reg>;
261 vcc5-supply = <&vdd_ac_bat_reg>;
262 vcc6-supply = <&vdd2_reg>;
263 vcc7-supply = <&vdd_ac_bat_reg>;
264 vccio-supply = <&vdd_ac_bat_reg>;
268 regulator-name = "vddio_ddr_1v2";
269 regulator-min-microvolt = <1200000>;
270 regulator-max-microvolt = <1200000>;
275 regulator-name = "vdd_1v5_gen";
276 regulator-min-microvolt = <1500000>;
277 regulator-max-microvolt = <1500000>;
281 vddctrl_reg: vddctrl {
282 regulator-name = "vdd_cpu,vdd_sys";
283 regulator-min-microvolt = <800000>;
284 regulator-max-microvolt = <1250000>;
285 regulator-coupled-with = <&vdd_core>;
286 regulator-coupled-max-spread = <300000>;
287 regulator-max-step-microvolt = <100000>;
290 nvidia,tegra-cpu-regulator;
294 regulator-name = "vdd_1v8_gen";
295 regulator-min-microvolt = <1800000>;
296 regulator-max-microvolt = <1800000>;
301 regulator-name = "vdd_pexa,vdd_pexb";
302 regulator-min-microvolt = <1050000>;
303 regulator-max-microvolt = <1050000>;
307 regulator-name = "vdd_sata,avdd_plle";
308 regulator-min-microvolt = <1050000>;
309 regulator-max-microvolt = <1050000>;
312 /* LDO3 is not connected to anything */
315 regulator-name = "vdd_rtc";
316 regulator-min-microvolt = <1200000>;
317 regulator-max-microvolt = <1200000>;
322 regulator-name = "vddio_sdmmc,avdd_vdac";
323 regulator-min-microvolt = <3300000>;
324 regulator-max-microvolt = <3300000>;
329 regulator-name = "avdd_dsi_csi,pwrdet_mipi";
330 regulator-min-microvolt = <1200000>;
331 regulator-max-microvolt = <1200000>;
335 regulator-name = "vdd_pllm,x,u,a_p_c_s";
336 regulator-min-microvolt = <1200000>;
337 regulator-max-microvolt = <1200000>;
342 regulator-name = "vdd_ddr_hs";
343 regulator-min-microvolt = <1000000>;
344 regulator-max-microvolt = <1000000>;
350 nct1008: temperature-sensor@4c {
351 compatible = "onnn,nct1008";
353 vcc-supply = <&sys_3v3_reg>;
354 interrupt-parent = <&gpio>;
355 interrupts = <TEGRA_GPIO(CC, 2) IRQ_TYPE_EDGE_FALLING>;
356 #thermal-sensor-cells = <1>;
359 vdd_core: tps62361@60 {
360 compatible = "ti,tps62361";
363 regulator-name = "tps62361-vout";
364 regulator-min-microvolt = <500000>;
365 regulator-max-microvolt = <1500000>;
366 regulator-coupled-with = <&vddctrl_reg>;
367 regulator-coupled-max-spread = <300000>;
368 regulator-max-step-microvolt = <100000>;
374 nvidia,tegra-core-regulator;
380 spi-max-frequency = <25000000>;
383 compatible = "winbond,w25q32", "jedec,spi-nor";
385 spi-max-frequency = <20000000>;
391 nvidia,invert-interrupt;
392 nvidia,suspend-mode = <1>;
393 nvidia,cpu-pwr-good-time = <2000>;
394 nvidia,cpu-pwr-off-time = <200>;
395 nvidia,core-pwr-good-time = <3845 3845>;
396 nvidia,core-pwr-off-time = <0>;
397 nvidia,core-power-req-active-high;
398 nvidia,sys-clock-req-active-high;
399 core-supply = <&vdd_core>;
410 cd-gpios = <&gpio TEGRA_GPIO(I, 5) GPIO_ACTIVE_LOW>;
411 wp-gpios = <&gpio TEGRA_GPIO(T, 3) GPIO_ACTIVE_HIGH>;
412 power-gpios = <&gpio TEGRA_GPIO(D, 7) GPIO_ACTIVE_HIGH>;
427 vbus-supply = <&usb3_vbus_reg>;
431 backlight: backlight {
432 compatible = "pwm-backlight";
434 enable-gpios = <&gpio TEGRA_GPIO(H, 2) GPIO_ACTIVE_HIGH>;
435 power-supply = <&vdd_bl_reg>;
436 pwms = <&pwm 0 5000000>;
438 brightness-levels = <0 4 8 16 32 64 128 255>;
439 default-brightness-level = <6>;
442 clk32k_in: clock-32k {
443 compatible = "fixed-clock";
444 clock-frequency = <32768>;
450 cpu-supply = <&vddctrl_reg>;
451 operating-points-v2 = <&cpu0_opp_table>;
452 #cooling-cells = <2>;
456 cpu-supply = <&vddctrl_reg>;
457 operating-points-v2 = <&cpu0_opp_table>;
458 #cooling-cells = <2>;
462 cpu-supply = <&vddctrl_reg>;
463 operating-points-v2 = <&cpu0_opp_table>;
464 #cooling-cells = <2>;
468 cpu-supply = <&vddctrl_reg>;
469 operating-points-v2 = <&cpu0_opp_table>;
470 #cooling-cells = <2>;
475 compatible = "gpio-keys";
479 interrupt-parent = <&pmic>;
481 linux,code = <KEY_POWER>;
482 debounce-interval = <100>;
487 label = "Volume Down";
488 gpios = <&gpio TEGRA_GPIO(R, 0) GPIO_ACTIVE_LOW>;
489 linux,code = <KEY_VOLUMEDOWN>;
490 debounce-interval = <10>;
495 gpios = <&gpio TEGRA_GPIO(R, 1) GPIO_ACTIVE_LOW>;
496 linux,code = <KEY_VOLUMEUP>;
497 debounce-interval = <10>;
502 compatible = "chunghwa,claa101wb01";
503 ddc-i2c-bus = <&panelddc>;
505 power-supply = <&vdd_pnl1_reg>;
506 enable-gpios = <&gpio TEGRA_GPIO(L, 2) GPIO_ACTIVE_HIGH>;
508 backlight = <&backlight>;
511 vdd_ac_bat_reg: regulator-acbat {
512 compatible = "regulator-fixed";
513 regulator-name = "vdd_ac_bat";
514 regulator-min-microvolt = <5000000>;
515 regulator-max-microvolt = <5000000>;
519 cam_1v8_reg: regulator-cam {
520 compatible = "regulator-fixed";
521 regulator-name = "cam_1v8";
522 regulator-min-microvolt = <1800000>;
523 regulator-max-microvolt = <1800000>;
525 gpio = <&gpio TEGRA_GPIO(BB, 4) GPIO_ACTIVE_HIGH>;
526 vin-supply = <&vio_reg>;
529 cp_5v_reg: regulator-5v0cp {
530 compatible = "regulator-fixed";
531 regulator-name = "cp_5v";
532 regulator-min-microvolt = <5000000>;
533 regulator-max-microvolt = <5000000>;
537 gpio = <&pmic 0 GPIO_ACTIVE_HIGH>;
540 emmc_3v3_reg: regulator-emmc {
541 compatible = "regulator-fixed";
542 regulator-name = "emmc_3v3";
543 regulator-min-microvolt = <3300000>;
544 regulator-max-microvolt = <3300000>;
548 gpio = <&gpio TEGRA_GPIO(D, 1) GPIO_ACTIVE_HIGH>;
549 vin-supply = <&sys_3v3_reg>;
552 modem_3v3_reg: regulator-modem {
553 compatible = "regulator-fixed";
554 regulator-name = "modem_3v3";
555 regulator-min-microvolt = <3300000>;
556 regulator-max-microvolt = <3300000>;
558 gpio = <&gpio TEGRA_GPIO(D, 6) GPIO_ACTIVE_HIGH>;
561 pex_hvdd_3v3_reg: regulator-pex {
562 compatible = "regulator-fixed";
563 regulator-name = "pex_hvdd_3v3";
564 regulator-min-microvolt = <3300000>;
565 regulator-max-microvolt = <3300000>;
567 gpio = <&gpio TEGRA_GPIO(L, 7) GPIO_ACTIVE_HIGH>;
568 vin-supply = <&sys_3v3_reg>;
571 vdd_cam1_ldo_reg: regulator-cam1 {
572 compatible = "regulator-fixed";
573 regulator-name = "vdd_cam1_ldo";
574 regulator-min-microvolt = <2800000>;
575 regulator-max-microvolt = <2800000>;
577 gpio = <&gpio TEGRA_GPIO(R, 6) GPIO_ACTIVE_HIGH>;
578 vin-supply = <&sys_3v3_reg>;
581 vdd_cam2_ldo_reg: regulator-cam2 {
582 compatible = "regulator-fixed";
583 regulator-name = "vdd_cam2_ldo";
584 regulator-min-microvolt = <2800000>;
585 regulator-max-microvolt = <2800000>;
587 gpio = <&gpio TEGRA_GPIO(R, 7) GPIO_ACTIVE_HIGH>;
588 vin-supply = <&sys_3v3_reg>;
591 vdd_cam3_ldo_reg: regulator-cam3 {
592 compatible = "regulator-fixed";
593 regulator-name = "vdd_cam3_ldo";
594 regulator-min-microvolt = <3300000>;
595 regulator-max-microvolt = <3300000>;
597 gpio = <&gpio TEGRA_GPIO(S, 0) GPIO_ACTIVE_HIGH>;
598 vin-supply = <&sys_3v3_reg>;
601 vdd_com_reg: regulator-com {
602 compatible = "regulator-fixed";
603 regulator-name = "vdd_com";
604 regulator-min-microvolt = <3300000>;
605 regulator-max-microvolt = <3300000>;
609 gpio = <&gpio TEGRA_GPIO(D, 0) GPIO_ACTIVE_HIGH>;
610 vin-supply = <&sys_3v3_reg>;
613 vdd_fuse_3v3_reg: regulator-fuse {
614 compatible = "regulator-fixed";
615 regulator-name = "vdd_fuse_3v3";
616 regulator-min-microvolt = <3300000>;
617 regulator-max-microvolt = <3300000>;
619 gpio = <&gpio TEGRA_GPIO(L, 6) GPIO_ACTIVE_HIGH>;
620 vin-supply = <&sys_3v3_reg>;
623 vdd_pnl1_reg: regulator-pnl1 {
624 compatible = "regulator-fixed";
625 regulator-name = "vdd_pnl1";
626 regulator-min-microvolt = <3300000>;
627 regulator-max-microvolt = <3300000>;
631 gpio = <&gpio TEGRA_GPIO(L, 4) GPIO_ACTIVE_HIGH>;
632 vin-supply = <&sys_3v3_reg>;
635 vdd_vid_reg: regulator-vid {
636 compatible = "regulator-fixed";
637 regulator-name = "vddio_vid";
638 regulator-min-microvolt = <5000000>;
639 regulator-max-microvolt = <5000000>;
641 gpio = <&gpio TEGRA_GPIO(T, 0) GPIO_ACTIVE_HIGH>;
643 vin-supply = <&vdd_5v0_reg>;
647 compatible = "nvidia,tegra-audio-wm8903-cardhu",
648 "nvidia,tegra-audio-wm8903";
649 nvidia,model = "NVIDIA Tegra Cardhu";
651 nvidia,audio-routing =
652 "Headphone Jack", "HPOUTR",
653 "Headphone Jack", "HPOUTL",
658 "Mic Jack", "MICBIAS",
661 nvidia,i2s-controller = <&tegra_i2s1>;
662 nvidia,audio-codec = <&wm8903>;
664 nvidia,spkr-en-gpios = <&wm8903 2 GPIO_ACTIVE_HIGH>;
665 nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2)
668 clocks = <&tegra_car TEGRA30_CLK_PLL_A>,
669 <&tegra_car TEGRA30_CLK_PLL_A_OUT0>,
670 <&tegra_pmc TEGRA_PMC_CLK_OUT_1>;
671 clock-names = "pll_a", "pll_a_out0", "mclk";
673 assigned-clocks = <&tegra_car TEGRA30_CLK_EXTERN1>,
674 <&tegra_pmc TEGRA_PMC_CLK_OUT_1>;
676 assigned-clock-parents = <&tegra_car TEGRA30_CLK_PLL_A_OUT0>,
677 <&tegra_car TEGRA30_CLK_EXTERN1>;
682 polling-delay-passive = <1000>; /* milliseconds */
683 polling-delay = <5000>; /* milliseconds */
685 thermal-sensors = <&nct1008 1>;
689 /* throttle at 57C until temperature drops to 56.8C */
690 temperature = <57000>;
696 /* shut down at 60C */
697 temperature = <60000>;
706 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
707 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
708 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
709 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;