0001 // SPDX-License-Identifier: GPL-2.0
0002 #include <dt-bindings/input/input.h>
0003 #include <dt-bindings/thermal/thermal.h>
0004 #include "tegra30.dtsi"
0005 #include "tegra30-cpu-opp.dtsi"
0006 #include "tegra30-cpu-opp-microvolt.dtsi"
0007
0008 /**
0009 * This file contains common DT entry for all fab version of Cardhu.
0010 * There is multiple fab version of Cardhu starting from A01 to A07.
0011 * Cardhu fab version A01 and A03 are not supported. Cardhu fab version
0012 * A02 will have different sets of GPIOs for fixed regulator compare to
0013 * Cardhu fab version A04. The Cardhu fab version A05, A06, A07 are
0014 * compatible with fab version A04. Based on Cardhu fab version, the
0015 * related dts file need to be chosen like for Cardhu fab version A02,
0016 * use tegra30-cardhu-a02.dts, Cardhu fab version A04 and later, use
0017 * tegra30-cardhu-a04.dts.
0018 * The identification of board is done in two ways, by looking the sticker
0019 * on PCB and by reading board id eeprom.
0020 * The sticker will have number like 600-81291-1000-002 C.3. In this 4th
0021 * number is the fab version like here it is 002 and hence fab version A02.
0022 * The (downstream internal) U-Boot of Cardhu display the board-id as
0023 * follows:
0024 * BoardID: 0C5B, SKU: 0A01, Fab: 02, Rev: 45.00
0025 * In this Fab version is 02 i.e. A02.
0026 * The BoardID I2C eeprom is interfaced through i2c5 (pwr_i2c address 0x56).
0027 * The location 0x8 of this eeprom contains the Fab version. It is 1 byte
0028 * wide.
0029 */
0030
0031 / {
0032 model = "NVIDIA Tegra30 Cardhu evaluation board";
0033 compatible = "nvidia,cardhu", "nvidia,tegra30";
0034
0035 aliases {
0036 rtc0 = "/i2c@7000d000/tps65911@2d";
0037 rtc1 = "/rtc@7000e000";
0038 serial0 = &uarta;
0039 serial1 = &uartc;
0040 };
0041
0042 chosen {
0043 stdout-path = "serial0:115200n8";
0044 };
0045
0046 memory@80000000 {
0047 reg = <0x80000000 0x40000000>;
0048 };
0049
0050 pcie@3000 {
0051 status = "okay";
0052
0053 /* AVDD_PEXA and VDD_PEXA inputs are grounded on Cardhu. */
0054 avdd-pexb-supply = <&ldo1_reg>;
0055 vdd-pexb-supply = <&ldo1_reg>;
0056 avdd-pex-pll-supply = <&ldo1_reg>;
0057 hvdd-pex-supply = <&pex_hvdd_3v3_reg>;
0058 vddio-pex-ctl-supply = <&sys_3v3_reg>;
0059 avdd-plle-supply = <&ldo2_reg>;
0060
0061 pci@1,0 {
0062 nvidia,num-lanes = <4>;
0063 };
0064
0065 pci@2,0 {
0066 nvidia,num-lanes = <1>;
0067 };
0068
0069 pci@3,0 {
0070 status = "okay";
0071 nvidia,num-lanes = <1>;
0072 };
0073 };
0074
0075 host1x@50000000 {
0076 dc@54200000 {
0077 rgb {
0078 status = "okay";
0079
0080 nvidia,panel = <&panel>;
0081 };
0082 };
0083 };
0084
0085 pinmux@70000868 {
0086 pinctrl-names = "default";
0087 pinctrl-0 = <&state_default>;
0088
0089 state_default: pinmux {
0090 sdmmc1_clk_pz0 {
0091 nvidia,pins = "sdmmc1_clk_pz0";
0092 nvidia,function = "sdmmc1";
0093 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
0094 nvidia,tristate = <TEGRA_PIN_DISABLE>;
0095 };
0096 sdmmc1_cmd_pz1 {
0097 nvidia,pins = "sdmmc1_cmd_pz1",
0098 "sdmmc1_dat0_py7",
0099 "sdmmc1_dat1_py6",
0100 "sdmmc1_dat2_py5",
0101 "sdmmc1_dat3_py4";
0102 nvidia,function = "sdmmc1";
0103 nvidia,pull = <TEGRA_PIN_PULL_UP>;
0104 nvidia,tristate = <TEGRA_PIN_DISABLE>;
0105 };
0106 sdmmc3_clk_pa6 {
0107 nvidia,pins = "sdmmc3_clk_pa6";
0108 nvidia,function = "sdmmc3";
0109 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
0110 nvidia,tristate = <TEGRA_PIN_DISABLE>;
0111 };
0112 sdmmc3_cmd_pa7 {
0113 nvidia,pins = "sdmmc3_cmd_pa7",
0114 "sdmmc3_dat0_pb7",
0115 "sdmmc3_dat1_pb6",
0116 "sdmmc3_dat2_pb5",
0117 "sdmmc3_dat3_pb4";
0118 nvidia,function = "sdmmc3";
0119 nvidia,pull = <TEGRA_PIN_PULL_UP>;
0120 nvidia,tristate = <TEGRA_PIN_DISABLE>;
0121 };
0122 sdmmc4_clk_pcc4 {
0123 nvidia,pins = "sdmmc4_clk_pcc4",
0124 "sdmmc4_rst_n_pcc3";
0125 nvidia,function = "sdmmc4";
0126 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
0127 nvidia,tristate = <TEGRA_PIN_DISABLE>;
0128 };
0129 sdmmc4_dat0_paa0 {
0130 nvidia,pins = "sdmmc4_dat0_paa0",
0131 "sdmmc4_dat1_paa1",
0132 "sdmmc4_dat2_paa2",
0133 "sdmmc4_dat3_paa3",
0134 "sdmmc4_dat4_paa4",
0135 "sdmmc4_dat5_paa5",
0136 "sdmmc4_dat6_paa6",
0137 "sdmmc4_dat7_paa7";
0138 nvidia,function = "sdmmc4";
0139 nvidia,pull = <TEGRA_PIN_PULL_UP>;
0140 nvidia,tristate = <TEGRA_PIN_DISABLE>;
0141 };
0142 dap2_fs_pa2 {
0143 nvidia,pins = "dap2_fs_pa2",
0144 "dap2_sclk_pa3",
0145 "dap2_din_pa4",
0146 "dap2_dout_pa5";
0147 nvidia,function = "i2s1";
0148 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
0149 nvidia,tristate = <TEGRA_PIN_DISABLE>;
0150 };
0151 sdio3 {
0152 nvidia,pins = "drive_sdio3";
0153 nvidia,high-speed-mode = <TEGRA_PIN_DISABLE>;
0154 nvidia,schmitt = <TEGRA_PIN_DISABLE>;
0155 nvidia,pull-down-strength = <46>;
0156 nvidia,pull-up-strength = <42>;
0157 nvidia,slew-rate-rising = <TEGRA_PIN_SLEW_RATE_FAST>;
0158 nvidia,slew-rate-falling = <TEGRA_PIN_SLEW_RATE_FAST>;
0159 };
0160 uart3_txd_pw6 {
0161 nvidia,pins = "uart3_txd_pw6",
0162 "uart3_cts_n_pa1",
0163 "uart3_rts_n_pc0",
0164 "uart3_rxd_pw7";
0165 nvidia,function = "uartc";
0166 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
0167 nvidia,tristate = <TEGRA_PIN_DISABLE>;
0168 };
0169 };
0170 };
0171
0172 serial@70006000 {
0173 status = "okay";
0174 };
0175
0176 serial@70006200 {
0177 compatible = "nvidia,tegra30-hsuart";
0178 /delete-property/ reg-shift;
0179 status = "okay";
0180 };
0181
0182 pwm@7000a000 {
0183 status = "okay";
0184 };
0185
0186 panelddc: i2c@7000c000 {
0187 status = "okay";
0188 clock-frequency = <100000>;
0189 };
0190
0191 i2c@7000c400 {
0192 status = "okay";
0193 clock-frequency = <100000>;
0194 };
0195
0196 i2c@7000c500 {
0197 status = "okay";
0198 clock-frequency = <100000>;
0199
0200 /* ALS and Proximity sensor */
0201 isl29028@44 {
0202 compatible = "isil,isl29028";
0203 reg = <0x44>;
0204 interrupt-parent = <&gpio>;
0205 interrupts = <TEGRA_GPIO(L, 0) IRQ_TYPE_LEVEL_HIGH>;
0206 };
0207
0208 i2cmux@70 {
0209 compatible = "nxp,pca9546";
0210 #address-cells = <1>;
0211 #size-cells = <0>;
0212 reg = <0x70>;
0213 reset-gpios = <&gpio TEGRA_GPIO(BB, 0) GPIO_ACTIVE_LOW>;
0214 };
0215 };
0216
0217 i2c@7000c700 {
0218 status = "okay";
0219 clock-frequency = <100000>;
0220 };
0221
0222 i2c@7000d000 {
0223 status = "okay";
0224 clock-frequency = <100000>;
0225
0226 wm8903: wm8903@1a {
0227 compatible = "wlf,wm8903";
0228 reg = <0x1a>;
0229 interrupt-parent = <&gpio>;
0230 interrupts = <TEGRA_GPIO(W, 3) IRQ_TYPE_LEVEL_HIGH>;
0231
0232 gpio-controller;
0233 #gpio-cells = <2>;
0234
0235 micdet-cfg = <0>;
0236 micdet-delay = <100>;
0237 gpio-cfg = <0xffffffff 0xffffffff 0 0xffffffff 0xffffffff>;
0238 };
0239
0240 pmic: tps65911@2d {
0241 compatible = "ti,tps65911";
0242 reg = <0x2d>;
0243
0244 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
0245 #interrupt-cells = <2>;
0246 interrupt-controller;
0247 wakeup-source;
0248
0249 ti,system-power-controller;
0250
0251 #gpio-cells = <2>;
0252 gpio-controller;
0253
0254 vcc1-supply = <&vdd_ac_bat_reg>;
0255 vcc2-supply = <&vdd_ac_bat_reg>;
0256 vcc3-supply = <&vio_reg>;
0257 vcc4-supply = <&vdd_5v0_reg>;
0258 vcc5-supply = <&vdd_ac_bat_reg>;
0259 vcc6-supply = <&vdd2_reg>;
0260 vcc7-supply = <&vdd_ac_bat_reg>;
0261 vccio-supply = <&vdd_ac_bat_reg>;
0262
0263 regulators {
0264 vdd1_reg: vdd1 {
0265 regulator-name = "vddio_ddr_1v2";
0266 regulator-min-microvolt = <1200000>;
0267 regulator-max-microvolt = <1200000>;
0268 regulator-always-on;
0269 };
0270
0271 vdd2_reg: vdd2 {
0272 regulator-name = "vdd_1v5_gen";
0273 regulator-min-microvolt = <1500000>;
0274 regulator-max-microvolt = <1500000>;
0275 regulator-always-on;
0276 };
0277
0278 vddctrl_reg: vddctrl {
0279 regulator-name = "vdd_cpu,vdd_sys";
0280 regulator-min-microvolt = <800000>;
0281 regulator-max-microvolt = <1250000>;
0282 regulator-coupled-with = <&vdd_core>;
0283 regulator-coupled-max-spread = <300000>;
0284 regulator-max-step-microvolt = <100000>;
0285 regulator-always-on;
0286
0287 nvidia,tegra-cpu-regulator;
0288 };
0289
0290 vio_reg: vio {
0291 regulator-name = "vdd_1v8_gen";
0292 regulator-min-microvolt = <1800000>;
0293 regulator-max-microvolt = <1800000>;
0294 regulator-always-on;
0295 };
0296
0297 ldo1_reg: ldo1 {
0298 regulator-name = "vdd_pexa,vdd_pexb";
0299 regulator-min-microvolt = <1050000>;
0300 regulator-max-microvolt = <1050000>;
0301 };
0302
0303 ldo2_reg: ldo2 {
0304 regulator-name = "vdd_sata,avdd_plle";
0305 regulator-min-microvolt = <1050000>;
0306 regulator-max-microvolt = <1050000>;
0307 };
0308
0309 /* LDO3 is not connected to anything */
0310
0311 ldo4_reg: ldo4 {
0312 regulator-name = "vdd_rtc";
0313 regulator-min-microvolt = <1200000>;
0314 regulator-max-microvolt = <1200000>;
0315 regulator-always-on;
0316 };
0317
0318 ldo5_reg: ldo5 {
0319 regulator-name = "vddio_sdmmc,avdd_vdac";
0320 regulator-min-microvolt = <3300000>;
0321 regulator-max-microvolt = <3300000>;
0322 regulator-always-on;
0323 };
0324
0325 ldo6_reg: ldo6 {
0326 regulator-name = "avdd_dsi_csi,pwrdet_mipi";
0327 regulator-min-microvolt = <1200000>;
0328 regulator-max-microvolt = <1200000>;
0329 };
0330
0331 ldo7_reg: ldo7 {
0332 regulator-name = "vdd_pllm,x,u,a_p_c_s";
0333 regulator-min-microvolt = <1200000>;
0334 regulator-max-microvolt = <1200000>;
0335 regulator-always-on;
0336 };
0337
0338 ldo8_reg: ldo8 {
0339 regulator-name = "vdd_ddr_hs";
0340 regulator-min-microvolt = <1000000>;
0341 regulator-max-microvolt = <1000000>;
0342 regulator-always-on;
0343 };
0344 };
0345 };
0346
0347 nct1008: temperature-sensor@4c {
0348 compatible = "onnn,nct1008";
0349 reg = <0x4c>;
0350 vcc-supply = <&sys_3v3_reg>;
0351 interrupt-parent = <&gpio>;
0352 interrupts = <TEGRA_GPIO(CC, 2) IRQ_TYPE_EDGE_FALLING>;
0353 #thermal-sensor-cells = <1>;
0354 };
0355
0356 vdd_core: tps62361@60 {
0357 compatible = "ti,tps62361";
0358 reg = <0x60>;
0359
0360 regulator-name = "tps62361-vout";
0361 regulator-min-microvolt = <500000>;
0362 regulator-max-microvolt = <1500000>;
0363 regulator-coupled-with = <&vddctrl_reg>;
0364 regulator-coupled-max-spread = <300000>;
0365 regulator-max-step-microvolt = <100000>;
0366 regulator-boot-on;
0367 regulator-always-on;
0368 ti,vsel0-state-high;
0369 ti,vsel1-state-high;
0370
0371 nvidia,tegra-core-regulator;
0372 };
0373 };
0374
0375 spi@7000da00 {
0376 status = "okay";
0377 spi-max-frequency = <25000000>;
0378
0379 flash@1 {
0380 compatible = "winbond,w25q32", "jedec,spi-nor";
0381 reg = <1>;
0382 spi-max-frequency = <20000000>;
0383 };
0384 };
0385
0386 pmc@7000e400 {
0387 status = "okay";
0388 nvidia,invert-interrupt;
0389 nvidia,suspend-mode = <1>;
0390 nvidia,cpu-pwr-good-time = <2000>;
0391 nvidia,cpu-pwr-off-time = <200>;
0392 nvidia,core-pwr-good-time = <3845 3845>;
0393 nvidia,core-pwr-off-time = <0>;
0394 nvidia,core-power-req-active-high;
0395 nvidia,sys-clock-req-active-high;
0396 core-supply = <&vdd_core>;
0397 };
0398
0399 ahub@70080000 {
0400 i2s@70080400 {
0401 status = "okay";
0402 };
0403 };
0404
0405 mmc@78000000 {
0406 status = "okay";
0407 cd-gpios = <&gpio TEGRA_GPIO(I, 5) GPIO_ACTIVE_LOW>;
0408 wp-gpios = <&gpio TEGRA_GPIO(T, 3) GPIO_ACTIVE_HIGH>;
0409 power-gpios = <&gpio TEGRA_GPIO(D, 7) GPIO_ACTIVE_HIGH>;
0410 bus-width = <4>;
0411 };
0412
0413 mmc@78000600 {
0414 status = "okay";
0415 bus-width = <8>;
0416 non-removable;
0417 };
0418
0419 usb@7d008000 {
0420 status = "okay";
0421 };
0422
0423 usb-phy@7d008000 {
0424 vbus-supply = <&usb3_vbus_reg>;
0425 status = "okay";
0426 };
0427
0428 backlight: backlight {
0429 compatible = "pwm-backlight";
0430
0431 enable-gpios = <&gpio TEGRA_GPIO(H, 2) GPIO_ACTIVE_HIGH>;
0432 power-supply = <&vdd_bl_reg>;
0433 pwms = <&pwm 0 5000000>;
0434
0435 brightness-levels = <0 4 8 16 32 64 128 255>;
0436 default-brightness-level = <6>;
0437 };
0438
0439 clk32k_in: clock-32k {
0440 compatible = "fixed-clock";
0441 clock-frequency = <32768>;
0442 #clock-cells = <0>;
0443 };
0444
0445 cpus {
0446 cpu0: cpu@0 {
0447 cpu-supply = <&vddctrl_reg>;
0448 operating-points-v2 = <&cpu0_opp_table>;
0449 #cooling-cells = <2>;
0450 };
0451
0452 cpu1: cpu@1 {
0453 cpu-supply = <&vddctrl_reg>;
0454 operating-points-v2 = <&cpu0_opp_table>;
0455 #cooling-cells = <2>;
0456 };
0457
0458 cpu2: cpu@2 {
0459 cpu-supply = <&vddctrl_reg>;
0460 operating-points-v2 = <&cpu0_opp_table>;
0461 #cooling-cells = <2>;
0462 };
0463
0464 cpu3: cpu@3 {
0465 cpu-supply = <&vddctrl_reg>;
0466 operating-points-v2 = <&cpu0_opp_table>;
0467 #cooling-cells = <2>;
0468 };
0469 };
0470
0471 panel: panel {
0472 compatible = "chunghwa,claa101wb01";
0473 ddc-i2c-bus = <&panelddc>;
0474
0475 power-supply = <&vdd_pnl1_reg>;
0476 enable-gpios = <&gpio TEGRA_GPIO(L, 2) GPIO_ACTIVE_HIGH>;
0477
0478 backlight = <&backlight>;
0479 };
0480
0481 vdd_ac_bat_reg: regulator-acbat {
0482 compatible = "regulator-fixed";
0483 regulator-name = "vdd_ac_bat";
0484 regulator-min-microvolt = <5000000>;
0485 regulator-max-microvolt = <5000000>;
0486 regulator-always-on;
0487 };
0488
0489 cam_1v8_reg: regulator-cam {
0490 compatible = "regulator-fixed";
0491 regulator-name = "cam_1v8";
0492 regulator-min-microvolt = <1800000>;
0493 regulator-max-microvolt = <1800000>;
0494 enable-active-high;
0495 gpio = <&gpio TEGRA_GPIO(BB, 4) GPIO_ACTIVE_HIGH>;
0496 vin-supply = <&vio_reg>;
0497 };
0498
0499 cp_5v_reg: regulator-5v0cp {
0500 compatible = "regulator-fixed";
0501 regulator-name = "cp_5v";
0502 regulator-min-microvolt = <5000000>;
0503 regulator-max-microvolt = <5000000>;
0504 regulator-boot-on;
0505 regulator-always-on;
0506 enable-active-high;
0507 gpio = <&pmic 0 GPIO_ACTIVE_HIGH>;
0508 };
0509
0510 emmc_3v3_reg: regulator-emmc {
0511 compatible = "regulator-fixed";
0512 regulator-name = "emmc_3v3";
0513 regulator-min-microvolt = <3300000>;
0514 regulator-max-microvolt = <3300000>;
0515 regulator-always-on;
0516 regulator-boot-on;
0517 enable-active-high;
0518 gpio = <&gpio TEGRA_GPIO(D, 1) GPIO_ACTIVE_HIGH>;
0519 vin-supply = <&sys_3v3_reg>;
0520 };
0521
0522 modem_3v3_reg: regulator-modem {
0523 compatible = "regulator-fixed";
0524 regulator-name = "modem_3v3";
0525 regulator-min-microvolt = <3300000>;
0526 regulator-max-microvolt = <3300000>;
0527 enable-active-high;
0528 gpio = <&gpio TEGRA_GPIO(D, 6) GPIO_ACTIVE_HIGH>;
0529 };
0530
0531 pex_hvdd_3v3_reg: regulator-pex {
0532 compatible = "regulator-fixed";
0533 regulator-name = "pex_hvdd_3v3";
0534 regulator-min-microvolt = <3300000>;
0535 regulator-max-microvolt = <3300000>;
0536 enable-active-high;
0537 gpio = <&gpio TEGRA_GPIO(L, 7) GPIO_ACTIVE_HIGH>;
0538 vin-supply = <&sys_3v3_reg>;
0539 };
0540
0541 vdd_cam1_ldo_reg: regulator-cam1 {
0542 compatible = "regulator-fixed";
0543 regulator-name = "vdd_cam1_ldo";
0544 regulator-min-microvolt = <2800000>;
0545 regulator-max-microvolt = <2800000>;
0546 enable-active-high;
0547 gpio = <&gpio TEGRA_GPIO(R, 6) GPIO_ACTIVE_HIGH>;
0548 vin-supply = <&sys_3v3_reg>;
0549 };
0550
0551 vdd_cam2_ldo_reg: regulator-cam2 {
0552 compatible = "regulator-fixed";
0553 regulator-name = "vdd_cam2_ldo";
0554 regulator-min-microvolt = <2800000>;
0555 regulator-max-microvolt = <2800000>;
0556 enable-active-high;
0557 gpio = <&gpio TEGRA_GPIO(R, 7) GPIO_ACTIVE_HIGH>;
0558 vin-supply = <&sys_3v3_reg>;
0559 };
0560
0561 vdd_cam3_ldo_reg: regulator-cam3 {
0562 compatible = "regulator-fixed";
0563 regulator-name = "vdd_cam3_ldo";
0564 regulator-min-microvolt = <3300000>;
0565 regulator-max-microvolt = <3300000>;
0566 enable-active-high;
0567 gpio = <&gpio TEGRA_GPIO(S, 0) GPIO_ACTIVE_HIGH>;
0568 vin-supply = <&sys_3v3_reg>;
0569 };
0570
0571 vdd_com_reg: regulator-com {
0572 compatible = "regulator-fixed";
0573 regulator-name = "vdd_com";
0574 regulator-min-microvolt = <3300000>;
0575 regulator-max-microvolt = <3300000>;
0576 regulator-always-on;
0577 regulator-boot-on;
0578 enable-active-high;
0579 gpio = <&gpio TEGRA_GPIO(D, 0) GPIO_ACTIVE_HIGH>;
0580 vin-supply = <&sys_3v3_reg>;
0581 };
0582
0583 vdd_fuse_3v3_reg: regulator-fuse {
0584 compatible = "regulator-fixed";
0585 regulator-name = "vdd_fuse_3v3";
0586 regulator-min-microvolt = <3300000>;
0587 regulator-max-microvolt = <3300000>;
0588 enable-active-high;
0589 gpio = <&gpio TEGRA_GPIO(L, 6) GPIO_ACTIVE_HIGH>;
0590 vin-supply = <&sys_3v3_reg>;
0591 };
0592
0593 vdd_pnl1_reg: regulator-pnl1 {
0594 compatible = "regulator-fixed";
0595 regulator-name = "vdd_pnl1";
0596 regulator-min-microvolt = <3300000>;
0597 regulator-max-microvolt = <3300000>;
0598 regulator-always-on;
0599 regulator-boot-on;
0600 enable-active-high;
0601 gpio = <&gpio TEGRA_GPIO(L, 4) GPIO_ACTIVE_HIGH>;
0602 vin-supply = <&sys_3v3_reg>;
0603 };
0604
0605 vdd_vid_reg: regulator-vid {
0606 compatible = "regulator-fixed";
0607 regulator-name = "vddio_vid";
0608 regulator-min-microvolt = <5000000>;
0609 regulator-max-microvolt = <5000000>;
0610 enable-active-high;
0611 gpio = <&gpio TEGRA_GPIO(T, 0) GPIO_ACTIVE_HIGH>;
0612 gpio-open-drain;
0613 vin-supply = <&vdd_5v0_reg>;
0614 };
0615
0616 sound {
0617 compatible = "nvidia,tegra-audio-wm8903-cardhu",
0618 "nvidia,tegra-audio-wm8903";
0619 nvidia,model = "NVIDIA Tegra Cardhu";
0620
0621 nvidia,audio-routing =
0622 "Headphone Jack", "HPOUTR",
0623 "Headphone Jack", "HPOUTL",
0624 "Int Spk", "ROP",
0625 "Int Spk", "RON",
0626 "Int Spk", "LOP",
0627 "Int Spk", "LON",
0628 "Mic Jack", "MICBIAS",
0629 "IN1L", "Mic Jack";
0630
0631 nvidia,i2s-controller = <&tegra_i2s1>;
0632 nvidia,audio-codec = <&wm8903>;
0633
0634 nvidia,spkr-en-gpios = <&wm8903 2 GPIO_ACTIVE_HIGH>;
0635 nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2)
0636 GPIO_ACTIVE_LOW>;
0637
0638 clocks = <&tegra_car TEGRA30_CLK_PLL_A>,
0639 <&tegra_car TEGRA30_CLK_PLL_A_OUT0>,
0640 <&tegra_pmc TEGRA_PMC_CLK_OUT_1>;
0641 clock-names = "pll_a", "pll_a_out0", "mclk";
0642
0643 assigned-clocks = <&tegra_car TEGRA30_CLK_EXTERN1>,
0644 <&tegra_pmc TEGRA_PMC_CLK_OUT_1>;
0645
0646 assigned-clock-parents = <&tegra_car TEGRA30_CLK_PLL_A_OUT0>,
0647 <&tegra_car TEGRA30_CLK_EXTERN1>;
0648 };
0649
0650 thermal-zones {
0651 cpu-thermal {
0652 polling-delay-passive = <1000>; /* milliseconds */
0653 polling-delay = <5000>; /* milliseconds */
0654
0655 thermal-sensors = <&nct1008 1>;
0656
0657 trips {
0658 trip0: cpu-alert0 {
0659 /* throttle at 57C until temperature drops to 56.8C */
0660 temperature = <57000>;
0661 hysteresis = <200>;
0662 type = "passive";
0663 };
0664
0665 trip1: cpu-crit {
0666 /* shut down at 60C */
0667 temperature = <60000>;
0668 hysteresis = <2000>;
0669 type = "critical";
0670 };
0671 };
0672
0673 cooling-maps {
0674 map0 {
0675 trip = <&trip0>;
0676 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
0677 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
0678 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
0679 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
0680 };
0681 };
0682 };
0683 };
0684
0685 gpio-keys {
0686 compatible = "gpio-keys";
0687
0688 key-power {
0689 label = "Power";
0690 interrupt-parent = <&pmic>;
0691 interrupts = <2 0>;
0692 linux,code = <KEY_POWER>;
0693 debounce-interval = <100>;
0694 wakeup-source;
0695 };
0696
0697 key-volume-down {
0698 label = "Volume Down";
0699 gpios = <&gpio TEGRA_GPIO(R, 0) GPIO_ACTIVE_LOW>;
0700 linux,code = <KEY_VOLUMEDOWN>;
0701 debounce-interval = <10>;
0702 };
0703
0704 key-volume-up {
0705 label = "Volume Up";
0706 gpios = <&gpio TEGRA_GPIO(R, 1) GPIO_ACTIVE_LOW>;
0707 linux,code = <KEY_VOLUMEUP>;
0708 debounce-interval = <10>;
0709 };
0710 };
0711 };