Thierry Reding | 5780c20 | 2014-12-18 14:58:20 +0100 | [diff] [blame] | 1 | #include <dt-bindings/input/input.h> |
Stephen Warren | 1bd0bd4 | 2012-10-17 16:38:21 -0600 | [diff] [blame] | 2 | #include "tegra30.dtsi" |
Peter De Schrijver | 64c4e9f | 2011-12-14 17:03:26 +0200 | [diff] [blame] | 3 | |
Laxman Dewangan | 640a7af | 2012-08-09 16:30:38 +0530 | [diff] [blame] | 4 | /** |
| 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. |
Marcel Ziswiler | db37406 | 2015-04-10 23:35:56 +0200 | [diff] [blame] | 16 | * The sticker will have number like 600-81291-1000-002 C.3. In this 4th |
Laxman Dewangan | 640a7af | 2012-08-09 16:30:38 +0530 | [diff] [blame] | 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 |
| 19 | * follows: |
| 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 |
| 24 | * wide. |
| 25 | */ |
| 26 | |
Peter De Schrijver | 64c4e9f | 2011-12-14 17:03:26 +0200 | [diff] [blame] | 27 | / { |
| 28 | model = "NVIDIA Tegra30 Cardhu evaluation board"; |
| 29 | compatible = "nvidia,cardhu", "nvidia,tegra30"; |
| 30 | |
Stephen Warren | 553c0a2 | 2013-12-09 14:43:59 -0700 | [diff] [blame] | 31 | aliases { |
Stephen Warren | 763fbff | 2014-02-13 17:18:26 -0700 | [diff] [blame] | 32 | rtc0 = "/i2c@7000d000/tps65911@2d"; |
Stephen Warren | 553c0a2 | 2013-12-09 14:43:59 -0700 | [diff] [blame] | 33 | rtc1 = "/rtc@7000e000"; |
Olof Johansson | c4574aa | 2014-11-11 12:49:30 -0800 | [diff] [blame] | 34 | serial0 = &uarta; |
| 35 | serial1 = &uartc; |
Stephen Warren | 553c0a2 | 2013-12-09 14:43:59 -0700 | [diff] [blame] | 36 | }; |
| 37 | |
Jon Hunter | f5bbb32 | 2016-02-09 13:51:59 +0000 | [diff] [blame] | 38 | chosen { |
| 39 | stdout-path = "serial0:115200n8"; |
| 40 | }; |
| 41 | |
Peter De Schrijver | 64c4e9f | 2011-12-14 17:03:26 +0200 | [diff] [blame] | 42 | memory { |
Stephen Warren | 95decf8 | 2012-05-11 16:11:38 -0600 | [diff] [blame] | 43 | reg = <0x80000000 0x40000000>; |
Peter De Schrijver | 64c4e9f | 2011-12-14 17:03:26 +0200 | [diff] [blame] | 44 | }; |
| 45 | |
Rob Herring | 508d690 | 2017-03-21 21:03:06 -0500 | [diff] [blame] | 46 | pcie@3000 { |
Jay Agarwal | 89e7ada | 2013-08-09 16:49:27 +0200 | [diff] [blame] | 47 | status = "okay"; |
Thierry Reding | cca8614 | 2014-05-28 16:49:12 +0200 | [diff] [blame] | 48 | |
| 49 | /* AVDD_PEXA and VDD_PEXA inputs are grounded on Cardhu. */ |
| 50 | avdd-pexb-supply = <&ldo1_reg>; |
| 51 | vdd-pexb-supply = <&ldo1_reg>; |
| 52 | avdd-pex-pll-supply = <&ldo1_reg>; |
| 53 | hvdd-pex-supply = <&pex_hvdd_3v3_reg>; |
| 54 | vddio-pex-ctl-supply = <&sys_3v3_reg>; |
| 55 | avdd-plle-supply = <&ldo2_reg>; |
| 56 | |
Jay Agarwal | 89e7ada | 2013-08-09 16:49:27 +0200 | [diff] [blame] | 57 | pci@1,0 { |
| 58 | nvidia,num-lanes = <4>; |
| 59 | }; |
| 60 | |
| 61 | pci@2,0 { |
| 62 | nvidia,num-lanes = <1>; |
| 63 | }; |
| 64 | |
| 65 | pci@3,0 { |
| 66 | status = "okay"; |
| 67 | nvidia,num-lanes = <1>; |
| 68 | }; |
| 69 | }; |
| 70 | |
Thierry Reding | 02b1fea | 2013-12-19 16:59:26 +0100 | [diff] [blame] | 71 | host1x@50000000 { |
| 72 | dc@54200000 { |
| 73 | rgb { |
| 74 | status = "okay"; |
| 75 | |
| 76 | nvidia,panel = <&panel>; |
| 77 | }; |
| 78 | }; |
| 79 | }; |
| 80 | |
Stephen Warren | 58ecb23 | 2013-11-25 17:53:16 -0700 | [diff] [blame] | 81 | pinmux@70000868 { |
Stephen Warren | e5cbeef | 2012-03-13 13:28:02 -0600 | [diff] [blame] | 82 | pinctrl-names = "default"; |
| 83 | pinctrl-0 = <&state_default>; |
| 84 | |
| 85 | state_default: pinmux { |
| 86 | sdmmc1_clk_pz0 { |
| 87 | nvidia,pins = "sdmmc1_clk_pz0"; |
| 88 | nvidia,function = "sdmmc1"; |
Laxman Dewangan | a47c662 | 2013-12-05 16:14:09 +0530 | [diff] [blame] | 89 | nvidia,pull = <TEGRA_PIN_PULL_NONE>; |
| 90 | nvidia,tristate = <TEGRA_PIN_DISABLE>; |
Stephen Warren | e5cbeef | 2012-03-13 13:28:02 -0600 | [diff] [blame] | 91 | }; |
| 92 | sdmmc1_cmd_pz1 { |
| 93 | nvidia,pins = "sdmmc1_cmd_pz1", |
| 94 | "sdmmc1_dat0_py7", |
| 95 | "sdmmc1_dat1_py6", |
| 96 | "sdmmc1_dat2_py5", |
| 97 | "sdmmc1_dat3_py4"; |
| 98 | nvidia,function = "sdmmc1"; |
Laxman Dewangan | a47c662 | 2013-12-05 16:14:09 +0530 | [diff] [blame] | 99 | nvidia,pull = <TEGRA_PIN_PULL_UP>; |
| 100 | nvidia,tristate = <TEGRA_PIN_DISABLE>; |
Stephen Warren | e5cbeef | 2012-03-13 13:28:02 -0600 | [diff] [blame] | 101 | }; |
Wei Ni | 6fb1113 | 2012-09-21 16:54:59 +0800 | [diff] [blame] | 102 | sdmmc3_clk_pa6 { |
| 103 | nvidia,pins = "sdmmc3_clk_pa6"; |
| 104 | nvidia,function = "sdmmc3"; |
Laxman Dewangan | a47c662 | 2013-12-05 16:14:09 +0530 | [diff] [blame] | 105 | nvidia,pull = <TEGRA_PIN_PULL_NONE>; |
| 106 | nvidia,tristate = <TEGRA_PIN_DISABLE>; |
Wei Ni | 6fb1113 | 2012-09-21 16:54:59 +0800 | [diff] [blame] | 107 | }; |
| 108 | sdmmc3_cmd_pa7 { |
| 109 | nvidia,pins = "sdmmc3_cmd_pa7", |
| 110 | "sdmmc3_dat0_pb7", |
| 111 | "sdmmc3_dat1_pb6", |
| 112 | "sdmmc3_dat2_pb5", |
| 113 | "sdmmc3_dat3_pb4"; |
| 114 | nvidia,function = "sdmmc3"; |
Laxman Dewangan | a47c662 | 2013-12-05 16:14:09 +0530 | [diff] [blame] | 115 | nvidia,pull = <TEGRA_PIN_PULL_UP>; |
| 116 | nvidia,tristate = <TEGRA_PIN_DISABLE>; |
Wei Ni | 6fb1113 | 2012-09-21 16:54:59 +0800 | [diff] [blame] | 117 | }; |
Stephen Warren | e5cbeef | 2012-03-13 13:28:02 -0600 | [diff] [blame] | 118 | sdmmc4_clk_pcc4 { |
| 119 | nvidia,pins = "sdmmc4_clk_pcc4", |
| 120 | "sdmmc4_rst_n_pcc3"; |
| 121 | nvidia,function = "sdmmc4"; |
Laxman Dewangan | a47c662 | 2013-12-05 16:14:09 +0530 | [diff] [blame] | 122 | nvidia,pull = <TEGRA_PIN_PULL_NONE>; |
| 123 | nvidia,tristate = <TEGRA_PIN_DISABLE>; |
Stephen Warren | e5cbeef | 2012-03-13 13:28:02 -0600 | [diff] [blame] | 124 | }; |
| 125 | sdmmc4_dat0_paa0 { |
| 126 | nvidia,pins = "sdmmc4_dat0_paa0", |
| 127 | "sdmmc4_dat1_paa1", |
| 128 | "sdmmc4_dat2_paa2", |
| 129 | "sdmmc4_dat3_paa3", |
| 130 | "sdmmc4_dat4_paa4", |
| 131 | "sdmmc4_dat5_paa5", |
| 132 | "sdmmc4_dat6_paa6", |
| 133 | "sdmmc4_dat7_paa7"; |
| 134 | nvidia,function = "sdmmc4"; |
Laxman Dewangan | a47c662 | 2013-12-05 16:14:09 +0530 | [diff] [blame] | 135 | nvidia,pull = <TEGRA_PIN_PULL_UP>; |
| 136 | nvidia,tristate = <TEGRA_PIN_DISABLE>; |
Stephen Warren | e5cbeef | 2012-03-13 13:28:02 -0600 | [diff] [blame] | 137 | }; |
Stephen Warren | 8c6a385 | 2012-03-27 12:41:37 -0600 | [diff] [blame] | 138 | dap2_fs_pa2 { |
| 139 | nvidia,pins = "dap2_fs_pa2", |
| 140 | "dap2_sclk_pa3", |
| 141 | "dap2_din_pa4", |
| 142 | "dap2_dout_pa5"; |
| 143 | nvidia,function = "i2s1"; |
Laxman Dewangan | a47c662 | 2013-12-05 16:14:09 +0530 | [diff] [blame] | 144 | nvidia,pull = <TEGRA_PIN_PULL_NONE>; |
| 145 | nvidia,tristate = <TEGRA_PIN_DISABLE>; |
Stephen Warren | 8c6a385 | 2012-03-27 12:41:37 -0600 | [diff] [blame] | 146 | }; |
Wei Ni | 6fb1113 | 2012-09-21 16:54:59 +0800 | [diff] [blame] | 147 | sdio3 { |
| 148 | nvidia,pins = "drive_sdio3"; |
Laxman Dewangan | a47c662 | 2013-12-05 16:14:09 +0530 | [diff] [blame] | 149 | nvidia,high-speed-mode = <TEGRA_PIN_DISABLE>; |
| 150 | nvidia,schmitt = <TEGRA_PIN_DISABLE>; |
Wei Ni | 6fb1113 | 2012-09-21 16:54:59 +0800 | [diff] [blame] | 151 | nvidia,pull-down-strength = <46>; |
| 152 | nvidia,pull-up-strength = <42>; |
Laxman Dewangan | a47c662 | 2013-12-05 16:14:09 +0530 | [diff] [blame] | 153 | nvidia,slew-rate-rising = <TEGRA_PIN_SLEW_RATE_FAST>; |
| 154 | nvidia,slew-rate-falling = <TEGRA_PIN_SLEW_RATE_FAST>; |
Wei Ni | 6fb1113 | 2012-09-21 16:54:59 +0800 | [diff] [blame] | 155 | }; |
Laxman Dewangan | ecfd6c7 | 2013-01-16 18:36:12 +0530 | [diff] [blame] | 156 | uart3_txd_pw6 { |
| 157 | nvidia,pins = "uart3_txd_pw6", |
| 158 | "uart3_cts_n_pa1", |
| 159 | "uart3_rts_n_pc0", |
| 160 | "uart3_rxd_pw7"; |
| 161 | nvidia,function = "uartc"; |
Laxman Dewangan | a47c662 | 2013-12-05 16:14:09 +0530 | [diff] [blame] | 162 | nvidia,pull = <TEGRA_PIN_PULL_NONE>; |
| 163 | nvidia,tristate = <TEGRA_PIN_DISABLE>; |
Laxman Dewangan | ecfd6c7 | 2013-01-16 18:36:12 +0530 | [diff] [blame] | 164 | }; |
Stephen Warren | e5cbeef | 2012-03-13 13:28:02 -0600 | [diff] [blame] | 165 | }; |
| 166 | }; |
| 167 | |
Peter De Schrijver | 64c4e9f | 2011-12-14 17:03:26 +0200 | [diff] [blame] | 168 | serial@70006000 { |
Stephen Warren | 2a5fdc9 | 2012-05-11 17:32:56 -0600 | [diff] [blame] | 169 | status = "okay"; |
Peter De Schrijver | 64c4e9f | 2011-12-14 17:03:26 +0200 | [diff] [blame] | 170 | }; |
| 171 | |
Laxman Dewangan | ecfd6c7 | 2013-01-16 18:36:12 +0530 | [diff] [blame] | 172 | serial@70006200 { |
| 173 | compatible = "nvidia,tegra30-hsuart"; |
| 174 | status = "okay"; |
Laxman Dewangan | ecfd6c7 | 2013-01-16 18:36:12 +0530 | [diff] [blame] | 175 | }; |
| 176 | |
Thierry Reding | 02b1fea | 2013-12-19 16:59:26 +0100 | [diff] [blame] | 177 | pwm@7000a000 { |
| 178 | status = "okay"; |
| 179 | }; |
| 180 | |
| 181 | panelddc: i2c@7000c000 { |
Stephen Warren | 2a5fdc9 | 2012-05-11 17:32:56 -0600 | [diff] [blame] | 182 | status = "okay"; |
Peter De Schrijver | 64c4e9f | 2011-12-14 17:03:26 +0200 | [diff] [blame] | 183 | clock-frequency = <100000>; |
| 184 | }; |
| 185 | |
| 186 | i2c@7000c400 { |
Stephen Warren | 2a5fdc9 | 2012-05-11 17:32:56 -0600 | [diff] [blame] | 187 | status = "okay"; |
Peter De Schrijver | 64c4e9f | 2011-12-14 17:03:26 +0200 | [diff] [blame] | 188 | clock-frequency = <100000>; |
| 189 | }; |
| 190 | |
| 191 | i2c@7000c500 { |
Stephen Warren | 2a5fdc9 | 2012-05-11 17:32:56 -0600 | [diff] [blame] | 192 | status = "okay"; |
Peter De Schrijver | 64c4e9f | 2011-12-14 17:03:26 +0200 | [diff] [blame] | 193 | clock-frequency = <100000>; |
Laxman Dewangan | b46b0b5 | 2012-04-23 17:41:36 +0530 | [diff] [blame] | 194 | |
| 195 | /* ALS and Proximity sensor */ |
| 196 | isl29028@44 { |
Arnaud Ebalard | 6298123 | 2014-12-16 22:21:16 +0100 | [diff] [blame] | 197 | compatible = "isil,isl29028"; |
Laxman Dewangan | b46b0b5 | 2012-04-23 17:41:36 +0530 | [diff] [blame] | 198 | reg = <0x44>; |
| 199 | interrupt-parent = <&gpio>; |
Stephen Warren | 6cecf91 | 2013-02-13 12:51:51 -0700 | [diff] [blame] | 200 | interrupts = <TEGRA_GPIO(L, 0) IRQ_TYPE_LEVEL_HIGH>; |
Laxman Dewangan | b46b0b5 | 2012-04-23 17:41:36 +0530 | [diff] [blame] | 201 | }; |
Bryan Wu | 40431d1 | 2014-02-07 15:54:58 -0800 | [diff] [blame] | 202 | |
| 203 | i2cmux@70 { |
| 204 | compatible = "nxp,pca9546"; |
| 205 | #address-cells = <1>; |
| 206 | #size-cells = <0>; |
| 207 | reg = <0x70>; |
| 208 | }; |
Peter De Schrijver | 64c4e9f | 2011-12-14 17:03:26 +0200 | [diff] [blame] | 209 | }; |
| 210 | |
| 211 | i2c@7000c700 { |
Stephen Warren | 2a5fdc9 | 2012-05-11 17:32:56 -0600 | [diff] [blame] | 212 | status = "okay"; |
Peter De Schrijver | 64c4e9f | 2011-12-14 17:03:26 +0200 | [diff] [blame] | 213 | clock-frequency = <100000>; |
| 214 | }; |
| 215 | |
| 216 | i2c@7000d000 { |
Stephen Warren | 2a5fdc9 | 2012-05-11 17:32:56 -0600 | [diff] [blame] | 217 | status = "okay"; |
Peter De Schrijver | 64c4e9f | 2011-12-14 17:03:26 +0200 | [diff] [blame] | 218 | clock-frequency = <100000>; |
Stephen Warren | 8c6a385 | 2012-03-27 12:41:37 -0600 | [diff] [blame] | 219 | |
| 220 | wm8903: wm8903@1a { |
| 221 | compatible = "wlf,wm8903"; |
| 222 | reg = <0x1a>; |
| 223 | interrupt-parent = <&gpio>; |
Stephen Warren | 6cecf91 | 2013-02-13 12:51:51 -0700 | [diff] [blame] | 224 | interrupts = <TEGRA_GPIO(W, 3) IRQ_TYPE_LEVEL_HIGH>; |
Stephen Warren | 8c6a385 | 2012-03-27 12:41:37 -0600 | [diff] [blame] | 225 | |
| 226 | gpio-controller; |
| 227 | #gpio-cells = <2>; |
| 228 | |
| 229 | micdet-cfg = <0>; |
| 230 | micdet-delay = <100>; |
| 231 | gpio-cfg = <0xffffffff 0xffffffff 0 0xffffffff 0xffffffff>; |
| 232 | }; |
Laxman Dewangan | 331da58 | 2012-05-10 20:38:45 +0000 | [diff] [blame] | 233 | |
Laxman Dewangan | 167e627 | 2012-08-09 16:30:37 +0530 | [diff] [blame] | 234 | pmic: tps65911@2d { |
| 235 | compatible = "ti,tps65911"; |
| 236 | reg = <0x2d>; |
| 237 | |
Stephen Warren | 6cecf91 | 2013-02-13 12:51:51 -0700 | [diff] [blame] | 238 | interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>; |
Laxman Dewangan | 167e627 | 2012-08-09 16:30:37 +0530 | [diff] [blame] | 239 | #interrupt-cells = <2>; |
| 240 | interrupt-controller; |
| 241 | |
Stephen Warren | 44b12ef | 2012-09-11 11:42:26 -0600 | [diff] [blame] | 242 | ti,system-power-controller; |
| 243 | |
Laxman Dewangan | 167e627 | 2012-08-09 16:30:37 +0530 | [diff] [blame] | 244 | #gpio-cells = <2>; |
| 245 | gpio-controller; |
| 246 | |
| 247 | vcc1-supply = <&vdd_ac_bat_reg>; |
| 248 | vcc2-supply = <&vdd_ac_bat_reg>; |
| 249 | vcc3-supply = <&vio_reg>; |
Laxman Dewangan | fa4a925 | 2012-08-09 16:30:39 +0530 | [diff] [blame] | 250 | vcc4-supply = <&vdd_5v0_reg>; |
Laxman Dewangan | 167e627 | 2012-08-09 16:30:37 +0530 | [diff] [blame] | 251 | vcc5-supply = <&vdd_ac_bat_reg>; |
| 252 | vcc6-supply = <&vdd2_reg>; |
| 253 | vcc7-supply = <&vdd_ac_bat_reg>; |
| 254 | vccio-supply = <&vdd_ac_bat_reg>; |
| 255 | |
| 256 | regulators { |
Stephen Warren | b9c665d | 2012-09-20 17:04:06 -0600 | [diff] [blame] | 257 | vdd1_reg: vdd1 { |
Laxman Dewangan | 167e627 | 2012-08-09 16:30:37 +0530 | [diff] [blame] | 258 | regulator-name = "vddio_ddr_1v2"; |
| 259 | regulator-min-microvolt = <1200000>; |
| 260 | regulator-max-microvolt = <1200000>; |
| 261 | regulator-always-on; |
| 262 | }; |
| 263 | |
Stephen Warren | b9c665d | 2012-09-20 17:04:06 -0600 | [diff] [blame] | 264 | vdd2_reg: vdd2 { |
Laxman Dewangan | 167e627 | 2012-08-09 16:30:37 +0530 | [diff] [blame] | 265 | regulator-name = "vdd_1v5_gen"; |
| 266 | regulator-min-microvolt = <1500000>; |
| 267 | regulator-max-microvolt = <1500000>; |
| 268 | regulator-always-on; |
| 269 | }; |
| 270 | |
Stephen Warren | b9c665d | 2012-09-20 17:04:06 -0600 | [diff] [blame] | 271 | vddctrl_reg: vddctrl { |
Laxman Dewangan | 167e627 | 2012-08-09 16:30:37 +0530 | [diff] [blame] | 272 | regulator-name = "vdd_cpu,vdd_sys"; |
| 273 | regulator-min-microvolt = <1000000>; |
| 274 | regulator-max-microvolt = <1000000>; |
| 275 | regulator-always-on; |
| 276 | }; |
| 277 | |
Stephen Warren | b9c665d | 2012-09-20 17:04:06 -0600 | [diff] [blame] | 278 | vio_reg: vio { |
Laxman Dewangan | 167e627 | 2012-08-09 16:30:37 +0530 | [diff] [blame] | 279 | regulator-name = "vdd_1v8_gen"; |
| 280 | regulator-min-microvolt = <1800000>; |
| 281 | regulator-max-microvolt = <1800000>; |
| 282 | regulator-always-on; |
| 283 | }; |
| 284 | |
Stephen Warren | b9c665d | 2012-09-20 17:04:06 -0600 | [diff] [blame] | 285 | ldo1_reg: ldo1 { |
Laxman Dewangan | 167e627 | 2012-08-09 16:30:37 +0530 | [diff] [blame] | 286 | regulator-name = "vdd_pexa,vdd_pexb"; |
| 287 | regulator-min-microvolt = <1050000>; |
| 288 | regulator-max-microvolt = <1050000>; |
| 289 | }; |
| 290 | |
Stephen Warren | b9c665d | 2012-09-20 17:04:06 -0600 | [diff] [blame] | 291 | ldo2_reg: ldo2 { |
Laxman Dewangan | 167e627 | 2012-08-09 16:30:37 +0530 | [diff] [blame] | 292 | regulator-name = "vdd_sata,avdd_plle"; |
| 293 | regulator-min-microvolt = <1050000>; |
| 294 | regulator-max-microvolt = <1050000>; |
| 295 | }; |
| 296 | |
| 297 | /* LDO3 is not connected to anything */ |
| 298 | |
Stephen Warren | b9c665d | 2012-09-20 17:04:06 -0600 | [diff] [blame] | 299 | ldo4_reg: ldo4 { |
Laxman Dewangan | 167e627 | 2012-08-09 16:30:37 +0530 | [diff] [blame] | 300 | regulator-name = "vdd_rtc"; |
| 301 | regulator-min-microvolt = <1200000>; |
| 302 | regulator-max-microvolt = <1200000>; |
| 303 | regulator-always-on; |
| 304 | }; |
| 305 | |
Stephen Warren | b9c665d | 2012-09-20 17:04:06 -0600 | [diff] [blame] | 306 | ldo5_reg: ldo5 { |
Laxman Dewangan | fa4a925 | 2012-08-09 16:30:39 +0530 | [diff] [blame] | 307 | regulator-name = "vddio_sdmmc,avdd_vdac"; |
| 308 | regulator-min-microvolt = <3300000>; |
| 309 | regulator-max-microvolt = <3300000>; |
| 310 | regulator-always-on; |
| 311 | }; |
| 312 | |
Stephen Warren | b9c665d | 2012-09-20 17:04:06 -0600 | [diff] [blame] | 313 | ldo6_reg: ldo6 { |
Laxman Dewangan | 167e627 | 2012-08-09 16:30:37 +0530 | [diff] [blame] | 314 | regulator-name = "avdd_dsi_csi,pwrdet_mipi"; |
| 315 | regulator-min-microvolt = <1200000>; |
| 316 | regulator-max-microvolt = <1200000>; |
| 317 | }; |
| 318 | |
Stephen Warren | b9c665d | 2012-09-20 17:04:06 -0600 | [diff] [blame] | 319 | ldo7_reg: ldo7 { |
Laxman Dewangan | 167e627 | 2012-08-09 16:30:37 +0530 | [diff] [blame] | 320 | regulator-name = "vdd_pllm,x,u,a_p_c_s"; |
| 321 | regulator-min-microvolt = <1200000>; |
| 322 | regulator-max-microvolt = <1200000>; |
| 323 | regulator-always-on; |
| 324 | }; |
| 325 | |
Stephen Warren | b9c665d | 2012-09-20 17:04:06 -0600 | [diff] [blame] | 326 | ldo8_reg: ldo8 { |
Laxman Dewangan | 167e627 | 2012-08-09 16:30:37 +0530 | [diff] [blame] | 327 | regulator-name = "vdd_ddr_hs"; |
| 328 | regulator-min-microvolt = <1000000>; |
| 329 | regulator-max-microvolt = <1000000>; |
| 330 | regulator-always-on; |
| 331 | }; |
| 332 | }; |
| 333 | }; |
Wei Ni | 74ecab2 | 2013-07-12 15:49:23 +0800 | [diff] [blame] | 334 | |
Wei Ni | 7c7de6b | 2013-10-07 17:28:29 +0800 | [diff] [blame] | 335 | temperature-sensor@4c { |
Wei Ni | 74ecab2 | 2013-07-12 15:49:23 +0800 | [diff] [blame] | 336 | compatible = "onnn,nct1008"; |
| 337 | reg = <0x4c>; |
Wei Ni | 7c7de6b | 2013-10-07 17:28:29 +0800 | [diff] [blame] | 338 | vcc-supply = <&sys_3v3_reg>; |
Wei Ni | 74ecab2 | 2013-07-12 15:49:23 +0800 | [diff] [blame] | 339 | interrupt-parent = <&gpio>; |
| 340 | interrupts = <TEGRA_GPIO(CC, 2) IRQ_TYPE_LEVEL_LOW>; |
| 341 | }; |
Stephen Warren | 2b8584d | 2013-07-15 10:33:53 -0600 | [diff] [blame] | 342 | |
Stephen Warren | 58ecb23 | 2013-11-25 17:53:16 -0700 | [diff] [blame] | 343 | tps62361@60 { |
Stephen Warren | 2b8584d | 2013-07-15 10:33:53 -0600 | [diff] [blame] | 344 | compatible = "ti,tps62361"; |
| 345 | reg = <0x60>; |
| 346 | |
| 347 | regulator-name = "tps62361-vout"; |
| 348 | regulator-min-microvolt = <500000>; |
| 349 | regulator-max-microvolt = <1500000>; |
| 350 | regulator-boot-on; |
| 351 | regulator-always-on; |
| 352 | ti,vsel0-state-high; |
| 353 | ti,vsel1-state-high; |
| 354 | }; |
Peter De Schrijver | 64c4e9f | 2011-12-14 17:03:26 +0200 | [diff] [blame] | 355 | }; |
Stephen Warren | 850c4c8 | 2012-02-01 16:29:57 -0700 | [diff] [blame] | 356 | |
Laxman Dewangan | c42cb1c | 2012-10-31 14:32:54 +0530 | [diff] [blame] | 357 | spi@7000da00 { |
| 358 | status = "okay"; |
| 359 | spi-max-frequency = <25000000>; |
| 360 | spi-flash@1 { |
| 361 | compatible = "winbond,w25q32"; |
| 362 | reg = <1>; |
| 363 | spi-max-frequency = <20000000>; |
| 364 | }; |
| 365 | }; |
| 366 | |
Stephen Warren | 58ecb23 | 2013-11-25 17:53:16 -0700 | [diff] [blame] | 367 | pmc@7000e400 { |
Laxman Dewangan | 167e627 | 2012-08-09 16:30:37 +0530 | [diff] [blame] | 368 | status = "okay"; |
| 369 | nvidia,invert-interrupt; |
Joseph Lo | 47d2d63 | 2013-08-12 17:40:07 +0800 | [diff] [blame] | 370 | nvidia,suspend-mode = <1>; |
Joseph Lo | a44a019 | 2013-04-03 19:31:52 +0800 | [diff] [blame] | 371 | nvidia,cpu-pwr-good-time = <2000>; |
| 372 | nvidia,cpu-pwr-off-time = <200>; |
| 373 | nvidia,core-pwr-good-time = <3845 3845>; |
| 374 | nvidia,core-pwr-off-time = <0>; |
| 375 | nvidia,core-power-req-active-high; |
| 376 | nvidia,sys-clock-req-active-high; |
Laxman Dewangan | 167e627 | 2012-08-09 16:30:37 +0530 | [diff] [blame] | 377 | }; |
| 378 | |
Stephen Warren | 5789905 | 2013-11-26 14:43:45 -0700 | [diff] [blame] | 379 | ahub@70080000 { |
| 380 | i2s@70080400 { |
| 381 | status = "okay"; |
| 382 | }; |
| 383 | }; |
| 384 | |
Stephen Warren | c04abb3 | 2012-05-11 17:03:26 -0600 | [diff] [blame] | 385 | sdhci@78000000 { |
Stephen Warren | 2a5fdc9 | 2012-05-11 17:32:56 -0600 | [diff] [blame] | 386 | status = "okay"; |
Stephen Warren | 3325f1b | 2013-02-12 17:25:15 -0700 | [diff] [blame] | 387 | cd-gpios = <&gpio TEGRA_GPIO(I, 5) GPIO_ACTIVE_LOW>; |
| 388 | wp-gpios = <&gpio TEGRA_GPIO(T, 3) GPIO_ACTIVE_HIGH>; |
| 389 | power-gpios = <&gpio TEGRA_GPIO(D, 7) GPIO_ACTIVE_HIGH>; |
Arnd Bergmann | 7f21779 | 2012-05-13 00:14:24 -0400 | [diff] [blame] | 390 | bus-width = <4>; |
Stephen Warren | c04abb3 | 2012-05-11 17:03:26 -0600 | [diff] [blame] | 391 | }; |
| 392 | |
Stephen Warren | c04abb3 | 2012-05-11 17:03:26 -0600 | [diff] [blame] | 393 | sdhci@78000600 { |
Stephen Warren | 2a5fdc9 | 2012-05-11 17:32:56 -0600 | [diff] [blame] | 394 | status = "okay"; |
Arnd Bergmann | 7f21779 | 2012-05-13 00:14:24 -0400 | [diff] [blame] | 395 | bus-width = <8>; |
Joseph Lo | 7a2617a | 2013-04-03 14:34:39 -0600 | [diff] [blame] | 396 | non-removable; |
Stephen Warren | c04abb3 | 2012-05-11 17:03:26 -0600 | [diff] [blame] | 397 | }; |
| 398 | |
Tuomas Tynkkynen | cc34c9f | 2013-08-01 18:00:17 +0300 | [diff] [blame] | 399 | usb@7d008000 { |
| 400 | status = "okay"; |
| 401 | }; |
| 402 | |
| 403 | usb-phy@7d008000 { |
| 404 | vbus-supply = <&usb3_vbus_reg>; |
| 405 | status = "okay"; |
| 406 | }; |
| 407 | |
Thierry Reding | 02b1fea | 2013-12-19 16:59:26 +0100 | [diff] [blame] | 408 | backlight: backlight { |
| 409 | compatible = "pwm-backlight"; |
| 410 | |
| 411 | enable-gpios = <&gpio TEGRA_GPIO(H, 2) GPIO_ACTIVE_HIGH>; |
| 412 | power-supply = <&vdd_bl_reg>; |
| 413 | pwms = <&pwm 0 5000000>; |
| 414 | |
| 415 | brightness-levels = <0 4 8 16 32 64 128 255>; |
| 416 | default-brightness-level = <6>; |
| 417 | }; |
| 418 | |
Joseph Lo | 7021d12 | 2013-04-03 19:31:27 +0800 | [diff] [blame] | 419 | clocks { |
| 420 | compatible = "simple-bus"; |
| 421 | #address-cells = <1>; |
| 422 | #size-cells = <0>; |
| 423 | |
Stephen Warren | 58ecb23 | 2013-11-25 17:53:16 -0700 | [diff] [blame] | 424 | clk32k_in: clock@0 { |
Joseph Lo | 7021d12 | 2013-04-03 19:31:27 +0800 | [diff] [blame] | 425 | compatible = "fixed-clock"; |
Thierry Reding | 4ec2e60 | 2016-06-10 18:55:24 +0200 | [diff] [blame] | 426 | reg = <0>; |
Joseph Lo | 7021d12 | 2013-04-03 19:31:27 +0800 | [diff] [blame] | 427 | #clock-cells = <0>; |
| 428 | clock-frequency = <32768>; |
| 429 | }; |
| 430 | }; |
| 431 | |
Thierry Reding | 02b1fea | 2013-12-19 16:59:26 +0100 | [diff] [blame] | 432 | panel: panel { |
| 433 | compatible = "chunghwa,claa101wb01", "simple-panel"; |
| 434 | ddc-i2c-bus = <&panelddc>; |
| 435 | |
| 436 | power-supply = <&vdd_pnl1_reg>; |
| 437 | enable-gpios = <&gpio TEGRA_GPIO(L, 2) GPIO_ACTIVE_HIGH>; |
| 438 | |
| 439 | backlight = <&backlight>; |
| 440 | }; |
| 441 | |
Laxman Dewangan | 167e627 | 2012-08-09 16:30:37 +0530 | [diff] [blame] | 442 | regulators { |
| 443 | compatible = "simple-bus"; |
| 444 | #address-cells = <1>; |
| 445 | #size-cells = <0>; |
| 446 | |
| 447 | vdd_ac_bat_reg: regulator@0 { |
| 448 | compatible = "regulator-fixed"; |
| 449 | reg = <0>; |
| 450 | regulator-name = "vdd_ac_bat"; |
| 451 | regulator-min-microvolt = <5000000>; |
| 452 | regulator-max-microvolt = <5000000>; |
| 453 | regulator-always-on; |
| 454 | }; |
Laxman Dewangan | fa4a925 | 2012-08-09 16:30:39 +0530 | [diff] [blame] | 455 | |
| 456 | cam_1v8_reg: regulator@1 { |
| 457 | compatible = "regulator-fixed"; |
| 458 | reg = <1>; |
| 459 | regulator-name = "cam_1v8"; |
| 460 | regulator-min-microvolt = <1800000>; |
| 461 | regulator-max-microvolt = <1800000>; |
| 462 | enable-active-high; |
Stephen Warren | 3325f1b | 2013-02-12 17:25:15 -0700 | [diff] [blame] | 463 | gpio = <&gpio TEGRA_GPIO(BB, 4) GPIO_ACTIVE_HIGH>; |
Laxman Dewangan | fa4a925 | 2012-08-09 16:30:39 +0530 | [diff] [blame] | 464 | vin-supply = <&vio_reg>; |
| 465 | }; |
| 466 | |
| 467 | cp_5v_reg: regulator@2 { |
| 468 | compatible = "regulator-fixed"; |
| 469 | reg = <2>; |
| 470 | regulator-name = "cp_5v"; |
| 471 | regulator-min-microvolt = <5000000>; |
| 472 | regulator-max-microvolt = <5000000>; |
| 473 | regulator-boot-on; |
| 474 | regulator-always-on; |
| 475 | enable-active-high; |
Stephen Warren | 3325f1b | 2013-02-12 17:25:15 -0700 | [diff] [blame] | 476 | gpio = <&pmic 0 GPIO_ACTIVE_HIGH>; |
Laxman Dewangan | fa4a925 | 2012-08-09 16:30:39 +0530 | [diff] [blame] | 477 | }; |
| 478 | |
| 479 | emmc_3v3_reg: regulator@3 { |
| 480 | compatible = "regulator-fixed"; |
| 481 | reg = <3>; |
| 482 | regulator-name = "emmc_3v3"; |
| 483 | regulator-min-microvolt = <3300000>; |
| 484 | regulator-max-microvolt = <3300000>; |
| 485 | regulator-always-on; |
| 486 | regulator-boot-on; |
| 487 | enable-active-high; |
Stephen Warren | 3325f1b | 2013-02-12 17:25:15 -0700 | [diff] [blame] | 488 | gpio = <&gpio TEGRA_GPIO(D, 1) GPIO_ACTIVE_HIGH>; |
Laxman Dewangan | fa4a925 | 2012-08-09 16:30:39 +0530 | [diff] [blame] | 489 | vin-supply = <&sys_3v3_reg>; |
| 490 | }; |
| 491 | |
| 492 | modem_3v3_reg: regulator@4 { |
| 493 | compatible = "regulator-fixed"; |
| 494 | reg = <4>; |
| 495 | regulator-name = "modem_3v3"; |
| 496 | regulator-min-microvolt = <3300000>; |
| 497 | regulator-max-microvolt = <3300000>; |
| 498 | enable-active-high; |
Stephen Warren | 3325f1b | 2013-02-12 17:25:15 -0700 | [diff] [blame] | 499 | gpio = <&gpio TEGRA_GPIO(D, 6) GPIO_ACTIVE_HIGH>; |
Laxman Dewangan | fa4a925 | 2012-08-09 16:30:39 +0530 | [diff] [blame] | 500 | }; |
| 501 | |
| 502 | pex_hvdd_3v3_reg: regulator@5 { |
| 503 | compatible = "regulator-fixed"; |
| 504 | reg = <5>; |
| 505 | regulator-name = "pex_hvdd_3v3"; |
| 506 | regulator-min-microvolt = <3300000>; |
| 507 | regulator-max-microvolt = <3300000>; |
| 508 | enable-active-high; |
Stephen Warren | 3325f1b | 2013-02-12 17:25:15 -0700 | [diff] [blame] | 509 | gpio = <&gpio TEGRA_GPIO(L, 7) GPIO_ACTIVE_HIGH>; |
Laxman Dewangan | fa4a925 | 2012-08-09 16:30:39 +0530 | [diff] [blame] | 510 | vin-supply = <&sys_3v3_reg>; |
| 511 | }; |
| 512 | |
| 513 | vdd_cam1_ldo_reg: regulator@6 { |
| 514 | compatible = "regulator-fixed"; |
| 515 | reg = <6>; |
| 516 | regulator-name = "vdd_cam1_ldo"; |
| 517 | regulator-min-microvolt = <2800000>; |
| 518 | regulator-max-microvolt = <2800000>; |
| 519 | enable-active-high; |
Stephen Warren | 3325f1b | 2013-02-12 17:25:15 -0700 | [diff] [blame] | 520 | gpio = <&gpio TEGRA_GPIO(R, 6) GPIO_ACTIVE_HIGH>; |
Laxman Dewangan | fa4a925 | 2012-08-09 16:30:39 +0530 | [diff] [blame] | 521 | vin-supply = <&sys_3v3_reg>; |
| 522 | }; |
| 523 | |
| 524 | vdd_cam2_ldo_reg: regulator@7 { |
| 525 | compatible = "regulator-fixed"; |
| 526 | reg = <7>; |
| 527 | regulator-name = "vdd_cam2_ldo"; |
| 528 | regulator-min-microvolt = <2800000>; |
| 529 | regulator-max-microvolt = <2800000>; |
| 530 | enable-active-high; |
Stephen Warren | 3325f1b | 2013-02-12 17:25:15 -0700 | [diff] [blame] | 531 | gpio = <&gpio TEGRA_GPIO(R, 7) GPIO_ACTIVE_HIGH>; |
Laxman Dewangan | fa4a925 | 2012-08-09 16:30:39 +0530 | [diff] [blame] | 532 | vin-supply = <&sys_3v3_reg>; |
| 533 | }; |
| 534 | |
| 535 | vdd_cam3_ldo_reg: regulator@8 { |
| 536 | compatible = "regulator-fixed"; |
| 537 | reg = <8>; |
| 538 | regulator-name = "vdd_cam3_ldo"; |
| 539 | regulator-min-microvolt = <3300000>; |
| 540 | regulator-max-microvolt = <3300000>; |
| 541 | enable-active-high; |
Stephen Warren | 3325f1b | 2013-02-12 17:25:15 -0700 | [diff] [blame] | 542 | gpio = <&gpio TEGRA_GPIO(S, 0) GPIO_ACTIVE_HIGH>; |
Laxman Dewangan | fa4a925 | 2012-08-09 16:30:39 +0530 | [diff] [blame] | 543 | vin-supply = <&sys_3v3_reg>; |
| 544 | }; |
| 545 | |
| 546 | vdd_com_reg: regulator@9 { |
| 547 | compatible = "regulator-fixed"; |
| 548 | reg = <9>; |
| 549 | regulator-name = "vdd_com"; |
| 550 | regulator-min-microvolt = <3300000>; |
| 551 | regulator-max-microvolt = <3300000>; |
Wei Ni | 6fb1113 | 2012-09-21 16:54:59 +0800 | [diff] [blame] | 552 | regulator-always-on; |
| 553 | regulator-boot-on; |
Laxman Dewangan | fa4a925 | 2012-08-09 16:30:39 +0530 | [diff] [blame] | 554 | enable-active-high; |
Stephen Warren | 3325f1b | 2013-02-12 17:25:15 -0700 | [diff] [blame] | 555 | gpio = <&gpio TEGRA_GPIO(D, 0) GPIO_ACTIVE_HIGH>; |
Laxman Dewangan | fa4a925 | 2012-08-09 16:30:39 +0530 | [diff] [blame] | 556 | vin-supply = <&sys_3v3_reg>; |
| 557 | }; |
| 558 | |
| 559 | vdd_fuse_3v3_reg: regulator@10 { |
| 560 | compatible = "regulator-fixed"; |
| 561 | reg = <10>; |
| 562 | regulator-name = "vdd_fuse_3v3"; |
| 563 | regulator-min-microvolt = <3300000>; |
| 564 | regulator-max-microvolt = <3300000>; |
| 565 | enable-active-high; |
Stephen Warren | 3325f1b | 2013-02-12 17:25:15 -0700 | [diff] [blame] | 566 | gpio = <&gpio TEGRA_GPIO(L, 6) GPIO_ACTIVE_HIGH>; |
Laxman Dewangan | fa4a925 | 2012-08-09 16:30:39 +0530 | [diff] [blame] | 567 | vin-supply = <&sys_3v3_reg>; |
| 568 | }; |
| 569 | |
| 570 | vdd_pnl1_reg: regulator@11 { |
| 571 | compatible = "regulator-fixed"; |
| 572 | reg = <11>; |
| 573 | regulator-name = "vdd_pnl1"; |
| 574 | regulator-min-microvolt = <3300000>; |
| 575 | regulator-max-microvolt = <3300000>; |
| 576 | regulator-always-on; |
| 577 | regulator-boot-on; |
| 578 | enable-active-high; |
Stephen Warren | 3325f1b | 2013-02-12 17:25:15 -0700 | [diff] [blame] | 579 | gpio = <&gpio TEGRA_GPIO(L, 4) GPIO_ACTIVE_HIGH>; |
Laxman Dewangan | fa4a925 | 2012-08-09 16:30:39 +0530 | [diff] [blame] | 580 | vin-supply = <&sys_3v3_reg>; |
| 581 | }; |
| 582 | |
| 583 | vdd_vid_reg: regulator@12 { |
| 584 | compatible = "regulator-fixed"; |
| 585 | reg = <12>; |
| 586 | regulator-name = "vddio_vid"; |
| 587 | regulator-min-microvolt = <5000000>; |
| 588 | regulator-max-microvolt = <5000000>; |
| 589 | enable-active-high; |
Stephen Warren | 3325f1b | 2013-02-12 17:25:15 -0700 | [diff] [blame] | 590 | gpio = <&gpio TEGRA_GPIO(T, 0) GPIO_ACTIVE_HIGH>; |
Laxman Dewangan | fa4a925 | 2012-08-09 16:30:39 +0530 | [diff] [blame] | 591 | gpio-open-drain; |
| 592 | vin-supply = <&vdd_5v0_reg>; |
| 593 | }; |
Laxman Dewangan | 167e627 | 2012-08-09 16:30:37 +0530 | [diff] [blame] | 594 | }; |
| 595 | |
Stephen Warren | 8c6a385 | 2012-03-27 12:41:37 -0600 | [diff] [blame] | 596 | sound { |
| 597 | compatible = "nvidia,tegra-audio-wm8903-cardhu", |
| 598 | "nvidia,tegra-audio-wm8903"; |
| 599 | nvidia,model = "NVIDIA Tegra Cardhu"; |
| 600 | |
| 601 | nvidia,audio-routing = |
| 602 | "Headphone Jack", "HPOUTR", |
| 603 | "Headphone Jack", "HPOUTL", |
| 604 | "Int Spk", "ROP", |
| 605 | "Int Spk", "RON", |
| 606 | "Int Spk", "LOP", |
| 607 | "Int Spk", "LON", |
| 608 | "Mic Jack", "MICBIAS", |
| 609 | "IN1L", "Mic Jack"; |
| 610 | |
| 611 | nvidia,i2s-controller = <&tegra_i2s1>; |
| 612 | nvidia,audio-codec = <&wm8903>; |
| 613 | |
Stephen Warren | 3325f1b | 2013-02-12 17:25:15 -0700 | [diff] [blame] | 614 | nvidia,spkr-en-gpios = <&wm8903 2 GPIO_ACTIVE_HIGH>; |
| 615 | nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2) |
| 616 | GPIO_ACTIVE_HIGH>; |
Stephen Warren | f9cd2b3 | 2013-03-26 16:45:52 -0600 | [diff] [blame] | 617 | |
Hiroshi Doyu | 05849c9 | 2013-05-22 19:45:34 +0300 | [diff] [blame] | 618 | clocks = <&tegra_car TEGRA30_CLK_PLL_A>, |
| 619 | <&tegra_car TEGRA30_CLK_PLL_A_OUT0>, |
| 620 | <&tegra_car TEGRA30_CLK_EXTERN1>; |
Stephen Warren | f9cd2b3 | 2013-03-26 16:45:52 -0600 | [diff] [blame] | 621 | clock-names = "pll_a", "pll_a_out0", "mclk"; |
Stephen Warren | 8c6a385 | 2012-03-27 12:41:37 -0600 | [diff] [blame] | 622 | }; |
Thierry Reding | 5780c20 | 2014-12-18 14:58:20 +0100 | [diff] [blame] | 623 | |
| 624 | gpio-keys { |
| 625 | compatible = "gpio-keys"; |
| 626 | |
| 627 | power { |
| 628 | label = "Power"; |
| 629 | interrupt-parent = <&pmic>; |
| 630 | interrupts = <2 0>; |
| 631 | linux,code = <KEY_POWER>; |
| 632 | debounce-interval = <100>; |
Sudeep Holla | d1c04d3 | 2016-02-08 21:55:43 +0000 | [diff] [blame] | 633 | wakeup-source; |
Thierry Reding | 5780c20 | 2014-12-18 14:58:20 +0100 | [diff] [blame] | 634 | }; |
| 635 | |
| 636 | volume-down { |
| 637 | label = "Volume Down"; |
| 638 | gpios = <&gpio TEGRA_GPIO(R, 0) GPIO_ACTIVE_LOW>; |
| 639 | linux,code = <KEY_VOLUMEDOWN>; |
| 640 | debounce-interval = <10>; |
| 641 | }; |
| 642 | |
| 643 | volume-up { |
| 644 | label = "Volume Up"; |
| 645 | gpios = <&gpio TEGRA_GPIO(R, 1) GPIO_ACTIVE_LOW>; |
| 646 | linux,code = <KEY_VOLUMEUP>; |
| 647 | debounce-interval = <10>; |
| 648 | }; |
| 649 | }; |
Peter De Schrijver | 64c4e9f | 2011-12-14 17:03:26 +0200 | [diff] [blame] | 650 | }; |