blob: 83dc14a9b353acdb6856976a0be48fa7d0671e5e [file] [log] [blame]
Thierry Reding5780c202014-12-18 14:58:20 +01001#include <dt-bindings/input/input.h>
Stephen Warren1bd0bd42012-10-17 16:38:21 -06002#include "tegra30.dtsi"
Peter De Schrijver64c4e9f2011-12-14 17:03:26 +02003
Laxman Dewangan640a7af2012-08-09 16:30:38 +05304/**
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 Ziswilerdb374062015-04-10 23:35:56 +020016 * The sticker will have number like 600-81291-1000-002 C.3. In this 4th
Laxman Dewangan640a7af2012-08-09 16:30:38 +053017 * 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 Schrijver64c4e9f2011-12-14 17:03:26 +020027/ {
28 model = "NVIDIA Tegra30 Cardhu evaluation board";
29 compatible = "nvidia,cardhu", "nvidia,tegra30";
30
Stephen Warren553c0a22013-12-09 14:43:59 -070031 aliases {
Stephen Warren763fbff2014-02-13 17:18:26 -070032 rtc0 = "/i2c@7000d000/tps65911@2d";
Stephen Warren553c0a22013-12-09 14:43:59 -070033 rtc1 = "/rtc@7000e000";
Olof Johanssonc4574aa2014-11-11 12:49:30 -080034 serial0 = &uarta;
35 serial1 = &uartc;
Stephen Warren553c0a22013-12-09 14:43:59 -070036 };
37
Jon Hunterf5bbb322016-02-09 13:51:59 +000038 chosen {
39 stdout-path = "serial0:115200n8";
40 };
41
Peter De Schrijver64c4e9f2011-12-14 17:03:26 +020042 memory {
Stephen Warren95decf82012-05-11 16:11:38 -060043 reg = <0x80000000 0x40000000>;
Peter De Schrijver64c4e9f2011-12-14 17:03:26 +020044 };
45
Rob Herring508d6902017-03-21 21:03:06 -050046 pcie@3000 {
Jay Agarwal89e7ada2013-08-09 16:49:27 +020047 status = "okay";
Thierry Redingcca86142014-05-28 16:49:12 +020048
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 Agarwal89e7ada2013-08-09 16:49:27 +020057 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 Reding02b1fea2013-12-19 16:59:26 +010071 host1x@50000000 {
72 dc@54200000 {
73 rgb {
74 status = "okay";
75
76 nvidia,panel = <&panel>;
77 };
78 };
79 };
80
Stephen Warren58ecb232013-11-25 17:53:16 -070081 pinmux@70000868 {
Stephen Warrene5cbeef2012-03-13 13:28:02 -060082 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 Dewangana47c6622013-12-05 16:14:09 +053089 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
90 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Stephen Warrene5cbeef2012-03-13 13:28:02 -060091 };
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 Dewangana47c6622013-12-05 16:14:09 +053099 nvidia,pull = <TEGRA_PIN_PULL_UP>;
100 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Stephen Warrene5cbeef2012-03-13 13:28:02 -0600101 };
Wei Ni6fb11132012-09-21 16:54:59 +0800102 sdmmc3_clk_pa6 {
103 nvidia,pins = "sdmmc3_clk_pa6";
104 nvidia,function = "sdmmc3";
Laxman Dewangana47c6622013-12-05 16:14:09 +0530105 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
106 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Wei Ni6fb11132012-09-21 16:54:59 +0800107 };
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 Dewangana47c6622013-12-05 16:14:09 +0530115 nvidia,pull = <TEGRA_PIN_PULL_UP>;
116 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Wei Ni6fb11132012-09-21 16:54:59 +0800117 };
Stephen Warrene5cbeef2012-03-13 13:28:02 -0600118 sdmmc4_clk_pcc4 {
119 nvidia,pins = "sdmmc4_clk_pcc4",
120 "sdmmc4_rst_n_pcc3";
121 nvidia,function = "sdmmc4";
Laxman Dewangana47c6622013-12-05 16:14:09 +0530122 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
123 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Stephen Warrene5cbeef2012-03-13 13:28:02 -0600124 };
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 Dewangana47c6622013-12-05 16:14:09 +0530135 nvidia,pull = <TEGRA_PIN_PULL_UP>;
136 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Stephen Warrene5cbeef2012-03-13 13:28:02 -0600137 };
Stephen Warren8c6a3852012-03-27 12:41:37 -0600138 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 Dewangana47c6622013-12-05 16:14:09 +0530144 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
145 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Stephen Warren8c6a3852012-03-27 12:41:37 -0600146 };
Wei Ni6fb11132012-09-21 16:54:59 +0800147 sdio3 {
148 nvidia,pins = "drive_sdio3";
Laxman Dewangana47c6622013-12-05 16:14:09 +0530149 nvidia,high-speed-mode = <TEGRA_PIN_DISABLE>;
150 nvidia,schmitt = <TEGRA_PIN_DISABLE>;
Wei Ni6fb11132012-09-21 16:54:59 +0800151 nvidia,pull-down-strength = <46>;
152 nvidia,pull-up-strength = <42>;
Laxman Dewangana47c6622013-12-05 16:14:09 +0530153 nvidia,slew-rate-rising = <TEGRA_PIN_SLEW_RATE_FAST>;
154 nvidia,slew-rate-falling = <TEGRA_PIN_SLEW_RATE_FAST>;
Wei Ni6fb11132012-09-21 16:54:59 +0800155 };
Laxman Dewanganecfd6c72013-01-16 18:36:12 +0530156 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 Dewangana47c6622013-12-05 16:14:09 +0530162 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
163 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Laxman Dewanganecfd6c72013-01-16 18:36:12 +0530164 };
Stephen Warrene5cbeef2012-03-13 13:28:02 -0600165 };
166 };
167
Peter De Schrijver64c4e9f2011-12-14 17:03:26 +0200168 serial@70006000 {
Stephen Warren2a5fdc92012-05-11 17:32:56 -0600169 status = "okay";
Peter De Schrijver64c4e9f2011-12-14 17:03:26 +0200170 };
171
Laxman Dewanganecfd6c72013-01-16 18:36:12 +0530172 serial@70006200 {
173 compatible = "nvidia,tegra30-hsuart";
174 status = "okay";
Laxman Dewanganecfd6c72013-01-16 18:36:12 +0530175 };
176
Thierry Reding02b1fea2013-12-19 16:59:26 +0100177 pwm@7000a000 {
178 status = "okay";
179 };
180
181 panelddc: i2c@7000c000 {
Stephen Warren2a5fdc92012-05-11 17:32:56 -0600182 status = "okay";
Peter De Schrijver64c4e9f2011-12-14 17:03:26 +0200183 clock-frequency = <100000>;
184 };
185
186 i2c@7000c400 {
Stephen Warren2a5fdc92012-05-11 17:32:56 -0600187 status = "okay";
Peter De Schrijver64c4e9f2011-12-14 17:03:26 +0200188 clock-frequency = <100000>;
189 };
190
191 i2c@7000c500 {
Stephen Warren2a5fdc92012-05-11 17:32:56 -0600192 status = "okay";
Peter De Schrijver64c4e9f2011-12-14 17:03:26 +0200193 clock-frequency = <100000>;
Laxman Dewanganb46b0b52012-04-23 17:41:36 +0530194
195 /* ALS and Proximity sensor */
196 isl29028@44 {
Arnaud Ebalard62981232014-12-16 22:21:16 +0100197 compatible = "isil,isl29028";
Laxman Dewanganb46b0b52012-04-23 17:41:36 +0530198 reg = <0x44>;
199 interrupt-parent = <&gpio>;
Stephen Warren6cecf912013-02-13 12:51:51 -0700200 interrupts = <TEGRA_GPIO(L, 0) IRQ_TYPE_LEVEL_HIGH>;
Laxman Dewanganb46b0b52012-04-23 17:41:36 +0530201 };
Bryan Wu40431d12014-02-07 15:54:58 -0800202
203 i2cmux@70 {
204 compatible = "nxp,pca9546";
205 #address-cells = <1>;
206 #size-cells = <0>;
207 reg = <0x70>;
208 };
Peter De Schrijver64c4e9f2011-12-14 17:03:26 +0200209 };
210
211 i2c@7000c700 {
Stephen Warren2a5fdc92012-05-11 17:32:56 -0600212 status = "okay";
Peter De Schrijver64c4e9f2011-12-14 17:03:26 +0200213 clock-frequency = <100000>;
214 };
215
216 i2c@7000d000 {
Stephen Warren2a5fdc92012-05-11 17:32:56 -0600217 status = "okay";
Peter De Schrijver64c4e9f2011-12-14 17:03:26 +0200218 clock-frequency = <100000>;
Stephen Warren8c6a3852012-03-27 12:41:37 -0600219
220 wm8903: wm8903@1a {
221 compatible = "wlf,wm8903";
222 reg = <0x1a>;
223 interrupt-parent = <&gpio>;
Stephen Warren6cecf912013-02-13 12:51:51 -0700224 interrupts = <TEGRA_GPIO(W, 3) IRQ_TYPE_LEVEL_HIGH>;
Stephen Warren8c6a3852012-03-27 12:41:37 -0600225
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 Dewangan331da582012-05-10 20:38:45 +0000233
Laxman Dewangan167e6272012-08-09 16:30:37 +0530234 pmic: tps65911@2d {
235 compatible = "ti,tps65911";
236 reg = <0x2d>;
237
Stephen Warren6cecf912013-02-13 12:51:51 -0700238 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
Laxman Dewangan167e6272012-08-09 16:30:37 +0530239 #interrupt-cells = <2>;
240 interrupt-controller;
241
Stephen Warren44b12ef2012-09-11 11:42:26 -0600242 ti,system-power-controller;
243
Laxman Dewangan167e6272012-08-09 16:30:37 +0530244 #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 Dewanganfa4a9252012-08-09 16:30:39 +0530250 vcc4-supply = <&vdd_5v0_reg>;
Laxman Dewangan167e6272012-08-09 16:30:37 +0530251 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 Warrenb9c665d2012-09-20 17:04:06 -0600257 vdd1_reg: vdd1 {
Laxman Dewangan167e6272012-08-09 16:30:37 +0530258 regulator-name = "vddio_ddr_1v2";
259 regulator-min-microvolt = <1200000>;
260 regulator-max-microvolt = <1200000>;
261 regulator-always-on;
262 };
263
Stephen Warrenb9c665d2012-09-20 17:04:06 -0600264 vdd2_reg: vdd2 {
Laxman Dewangan167e6272012-08-09 16:30:37 +0530265 regulator-name = "vdd_1v5_gen";
266 regulator-min-microvolt = <1500000>;
267 regulator-max-microvolt = <1500000>;
268 regulator-always-on;
269 };
270
Stephen Warrenb9c665d2012-09-20 17:04:06 -0600271 vddctrl_reg: vddctrl {
Laxman Dewangan167e6272012-08-09 16:30:37 +0530272 regulator-name = "vdd_cpu,vdd_sys";
273 regulator-min-microvolt = <1000000>;
274 regulator-max-microvolt = <1000000>;
275 regulator-always-on;
276 };
277
Stephen Warrenb9c665d2012-09-20 17:04:06 -0600278 vio_reg: vio {
Laxman Dewangan167e6272012-08-09 16:30:37 +0530279 regulator-name = "vdd_1v8_gen";
280 regulator-min-microvolt = <1800000>;
281 regulator-max-microvolt = <1800000>;
282 regulator-always-on;
283 };
284
Stephen Warrenb9c665d2012-09-20 17:04:06 -0600285 ldo1_reg: ldo1 {
Laxman Dewangan167e6272012-08-09 16:30:37 +0530286 regulator-name = "vdd_pexa,vdd_pexb";
287 regulator-min-microvolt = <1050000>;
288 regulator-max-microvolt = <1050000>;
289 };
290
Stephen Warrenb9c665d2012-09-20 17:04:06 -0600291 ldo2_reg: ldo2 {
Laxman Dewangan167e6272012-08-09 16:30:37 +0530292 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 Warrenb9c665d2012-09-20 17:04:06 -0600299 ldo4_reg: ldo4 {
Laxman Dewangan167e6272012-08-09 16:30:37 +0530300 regulator-name = "vdd_rtc";
301 regulator-min-microvolt = <1200000>;
302 regulator-max-microvolt = <1200000>;
303 regulator-always-on;
304 };
305
Stephen Warrenb9c665d2012-09-20 17:04:06 -0600306 ldo5_reg: ldo5 {
Laxman Dewanganfa4a9252012-08-09 16:30:39 +0530307 regulator-name = "vddio_sdmmc,avdd_vdac";
308 regulator-min-microvolt = <3300000>;
309 regulator-max-microvolt = <3300000>;
310 regulator-always-on;
311 };
312
Stephen Warrenb9c665d2012-09-20 17:04:06 -0600313 ldo6_reg: ldo6 {
Laxman Dewangan167e6272012-08-09 16:30:37 +0530314 regulator-name = "avdd_dsi_csi,pwrdet_mipi";
315 regulator-min-microvolt = <1200000>;
316 regulator-max-microvolt = <1200000>;
317 };
318
Stephen Warrenb9c665d2012-09-20 17:04:06 -0600319 ldo7_reg: ldo7 {
Laxman Dewangan167e6272012-08-09 16:30:37 +0530320 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 Warrenb9c665d2012-09-20 17:04:06 -0600326 ldo8_reg: ldo8 {
Laxman Dewangan167e6272012-08-09 16:30:37 +0530327 regulator-name = "vdd_ddr_hs";
328 regulator-min-microvolt = <1000000>;
329 regulator-max-microvolt = <1000000>;
330 regulator-always-on;
331 };
332 };
333 };
Wei Ni74ecab22013-07-12 15:49:23 +0800334
Wei Ni7c7de6b2013-10-07 17:28:29 +0800335 temperature-sensor@4c {
Wei Ni74ecab22013-07-12 15:49:23 +0800336 compatible = "onnn,nct1008";
337 reg = <0x4c>;
Wei Ni7c7de6b2013-10-07 17:28:29 +0800338 vcc-supply = <&sys_3v3_reg>;
Wei Ni74ecab22013-07-12 15:49:23 +0800339 interrupt-parent = <&gpio>;
340 interrupts = <TEGRA_GPIO(CC, 2) IRQ_TYPE_LEVEL_LOW>;
341 };
Stephen Warren2b8584d2013-07-15 10:33:53 -0600342
Stephen Warren58ecb232013-11-25 17:53:16 -0700343 tps62361@60 {
Stephen Warren2b8584d2013-07-15 10:33:53 -0600344 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 Schrijver64c4e9f2011-12-14 17:03:26 +0200355 };
Stephen Warren850c4c82012-02-01 16:29:57 -0700356
Laxman Dewanganc42cb1c2012-10-31 14:32:54 +0530357 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 Warren58ecb232013-11-25 17:53:16 -0700367 pmc@7000e400 {
Laxman Dewangan167e6272012-08-09 16:30:37 +0530368 status = "okay";
369 nvidia,invert-interrupt;
Joseph Lo47d2d632013-08-12 17:40:07 +0800370 nvidia,suspend-mode = <1>;
Joseph Loa44a0192013-04-03 19:31:52 +0800371 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 Dewangan167e6272012-08-09 16:30:37 +0530377 };
378
Stephen Warren57899052013-11-26 14:43:45 -0700379 ahub@70080000 {
380 i2s@70080400 {
381 status = "okay";
382 };
383 };
384
Stephen Warrenc04abb32012-05-11 17:03:26 -0600385 sdhci@78000000 {
Stephen Warren2a5fdc92012-05-11 17:32:56 -0600386 status = "okay";
Stephen Warren3325f1b2013-02-12 17:25:15 -0700387 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 Bergmann7f217792012-05-13 00:14:24 -0400390 bus-width = <4>;
Stephen Warrenc04abb32012-05-11 17:03:26 -0600391 };
392
Stephen Warrenc04abb32012-05-11 17:03:26 -0600393 sdhci@78000600 {
Stephen Warren2a5fdc92012-05-11 17:32:56 -0600394 status = "okay";
Arnd Bergmann7f217792012-05-13 00:14:24 -0400395 bus-width = <8>;
Joseph Lo7a2617a2013-04-03 14:34:39 -0600396 non-removable;
Stephen Warrenc04abb32012-05-11 17:03:26 -0600397 };
398
Tuomas Tynkkynencc34c9f2013-08-01 18:00:17 +0300399 usb@7d008000 {
400 status = "okay";
401 };
402
403 usb-phy@7d008000 {
404 vbus-supply = <&usb3_vbus_reg>;
405 status = "okay";
406 };
407
Thierry Reding02b1fea2013-12-19 16:59:26 +0100408 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 Lo7021d122013-04-03 19:31:27 +0800419 clocks {
420 compatible = "simple-bus";
421 #address-cells = <1>;
422 #size-cells = <0>;
423
Stephen Warren58ecb232013-11-25 17:53:16 -0700424 clk32k_in: clock@0 {
Joseph Lo7021d122013-04-03 19:31:27 +0800425 compatible = "fixed-clock";
Thierry Reding4ec2e602016-06-10 18:55:24 +0200426 reg = <0>;
Joseph Lo7021d122013-04-03 19:31:27 +0800427 #clock-cells = <0>;
428 clock-frequency = <32768>;
429 };
430 };
431
Thierry Reding02b1fea2013-12-19 16:59:26 +0100432 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 Dewangan167e6272012-08-09 16:30:37 +0530442 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 Dewanganfa4a9252012-08-09 16:30:39 +0530455
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 Warren3325f1b2013-02-12 17:25:15 -0700463 gpio = <&gpio TEGRA_GPIO(BB, 4) GPIO_ACTIVE_HIGH>;
Laxman Dewanganfa4a9252012-08-09 16:30:39 +0530464 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 Warren3325f1b2013-02-12 17:25:15 -0700476 gpio = <&pmic 0 GPIO_ACTIVE_HIGH>;
Laxman Dewanganfa4a9252012-08-09 16:30:39 +0530477 };
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 Warren3325f1b2013-02-12 17:25:15 -0700488 gpio = <&gpio TEGRA_GPIO(D, 1) GPIO_ACTIVE_HIGH>;
Laxman Dewanganfa4a9252012-08-09 16:30:39 +0530489 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 Warren3325f1b2013-02-12 17:25:15 -0700499 gpio = <&gpio TEGRA_GPIO(D, 6) GPIO_ACTIVE_HIGH>;
Laxman Dewanganfa4a9252012-08-09 16:30:39 +0530500 };
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 Warren3325f1b2013-02-12 17:25:15 -0700509 gpio = <&gpio TEGRA_GPIO(L, 7) GPIO_ACTIVE_HIGH>;
Laxman Dewanganfa4a9252012-08-09 16:30:39 +0530510 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 Warren3325f1b2013-02-12 17:25:15 -0700520 gpio = <&gpio TEGRA_GPIO(R, 6) GPIO_ACTIVE_HIGH>;
Laxman Dewanganfa4a9252012-08-09 16:30:39 +0530521 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 Warren3325f1b2013-02-12 17:25:15 -0700531 gpio = <&gpio TEGRA_GPIO(R, 7) GPIO_ACTIVE_HIGH>;
Laxman Dewanganfa4a9252012-08-09 16:30:39 +0530532 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 Warren3325f1b2013-02-12 17:25:15 -0700542 gpio = <&gpio TEGRA_GPIO(S, 0) GPIO_ACTIVE_HIGH>;
Laxman Dewanganfa4a9252012-08-09 16:30:39 +0530543 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 Ni6fb11132012-09-21 16:54:59 +0800552 regulator-always-on;
553 regulator-boot-on;
Laxman Dewanganfa4a9252012-08-09 16:30:39 +0530554 enable-active-high;
Stephen Warren3325f1b2013-02-12 17:25:15 -0700555 gpio = <&gpio TEGRA_GPIO(D, 0) GPIO_ACTIVE_HIGH>;
Laxman Dewanganfa4a9252012-08-09 16:30:39 +0530556 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 Warren3325f1b2013-02-12 17:25:15 -0700566 gpio = <&gpio TEGRA_GPIO(L, 6) GPIO_ACTIVE_HIGH>;
Laxman Dewanganfa4a9252012-08-09 16:30:39 +0530567 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 Warren3325f1b2013-02-12 17:25:15 -0700579 gpio = <&gpio TEGRA_GPIO(L, 4) GPIO_ACTIVE_HIGH>;
Laxman Dewanganfa4a9252012-08-09 16:30:39 +0530580 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 Warren3325f1b2013-02-12 17:25:15 -0700590 gpio = <&gpio TEGRA_GPIO(T, 0) GPIO_ACTIVE_HIGH>;
Laxman Dewanganfa4a9252012-08-09 16:30:39 +0530591 gpio-open-drain;
592 vin-supply = <&vdd_5v0_reg>;
593 };
Laxman Dewangan167e6272012-08-09 16:30:37 +0530594 };
595
Stephen Warren8c6a3852012-03-27 12:41:37 -0600596 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 Warren3325f1b2013-02-12 17:25:15 -0700614 nvidia,spkr-en-gpios = <&wm8903 2 GPIO_ACTIVE_HIGH>;
615 nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2)
616 GPIO_ACTIVE_HIGH>;
Stephen Warrenf9cd2b32013-03-26 16:45:52 -0600617
Hiroshi Doyu05849c92013-05-22 19:45:34 +0300618 clocks = <&tegra_car TEGRA30_CLK_PLL_A>,
619 <&tegra_car TEGRA30_CLK_PLL_A_OUT0>,
620 <&tegra_car TEGRA30_CLK_EXTERN1>;
Stephen Warrenf9cd2b32013-03-26 16:45:52 -0600621 clock-names = "pll_a", "pll_a_out0", "mclk";
Stephen Warren8c6a3852012-03-27 12:41:37 -0600622 };
Thierry Reding5780c202014-12-18 14:58:20 +0100623
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 Hollad1c04d32016-02-08 21:55:43 +0000633 wakeup-source;
Thierry Reding5780c202014-12-18 14:58:20 +0100634 };
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 Schrijver64c4e9f2011-12-14 17:03:26 +0200650};