Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 #include <dt-bindings/input/input.h>
0003 #include <dt-bindings/thermal/thermal.h>
0004 #include "tegra124.dtsi"
0005 
0006 / {
0007         aliases {
0008                 rtc0 = "/i2c@7000d000/pmic@40";
0009                 rtc1 = "/rtc@7000e000";
0010                 serial0 = &uarta;
0011         };
0012 
0013         chosen {
0014                 stdout-path = "serial0:115200n8";
0015         };
0016 
0017         /*
0018          * Note that recent version of the device tree compiler (starting with
0019          * version 1.4.2) warn about this node containing a reg property, but
0020          * missing a unit-address. However, the bootloader on these Chromebook
0021          * devices relies on the full name of this node to be exactly /memory.
0022          * Adding the unit-address causes the bootloader to create a /memory
0023          * node and write the memory bank configuration to that node, which in
0024          * turn leads the kernel to believe that the device has 2 GiB of
0025          * memory instead of the amount detected by the bootloader.
0026          *
0027          * The name of this node is effectively ABI and must not be changed.
0028          */
0029         memory {
0030                 device_type = "memory";
0031                 reg = <0x0 0x80000000 0x0 0x80000000>;
0032         };
0033 
0034         /delete-node/ memory@80000000;
0035 
0036         host1x@50000000 {
0037                 hdmi@54280000 {
0038                         status = "okay";
0039 
0040                         vdd-supply = <&vdd_3v3_hdmi>;
0041                         pll-supply = <&vdd_hdmi_pll>;
0042                         hdmi-supply = <&vdd_5v0_hdmi>;
0043 
0044                         nvidia,ddc-i2c-bus = <&hdmi_ddc>;
0045                         nvidia,hpd-gpio =
0046                                 <&gpio TEGRA_GPIO(N, 7) GPIO_ACTIVE_HIGH>;
0047                 };
0048 
0049                 sor@54540000 {
0050                         status = "okay";
0051 
0052                         avdd-io-hdmi-dp-supply = <&vdd_3v3_hdmi>;
0053                         vdd-hdmi-dp-pll-supply = <&vdd_hdmi_pll>;
0054 
0055                         nvidia,dpaux = <&dpaux>;
0056                         nvidia,panel = <&panel>;
0057                 };
0058 
0059                 dpaux@545c0000 {
0060                         vdd-supply = <&vdd_3v3_panel>;
0061                         status = "okay";
0062                 };
0063         };
0064 
0065         gpu@57000000 {
0066                 status = "okay";
0067 
0068                 vdd-supply = <&vdd_gpu>;
0069         };
0070 
0071         serial@70006000 {
0072                 /* Debug connector on the bottom of the board near SD card. */
0073                 status = "okay";
0074         };
0075 
0076         pwm@7000a000 {
0077                 status = "okay";
0078         };
0079 
0080         i2c@7000c000 {
0081                 status = "okay";
0082                 clock-frequency = <100000>;
0083 
0084                 acodec: audio-codec@10 {
0085                         compatible = "maxim,max98090";
0086                         reg = <0x10>;
0087                         interrupt-parent = <&gpio>;
0088                         interrupts = <TEGRA_GPIO(H, 4) IRQ_TYPE_EDGE_FALLING>;
0089                 };
0090 
0091                 tmp451: temperature-sensor@4c {
0092                         compatible = "ti,tmp451";
0093                         reg = <0x4c>;
0094                         interrupt-parent = <&gpio>;
0095                         interrupts = <TEGRA_GPIO(I, 6) IRQ_TYPE_EDGE_FALLING>;
0096 
0097                         #thermal-sensor-cells = <1>;
0098                 };
0099         };
0100 
0101         i2c@7000c400 {
0102                 status = "okay";
0103                 clock-frequency = <100000>;
0104 
0105                 trackpad@15 {
0106                         compatible = "elan,ekth3000";
0107                         reg = <0x15>;
0108                         interrupt-parent = <&gpio>;
0109                         interrupts = <TEGRA_GPIO(W, 3) IRQ_TYPE_EDGE_FALLING>;
0110                         wakeup-source;
0111                 };
0112         };
0113 
0114         i2c@7000c500 {
0115                 status = "okay";
0116                 clock-frequency = <400000>;
0117 
0118                 tpm@20 {
0119                         compatible = "infineon,slb9645tt";
0120                         reg = <0x20>;
0121                 };
0122         };
0123 
0124         hdmi_ddc: i2c@7000c700 {
0125                 status = "okay";
0126                 clock-frequency = <100000>;
0127         };
0128 
0129         i2c@7000d000 {
0130                 status = "okay";
0131                 clock-frequency = <400000>;
0132 
0133                 pmic: pmic@40 {
0134                         compatible = "ams,as3722";
0135                         reg = <0x40>;
0136                         interrupts = <0 86 IRQ_TYPE_LEVEL_HIGH>;
0137 
0138                         ams,system-power-controller;
0139 
0140                         #interrupt-cells = <2>;
0141                         interrupt-controller;
0142 
0143                         gpio-controller;
0144                         #gpio-cells = <2>;
0145 
0146                         pinctrl-names = "default";
0147                         pinctrl-0 = <&as3722_default>;
0148 
0149                         as3722_default: pinmux {
0150                                 gpio0 {
0151                                         pins = "gpio0";
0152                                         function = "gpio";
0153                                         bias-pull-down;
0154                                 };
0155 
0156                                 gpio1 {
0157                                         pins = "gpio1";
0158                                         function = "gpio";
0159                                         bias-pull-up;
0160                                 };
0161 
0162                                 gpio2_4_7 {
0163                                         pins = "gpio2", "gpio4", "gpio7";
0164                                         function = "gpio";
0165                                         bias-pull-up;
0166                                 };
0167 
0168                                 gpio3_6 {
0169                                         pins = "gpio3", "gpio6";
0170                                         bias-high-impedance;
0171                                 };
0172 
0173                                 gpio5 {
0174                                         pins = "gpio5";
0175                                         function = "clk32k-out";
0176                                         bias-pull-down;
0177                                 };
0178                         };
0179 
0180                         regulators {
0181                                 vsup-sd2-supply = <&vdd_5v0_sys>;
0182                                 vsup-sd3-supply = <&vdd_5v0_sys>;
0183                                 vsup-sd4-supply = <&vdd_5v0_sys>;
0184                                 vsup-sd5-supply = <&vdd_5v0_sys>;
0185                                 vin-ldo0-supply = <&vdd_1v35_lp0>;
0186                                 vin-ldo1-6-supply = <&vdd_3v3_run>;
0187                                 vin-ldo2-5-7-supply = <&vddio_1v8>;
0188                                 vin-ldo3-4-supply = <&vdd_3v3_sys>;
0189                                 vin-ldo9-10-supply = <&vdd_5v0_sys>;
0190                                 vin-ldo11-supply = <&vdd_3v3_run>;
0191 
0192                                 vdd_cpu: sd0 {
0193                                         regulator-name = "+VDD_CPU_AP";
0194                                         regulator-min-microvolt = <700000>;
0195                                         regulator-max-microvolt = <1350000>;
0196                                         regulator-min-microamp = <3500000>;
0197                                         regulator-max-microamp = <3500000>;
0198                                         regulator-always-on;
0199                                         regulator-boot-on;
0200                                         ams,ext-control = <2>;
0201                                 };
0202 
0203                                 sd1 {
0204                                         regulator-name = "+VDD_CORE";
0205                                         regulator-min-microvolt = <700000>;
0206                                         regulator-max-microvolt = <1350000>;
0207                                         regulator-min-microamp = <2500000>;
0208                                         regulator-max-microamp = <4000000>;
0209                                         regulator-always-on;
0210                                         regulator-boot-on;
0211                                         ams,ext-control = <1>;
0212                                 };
0213 
0214                                 vdd_1v35_lp0: sd2 {
0215                                         regulator-name = "+1.35V_LP0(sd2)";
0216                                         regulator-min-microvolt = <1350000>;
0217                                         regulator-max-microvolt = <1350000>;
0218                                         regulator-always-on;
0219                                         regulator-boot-on;
0220                                 };
0221 
0222                                 sd3 {
0223                                         regulator-name = "+1.35V_LP0(sd3)";
0224                                         regulator-min-microvolt = <1350000>;
0225                                         regulator-max-microvolt = <1350000>;
0226                                         regulator-always-on;
0227                                         regulator-boot-on;
0228                                 };
0229 
0230                                 vdd_1v05_run: sd4 {
0231                                         regulator-name = "+1.05V_RUN";
0232                                         regulator-min-microvolt = <1050000>;
0233                                         regulator-max-microvolt = <1050000>;
0234                                 };
0235 
0236                                 vddio_1v8: sd5 {
0237                                         regulator-name = "+1.8V_VDDIO";
0238                                         regulator-min-microvolt = <1800000>;
0239                                         regulator-max-microvolt = <1800000>;
0240                                         regulator-always-on;
0241                                 };
0242 
0243                                 vdd_gpu: sd6 {
0244                                         regulator-name = "+VDD_GPU_AP";
0245                                         regulator-min-microvolt = <650000>;
0246                                         regulator-max-microvolt = <1200000>;
0247                                         regulator-min-microamp = <3500000>;
0248                                         regulator-max-microamp = <3500000>;
0249                                         regulator-boot-on;
0250                                         regulator-always-on;
0251                                 };
0252 
0253                                 avdd_1v05_run: ldo0 {
0254                                         regulator-name = "+1.05V_RUN_AVDD";
0255                                         regulator-min-microvolt = <1050000>;
0256                                         regulator-max-microvolt = <1050000>;
0257                                         regulator-boot-on;
0258                                         regulator-always-on;
0259                                         ams,ext-control = <1>;
0260                                 };
0261 
0262                                 ldo1 {
0263                                         regulator-name = "+1.8V_RUN_CAM";
0264                                         regulator-min-microvolt = <1800000>;
0265                                         regulator-max-microvolt = <1800000>;
0266                                 };
0267 
0268                                 ldo2 {
0269                                         regulator-name = "+1.2V_GEN_AVDD";
0270                                         regulator-min-microvolt = <1200000>;
0271                                         regulator-max-microvolt = <1200000>;
0272                                         regulator-boot-on;
0273                                         regulator-always-on;
0274                                 };
0275 
0276                                 ldo3 {
0277                                         regulator-name = "+1.00V_LP0_VDD_RTC";
0278                                         regulator-min-microvolt = <1000000>;
0279                                         regulator-max-microvolt = <1000000>;
0280                                         regulator-boot-on;
0281                                         regulator-always-on;
0282                                         ams,enable-tracking;
0283                                 };
0284 
0285                                 vdd_run_cam: ldo4 {
0286                                         regulator-name = "+3.3V_RUN_CAM";
0287                                         regulator-min-microvolt = <2800000>;
0288                                         regulator-max-microvolt = <2800000>;
0289                                 };
0290 
0291                                 ldo5 {
0292                                         regulator-name = "+1.2V_RUN_CAM_FRONT";
0293                                         regulator-min-microvolt = <1200000>;
0294                                         regulator-max-microvolt = <1200000>;
0295                                 };
0296 
0297                                 vddio_sdmmc3: ldo6 {
0298                                         regulator-name = "+VDDIO_SDMMC3";
0299                                         regulator-min-microvolt = <1800000>;
0300                                         regulator-max-microvolt = <3300000>;
0301                                 };
0302 
0303                                 ldo7 {
0304                                         regulator-name = "+1.05V_RUN_CAM_REAR";
0305                                         regulator-min-microvolt = <1050000>;
0306                                         regulator-max-microvolt = <1050000>;
0307                                 };
0308 
0309                                 ldo9 {
0310                                         regulator-name = "+2.8V_RUN_TOUCH";
0311                                         regulator-min-microvolt = <2800000>;
0312                                         regulator-max-microvolt = <2800000>;
0313                                 };
0314 
0315                                 ldo10 {
0316                                         regulator-name = "+2.8V_RUN_CAM_AF";
0317                                         regulator-min-microvolt = <2800000>;
0318                                         regulator-max-microvolt = <2800000>;
0319                                 };
0320 
0321                                 ldo11 {
0322                                         regulator-name = "+1.8V_RUN_VPP_FUSE";
0323                                         regulator-min-microvolt = <1800000>;
0324                                         regulator-max-microvolt = <1800000>;
0325                                 };
0326                         };
0327                 };
0328         };
0329 
0330         spi@7000d400 {
0331                 status = "okay";
0332 
0333                 cros_ec: cros-ec@0 {
0334                         compatible = "google,cros-ec-spi";
0335                         spi-max-frequency = <3000000>;
0336                         interrupt-parent = <&gpio>;
0337                         interrupts = <TEGRA_GPIO(C, 7) IRQ_TYPE_LEVEL_LOW>;
0338                         reg = <0>;
0339 
0340                         google,cros-ec-spi-msg-delay = <2000>;
0341 
0342                         i2c-tunnel {
0343                                 compatible = "google,cros-ec-i2c-tunnel";
0344                                 #address-cells = <1>;
0345                                 #size-cells = <0>;
0346 
0347                                 google,remote-bus = <0>;
0348 
0349                                 charger: bq24735@9 {
0350                                         compatible = "ti,bq24735";
0351                                         reg = <0x9>;
0352                                         interrupt-parent = <&gpio>;
0353                                         interrupts = <TEGRA_GPIO(J, 0)
0354                                                         IRQ_TYPE_EDGE_BOTH>;
0355                                         ti,ac-detect-gpios = <&gpio
0356                                                         TEGRA_GPIO(J, 0)
0357                                                         GPIO_ACTIVE_HIGH>;
0358                                         ti,external-control;
0359                                 };
0360 
0361                                 battery: sbs-battery@b {
0362                                         compatible = "sbs,sbs-battery";
0363                                         reg = <0xb>;
0364                                         sbs,i2c-retry-count = <2>;
0365                                         sbs,poll-retry-count = <10>;
0366                                         power-supplies = <&charger>;
0367                                 };
0368                         };
0369                 };
0370         };
0371 
0372         spi@7000da00 {
0373                 status = "okay";
0374                 spi-max-frequency = <25000000>;
0375 
0376                 flash@0 {
0377                         compatible = "winbond,w25q32dw", "jedec,spi-nor";
0378                         spi-max-frequency = <25000000>;
0379                         reg = <0>;
0380                 };
0381         };
0382 
0383         pmc@7000e400 {
0384                 nvidia,invert-interrupt;
0385                 nvidia,suspend-mode = <0>;
0386                 nvidia,cpu-pwr-good-time = <500>;
0387                 nvidia,cpu-pwr-off-time = <300>;
0388                 nvidia,core-pwr-good-time = <641 3845>;
0389                 nvidia,core-pwr-off-time = <61036>;
0390                 nvidia,core-power-req-active-high;
0391                 nvidia,sys-clock-req-active-high;
0392         };
0393 
0394         cec@70015000 {
0395                 status = "okay";
0396         };
0397 
0398         hda@70030000 {
0399                 status = "okay";
0400         };
0401 
0402         usb@70090000 {
0403                 phys = <&{/padctl@7009f000/pads/usb2/lanes/usb2-0}>, /* 1st USB A */
0404                        <&{/padctl@7009f000/pads/usb2/lanes/usb2-1}>, /* Internal USB */
0405                        <&{/padctl@7009f000/pads/usb2/lanes/usb2-2}>, /* 2nd USB A */
0406                        <&{/padctl@7009f000/pads/pcie/lanes/pcie-0}>, /* 1st USB A */
0407                        <&{/padctl@7009f000/pads/pcie/lanes/pcie-1}>; /* 2nd USB A */
0408                 phy-names = "usb2-0", "usb2-1", "usb2-2", "usb3-0", "usb3-1";
0409 
0410                 avddio-pex-supply = <&vdd_1v05_run>;
0411                 dvddio-pex-supply = <&vdd_1v05_run>;
0412                 avdd-usb-supply = <&vdd_3v3_lp0>;
0413                 avdd-pll-utmip-supply = <&vddio_1v8>;
0414                 avdd-pll-erefe-supply = <&avdd_1v05_run>;
0415                 avdd-usb-ss-pll-supply = <&vdd_1v05_run>;
0416                 hvdd-usb-ss-supply = <&vdd_3v3_lp0>;
0417                 hvdd-usb-ss-pll-e-supply = <&vdd_3v3_lp0>;
0418 
0419                 status = "okay";
0420         };
0421 
0422         padctl@7009f000 {
0423                 status = "okay";
0424 
0425                 avdd-pll-utmip-supply = <&vddio_1v8>;
0426                 avdd-pll-erefe-supply = <&avdd_1v05_run>;
0427                 avdd-pex-pll-supply = <&vdd_1v05_run>;
0428                 hvdd-pex-pll-e-supply = <&vdd_3v3_lp0>;
0429 
0430                 pads {
0431                         usb2 {
0432                                 status = "okay";
0433 
0434                                 lanes {
0435                                         usb2-0 {
0436                                                 nvidia,function = "xusb";
0437                                                 status = "okay";
0438                                         };
0439 
0440                                         usb2-1 {
0441                                                 nvidia,function = "xusb";
0442                                                 status = "okay";
0443                                         };
0444 
0445                                         usb2-2 {
0446                                                 nvidia,function = "xusb";
0447                                                 status = "okay";
0448                                         };
0449                                 };
0450                         };
0451 
0452                         pcie {
0453                                 status = "okay";
0454 
0455                                 lanes {
0456                                         pcie-0 {
0457                                                 nvidia,function = "usb3-ss";
0458                                                 status = "okay";
0459                                         };
0460 
0461                                         pcie-1 {
0462                                                 nvidia,function = "usb3-ss";
0463                                                 status = "okay";
0464                                         };
0465                                 };
0466                         };
0467                 };
0468 
0469                 ports {
0470                         usb2-0 {
0471                                 vbus-supply = <&vdd_usb1_vbus>;
0472                                 status = "okay";
0473                                 mode = "otg";
0474                                 usb-role-switch;
0475                         };
0476 
0477                         usb2-1 {
0478                                 vbus-supply = <&vdd_run_cam>;
0479                                 status = "okay";
0480                                 mode = "host";
0481                         };
0482 
0483                         usb2-2 {
0484                                 vbus-supply = <&vdd_usb3_vbus>;
0485                                 status = "okay";
0486                                 mode = "host";
0487                         };
0488 
0489                         usb3-0 {
0490                                 nvidia,usb2-companion = <0>;
0491                                 status = "okay";
0492                         };
0493 
0494                         usb3-1 {
0495                                 nvidia,usb2-companion = <1>;
0496                                 status = "okay";
0497                         };
0498                 };
0499         };
0500 
0501         sdhci0_pwrseq: sdhci0_pwrseq {
0502                 compatible = "mmc-pwrseq-simple";
0503 
0504                 reset-gpios = <&gpio TEGRA_GPIO(X, 7) GPIO_ACTIVE_LOW>;
0505         };
0506 
0507         mmc@700b0000 { /* WiFi/BT on this bus */
0508                 status = "okay";
0509                 bus-width = <4>;
0510                 no-1-8-v;
0511                 non-removable;
0512                 mmc-pwrseq = <&sdhci0_pwrseq>;
0513                 vmmc-supply = <&vdd_3v3_lp0>;
0514                 vqmmc-supply = <&vddio_1v8>;
0515                 keep-power-in-suspend;
0516         };
0517 
0518         mmc@700b0400 { /* SD Card on this bus */
0519                 status = "okay";
0520                 cd-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_LOW>;
0521                 power-gpios = <&gpio TEGRA_GPIO(R, 0) GPIO_ACTIVE_HIGH>;
0522                 bus-width = <4>;
0523                 no-1-8-v;
0524                 vqmmc-supply = <&vddio_sdmmc3>;
0525         };
0526 
0527         mmc@700b0600 { /* eMMC on this bus */
0528                 status = "okay";
0529                 bus-width = <8>;
0530                 no-1-8-v;
0531                 non-removable;
0532         };
0533 
0534         /* CPU DFLL clock */
0535         clock@70110000 {
0536                 status = "okay";
0537                 vdd-cpu-supply = <&vdd_cpu>;
0538                 nvidia,i2c-fs-rate = <400000>;
0539         };
0540 
0541         ahub@70300000 {
0542                 i2s@70301100 {
0543                         status = "okay";
0544                 };
0545         };
0546 
0547         backlight: backlight {
0548                 compatible = "pwm-backlight";
0549 
0550                 enable-gpios = <&gpio TEGRA_GPIO(H, 2) GPIO_ACTIVE_HIGH>;
0551                 power-supply = <&vdd_led>;
0552                 pwms = <&pwm 1 1000000>;
0553 
0554                 default-brightness-level = <224>;
0555                 brightness-levels =
0556                         <  0   1   2   3   4   5   6   7
0557                            8   9  10  11  12  13  14  15
0558                           16  17  18  19  20  21  22  23
0559                           24  25  26  27  28  29  30  31
0560                           32  33  34  35  36  37  38  39
0561                           40  41  42  43  44  45  46  47
0562                           48  49  50  51  52  53  54  55
0563                           56  57  58  59  60  61  62  63
0564                           64  65  66  67  68  69  70  71
0565                           72  73  74  75  76  77  78  79
0566                           80  81  82  83  84  85  86  87
0567                           88  89  90  91  92  93  94  95
0568                           96  97  98  99 100 101 102 103
0569                          104 105 106 107 108 109 110 111
0570                          112 113 114 115 116 117 118 119
0571                          120 121 122 123 124 125 126 127
0572                          128 129 130 131 132 133 134 135
0573                          136 137 138 139 140 141 142 143
0574                          144 145 146 147 148 149 150 151
0575                          152 153 154 155 156 157 158 159
0576                          160 161 162 163 164 165 166 167
0577                          168 169 170 171 172 173 174 175
0578                          176 177 178 179 180 181 182 183
0579                          184 185 186 187 188 189 190 191
0580                          192 193 194 195 196 197 198 199
0581                          200 201 202 203 204 205 206 207
0582                          208 209 210 211 212 213 214 215
0583                          216 217 218 219 220 221 222 223
0584                          224 225 226 227 228 229 230 231
0585                          232 233 234 235 236 237 238 239
0586                          240 241 242 243 244 245 246 247
0587                          248 249 250 251 252 253 254 255
0588                          256>;
0589         };
0590 
0591         clk32k_in: clock-32k {
0592                 compatible = "fixed-clock";
0593                 clock-frequency = <32768>;
0594                 #clock-cells = <0>;
0595         };
0596 
0597         cpus {
0598                 cpu@0 {
0599                         vdd-cpu-supply = <&vdd_cpu>;
0600                 };
0601         };
0602 
0603         gpio-keys {
0604                 compatible = "gpio-keys";
0605 
0606                 switch-lid {
0607                         label = "Lid";
0608                         gpios = <&gpio TEGRA_GPIO(R, 4) GPIO_ACTIVE_LOW>;
0609                         linux,input-type = <5>;
0610                         linux,code = <KEY_RESERVED>;
0611                         debounce-interval = <1>;
0612                         wakeup-source;
0613                 };
0614 
0615                 key-power {
0616                         label = "Power";
0617                         gpios = <&gpio TEGRA_GPIO(Q, 0) GPIO_ACTIVE_LOW>;
0618                         linux,code = <KEY_POWER>;
0619                         debounce-interval = <30>;
0620                         wakeup-source;
0621                 };
0622         };
0623 
0624         vdd_mux: regulator-mux {
0625                 compatible = "regulator-fixed";
0626                 regulator-name = "+VDD_MUX";
0627                 regulator-min-microvolt = <12000000>;
0628                 regulator-max-microvolt = <12000000>;
0629                 regulator-always-on;
0630                 regulator-boot-on;
0631         };
0632 
0633         vdd_5v0_sys: regulator-5v0sys {
0634                 compatible = "regulator-fixed";
0635                 regulator-name = "+5V_SYS";
0636                 regulator-min-microvolt = <5000000>;
0637                 regulator-max-microvolt = <5000000>;
0638                 regulator-always-on;
0639                 regulator-boot-on;
0640                 vin-supply = <&vdd_mux>;
0641         };
0642 
0643         vdd_3v3_sys: regulator-3v3sys {
0644                 compatible = "regulator-fixed";
0645                 regulator-name = "+3.3V_SYS";
0646                 regulator-min-microvolt = <3300000>;
0647                 regulator-max-microvolt = <3300000>;
0648                 regulator-always-on;
0649                 regulator-boot-on;
0650                 vin-supply = <&vdd_mux>;
0651         };
0652 
0653         vdd_3v3_run: regulator-3v3run {
0654                 compatible = "regulator-fixed";
0655                 regulator-name = "+3.3V_RUN";
0656                 regulator-min-microvolt = <3300000>;
0657                 regulator-max-microvolt = <3300000>;
0658                 regulator-always-on;
0659                 regulator-boot-on;
0660                 gpio = <&pmic 1 GPIO_ACTIVE_HIGH>;
0661                 enable-active-high;
0662                 vin-supply = <&vdd_3v3_sys>;
0663         };
0664 
0665         vdd_3v3_hdmi: regulator-3v3hdmi {
0666                 compatible = "regulator-fixed";
0667                 regulator-name = "+3.3V_AVDD_HDMI_AP_GATED";
0668                 regulator-min-microvolt = <3300000>;
0669                 regulator-max-microvolt = <3300000>;
0670                 vin-supply = <&vdd_3v3_run>;
0671         };
0672 
0673         vdd_led: regulator-led {
0674                 compatible = "regulator-fixed";
0675                 regulator-name = "+VDD_LED";
0676                 gpio = <&gpio TEGRA_GPIO(P, 2) GPIO_ACTIVE_HIGH>;
0677                 enable-active-high;
0678                 vin-supply = <&vdd_mux>;
0679         };
0680 
0681         vdd_5v0_ts: regulator-ts {
0682                 compatible = "regulator-fixed";
0683                 regulator-name = "+5V_VDD_TS_SW";
0684                 regulator-min-microvolt = <5000000>;
0685                 regulator-max-microvolt = <5000000>;
0686                 regulator-boot-on;
0687                 gpio = <&gpio TEGRA_GPIO(K, 1) GPIO_ACTIVE_HIGH>;
0688                 enable-active-high;
0689                 vin-supply = <&vdd_5v0_sys>;
0690         };
0691 
0692         vdd_usb1_vbus: regulator-usb1 {
0693                 compatible = "regulator-fixed";
0694                 regulator-name = "+5V_USB_HS";
0695                 regulator-min-microvolt = <5000000>;
0696                 regulator-max-microvolt = <5000000>;
0697                 gpio = <&gpio TEGRA_GPIO(N, 4) GPIO_ACTIVE_HIGH>;
0698                 enable-active-high;
0699                 gpio-open-drain;
0700                 vin-supply = <&vdd_5v0_sys>;
0701         };
0702 
0703         vdd_usb3_vbus: regulator-usb3 {
0704                 compatible = "regulator-fixed";
0705                 regulator-name = "+5V_USB_SS";
0706                 regulator-min-microvolt = <5000000>;
0707                 regulator-max-microvolt = <5000000>;
0708                 gpio = <&gpio TEGRA_GPIO(N, 5) GPIO_ACTIVE_HIGH>;
0709                 enable-active-high;
0710                 gpio-open-drain;
0711                 vin-supply = <&vdd_5v0_sys>;
0712         };
0713 
0714         vdd_3v3_panel: regulator-panel {
0715                 compatible = "regulator-fixed";
0716                 regulator-name = "+3.3V_PANEL";
0717                 regulator-min-microvolt = <3300000>;
0718                 regulator-max-microvolt = <3300000>;
0719                 gpio = <&pmic 4 GPIO_ACTIVE_HIGH>;
0720                 enable-active-high;
0721                 vin-supply = <&vdd_3v3_run>;
0722         };
0723 
0724         vdd_3v3_lp0: regulator-lp0 {
0725                 compatible = "regulator-fixed";
0726                 regulator-name = "+3.3V_LP0";
0727                 regulator-min-microvolt = <3300000>;
0728                 regulator-max-microvolt = <3300000>;
0729                 /*
0730                  * TODO: find a way to wire this up with the USB EHCI
0731                  * controllers so that it can be enabled on demand.
0732                  */
0733                 regulator-always-on;
0734                 gpio = <&pmic 2 GPIO_ACTIVE_HIGH>;
0735                 enable-active-high;
0736                 vin-supply = <&vdd_3v3_sys>;
0737         };
0738 
0739         vdd_hdmi_pll: regulator-hdmipll {
0740                 compatible = "regulator-fixed";
0741                 regulator-name = "+1.05V_RUN_AVDD_HDMI_PLL";
0742                 regulator-min-microvolt = <1050000>;
0743                 regulator-max-microvolt = <1050000>;
0744                 gpio = <&gpio TEGRA_GPIO(H, 7) GPIO_ACTIVE_LOW>;
0745                 vin-supply = <&vdd_1v05_run>;
0746         };
0747 
0748         vdd_5v0_hdmi: regulator-hdmicon {
0749                 compatible = "regulator-fixed";
0750                 regulator-name = "+5V_HDMI_CON";
0751                 regulator-min-microvolt = <5000000>;
0752                 regulator-max-microvolt = <5000000>;
0753                 gpio = <&gpio TEGRA_GPIO(K, 6) GPIO_ACTIVE_HIGH>;
0754                 enable-active-high;
0755                 vin-supply = <&vdd_5v0_sys>;
0756         };
0757 
0758         sound {
0759                 nvidia,audio-routing =
0760                         "Headphones", "HPR",
0761                         "Headphones", "HPL",
0762                         "Speakers", "SPKR",
0763                         "Speakers", "SPKL",
0764                         "Mic Jack", "MICBIAS",
0765                         "DMICL", "Int Mic",
0766                         "DMICR", "Int Mic",
0767                         "IN34", "Mic Jack";
0768 
0769                 nvidia,i2s-controller = <&tegra_i2s1>;
0770                 nvidia,audio-codec = <&acodec>;
0771 
0772                 clocks = <&tegra_car TEGRA124_CLK_PLL_A>,
0773                          <&tegra_car TEGRA124_CLK_PLL_A_OUT0>,
0774                          <&tegra_pmc TEGRA_PMC_CLK_OUT_1>;
0775                 clock-names = "pll_a", "pll_a_out0", "mclk";
0776 
0777                 assigned-clocks = <&tegra_car TEGRA124_CLK_EXTERN1>,
0778                                   <&tegra_pmc TEGRA_PMC_CLK_OUT_1>;
0779 
0780                 assigned-clock-parents = <&tegra_car TEGRA124_CLK_PLL_A_OUT0>,
0781                                          <&tegra_car TEGRA124_CLK_EXTERN1>;
0782 
0783                 nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(I, 7) GPIO_ACTIVE_HIGH>;
0784                 nvidia,mic-det-gpios =
0785                                 <&gpio TEGRA_GPIO(R, 7) GPIO_ACTIVE_HIGH>;
0786         };
0787 
0788         gpio-restart {
0789                 compatible = "gpio-restart";
0790                 gpios = <&gpio TEGRA_GPIO(I, 5) GPIO_ACTIVE_LOW>;
0791                 priority = <200>;
0792         };
0793 
0794         cpus {
0795                 cpu0: cpu@0 {
0796                         #cooling-cells = <2>;
0797                 };
0798 
0799                 cpu1: cpu@1 {
0800                         #cooling-cells = <2>;
0801                 };
0802 
0803                 cpu2: cpu@2 {
0804                         #cooling-cells = <2>;
0805                 };
0806 
0807                 cpu3: cpu@3 {
0808                         #cooling-cells = <2>;
0809                 };
0810         };
0811 
0812         thermal-zones {
0813                 cpu-skin-thermal {
0814                         polling-delay-passive = <1000>; /* milliseconds */
0815                         polling-delay = <5000>; /* milliseconds */
0816 
0817                         thermal-sensors = <&tmp451 0>;
0818 
0819                         trips {
0820                                 cpu_passive_trip: cpu-alert0 {
0821                                         /* throttle at 70C until temperature drops to 69.8C */
0822                                         temperature = <70000>;
0823                                         hysteresis = <200>;
0824                                         type = "passive";
0825                                 };
0826                         };
0827 
0828                         cooling-maps {
0829                                 map0 {
0830                                         trip = <&cpu_passive_trip>;
0831                                         cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
0832                                                          <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
0833                                                          <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
0834                                                          <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
0835                                 };
0836                         };
0837                 };
0838         };
0839 };
0840 
0841 #include "cros-ec-keyboard.dtsi"