1 #include <dt-bindings/input/input.h>
2 #include "tegra30.dtsi"
5 * This file contains common DT entry for all fab version of Cardhu.
6 * There is multiple fab version of Cardhu starting from A01 to A07.
7 * Cardhu fab version A01 and A03 are not supported. Cardhu fab version
8 * A02 will have different sets of GPIOs for fixed regulator compare to
9 * Cardhu fab version A04. The Cardhu fab version A05, A06, A07 are
10 * compatible with fab version A04. Based on Cardhu fab version, the
11 * related dts file need to be chosen like for Cardhu fab version A02,
12 * use tegra30-cardhu-a02.dts, Cardhu fab version A04 and later, use
13 * tegra30-cardhu-a04.dts.
14 * The identification of board is done in two ways, by looking the sticker
15 * on PCB and by reading board id eeprom.
16 * The sticker will have number like 600-81291-1000-002 C.3. In this 4th
17 * number is the fab version like here it is 002 and hence fab version A02.
18 * The (downstream internal) U-Boot of Cardhu display the board-id as
20 * BoardID: 0C5B, SKU: 0A01, Fab: 02, Rev: 45.00
21 * In this Fab version is 02 i.e. A02.
22 * The BoardID I2C eeprom is interfaced through i2c5 (pwr_i2c address 0x56).
23 * The location 0x8 of this eeprom contains the Fab version. It is 1 byte
28 model = "NVIDIA Tegra30 Cardhu evaluation board";
29 compatible = "nvidia,cardhu", "nvidia,tegra30";
32 rtc0 = "/i2c@7000d000/tps65911@2d";
33 rtc1 = "/rtc@7000e000";
39 reg = <0x80000000 0x40000000>;
42 pcie-controller@00003000 {
45 /* AVDD_PEXA and VDD_PEXA inputs are grounded on Cardhu. */
46 avdd-pexb-supply = <&ldo1_reg>;
47 vdd-pexb-supply = <&ldo1_reg>;
48 avdd-pex-pll-supply = <&ldo1_reg>;
49 hvdd-pex-supply = <&pex_hvdd_3v3_reg>;
50 vddio-pex-ctl-supply = <&sys_3v3_reg>;
51 avdd-plle-supply = <&ldo2_reg>;
54 nvidia,num-lanes = <4>;
58 nvidia,num-lanes = <1>;
63 nvidia,num-lanes = <1>;
72 nvidia,panel = <&panel>;
78 pinctrl-names = "default";
79 pinctrl-0 = <&state_default>;
81 state_default: pinmux {
83 nvidia,pins = "sdmmc1_clk_pz0";
84 nvidia,function = "sdmmc1";
85 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
86 nvidia,tristate = <TEGRA_PIN_DISABLE>;
89 nvidia,pins = "sdmmc1_cmd_pz1",
94 nvidia,function = "sdmmc1";
95 nvidia,pull = <TEGRA_PIN_PULL_UP>;
96 nvidia,tristate = <TEGRA_PIN_DISABLE>;
99 nvidia,pins = "sdmmc3_clk_pa6";
100 nvidia,function = "sdmmc3";
101 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
102 nvidia,tristate = <TEGRA_PIN_DISABLE>;
105 nvidia,pins = "sdmmc3_cmd_pa7",
110 nvidia,function = "sdmmc3";
111 nvidia,pull = <TEGRA_PIN_PULL_UP>;
112 nvidia,tristate = <TEGRA_PIN_DISABLE>;
115 nvidia,pins = "sdmmc4_clk_pcc4",
117 nvidia,function = "sdmmc4";
118 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
119 nvidia,tristate = <TEGRA_PIN_DISABLE>;
122 nvidia,pins = "sdmmc4_dat0_paa0",
130 nvidia,function = "sdmmc4";
131 nvidia,pull = <TEGRA_PIN_PULL_UP>;
132 nvidia,tristate = <TEGRA_PIN_DISABLE>;
135 nvidia,pins = "dap2_fs_pa2",
139 nvidia,function = "i2s1";
140 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
141 nvidia,tristate = <TEGRA_PIN_DISABLE>;
144 nvidia,pins = "drive_sdio3";
145 nvidia,high-speed-mode = <TEGRA_PIN_DISABLE>;
146 nvidia,schmitt = <TEGRA_PIN_DISABLE>;
147 nvidia,pull-down-strength = <46>;
148 nvidia,pull-up-strength = <42>;
149 nvidia,slew-rate-rising = <TEGRA_PIN_SLEW_RATE_FAST>;
150 nvidia,slew-rate-falling = <TEGRA_PIN_SLEW_RATE_FAST>;
153 nvidia,pins = "uart3_txd_pw6",
157 nvidia,function = "uartc";
158 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
159 nvidia,tristate = <TEGRA_PIN_DISABLE>;
169 compatible = "nvidia,tegra30-hsuart";
177 panelddc: i2c@7000c000 {
179 clock-frequency = <100000>;
184 clock-frequency = <100000>;
189 clock-frequency = <100000>;
191 /* ALS and Proximity sensor */
193 compatible = "isil,isl29028";
195 interrupt-parent = <&gpio>;
196 interrupts = <TEGRA_GPIO(L, 0) IRQ_TYPE_LEVEL_HIGH>;
200 compatible = "nxp,pca9546";
201 #address-cells = <1>;
209 clock-frequency = <100000>;
214 clock-frequency = <100000>;
217 compatible = "wlf,wm8903";
219 interrupt-parent = <&gpio>;
220 interrupts = <TEGRA_GPIO(W, 3) IRQ_TYPE_LEVEL_HIGH>;
226 micdet-delay = <100>;
227 gpio-cfg = <0xffffffff 0xffffffff 0 0xffffffff 0xffffffff>;
231 compatible = "ti,tps65911";
234 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
235 #interrupt-cells = <2>;
236 interrupt-controller;
238 ti,system-power-controller;
243 vcc1-supply = <&vdd_ac_bat_reg>;
244 vcc2-supply = <&vdd_ac_bat_reg>;
245 vcc3-supply = <&vio_reg>;
246 vcc4-supply = <&vdd_5v0_reg>;
247 vcc5-supply = <&vdd_ac_bat_reg>;
248 vcc6-supply = <&vdd2_reg>;
249 vcc7-supply = <&vdd_ac_bat_reg>;
250 vccio-supply = <&vdd_ac_bat_reg>;
254 regulator-name = "vddio_ddr_1v2";
255 regulator-min-microvolt = <1200000>;
256 regulator-max-microvolt = <1200000>;
261 regulator-name = "vdd_1v5_gen";
262 regulator-min-microvolt = <1500000>;
263 regulator-max-microvolt = <1500000>;
267 vddctrl_reg: vddctrl {
268 regulator-name = "vdd_cpu,vdd_sys";
269 regulator-min-microvolt = <1000000>;
270 regulator-max-microvolt = <1000000>;
275 regulator-name = "vdd_1v8_gen";
276 regulator-min-microvolt = <1800000>;
277 regulator-max-microvolt = <1800000>;
282 regulator-name = "vdd_pexa,vdd_pexb";
283 regulator-min-microvolt = <1050000>;
284 regulator-max-microvolt = <1050000>;
288 regulator-name = "vdd_sata,avdd_plle";
289 regulator-min-microvolt = <1050000>;
290 regulator-max-microvolt = <1050000>;
293 /* LDO3 is not connected to anything */
296 regulator-name = "vdd_rtc";
297 regulator-min-microvolt = <1200000>;
298 regulator-max-microvolt = <1200000>;
303 regulator-name = "vddio_sdmmc,avdd_vdac";
304 regulator-min-microvolt = <3300000>;
305 regulator-max-microvolt = <3300000>;
310 regulator-name = "avdd_dsi_csi,pwrdet_mipi";
311 regulator-min-microvolt = <1200000>;
312 regulator-max-microvolt = <1200000>;
316 regulator-name = "vdd_pllm,x,u,a_p_c_s";
317 regulator-min-microvolt = <1200000>;
318 regulator-max-microvolt = <1200000>;
323 regulator-name = "vdd_ddr_hs";
324 regulator-min-microvolt = <1000000>;
325 regulator-max-microvolt = <1000000>;
331 temperature-sensor@4c {
332 compatible = "onnn,nct1008";
334 vcc-supply = <&sys_3v3_reg>;
335 interrupt-parent = <&gpio>;
336 interrupts = <TEGRA_GPIO(CC, 2) IRQ_TYPE_LEVEL_LOW>;
340 compatible = "ti,tps62361";
343 regulator-name = "tps62361-vout";
344 regulator-min-microvolt = <500000>;
345 regulator-max-microvolt = <1500000>;
355 spi-max-frequency = <25000000>;
357 compatible = "winbond,w25q32";
359 spi-max-frequency = <20000000>;
365 nvidia,invert-interrupt;
366 nvidia,suspend-mode = <1>;
367 nvidia,cpu-pwr-good-time = <2000>;
368 nvidia,cpu-pwr-off-time = <200>;
369 nvidia,core-pwr-good-time = <3845 3845>;
370 nvidia,core-pwr-off-time = <0>;
371 nvidia,core-power-req-active-high;
372 nvidia,sys-clock-req-active-high;
383 cd-gpios = <&gpio TEGRA_GPIO(I, 5) GPIO_ACTIVE_LOW>;
384 wp-gpios = <&gpio TEGRA_GPIO(T, 3) GPIO_ACTIVE_HIGH>;
385 power-gpios = <&gpio TEGRA_GPIO(D, 7) GPIO_ACTIVE_HIGH>;
400 vbus-supply = <&usb3_vbus_reg>;
404 backlight: backlight {
405 compatible = "pwm-backlight";
407 enable-gpios = <&gpio TEGRA_GPIO(H, 2) GPIO_ACTIVE_HIGH>;
408 power-supply = <&vdd_bl_reg>;
409 pwms = <&pwm 0 5000000>;
411 brightness-levels = <0 4 8 16 32 64 128 255>;
412 default-brightness-level = <6>;
416 compatible = "simple-bus";
417 #address-cells = <1>;
421 compatible = "fixed-clock";
424 clock-frequency = <32768>;
429 compatible = "chunghwa,claa101wb01", "simple-panel";
430 ddc-i2c-bus = <&panelddc>;
432 power-supply = <&vdd_pnl1_reg>;
433 enable-gpios = <&gpio TEGRA_GPIO(L, 2) GPIO_ACTIVE_HIGH>;
435 backlight = <&backlight>;
439 compatible = "simple-bus";
440 #address-cells = <1>;
443 vdd_ac_bat_reg: regulator@0 {
444 compatible = "regulator-fixed";
446 regulator-name = "vdd_ac_bat";
447 regulator-min-microvolt = <5000000>;
448 regulator-max-microvolt = <5000000>;
452 cam_1v8_reg: regulator@1 {
453 compatible = "regulator-fixed";
455 regulator-name = "cam_1v8";
456 regulator-min-microvolt = <1800000>;
457 regulator-max-microvolt = <1800000>;
459 gpio = <&gpio TEGRA_GPIO(BB, 4) GPIO_ACTIVE_HIGH>;
460 vin-supply = <&vio_reg>;
463 cp_5v_reg: regulator@2 {
464 compatible = "regulator-fixed";
466 regulator-name = "cp_5v";
467 regulator-min-microvolt = <5000000>;
468 regulator-max-microvolt = <5000000>;
472 gpio = <&pmic 0 GPIO_ACTIVE_HIGH>;
475 emmc_3v3_reg: regulator@3 {
476 compatible = "regulator-fixed";
478 regulator-name = "emmc_3v3";
479 regulator-min-microvolt = <3300000>;
480 regulator-max-microvolt = <3300000>;
484 gpio = <&gpio TEGRA_GPIO(D, 1) GPIO_ACTIVE_HIGH>;
485 vin-supply = <&sys_3v3_reg>;
488 modem_3v3_reg: regulator@4 {
489 compatible = "regulator-fixed";
491 regulator-name = "modem_3v3";
492 regulator-min-microvolt = <3300000>;
493 regulator-max-microvolt = <3300000>;
495 gpio = <&gpio TEGRA_GPIO(D, 6) GPIO_ACTIVE_HIGH>;
498 pex_hvdd_3v3_reg: regulator@5 {
499 compatible = "regulator-fixed";
501 regulator-name = "pex_hvdd_3v3";
502 regulator-min-microvolt = <3300000>;
503 regulator-max-microvolt = <3300000>;
505 gpio = <&gpio TEGRA_GPIO(L, 7) GPIO_ACTIVE_HIGH>;
506 vin-supply = <&sys_3v3_reg>;
509 vdd_cam1_ldo_reg: regulator@6 {
510 compatible = "regulator-fixed";
512 regulator-name = "vdd_cam1_ldo";
513 regulator-min-microvolt = <2800000>;
514 regulator-max-microvolt = <2800000>;
516 gpio = <&gpio TEGRA_GPIO(R, 6) GPIO_ACTIVE_HIGH>;
517 vin-supply = <&sys_3v3_reg>;
520 vdd_cam2_ldo_reg: regulator@7 {
521 compatible = "regulator-fixed";
523 regulator-name = "vdd_cam2_ldo";
524 regulator-min-microvolt = <2800000>;
525 regulator-max-microvolt = <2800000>;
527 gpio = <&gpio TEGRA_GPIO(R, 7) GPIO_ACTIVE_HIGH>;
528 vin-supply = <&sys_3v3_reg>;
531 vdd_cam3_ldo_reg: regulator@8 {
532 compatible = "regulator-fixed";
534 regulator-name = "vdd_cam3_ldo";
535 regulator-min-microvolt = <3300000>;
536 regulator-max-microvolt = <3300000>;
538 gpio = <&gpio TEGRA_GPIO(S, 0) GPIO_ACTIVE_HIGH>;
539 vin-supply = <&sys_3v3_reg>;
542 vdd_com_reg: regulator@9 {
543 compatible = "regulator-fixed";
545 regulator-name = "vdd_com";
546 regulator-min-microvolt = <3300000>;
547 regulator-max-microvolt = <3300000>;
551 gpio = <&gpio TEGRA_GPIO(D, 0) GPIO_ACTIVE_HIGH>;
552 vin-supply = <&sys_3v3_reg>;
555 vdd_fuse_3v3_reg: regulator@10 {
556 compatible = "regulator-fixed";
558 regulator-name = "vdd_fuse_3v3";
559 regulator-min-microvolt = <3300000>;
560 regulator-max-microvolt = <3300000>;
562 gpio = <&gpio TEGRA_GPIO(L, 6) GPIO_ACTIVE_HIGH>;
563 vin-supply = <&sys_3v3_reg>;
566 vdd_pnl1_reg: regulator@11 {
567 compatible = "regulator-fixed";
569 regulator-name = "vdd_pnl1";
570 regulator-min-microvolt = <3300000>;
571 regulator-max-microvolt = <3300000>;
575 gpio = <&gpio TEGRA_GPIO(L, 4) GPIO_ACTIVE_HIGH>;
576 vin-supply = <&sys_3v3_reg>;
579 vdd_vid_reg: regulator@12 {
580 compatible = "regulator-fixed";
582 regulator-name = "vddio_vid";
583 regulator-min-microvolt = <5000000>;
584 regulator-max-microvolt = <5000000>;
586 gpio = <&gpio TEGRA_GPIO(T, 0) GPIO_ACTIVE_HIGH>;
588 vin-supply = <&vdd_5v0_reg>;
593 compatible = "nvidia,tegra-audio-wm8903-cardhu",
594 "nvidia,tegra-audio-wm8903";
595 nvidia,model = "NVIDIA Tegra Cardhu";
597 nvidia,audio-routing =
598 "Headphone Jack", "HPOUTR",
599 "Headphone Jack", "HPOUTL",
604 "Mic Jack", "MICBIAS",
607 nvidia,i2s-controller = <&tegra_i2s1>;
608 nvidia,audio-codec = <&wm8903>;
610 nvidia,spkr-en-gpios = <&wm8903 2 GPIO_ACTIVE_HIGH>;
611 nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2)
614 clocks = <&tegra_car TEGRA30_CLK_PLL_A>,
615 <&tegra_car TEGRA30_CLK_PLL_A_OUT0>,
616 <&tegra_car TEGRA30_CLK_EXTERN1>;
617 clock-names = "pll_a", "pll_a_out0", "mclk";
621 compatible = "gpio-keys";
625 interrupt-parent = <&pmic>;
627 linux,code = <KEY_POWER>;
628 debounce-interval = <100>;
633 label = "Volume Down";
634 gpios = <&gpio TEGRA_GPIO(R, 0) GPIO_ACTIVE_LOW>;
635 linux,code = <KEY_VOLUMEDOWN>;
636 debounce-interval = <10>;
641 gpios = <&gpio TEGRA_GPIO(R, 1) GPIO_ACTIVE_LOW>;
642 linux,code = <KEY_VOLUMEUP>;
643 debounce-interval = <10>;