blob: cfbdf429b45d2e1afa25ef0b9fba26b1792b922a [file] [log] [blame]
Joseph Loa1425d42013-10-08 12:50:06 +08001/dts-v1/;
2
Thierry Reding146db0e2013-12-19 17:06:19 +01003#include <dt-bindings/input/input.h>
Joseph Loa1425d42013-10-08 12:50:06 +08004#include "tegra124.dtsi"
5
6/ {
7 model = "NVIDIA Tegra124 Venice2";
8 compatible = "nvidia,venice2", "nvidia,tegra124";
9
Stephen Warrenb1afa782013-12-19 11:32:15 -070010 aliases {
Stephen Warrene30cb232014-03-03 14:51:15 -070011 rtc0 = "/i2c@0,7000d000/pmic@40";
12 rtc1 = "/rtc@0,7000e000";
Olof Johanssonc4574aa2014-11-11 12:49:30 -080013 serial0 = &uarta;
Stephen Warrenb1afa782013-12-19 11:32:15 -070014 };
15
Joseph Loa1425d42013-10-08 12:50:06 +080016 memory {
Stephen Warrene30cb232014-03-03 14:51:15 -070017 reg = <0x0 0x80000000 0x0 0x80000000>;
Joseph Loa1425d42013-10-08 12:50:06 +080018 };
19
Stephen Warrene30cb232014-03-03 14:51:15 -070020 host1x@0,50000000 {
Thierry Reding329c39f2014-04-25 17:44:46 +020021 hdmi@0,54280000 {
22 status = "okay";
23
24 vdd-supply = <&vdd_3v3_hdmi>;
25 pll-supply = <&vdd_hdmi_pll>;
26 hdmi-supply = <&vdd_5v0_hdmi>;
27
28 nvidia,ddc-i2c-bus = <&hdmi_ddc>;
29 nvidia,hpd-gpio =
30 <&gpio TEGRA_GPIO(N, 7) GPIO_ACTIVE_HIGH>;
31 };
32
Stephen Warrene30cb232014-03-03 14:51:15 -070033 sor@0,54540000 {
Thierry Reding40e231c2014-02-28 17:40:24 +010034 status = "okay";
35
36 nvidia,dpaux = <&dpaux>;
37 nvidia,panel = <&panel>;
38 };
39
Dylan Reidedfbad02014-09-04 15:20:34 -070040 dpaux@0,545c0000 {
Thierry Reding40e231c2014-02-28 17:40:24 +010041 vdd-supply = <&vdd_3v3_panel>;
42 status = "okay";
43 };
44 };
45
Thierry Redinge34cc1b62015-07-01 18:13:46 +090046 gpu@0,57000000 {
47 /*
48 * Node left disabled on purpose - the bootloader will enable
49 * it after having set the VPR up
50 */
51 vdd-supply = <&vdd_gpu>;
52 };
53
Stephen Warrene30cb232014-03-03 14:51:15 -070054 pinmux: pinmux@0,70000868 {
Stephen Warren6dbaff22014-09-03 09:42:06 -060055 pinctrl-names = "boot";
56 pinctrl-0 = <&pinmux_boot>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +053057
Stephen Warren6dbaff22014-09-03 09:42:06 -060058 pinmux_boot: common {
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +053059 dap_mclk1_pw4 {
60 nvidia,pins = "dap_mclk1_pw4";
61 nvidia,function = "extperiph1";
62 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
63 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
64 nvidia,tristate = <TEGRA_PIN_DISABLE>;
65 };
66 dap1_din_pn1 {
Laxman Dewangan365c4832013-12-18 18:22:58 +053067 nvidia,pins = "dap1_din_pn1";
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +053068 nvidia,function = "i2s0";
69 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
70 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
71 nvidia,tristate = <TEGRA_PIN_ENABLE>;
72 };
Laxman Dewangan365c4832013-12-18 18:22:58 +053073 dap1_dout_pn2 {
74 nvidia,pins = "dap1_dout_pn2",
75 "dap1_fs_pn0",
76 "dap1_sclk_pn3";
77 nvidia,function = "i2s0";
78 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
79 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
80 nvidia,tristate = <TEGRA_PIN_ENABLE>;
81 };
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +053082 dap2_din_pa4 {
Laxman Dewangan365c4832013-12-18 18:22:58 +053083 nvidia,pins = "dap2_din_pa4";
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +053084 nvidia,function = "i2s1";
85 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
86 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
Stephen Warren4ffb9382013-12-12 14:40:30 -070087 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +053088 };
Laxman Dewangan365c4832013-12-18 18:22:58 +053089 dap2_dout_pa5 {
90 nvidia,pins = "dap2_dout_pa5",
91 "dap2_fs_pa2",
92 "dap2_sclk_pa3";
93 nvidia,function = "i2s1";
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +053094 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
95 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
Laxman Dewangan365c4832013-12-18 18:22:58 +053096 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +053097 };
Laxman Dewangan365c4832013-12-18 18:22:58 +053098 dvfs_pwm_px0 {
99 nvidia,pins = "dvfs_pwm_px0",
100 "dvfs_clk_px2";
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530101 nvidia,function = "cldvfs";
102 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
103 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
104 nvidia,tristate = <TEGRA_PIN_DISABLE>;
105 };
106 ulpi_clk_py0 {
107 nvidia,pins = "ulpi_clk_py0",
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530108 "ulpi_nxt_py2",
109 "ulpi_stp_py3";
110 nvidia,function = "spi1";
Laxman Dewangan365c4832013-12-18 18:22:58 +0530111 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
112 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
113 nvidia,tristate = <TEGRA_PIN_DISABLE>;
114 };
115 ulpi_dir_py1 {
116 nvidia,pins = "ulpi_dir_py1";
117 nvidia,function = "spi1";
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530118 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
Laxman Dewangan365c4832013-12-18 18:22:58 +0530119 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530120 nvidia,tristate = <TEGRA_PIN_DISABLE>;
121 };
122 cam_i2c_scl_pbb1 {
123 nvidia,pins = "cam_i2c_scl_pbb1",
124 "cam_i2c_sda_pbb2";
125 nvidia,function = "i2c3";
126 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
127 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
128 nvidia,tristate = <TEGRA_PIN_DISABLE>;
129 nvidia,lock = <TEGRA_PIN_DISABLE>;
130 nvidia,open-drain = <TEGRA_PIN_ENABLE>;
131 };
132 gen2_i2c_scl_pt5 {
133 nvidia,pins = "gen2_i2c_scl_pt5",
134 "gen2_i2c_sda_pt6";
135 nvidia,function = "i2c2";
136 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
137 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
138 nvidia,tristate = <TEGRA_PIN_DISABLE>;
139 nvidia,lock = <TEGRA_PIN_DISABLE>;
140 nvidia,open-drain = <TEGRA_PIN_ENABLE>;
141 };
142 pg4 {
143 nvidia,pins = "pg4",
144 "pg5",
145 "pg6",
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530146 "pi3";
147 nvidia,function = "spi4";
148 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
149 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
150 nvidia,tristate = <TEGRA_PIN_DISABLE>;
151 };
Laxman Dewangan365c4832013-12-18 18:22:58 +0530152 pg7 {
153 nvidia,pins = "pg7";
154 nvidia,function = "spi4";
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530155 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
Laxman Dewangan365c4832013-12-18 18:22:58 +0530156 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
157 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530158 };
159 ph1 {
160 nvidia,pins = "ph1";
161 nvidia,function = "pwm1";
162 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
163 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
164 nvidia,tristate = <TEGRA_PIN_DISABLE>;
165 };
Laxman Dewangan365c4832013-12-18 18:22:58 +0530166 pk0 {
167 nvidia,pins = "pk0",
168 "kb_row15_ps7",
169 "clk_32k_out_pa0";
170 nvidia,function = "soc";
171 nvidia,pull = <TEGRA_PIN_PULL_UP>;
Thierry Redingf5cb19b2013-12-13 17:25:04 +0100172 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Laxman Dewangan365c4832013-12-18 18:22:58 +0530173 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
Thierry Redingf5cb19b2013-12-13 17:25:04 +0100174 };
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530175 sdmmc1_clk_pz0 {
Stephen Warrenbf5fd5b2014-03-20 18:06:01 -0600176 nvidia,pins = "sdmmc1_clk_pz0";
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530177 nvidia,function = "sdmmc1";
Stephen Warrenbf5fd5b2014-03-20 18:06:01 -0600178 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530179 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
180 nvidia,tristate = <TEGRA_PIN_DISABLE>;
181 };
Laxman Dewangan365c4832013-12-18 18:22:58 +0530182 sdmmc1_cmd_pz1 {
183 nvidia,pins = "sdmmc1_cmd_pz1",
184 "sdmmc1_dat0_py7",
185 "sdmmc1_dat1_py6",
186 "sdmmc1_dat2_py5",
187 "sdmmc1_dat3_py4";
188 nvidia,function = "sdmmc1";
189 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
190 nvidia,pull = <TEGRA_PIN_PULL_UP>;
191 nvidia,tristate = <TEGRA_PIN_DISABLE>;
192 };
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530193 sdmmc3_clk_pa6 {
194 nvidia,pins = "sdmmc3_clk_pa6";
195 nvidia,function = "sdmmc3";
196 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
197 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
198 nvidia,tristate = <TEGRA_PIN_DISABLE>;
199 };
200 sdmmc3_cmd_pa7 {
201 nvidia,pins = "sdmmc3_cmd_pa7",
202 "sdmmc3_dat0_pb7",
203 "sdmmc3_dat1_pb6",
204 "sdmmc3_dat2_pb5",
205 "sdmmc3_dat3_pb4",
206 "sdmmc3_clk_lb_out_pee4",
207 "sdmmc3_clk_lb_in_pee5";
208 nvidia,function = "sdmmc3";
209 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
210 nvidia,pull = <TEGRA_PIN_PULL_UP>;
211 nvidia,tristate = <TEGRA_PIN_DISABLE>;
212 };
213 sdmmc4_clk_pcc4 {
214 nvidia,pins = "sdmmc4_clk_pcc4";
215 nvidia,function = "sdmmc4";
216 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
217 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
218 nvidia,tristate = <TEGRA_PIN_DISABLE>;
219 };
220 sdmmc4_cmd_pt7 {
221 nvidia,pins = "sdmmc4_cmd_pt7",
222 "sdmmc4_dat0_paa0",
223 "sdmmc4_dat1_paa1",
224 "sdmmc4_dat2_paa2",
225 "sdmmc4_dat3_paa3",
226 "sdmmc4_dat4_paa4",
227 "sdmmc4_dat5_paa5",
228 "sdmmc4_dat6_paa6",
229 "sdmmc4_dat7_paa7";
230 nvidia,function = "sdmmc4";
231 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
232 nvidia,pull = <TEGRA_PIN_PULL_UP>;
233 nvidia,tristate = <TEGRA_PIN_DISABLE>;
234 };
235 pwr_i2c_scl_pz6 {
236 nvidia,pins = "pwr_i2c_scl_pz6",
237 "pwr_i2c_sda_pz7";
238 nvidia,function = "i2cpwr";
239 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
240 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
241 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Laxman Dewangan365c4832013-12-18 18:22:58 +0530242 nvidia,lock = <TEGRA_PIN_DISABLE>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530243 nvidia,open-drain = <TEGRA_PIN_ENABLE>;
244 };
245 jtag_rtck {
246 nvidia,pins = "jtag_rtck";
247 nvidia,function = "rtck";
248 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
249 nvidia,pull = <TEGRA_PIN_PULL_UP>;
250 nvidia,tristate = <TEGRA_PIN_DISABLE>;
251 };
252 clk_32k_in {
253 nvidia,pins = "clk_32k_in";
254 nvidia,function = "clk";
255 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
256 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
257 nvidia,tristate = <TEGRA_PIN_DISABLE>;
258 };
259 core_pwr_req {
260 nvidia,pins = "core_pwr_req";
261 nvidia,function = "pwron";
262 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
263 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
264 nvidia,tristate = <TEGRA_PIN_DISABLE>;
265 };
266 cpu_pwr_req {
267 nvidia,pins = "cpu_pwr_req";
268 nvidia,function = "cpu";
269 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
270 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
271 nvidia,tristate = <TEGRA_PIN_DISABLE>;
272 };
273 pwr_int_n {
274 nvidia,pins = "pwr_int_n";
275 nvidia,function = "pmi";
276 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
277 nvidia,pull = <TEGRA_PIN_PULL_UP>;
278 nvidia,tristate = <TEGRA_PIN_DISABLE>;
279 };
280 reset_out_n {
281 nvidia,pins = "reset_out_n";
282 nvidia,function = "reset_out_n";
283 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
284 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
285 nvidia,tristate = <TEGRA_PIN_DISABLE>;
286 };
287 clk3_out_pee0 {
288 nvidia,pins = "clk3_out_pee0";
289 nvidia,function = "extperiph3";
290 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
291 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
292 nvidia,tristate = <TEGRA_PIN_DISABLE>;
293 };
294 dap4_din_pp5 {
Laxman Dewangan365c4832013-12-18 18:22:58 +0530295 nvidia,pins = "dap4_din_pp5";
296 nvidia,function = "i2s3";
297 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
298 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
299 nvidia,tristate = <TEGRA_PIN_ENABLE>;
300 };
301 dap4_dout_pp6 {
302 nvidia,pins = "dap4_dout_pp6",
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530303 "dap4_fs_pp4",
304 "dap4_sclk_pp7";
305 nvidia,function = "i2s3";
Laxman Dewangan365c4832013-12-18 18:22:58 +0530306 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530307 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
308 nvidia,tristate = <TEGRA_PIN_ENABLE>;
309 };
310 gen1_i2c_sda_pc5 {
311 nvidia,pins = "gen1_i2c_sda_pc5",
312 "gen1_i2c_scl_pc4";
313 nvidia,function = "i2c1";
314 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
315 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
316 nvidia,tristate = <TEGRA_PIN_DISABLE>;
317 nvidia,lock = <TEGRA_PIN_DISABLE>;
Laxman Dewangan365c4832013-12-18 18:22:58 +0530318 nvidia,open-drain = <TEGRA_PIN_ENABLE>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530319 };
320 uart2_cts_n_pj5 {
Laxman Dewangan365c4832013-12-18 18:22:58 +0530321 nvidia,pins = "uart2_cts_n_pj5";
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530322 nvidia,function = "uartb";
323 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
324 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
325 nvidia,tristate = <TEGRA_PIN_DISABLE>;
326 };
Laxman Dewangan365c4832013-12-18 18:22:58 +0530327 uart2_rts_n_pj6 {
328 nvidia,pins = "uart2_rts_n_pj6";
329 nvidia,function = "uartb";
330 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
331 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
332 nvidia,tristate = <TEGRA_PIN_DISABLE>;
333 };
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530334 uart2_rxd_pc3 {
Laxman Dewangan365c4832013-12-18 18:22:58 +0530335 nvidia,pins = "uart2_rxd_pc3";
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530336 nvidia,function = "irda";
337 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
338 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
339 nvidia,tristate = <TEGRA_PIN_DISABLE>;
340 };
Laxman Dewangan365c4832013-12-18 18:22:58 +0530341 uart2_txd_pc2 {
342 nvidia,pins = "uart2_txd_pc2";
343 nvidia,function = "irda";
344 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
345 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
346 nvidia,tristate = <TEGRA_PIN_DISABLE>;
347 };
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530348 uart3_cts_n_pa1 {
349 nvidia,pins = "uart3_cts_n_pa1",
Laxman Dewangan365c4832013-12-18 18:22:58 +0530350 "uart3_rxd_pw7";
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530351 nvidia,function = "uartc";
352 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
353 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
354 nvidia,tristate = <TEGRA_PIN_DISABLE>;
355 };
Laxman Dewangan365c4832013-12-18 18:22:58 +0530356 uart3_rts_n_pc0 {
357 nvidia,pins = "uart3_rts_n_pc0",
358 "uart3_txd_pw6";
359 nvidia,function = "uartc";
360 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
361 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
362 nvidia,tristate = <TEGRA_PIN_DISABLE>;
363 };
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530364 hdmi_cec_pee3 {
365 nvidia,pins = "hdmi_cec_pee3";
366 nvidia,function = "cec";
367 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
368 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
369 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Laxman Dewangan365c4832013-12-18 18:22:58 +0530370 nvidia,lock = <TEGRA_PIN_DISABLE>;
371 nvidia,open-drain = <TEGRA_PIN_DISABLE>;
372 };
373 hdmi_int_pn7 {
374 nvidia,pins = "hdmi_int_pn7";
375 nvidia,function = "rsvd1";
376 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
377 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
378 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530379 };
380 ddc_scl_pv4 {
381 nvidia,pins = "ddc_scl_pv4",
382 "ddc_sda_pv5";
383 nvidia,function = "i2c4";
384 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
385 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
386 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Laxman Dewangan365c4832013-12-18 18:22:58 +0530387 nvidia,lock = <TEGRA_PIN_DISABLE>;
388 nvidia,rcv-sel = <TEGRA_PIN_ENABLE>;
389 };
390 pj7 {
391 nvidia,pins = "pj7",
392 "pk7";
393 nvidia,function = "uartd";
394 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
395 nvidia,tristate = <TEGRA_PIN_DISABLE>;
396 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
397 };
398 pb0 {
399 nvidia,pins = "pb0",
400 "pb1";
401 nvidia,function = "uartd";
402 nvidia,pull = <TEGRA_PIN_PULL_UP>;
403 nvidia,tristate = <TEGRA_PIN_DISABLE>;
404 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
405 };
406 ph0 {
407 nvidia,pins = "ph0";
408 nvidia,function = "pwm0";
409 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
410 nvidia,tristate = <TEGRA_PIN_DISABLE>;
411 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
412 };
413 kb_row10_ps2 {
414 nvidia,pins = "kb_row10_ps2";
415 nvidia,function = "uarta";
416 nvidia,pull = <TEGRA_PIN_PULL_UP>;
417 nvidia,tristate = <TEGRA_PIN_DISABLE>;
418 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
419 };
420 kb_row9_ps1 {
421 nvidia,pins = "kb_row9_ps1";
422 nvidia,function = "uarta";
423 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
424 nvidia,tristate = <TEGRA_PIN_DISABLE>;
425 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
426 };
427 kb_row6_pr6 {
428 nvidia,pins = "kb_row6_pr6";
429 nvidia,function = "displaya_alt";
430 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
431 nvidia,tristate = <TEGRA_PIN_DISABLE>;
432 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530433 };
434 usb_vbus_en0_pn4 {
Thierry Redingfa15ffa2014-02-25 16:45:04 +0100435 nvidia,pins = "usb_vbus_en0_pn4",
436 "usb_vbus_en1_pn5";
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530437 nvidia,function = "usb";
438 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
Thierry Redingfa15ffa2014-02-25 16:45:04 +0100439 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530440 nvidia,tristate = <TEGRA_PIN_DISABLE>;
441 nvidia,lock = <TEGRA_PIN_DISABLE>;
Laxman Dewangan365c4832013-12-18 18:22:58 +0530442 nvidia,open-drain = <TEGRA_PIN_ENABLE>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530443 };
444 drive_sdio1 {
445 nvidia,pins = "drive_sdio1";
446 nvidia,high-speed-mode = <TEGRA_PIN_ENABLE>;
447 nvidia,schmitt = <TEGRA_PIN_DISABLE>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530448 nvidia,pull-down-strength = <32>;
449 nvidia,pull-up-strength = <42>;
450 nvidia,slew-rate-rising = <TEGRA_PIN_SLEW_RATE_FASTEST>;
451 nvidia,slew-rate-falling = <TEGRA_PIN_SLEW_RATE_FASTEST>;
452 };
453 drive_sdio3 {
454 nvidia,pins = "drive_sdio3";
455 nvidia,high-speed-mode = <TEGRA_PIN_ENABLE>;
456 nvidia,schmitt = <TEGRA_PIN_DISABLE>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530457 nvidia,pull-down-strength = <20>;
458 nvidia,pull-up-strength = <36>;
459 nvidia,slew-rate-rising = <TEGRA_PIN_SLEW_RATE_FASTEST>;
460 nvidia,slew-rate-falling = <TEGRA_PIN_SLEW_RATE_FASTEST>;
461 };
462 drive_gma {
463 nvidia,pins = "drive_gma";
464 nvidia,high-speed-mode = <TEGRA_PIN_ENABLE>;
465 nvidia,schmitt = <TEGRA_PIN_DISABLE>;
466 nvidia,low-power-mode = <TEGRA_PIN_LP_DRIVE_DIV_1>;
467 nvidia,pull-down-strength = <1>;
468 nvidia,pull-up-strength = <2>;
469 nvidia,slew-rate-rising = <TEGRA_PIN_SLEW_RATE_FASTEST>;
470 nvidia,slew-rate-falling = <TEGRA_PIN_SLEW_RATE_FASTEST>;
471 nvidia,drive-type = <1>;
472 };
Laxman Dewangan365c4832013-12-18 18:22:58 +0530473 als_irq_l {
474 nvidia,pins = "gpio_x3_aud_px3";
475 nvidia,function = "gmi";
476 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
477 nvidia,tristate = <TEGRA_PIN_ENABLE>;
478 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
479 };
480 codec_irq_l {
481 nvidia,pins = "ph4";
482 nvidia,function = "gmi";
483 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
484 nvidia,tristate = <TEGRA_PIN_DISABLE>;
485 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
486 };
487 lcd_bl_en {
488 nvidia,pins = "ph2";
489 nvidia,function = "gmi";
490 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
491 nvidia,tristate = <TEGRA_PIN_DISABLE>;
492 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
493 };
494 touch_irq_l {
495 nvidia,pins = "gpio_w3_aud_pw3";
496 nvidia,function = "spi6";
497 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
498 nvidia,tristate = <TEGRA_PIN_ENABLE>;
499 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
500 };
501 tpm_davint_l {
502 nvidia,pins = "ph6";
503 nvidia,function = "gmi";
504 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
505 nvidia,tristate = <TEGRA_PIN_ENABLE>;
506 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
507 };
508 ts_irq_l {
509 nvidia,pins = "pk2";
510 nvidia,function = "gmi";
511 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
512 nvidia,tristate = <TEGRA_PIN_ENABLE>;
513 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
514 };
515 ts_reset_l {
516 nvidia,pins = "pk4";
517 nvidia,function = "gmi";
518 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
519 nvidia,tristate = <TEGRA_PIN_DISABLE>;
520 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
521 };
522 ts_shdn_l {
523 nvidia,pins = "pk1";
524 nvidia,function = "gmi";
525 nvidia,pull = <TEGRA_PIN_PULL_UP>;
526 nvidia,tristate = <TEGRA_PIN_DISABLE>;
527 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
528 };
529 ph7 {
530 nvidia,pins = "ph7";
531 nvidia,function = "gmi";
532 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
533 nvidia,tristate = <TEGRA_PIN_DISABLE>;
534 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
535 };
536 kb_col0_ap {
537 nvidia,pins = "kb_col0_pq0";
538 nvidia,function = "rsvd4";
539 nvidia,pull = <TEGRA_PIN_PULL_UP>;
540 nvidia,tristate = <TEGRA_PIN_DISABLE>;
541 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
542 };
543 lid_open {
544 nvidia,pins = "kb_row4_pr4";
545 nvidia,function = "rsvd3";
546 nvidia,pull = <TEGRA_PIN_PULL_UP>;
547 nvidia,tristate = <TEGRA_PIN_DISABLE>;
548 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
549 };
550 en_vdd_sd {
551 nvidia,pins = "kb_row0_pr0";
552 nvidia,function = "rsvd4";
553 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
554 nvidia,tristate = <TEGRA_PIN_DISABLE>;
555 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
556 };
557 ac_ok {
558 nvidia,pins = "pj0";
559 nvidia,function = "gmi";
560 nvidia,pull = <TEGRA_PIN_PULL_UP>;
561 nvidia,tristate = <TEGRA_PIN_ENABLE>;
562 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
563 };
564 sensor_irq_l {
565 nvidia,pins = "pi6";
566 nvidia,function = "gmi";
567 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
568 nvidia,tristate = <TEGRA_PIN_DISABLE>;
569 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
570 };
571 wifi_en {
572 nvidia,pins = "gpio_x7_aud_px7";
573 nvidia,function = "rsvd4";
574 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
575 nvidia,tristate = <TEGRA_PIN_DISABLE>;
576 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
577 };
578 wifi_rst_l {
579 nvidia,pins = "clk2_req_pcc5";
580 nvidia,function = "dap";
581 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
582 nvidia,tristate = <TEGRA_PIN_DISABLE>;
583 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
584 };
585 hp_det_l {
586 nvidia,pins = "ulpi_data1_po2";
587 nvidia,function = "spi3";
588 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
589 nvidia,tristate = <TEGRA_PIN_DISABLE>;
590 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
591 };
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530592 };
593 };
594
Stephen Warrene30cb232014-03-03 14:51:15 -0700595 serial@0,70006000 {
Joseph Loa1425d42013-10-08 12:50:06 +0800596 status = "okay";
597 };
598
Dylan Reidedfbad02014-09-04 15:20:34 -0700599 pwm@0,7000a000 {
Thierry Redinge0134852013-11-18 17:00:35 +0100600 status = "okay";
601 };
602
Stephen Warrene30cb232014-03-03 14:51:15 -0700603 i2c@0,7000c000 {
Stephen Warren9d5b2502013-12-03 16:44:35 -0700604 status = "okay";
605 clock-frequency = <100000>;
Stephen Warrenb0e1cae2013-12-03 17:26:12 -0700606
607 acodec: audio-codec@10 {
608 compatible = "maxim,max98090";
609 reg = <0x10>;
610 interrupt-parent = <&gpio>;
611 interrupts = <TEGRA_GPIO(H, 4) GPIO_ACTIVE_HIGH>;
612 };
Stephen Warren9d5b2502013-12-03 16:44:35 -0700613 };
614
Stephen Warrene30cb232014-03-03 14:51:15 -0700615 i2c@0,7000c400 {
Stephen Warren9d5b2502013-12-03 16:44:35 -0700616 status = "okay";
617 clock-frequency = <100000>;
Stephen Warrenbf8f0392014-09-02 09:57:09 -0600618
619 trackpad@4b {
620 compatible = "atmel,maxtouch";
621 reg = <0x4b>;
622 interrupt-parent = <&gpio>;
623 interrupts = <TEGRA_GPIO(W, 3) IRQ_TYPE_LEVEL_LOW>;
624 linux,gpio-keymap = <0 0 0 BTN_LEFT>;
625 };
Stephen Warren9d5b2502013-12-03 16:44:35 -0700626 };
627
Stephen Warrene30cb232014-03-03 14:51:15 -0700628 i2c@0,7000c500 {
Stephen Warren9d5b2502013-12-03 16:44:35 -0700629 status = "okay";
630 clock-frequency = <100000>;
631 };
632
Thierry Reding329c39f2014-04-25 17:44:46 +0200633 hdmi_ddc: i2c@0,7000c700 {
Stephen Warren9d5b2502013-12-03 16:44:35 -0700634 status = "okay";
635 clock-frequency = <100000>;
636 };
637
Stephen Warrene30cb232014-03-03 14:51:15 -0700638 i2c@0,7000d000 {
Stephen Warren9d5b2502013-12-03 16:44:35 -0700639 status = "okay";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530640 clock-frequency = <400000>;
641
Thierry Redingfdc44f92014-02-28 17:40:28 +0100642 pmic: pmic@40 {
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530643 compatible = "ams,as3722";
644 reg = <0x40>;
645 interrupts = <0 86 IRQ_TYPE_LEVEL_HIGH>;
646
Laxman Dewangan7be75df2014-01-09 16:31:48 +0530647 ams,system-power-controller;
648
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530649 #interrupt-cells = <2>;
650 interrupt-controller;
651
652 gpio-controller;
653 #gpio-cells = <2>;
654
655 pinctrl-names = "default";
656 pinctrl-0 = <&as3722_default>;
657
658 as3722_default: pinmux {
659 gpio0 {
660 pins = "gpio0";
661 function = "gpio";
662 bias-pull-down;
663 };
664
665 gpio1_2_4_7 {
666 pins = "gpio1", "gpio2", "gpio4", "gpio7";
667 function = "gpio";
668 bias-pull-up;
669 };
670
671 gpio3_6 {
672 pins = "gpio3", "gpio6";
673 bias-high-impedance;
674 };
675
676 gpio5 {
677 pins = "gpio5";
678 function = "clk32k-out";
679 };
680 };
681
682 regulators {
Thierry Redingaf144b82014-02-28 17:40:20 +0100683 vsup-sd2-supply = <&vdd_5v0_sys>;
684 vsup-sd3-supply = <&vdd_5v0_sys>;
685 vsup-sd4-supply = <&vdd_5v0_sys>;
686 vsup-sd5-supply = <&vdd_5v0_sys>;
687 vin-ldo0-supply = <&vdd_1v35_lp0>;
688 vin-ldo1-6-supply = <&vdd_3v3_run>;
689 vin-ldo2-5-7-supply = <&vddio_1v8>;
690 vin-ldo3-4-supply = <&vdd_3v3_sys>;
691 vin-ldo9-10-supply = <&vdd_5v0_sys>;
692 vin-ldo11-supply = <&vdd_3v3_run>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530693
694 sd0 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100695 regulator-name = "+VDD_CPU_AP";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530696 regulator-min-microvolt = <700000>;
697 regulator-max-microvolt = <1400000>;
698 regulator-min-microamp = <3500000>;
699 regulator-max-microamp = <3500000>;
700 regulator-always-on;
701 regulator-boot-on;
Tuomas Tynkkynenee913f72014-07-09 21:53:17 +0300702 ams,ext-control = <2>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530703 };
704
705 sd1 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100706 regulator-name = "+VDD_CORE";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530707 regulator-min-microvolt = <700000>;
708 regulator-max-microvolt = <1350000>;
709 regulator-min-microamp = <2500000>;
710 regulator-max-microamp = <2500000>;
711 regulator-always-on;
712 regulator-boot-on;
Tuomas Tynkkynenee913f72014-07-09 21:53:17 +0300713 ams,ext-control = <1>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530714 };
715
Thierry Redingaf144b82014-02-28 17:40:20 +0100716 vdd_1v35_lp0: sd2 {
717 regulator-name = "+1.35V_LP0(sd2)";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530718 regulator-min-microvolt = <1350000>;
719 regulator-max-microvolt = <1350000>;
720 regulator-always-on;
721 regulator-boot-on;
722 };
723
724 sd3 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100725 regulator-name = "+1.35V_LP0(sd3)";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530726 regulator-min-microvolt = <1350000>;
727 regulator-max-microvolt = <1350000>;
728 regulator-always-on;
729 regulator-boot-on;
730 };
731
Thierry Reding329c39f2014-04-25 17:44:46 +0200732 vdd_1v05_run: sd4 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100733 regulator-name = "+1.05V_RUN";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530734 regulator-min-microvolt = <1050000>;
735 regulator-max-microvolt = <1050000>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530736 };
737
Thierry Redingaf144b82014-02-28 17:40:20 +0100738 vddio_1v8: sd5 {
739 regulator-name = "+1.8V_VDDIO";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530740 regulator-min-microvolt = <1800000>;
741 regulator-max-microvolt = <1800000>;
742 regulator-boot-on;
743 regulator-always-on;
744 };
745
Thierry Redinge34cc1b62015-07-01 18:13:46 +0900746 vdd_gpu: sd6 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100747 regulator-name = "+VDD_GPU_AP";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530748 regulator-min-microvolt = <650000>;
749 regulator-max-microvolt = <1200000>;
750 regulator-min-microamp = <3500000>;
751 regulator-max-microamp = <3500000>;
752 regulator-boot-on;
753 regulator-always-on;
754 };
755
756 ldo0 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100757 regulator-name = "+1.05V_RUN_AVDD";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530758 regulator-min-microvolt = <1050000>;
759 regulator-max-microvolt = <1050000>;
760 regulator-boot-on;
761 regulator-always-on;
Tuomas Tynkkynenee913f72014-07-09 21:53:17 +0300762 ams,ext-control = <1>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530763 };
764
765 ldo1 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100766 regulator-name = "+1.8V_RUN_CAM";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530767 regulator-min-microvolt = <1800000>;
768 regulator-max-microvolt = <1800000>;
769 };
770
771 ldo2 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100772 regulator-name = "+1.2V_GEN_AVDD";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530773 regulator-min-microvolt = <1200000>;
774 regulator-max-microvolt = <1200000>;
775 regulator-boot-on;
776 regulator-always-on;
777 };
778
779 ldo3 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100780 regulator-name = "+1.00V_LP0_VDD_RTC";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530781 regulator-min-microvolt = <1000000>;
782 regulator-max-microvolt = <1000000>;
783 regulator-boot-on;
784 regulator-always-on;
785 ams,enable-tracking;
786 };
787
Thierry Reding431b7be2014-02-28 17:40:26 +0100788 vdd_run_cam: ldo4 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100789 regulator-name = "+3.3V_RUN_CAM";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530790 regulator-min-microvolt = <2800000>;
791 regulator-max-microvolt = <2800000>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530792 };
793
794 ldo5 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100795 regulator-name = "+1.2V_RUN_CAM_FRONT";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530796 regulator-min-microvolt = <1200000>;
797 regulator-max-microvolt = <1200000>;
798 };
799
Thierry Reding4989b432014-02-28 17:40:21 +0100800 vddio_sdmmc3: ldo6 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100801 regulator-name = "+VDDIO_SDMMC3";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530802 regulator-min-microvolt = <1800000>;
803 regulator-max-microvolt = <3300000>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530804 };
805
806 ldo7 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100807 regulator-name = "+1.05V_RUN_CAM_REAR";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530808 regulator-min-microvolt = <1050000>;
809 regulator-max-microvolt = <1050000>;
810 };
811
812 ldo9 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100813 regulator-name = "+2.8V_RUN_TOUCH";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530814 regulator-min-microvolt = <2800000>;
815 regulator-max-microvolt = <2800000>;
816 };
817
818 ldo10 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100819 regulator-name = "+2.8V_RUN_CAM_AF";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530820 regulator-min-microvolt = <2800000>;
821 regulator-max-microvolt = <2800000>;
822 };
823
824 ldo11 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100825 regulator-name = "+1.8V_RUN_VPP_FUSE";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530826 regulator-min-microvolt = <1800000>;
827 regulator-max-microvolt = <1800000>;
828 };
829 };
830 };
Stephen Warren9d5b2502013-12-03 16:44:35 -0700831 };
832
Stephen Warrene30cb232014-03-03 14:51:15 -0700833 spi@0,7000d400 {
Thierry Reding146db0e2013-12-19 17:06:19 +0100834 status = "okay";
835
Doug Andersonf01dd552014-06-04 15:20:19 -0700836 cros_ec: cros-ec@0 {
Thierry Reding146db0e2013-12-19 17:06:19 +0100837 compatible = "google,cros-ec-spi";
838 spi-max-frequency = <4000000>;
839 interrupt-parent = <&gpio>;
840 interrupts = <TEGRA_GPIO(C, 7) IRQ_TYPE_LEVEL_LOW>;
841 reg = <0>;
842
843 google,cros-ec-spi-msg-delay = <2000>;
Doug Anderson72ceddd2014-04-30 10:44:10 -0700844
845 i2c-tunnel {
846 compatible = "google,cros-ec-i2c-tunnel";
847 #address-cells = <1>;
848 #size-cells = <0>;
849
850 google,remote-bus = <0>;
851
852 charger: bq24735@9 {
853 compatible = "ti,bq24735";
854 reg = <0x9>;
855 interrupt-parent = <&gpio>;
856 interrupts = <TEGRA_GPIO(J, 0)
857 GPIO_ACTIVE_HIGH>;
858 ti,ac-detect-gpios = <&gpio
859 TEGRA_GPIO(J, 0)
860 GPIO_ACTIVE_HIGH>;
861 };
862
863 battery: sbs-battery@b {
864 compatible = "sbs,sbs-battery";
865 reg = <0xb>;
866 sbs,i2c-retry-count = <2>;
867 sbs,poll-retry-count = <1>;
868 };
869 };
Thierry Reding146db0e2013-12-19 17:06:19 +0100870 };
871 };
872
Stephen Warrene30cb232014-03-03 14:51:15 -0700873 spi@0,7000da00 {
Stephen Warren11e5b4f2014-02-18 15:03:21 -0700874 status = "okay";
875 spi-max-frequency = <25000000>;
876 spi-flash@0 {
877 compatible = "winbond,w25q32dw";
878 reg = <0>;
879 spi-max-frequency = <20000000>;
880 };
881 };
882
Stephen Warrene30cb232014-03-03 14:51:15 -0700883 pmc@0,7000e400 {
Joseph Loa1425d42013-10-08 12:50:06 +0800884 nvidia,invert-interrupt;
Joseph Lo6ec1d122013-10-11 17:58:39 +0800885 nvidia,suspend-mode = <1>;
886 nvidia,cpu-pwr-good-time = <500>;
887 nvidia,cpu-pwr-off-time = <300>;
888 nvidia,core-pwr-good-time = <641 3845>;
889 nvidia,core-pwr-off-time = <61036>;
890 nvidia,core-power-req-active-high;
891 nvidia,sys-clock-req-active-high;
Joseph Loa1425d42013-10-08 12:50:06 +0800892 };
Joseph Lo3b86baf2013-10-08 15:47:40 +0800893
Dylan Reid0f3d3bf2014-05-19 19:35:46 -0700894 hda@0,70030000 {
895 status = "okay";
896 };
897
Stephen Warrene30cb232014-03-03 14:51:15 -0700898 sdhci@0,700b0400 {
Stephen Warren784c7442013-10-31 17:23:05 -0600899 cd-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_HIGH>;
900 power-gpios = <&gpio TEGRA_GPIO(R, 0) GPIO_ACTIVE_HIGH>;
Stephen Warren2be8f4a2014-04-28 12:10:26 -0600901 wp-gpios = <&gpio TEGRA_GPIO(Q, 4) GPIO_ACTIVE_LOW>;
Stephen Warren784c7442013-10-31 17:23:05 -0600902 status = "okay";
903 bus-width = <4>;
Andrew Bresticker49228ca2014-04-16 16:08:39 -0700904 vqmmc-supply = <&vddio_sdmmc3>;
Stephen Warren784c7442013-10-31 17:23:05 -0600905 };
906
Stephen Warrene30cb232014-03-03 14:51:15 -0700907 sdhci@0,700b0600 {
Stephen Warren784c7442013-10-31 17:23:05 -0600908 status = "okay";
909 bus-width = <8>;
Thierry Redingecb53f52014-07-18 12:11:19 +0200910 non-removable;
Stephen Warren784c7442013-10-31 17:23:05 -0600911 };
912
Stephen Warrene30cb232014-03-03 14:51:15 -0700913 ahub@0,70300000 {
914 i2s@0,70301100 {
Stephen Warrenb0e1cae2013-12-03 17:26:12 -0700915 status = "okay";
916 };
917 };
918
Stephen Warrene30cb232014-03-03 14:51:15 -0700919 usb@0,7d000000 {
Thierry Reding431b7be2014-02-28 17:40:26 +0100920 status = "okay";
921 };
922
Stephen Warrene30cb232014-03-03 14:51:15 -0700923 usb-phy@0,7d000000 {
Thierry Reding431b7be2014-02-28 17:40:26 +0100924 status = "okay";
925 vbus-supply = <&vdd_usb1_vbus>;
926 };
927
Stephen Warrene30cb232014-03-03 14:51:15 -0700928 usb@0,7d004000 {
Thierry Reding431b7be2014-02-28 17:40:26 +0100929 status = "okay";
930 };
931
Stephen Warrene30cb232014-03-03 14:51:15 -0700932 usb-phy@0,7d004000 {
Thierry Reding431b7be2014-02-28 17:40:26 +0100933 status = "okay";
934 vbus-supply = <&vdd_run_cam>;
935 };
936
Stephen Warrene30cb232014-03-03 14:51:15 -0700937 usb@0,7d008000 {
Thierry Reding431b7be2014-02-28 17:40:26 +0100938 status = "okay";
939 };
940
Stephen Warrene30cb232014-03-03 14:51:15 -0700941 usb-phy@0,7d008000 {
Thierry Reding431b7be2014-02-28 17:40:26 +0100942 status = "okay";
943 vbus-supply = <&vdd_usb3_vbus>;
944 };
945
Thierry Reding40e231c2014-02-28 17:40:24 +0100946 backlight: backlight {
947 compatible = "pwm-backlight";
948
949 enable-gpios = <&gpio TEGRA_GPIO(H, 2) GPIO_ACTIVE_HIGH>;
950 power-supply = <&vdd_led>;
951 pwms = <&pwm 1 1000000>;
952
953 brightness-levels = <0 4 8 16 32 64 128 255>;
954 default-brightness-level = <6>;
955 };
956
Joseph Lo3b86baf2013-10-08 15:47:40 +0800957 clocks {
958 compatible = "simple-bus";
959 #address-cells = <1>;
960 #size-cells = <0>;
961
962 clk32k_in: clock@0 {
963 compatible = "fixed-clock";
Thierry Reding4b356602014-02-28 17:40:27 +0100964 reg = <0>;
Joseph Lo3b86baf2013-10-08 15:47:40 +0800965 #clock-cells = <0>;
966 clock-frequency = <32768>;
967 };
968 };
Stephen Warrenb0e1cae2013-12-03 17:26:12 -0700969
Thierry Reding3f748d42013-12-19 17:06:20 +0100970 gpio-keys {
971 compatible = "gpio-keys";
972
973 power {
974 label = "Power";
975 gpios = <&gpio TEGRA_GPIO(Q, 0) GPIO_ACTIVE_LOW>;
976 linux,code = <KEY_POWER>;
977 debounce-interval = <10>;
978 gpio-key,wakeup;
979 };
980 };
981
Thierry Reding40e231c2014-02-28 17:40:24 +0100982 panel: panel {
983 compatible = "lg,lp129qe", "simple-panel";
984
985 backlight = <&backlight>;
986 ddc-i2c-bus = <&dpaux>;
987 };
988
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530989 regulators {
990 compatible = "simple-bus";
991 #address-cells = <1>;
992 #size-cells = <0>;
993
Thierry Redingaf144b82014-02-28 17:40:20 +0100994 vdd_mux: regulator@0 {
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530995 compatible = "regulator-fixed";
996 reg = <0>;
Thierry Redingaf144b82014-02-28 17:40:20 +0100997 regulator-name = "+VDD_MUX";
998 regulator-min-microvolt = <12000000>;
999 regulator-max-microvolt = <12000000>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301000 regulator-always-on;
Thierry Redingaf144b82014-02-28 17:40:20 +01001001 regulator-boot-on;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301002 };
1003
Thierry Redingaf144b82014-02-28 17:40:20 +01001004 vdd_5v0_sys: regulator@1 {
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301005 compatible = "regulator-fixed";
1006 reg = <1>;
Thierry Redingaf144b82014-02-28 17:40:20 +01001007 regulator-name = "+5V_SYS";
1008 regulator-min-microvolt = <5000000>;
1009 regulator-max-microvolt = <5000000>;
1010 regulator-always-on;
1011 regulator-boot-on;
1012 vin-supply = <&vdd_mux>;
1013 };
1014
1015 vdd_3v3_sys: regulator@2 {
1016 compatible = "regulator-fixed";
1017 reg = <2>;
1018 regulator-name = "+3.3V_SYS";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301019 regulator-min-microvolt = <3300000>;
1020 regulator-max-microvolt = <3300000>;
1021 regulator-always-on;
1022 regulator-boot-on;
Thierry Redingaf144b82014-02-28 17:40:20 +01001023 vin-supply = <&vdd_mux>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301024 };
1025
Thierry Redingaf144b82014-02-28 17:40:20 +01001026 vdd_3v3_run: regulator@3 {
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301027 compatible = "regulator-fixed";
1028 reg = <3>;
Thierry Redingaf144b82014-02-28 17:40:20 +01001029 regulator-name = "+3.3V_RUN";
1030 regulator-min-microvolt = <3300000>;
1031 regulator-max-microvolt = <3300000>;
Stephen Warrenc7fe7672014-04-15 16:27:01 -06001032 regulator-always-on;
1033 regulator-boot-on;
Thierry Redingfdc44f92014-02-28 17:40:28 +01001034 gpio = <&pmic 1 GPIO_ACTIVE_HIGH>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301035 enable-active-high;
Thierry Redingaf144b82014-02-28 17:40:20 +01001036 vin-supply = <&vdd_3v3_sys>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301037 };
1038
Thierry Redingaf144b82014-02-28 17:40:20 +01001039 vdd_3v3_hdmi: regulator@4 {
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301040 compatible = "regulator-fixed";
1041 reg = <4>;
Thierry Redingaf144b82014-02-28 17:40:20 +01001042 regulator-name = "+3.3V_AVDD_HDMI_AP_GATED";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301043 regulator-min-microvolt = <3300000>;
1044 regulator-max-microvolt = <3300000>;
Thierry Redingaf144b82014-02-28 17:40:20 +01001045 vin-supply = <&vdd_3v3_run>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301046 };
1047
Thierry Redingaf144b82014-02-28 17:40:20 +01001048 vdd_led: regulator@5 {
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301049 compatible = "regulator-fixed";
1050 reg = <5>;
Thierry Redingaf144b82014-02-28 17:40:20 +01001051 regulator-name = "+VDD_LED";
Thierry Reding467b9b52014-07-18 12:11:44 +02001052 regulator-min-microvolt = <3300000>;
1053 regulator-max-microvolt = <3300000>;
Thierry Redingaf144b82014-02-28 17:40:20 +01001054 gpio = <&gpio TEGRA_GPIO(P, 2) GPIO_ACTIVE_HIGH>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301055 enable-active-high;
Thierry Redingaf144b82014-02-28 17:40:20 +01001056 vin-supply = <&vdd_mux>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301057 };
1058
Thierry Redingaf144b82014-02-28 17:40:20 +01001059 vdd_5v0_ts: regulator@6 {
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301060 compatible = "regulator-fixed";
1061 reg = <6>;
Thierry Redingaf144b82014-02-28 17:40:20 +01001062 regulator-name = "+5V_VDD_TS_SW";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301063 regulator-min-microvolt = <5000000>;
1064 regulator-max-microvolt = <5000000>;
1065 regulator-boot-on;
Thierry Redingaf144b82014-02-28 17:40:20 +01001066 gpio = <&gpio TEGRA_GPIO(K, 1) GPIO_ACTIVE_HIGH>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301067 enable-active-high;
Thierry Redingaf144b82014-02-28 17:40:20 +01001068 vin-supply = <&vdd_5v0_sys>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301069 };
1070
Thierry Redingaf144b82014-02-28 17:40:20 +01001071 vdd_usb1_vbus: regulator@7 {
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301072 compatible = "regulator-fixed";
1073 reg = <7>;
Thierry Redingaf144b82014-02-28 17:40:20 +01001074 regulator-name = "+5V_USB_HS";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301075 regulator-min-microvolt = <5000000>;
1076 regulator-max-microvolt = <5000000>;
Thierry Redingaf144b82014-02-28 17:40:20 +01001077 gpio = <&gpio TEGRA_GPIO(N, 4) GPIO_ACTIVE_HIGH>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301078 enable-active-high;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301079 gpio-open-drain;
Thierry Redingaf144b82014-02-28 17:40:20 +01001080 vin-supply = <&vdd_5v0_sys>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301081 };
1082
Thierry Redingaf144b82014-02-28 17:40:20 +01001083 vdd_usb3_vbus: regulator@8 {
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301084 compatible = "regulator-fixed";
1085 reg = <8>;
Thierry Redingaf144b82014-02-28 17:40:20 +01001086 regulator-name = "+5V_USB_SS";
1087 regulator-min-microvolt = <5000000>;
1088 regulator-max-microvolt = <5000000>;
1089 gpio = <&gpio TEGRA_GPIO(N, 5) GPIO_ACTIVE_HIGH>;
1090 enable-active-high;
1091 gpio-open-drain;
1092 vin-supply = <&vdd_5v0_sys>;
1093 };
1094
1095 vdd_3v3_panel: regulator@9 {
1096 compatible = "regulator-fixed";
1097 reg = <9>;
1098 regulator-name = "+3.3V_PANEL";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301099 regulator-min-microvolt = <3300000>;
1100 regulator-max-microvolt = <3300000>;
Thierry Redingfdc44f92014-02-28 17:40:28 +01001101 gpio = <&pmic 4 GPIO_ACTIVE_HIGH>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301102 enable-active-high;
Thierry Redingaf144b82014-02-28 17:40:20 +01001103 vin-supply = <&vdd_3v3_run>;
1104 };
1105
1106 vdd_3v3_lp0: regulator@10 {
1107 compatible = "regulator-fixed";
1108 reg = <10>;
1109 regulator-name = "+3.3V_LP0";
1110 regulator-min-microvolt = <3300000>;
1111 regulator-max-microvolt = <3300000>;
1112 /*
1113 * TODO: find a way to wire this up with the USB EHCI
1114 * controllers so that it can be enabled on demand.
1115 */
1116 regulator-always-on;
Thierry Redingfdc44f92014-02-28 17:40:28 +01001117 gpio = <&pmic 2 GPIO_ACTIVE_HIGH>;
Thierry Redingaf144b82014-02-28 17:40:20 +01001118 enable-active-high;
1119 vin-supply = <&vdd_3v3_sys>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301120 };
Thierry Reding329c39f2014-04-25 17:44:46 +02001121
1122 vdd_hdmi_pll: regulator@11 {
1123 compatible = "regulator-fixed";
1124 reg = <11>;
1125 regulator-name = "+1.05V_RUN_AVDD_HDMI_PLL";
1126 regulator-min-microvolt = <1050000>;
1127 regulator-max-microvolt = <1050000>;
1128 gpio = <&gpio TEGRA_GPIO(H, 7) GPIO_ACTIVE_LOW>;
1129 vin-supply = <&vdd_1v05_run>;
1130 };
1131
1132 vdd_5v0_hdmi: regulator@12 {
1133 compatible = "regulator-fixed";
1134 reg = <12>;
1135 regulator-name = "+5V_HDMI_CON";
1136 regulator-min-microvolt = <5000000>;
1137 regulator-max-microvolt = <5000000>;
1138 gpio = <&gpio TEGRA_GPIO(K, 6) GPIO_ACTIVE_HIGH>;
1139 enable-active-high;
1140 vin-supply = <&vdd_5v0_sys>;
1141 };
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301142 };
1143
Stephen Warrenb0e1cae2013-12-03 17:26:12 -07001144 sound {
1145 compatible = "nvidia,tegra-audio-max98090-venice2",
1146 "nvidia,tegra-audio-max98090";
1147 nvidia,model = "NVIDIA Tegra Venice2";
1148
1149 nvidia,audio-routing =
1150 "Headphones", "HPR",
1151 "Headphones", "HPL",
1152 "Speakers", "SPKR",
1153 "Speakers", "SPKL",
1154 "Mic Jack", "MICBIAS",
1155 "IN34", "Mic Jack";
1156
1157 nvidia,i2s-controller = <&tegra_i2s1>;
1158 nvidia,audio-codec = <&acodec>;
1159
1160 clocks = <&tegra_car TEGRA124_CLK_PLL_A>,
1161 <&tegra_car TEGRA124_CLK_PLL_A_OUT0>,
1162 <&tegra_car TEGRA124_CLK_EXTERN1>;
1163 clock-names = "pll_a", "pll_a_out0", "mclk";
1164 };
Joseph Loa1425d42013-10-08 12:50:06 +08001165};
Doug Andersonf01dd552014-06-04 15:20:19 -07001166
1167#include "cros-ec-keyboard.dtsi"