1 // SPDX-License-Identifier: GPL-2.0
2 #include <dt-bindings/input/input.h>
3 #include "tegra30.dtsi"
6 * This file contains common DT entry for all fab version of Cardhu.
7 * There is multiple fab version of Cardhu starting from A01 to A07.
8 * Cardhu fab version A01 and A03 are not supported. Cardhu fab version
9 * A02 will have different sets of GPIOs for fixed regulator compare to
10 * Cardhu fab version A04. The Cardhu fab version A05, A06, A07 are
11 * compatible with fab version A04. Based on Cardhu fab version, the
12 * related dts file need to be chosen like for Cardhu fab version A02,
13 * use tegra30-cardhu-a02.dts, Cardhu fab version A04 and later, use
14 * tegra30-cardhu-a04.dts.
15 * The identification of board is done in two ways, by looking the sticker
16 * on PCB and by reading board id eeprom.
17 * The sticker will have number like 600-81291-1000-002 C.3. In this 4th
18 * number is the fab version like here it is 002 and hence fab version A02.
19 * The (downstream internal) U-Boot of Cardhu display the board-id as
21 * BoardID: 0C5B, SKU: 0A01, Fab: 02, Rev: 45.00
22 * In this Fab version is 02 i.e. A02.
23 * The BoardID I2C eeprom is interfaced through i2c5 (pwr_i2c address 0x56).
24 * The location 0x8 of this eeprom contains the Fab version. It is 1 byte
29 model = "NVIDIA Tegra30 Cardhu evaluation board";
30 compatible = "nvidia,cardhu", "nvidia,tegra30";
33 rtc0 = "/i2c@7000d000/tps65911@2d";
34 rtc1 = "/rtc@7000e000";
40 stdout-path = "serial0:115200n8";
44 reg = <0x80000000 0x40000000>;
50 /* AVDD_PEXA and VDD_PEXA inputs are grounded on Cardhu. */
51 avdd-pexb-supply = <&ldo1_reg>;
52 vdd-pexb-supply = <&ldo1_reg>;
53 avdd-pex-pll-supply = <&ldo1_reg>;
54 hvdd-pex-supply = <&pex_hvdd_3v3_reg>;
55 vddio-pex-ctl-supply = <&sys_3v3_reg>;
56 avdd-plle-supply = <&ldo2_reg>;
59 nvidia,num-lanes = <4>;
63 nvidia,num-lanes = <1>;
68 nvidia,num-lanes = <1>;
77 nvidia,panel = <&panel>;
83 pinctrl-names = "default";
84 pinctrl-0 = <&state_default>;
86 state_default: pinmux {
88 nvidia,pins = "sdmmc1_clk_pz0";
89 nvidia,function = "sdmmc1";
90 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
91 nvidia,tristate = <TEGRA_PIN_DISABLE>;
94 nvidia,pins = "sdmmc1_cmd_pz1",
99 nvidia,function = "sdmmc1";
100 nvidia,pull = <TEGRA_PIN_PULL_UP>;
101 nvidia,tristate = <TEGRA_PIN_DISABLE>;
104 nvidia,pins = "sdmmc3_clk_pa6";
105 nvidia,function = "sdmmc3";
106 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
107 nvidia,tristate = <TEGRA_PIN_DISABLE>;
110 nvidia,pins = "sdmmc3_cmd_pa7",
115 nvidia,function = "sdmmc3";
116 nvidia,pull = <TEGRA_PIN_PULL_UP>;
117 nvidia,tristate = <TEGRA_PIN_DISABLE>;
120 nvidia,pins = "sdmmc4_clk_pcc4",
122 nvidia,function = "sdmmc4";
123 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
124 nvidia,tristate = <TEGRA_PIN_DISABLE>;
127 nvidia,pins = "sdmmc4_dat0_paa0",
135 nvidia,function = "sdmmc4";
136 nvidia,pull = <TEGRA_PIN_PULL_UP>;
137 nvidia,tristate = <TEGRA_PIN_DISABLE>;
140 nvidia,pins = "dap2_fs_pa2",
144 nvidia,function = "i2s1";
145 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
146 nvidia,tristate = <TEGRA_PIN_DISABLE>;
149 nvidia,pins = "drive_sdio3";
150 nvidia,high-speed-mode = <TEGRA_PIN_DISABLE>;
151 nvidia,schmitt = <TEGRA_PIN_DISABLE>;
152 nvidia,pull-down-strength = <46>;
153 nvidia,pull-up-strength = <42>;
154 nvidia,slew-rate-rising = <TEGRA_PIN_SLEW_RATE_FAST>;
155 nvidia,slew-rate-falling = <TEGRA_PIN_SLEW_RATE_FAST>;
158 nvidia,pins = "uart3_txd_pw6",
162 nvidia,function = "uartc";
163 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
164 nvidia,tristate = <TEGRA_PIN_DISABLE>;
174 compatible = "nvidia,tegra30-hsuart";
182 panelddc: i2c@7000c000 {
184 clock-frequency = <100000>;
189 clock-frequency = <100000>;
194 clock-frequency = <100000>;
196 /* ALS and Proximity sensor */
198 compatible = "isil,isl29028";
200 interrupt-parent = <&gpio>;
201 interrupts = <TEGRA_GPIO(L, 0) IRQ_TYPE_LEVEL_HIGH>;
205 compatible = "nxp,pca9546";
206 #address-cells = <1>;
209 reset-gpio = <&gpio TEGRA_GPIO(BB, 0) GPIO_ACTIVE_LOW>;
215 clock-frequency = <100000>;
220 clock-frequency = <100000>;
223 compatible = "wlf,wm8903";
225 interrupt-parent = <&gpio>;
226 interrupts = <TEGRA_GPIO(W, 3) IRQ_TYPE_LEVEL_HIGH>;
232 micdet-delay = <100>;
233 gpio-cfg = <0xffffffff 0xffffffff 0 0xffffffff 0xffffffff>;
237 compatible = "ti,tps65911";
240 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
241 #interrupt-cells = <2>;
242 interrupt-controller;
244 ti,system-power-controller;
249 vcc1-supply = <&vdd_ac_bat_reg>;
250 vcc2-supply = <&vdd_ac_bat_reg>;
251 vcc3-supply = <&vio_reg>;
252 vcc4-supply = <&vdd_5v0_reg>;
253 vcc5-supply = <&vdd_ac_bat_reg>;
254 vcc6-supply = <&vdd2_reg>;
255 vcc7-supply = <&vdd_ac_bat_reg>;
256 vccio-supply = <&vdd_ac_bat_reg>;
260 regulator-name = "vddio_ddr_1v2";
261 regulator-min-microvolt = <1200000>;
262 regulator-max-microvolt = <1200000>;
267 regulator-name = "vdd_1v5_gen";
268 regulator-min-microvolt = <1500000>;
269 regulator-max-microvolt = <1500000>;
273 vddctrl_reg: vddctrl {
274 regulator-name = "vdd_cpu,vdd_sys";
275 regulator-min-microvolt = <1000000>;
276 regulator-max-microvolt = <1000000>;
281 regulator-name = "vdd_1v8_gen";
282 regulator-min-microvolt = <1800000>;
283 regulator-max-microvolt = <1800000>;
288 regulator-name = "vdd_pexa,vdd_pexb";
289 regulator-min-microvolt = <1050000>;
290 regulator-max-microvolt = <1050000>;
294 regulator-name = "vdd_sata,avdd_plle";
295 regulator-min-microvolt = <1050000>;
296 regulator-max-microvolt = <1050000>;
299 /* LDO3 is not connected to anything */
302 regulator-name = "vdd_rtc";
303 regulator-min-microvolt = <1200000>;
304 regulator-max-microvolt = <1200000>;
309 regulator-name = "vddio_sdmmc,avdd_vdac";
310 regulator-min-microvolt = <3300000>;
311 regulator-max-microvolt = <3300000>;
316 regulator-name = "avdd_dsi_csi,pwrdet_mipi";
317 regulator-min-microvolt = <1200000>;
318 regulator-max-microvolt = <1200000>;
322 regulator-name = "vdd_pllm,x,u,a_p_c_s";
323 regulator-min-microvolt = <1200000>;
324 regulator-max-microvolt = <1200000>;
329 regulator-name = "vdd_ddr_hs";
330 regulator-min-microvolt = <1000000>;
331 regulator-max-microvolt = <1000000>;
337 temperature-sensor@4c {
338 compatible = "onnn,nct1008";
340 vcc-supply = <&sys_3v3_reg>;
341 interrupt-parent = <&gpio>;
342 interrupts = <TEGRA_GPIO(CC, 2) IRQ_TYPE_LEVEL_LOW>;
346 compatible = "ti,tps62361";
349 regulator-name = "tps62361-vout";
350 regulator-min-microvolt = <500000>;
351 regulator-max-microvolt = <1500000>;
361 spi-max-frequency = <25000000>;
363 compatible = "winbond,w25q32", "jedec,spi-nor";
365 spi-max-frequency = <20000000>;
371 nvidia,invert-interrupt;
372 nvidia,suspend-mode = <1>;
373 nvidia,cpu-pwr-good-time = <2000>;
374 nvidia,cpu-pwr-off-time = <200>;
375 nvidia,core-pwr-good-time = <3845 3845>;
376 nvidia,core-pwr-off-time = <0>;
377 nvidia,core-power-req-active-high;
378 nvidia,sys-clock-req-active-high;
389 cd-gpios = <&gpio TEGRA_GPIO(I, 5) GPIO_ACTIVE_LOW>;
390 wp-gpios = <&gpio TEGRA_GPIO(T, 3) GPIO_ACTIVE_HIGH>;
391 power-gpios = <&gpio TEGRA_GPIO(D, 7) GPIO_ACTIVE_HIGH>;
406 vbus-supply = <&usb3_vbus_reg>;
410 backlight: backlight {
411 compatible = "pwm-backlight";
413 enable-gpios = <&gpio TEGRA_GPIO(H, 2) GPIO_ACTIVE_HIGH>;
414 power-supply = <&vdd_bl_reg>;
415 pwms = <&pwm 0 5000000>;
417 brightness-levels = <0 4 8 16 32 64 128 255>;
418 default-brightness-level = <6>;
422 compatible = "fixed-clock";
423 clock-frequency = <32768>;
428 compatible = "chunghwa,claa101wb01";
429 ddc-i2c-bus = <&panelddc>;
431 power-supply = <&vdd_pnl1_reg>;
432 enable-gpios = <&gpio TEGRA_GPIO(L, 2) GPIO_ACTIVE_HIGH>;
434 backlight = <&backlight>;
437 vdd_ac_bat_reg: regulator@0 {
438 compatible = "regulator-fixed";
439 regulator-name = "vdd_ac_bat";
440 regulator-min-microvolt = <5000000>;
441 regulator-max-microvolt = <5000000>;
445 cam_1v8_reg: regulator@1 {
446 compatible = "regulator-fixed";
447 regulator-name = "cam_1v8";
448 regulator-min-microvolt = <1800000>;
449 regulator-max-microvolt = <1800000>;
451 gpio = <&gpio TEGRA_GPIO(BB, 4) GPIO_ACTIVE_HIGH>;
452 vin-supply = <&vio_reg>;
455 cp_5v_reg: regulator@2 {
456 compatible = "regulator-fixed";
457 regulator-name = "cp_5v";
458 regulator-min-microvolt = <5000000>;
459 regulator-max-microvolt = <5000000>;
463 gpio = <&pmic 0 GPIO_ACTIVE_HIGH>;
466 emmc_3v3_reg: regulator@3 {
467 compatible = "regulator-fixed";
468 regulator-name = "emmc_3v3";
469 regulator-min-microvolt = <3300000>;
470 regulator-max-microvolt = <3300000>;
474 gpio = <&gpio TEGRA_GPIO(D, 1) GPIO_ACTIVE_HIGH>;
475 vin-supply = <&sys_3v3_reg>;
478 modem_3v3_reg: regulator@4 {
479 compatible = "regulator-fixed";
480 regulator-name = "modem_3v3";
481 regulator-min-microvolt = <3300000>;
482 regulator-max-microvolt = <3300000>;
484 gpio = <&gpio TEGRA_GPIO(D, 6) GPIO_ACTIVE_HIGH>;
487 pex_hvdd_3v3_reg: regulator@5 {
488 compatible = "regulator-fixed";
489 regulator-name = "pex_hvdd_3v3";
490 regulator-min-microvolt = <3300000>;
491 regulator-max-microvolt = <3300000>;
493 gpio = <&gpio TEGRA_GPIO(L, 7) GPIO_ACTIVE_HIGH>;
494 vin-supply = <&sys_3v3_reg>;
497 vdd_cam1_ldo_reg: regulator@6 {
498 compatible = "regulator-fixed";
499 regulator-name = "vdd_cam1_ldo";
500 regulator-min-microvolt = <2800000>;
501 regulator-max-microvolt = <2800000>;
503 gpio = <&gpio TEGRA_GPIO(R, 6) GPIO_ACTIVE_HIGH>;
504 vin-supply = <&sys_3v3_reg>;
507 vdd_cam2_ldo_reg: regulator@7 {
508 compatible = "regulator-fixed";
509 regulator-name = "vdd_cam2_ldo";
510 regulator-min-microvolt = <2800000>;
511 regulator-max-microvolt = <2800000>;
513 gpio = <&gpio TEGRA_GPIO(R, 7) GPIO_ACTIVE_HIGH>;
514 vin-supply = <&sys_3v3_reg>;
517 vdd_cam3_ldo_reg: regulator@8 {
518 compatible = "regulator-fixed";
519 regulator-name = "vdd_cam3_ldo";
520 regulator-min-microvolt = <3300000>;
521 regulator-max-microvolt = <3300000>;
523 gpio = <&gpio TEGRA_GPIO(S, 0) GPIO_ACTIVE_HIGH>;
524 vin-supply = <&sys_3v3_reg>;
527 vdd_com_reg: regulator@9 {
528 compatible = "regulator-fixed";
529 regulator-name = "vdd_com";
530 regulator-min-microvolt = <3300000>;
531 regulator-max-microvolt = <3300000>;
535 gpio = <&gpio TEGRA_GPIO(D, 0) GPIO_ACTIVE_HIGH>;
536 vin-supply = <&sys_3v3_reg>;
539 vdd_fuse_3v3_reg: regulator@10 {
540 compatible = "regulator-fixed";
541 regulator-name = "vdd_fuse_3v3";
542 regulator-min-microvolt = <3300000>;
543 regulator-max-microvolt = <3300000>;
545 gpio = <&gpio TEGRA_GPIO(L, 6) GPIO_ACTIVE_HIGH>;
546 vin-supply = <&sys_3v3_reg>;
549 vdd_pnl1_reg: regulator@11 {
550 compatible = "regulator-fixed";
551 regulator-name = "vdd_pnl1";
552 regulator-min-microvolt = <3300000>;
553 regulator-max-microvolt = <3300000>;
557 gpio = <&gpio TEGRA_GPIO(L, 4) GPIO_ACTIVE_HIGH>;
558 vin-supply = <&sys_3v3_reg>;
561 vdd_vid_reg: regulator@12 {
562 compatible = "regulator-fixed";
563 regulator-name = "vddio_vid";
564 regulator-min-microvolt = <5000000>;
565 regulator-max-microvolt = <5000000>;
567 gpio = <&gpio TEGRA_GPIO(T, 0) GPIO_ACTIVE_HIGH>;
569 vin-supply = <&vdd_5v0_reg>;
573 compatible = "nvidia,tegra-audio-wm8903-cardhu",
574 "nvidia,tegra-audio-wm8903";
575 nvidia,model = "NVIDIA Tegra Cardhu";
577 nvidia,audio-routing =
578 "Headphone Jack", "HPOUTR",
579 "Headphone Jack", "HPOUTL",
584 "Mic Jack", "MICBIAS",
587 nvidia,i2s-controller = <&tegra_i2s1>;
588 nvidia,audio-codec = <&wm8903>;
590 nvidia,spkr-en-gpios = <&wm8903 2 GPIO_ACTIVE_HIGH>;
591 nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2)
594 clocks = <&tegra_car TEGRA30_CLK_PLL_A>,
595 <&tegra_car TEGRA30_CLK_PLL_A_OUT0>,
596 <&tegra_pmc TEGRA_PMC_CLK_OUT_1>;
597 clock-names = "pll_a", "pll_a_out0", "mclk";
599 assigned-clocks = <&tegra_car TEGRA30_CLK_EXTERN1>,
600 <&tegra_pmc TEGRA_PMC_CLK_OUT_1>;
602 assigned-clock-parents = <&tegra_car TEGRA30_CLK_PLL_A_OUT0>,
603 <&tegra_car TEGRA30_CLK_EXTERN1>;
607 compatible = "gpio-keys";
611 interrupt-parent = <&pmic>;
613 linux,code = <KEY_POWER>;
614 debounce-interval = <100>;
619 label = "Volume Down";
620 gpios = <&gpio TEGRA_GPIO(R, 0) GPIO_ACTIVE_LOW>;
621 linux,code = <KEY_VOLUMEDOWN>;
622 debounce-interval = <10>;
627 gpios = <&gpio TEGRA_GPIO(R, 1) GPIO_ACTIVE_LOW>;
628 linux,code = <KEY_VOLUMEUP>;
629 debounce-interval = <10>;