blob: 5c3f7813360d2a59bffcc463f059b2047440fabf [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
Stephen Warrene30cb232014-03-03 14:51:15 -070046 pinmux: pinmux@0,70000868 {
Stephen Warren6dbaff22014-09-03 09:42:06 -060047 pinctrl-names = "boot";
48 pinctrl-0 = <&pinmux_boot>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +053049
Stephen Warren6dbaff22014-09-03 09:42:06 -060050 pinmux_boot: common {
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +053051 dap_mclk1_pw4 {
52 nvidia,pins = "dap_mclk1_pw4";
53 nvidia,function = "extperiph1";
54 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
55 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
56 nvidia,tristate = <TEGRA_PIN_DISABLE>;
57 };
58 dap1_din_pn1 {
Laxman Dewangan365c4832013-12-18 18:22:58 +053059 nvidia,pins = "dap1_din_pn1";
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +053060 nvidia,function = "i2s0";
61 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
62 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
63 nvidia,tristate = <TEGRA_PIN_ENABLE>;
64 };
Laxman Dewangan365c4832013-12-18 18:22:58 +053065 dap1_dout_pn2 {
66 nvidia,pins = "dap1_dout_pn2",
67 "dap1_fs_pn0",
68 "dap1_sclk_pn3";
69 nvidia,function = "i2s0";
70 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
71 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
72 nvidia,tristate = <TEGRA_PIN_ENABLE>;
73 };
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +053074 dap2_din_pa4 {
Laxman Dewangan365c4832013-12-18 18:22:58 +053075 nvidia,pins = "dap2_din_pa4";
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +053076 nvidia,function = "i2s1";
77 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
78 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
Stephen Warren4ffb9382013-12-12 14:40:30 -070079 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +053080 };
Laxman Dewangan365c4832013-12-18 18:22:58 +053081 dap2_dout_pa5 {
82 nvidia,pins = "dap2_dout_pa5",
83 "dap2_fs_pa2",
84 "dap2_sclk_pa3";
85 nvidia,function = "i2s1";
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +053086 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
87 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
Laxman Dewangan365c4832013-12-18 18:22:58 +053088 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +053089 };
Laxman Dewangan365c4832013-12-18 18:22:58 +053090 dvfs_pwm_px0 {
91 nvidia,pins = "dvfs_pwm_px0",
92 "dvfs_clk_px2";
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +053093 nvidia,function = "cldvfs";
94 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
95 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
96 nvidia,tristate = <TEGRA_PIN_DISABLE>;
97 };
98 ulpi_clk_py0 {
99 nvidia,pins = "ulpi_clk_py0",
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530100 "ulpi_nxt_py2",
101 "ulpi_stp_py3";
102 nvidia,function = "spi1";
Laxman Dewangan365c4832013-12-18 18:22:58 +0530103 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
104 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
105 nvidia,tristate = <TEGRA_PIN_DISABLE>;
106 };
107 ulpi_dir_py1 {
108 nvidia,pins = "ulpi_dir_py1";
109 nvidia,function = "spi1";
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530110 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
Laxman Dewangan365c4832013-12-18 18:22:58 +0530111 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530112 nvidia,tristate = <TEGRA_PIN_DISABLE>;
113 };
114 cam_i2c_scl_pbb1 {
115 nvidia,pins = "cam_i2c_scl_pbb1",
116 "cam_i2c_sda_pbb2";
117 nvidia,function = "i2c3";
118 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
119 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
120 nvidia,tristate = <TEGRA_PIN_DISABLE>;
121 nvidia,lock = <TEGRA_PIN_DISABLE>;
122 nvidia,open-drain = <TEGRA_PIN_ENABLE>;
123 };
124 gen2_i2c_scl_pt5 {
125 nvidia,pins = "gen2_i2c_scl_pt5",
126 "gen2_i2c_sda_pt6";
127 nvidia,function = "i2c2";
128 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
129 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
130 nvidia,tristate = <TEGRA_PIN_DISABLE>;
131 nvidia,lock = <TEGRA_PIN_DISABLE>;
132 nvidia,open-drain = <TEGRA_PIN_ENABLE>;
133 };
134 pg4 {
135 nvidia,pins = "pg4",
136 "pg5",
137 "pg6",
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530138 "pi3";
139 nvidia,function = "spi4";
140 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
141 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
142 nvidia,tristate = <TEGRA_PIN_DISABLE>;
143 };
Laxman Dewangan365c4832013-12-18 18:22:58 +0530144 pg7 {
145 nvidia,pins = "pg7";
146 nvidia,function = "spi4";
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530147 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
Laxman Dewangan365c4832013-12-18 18:22:58 +0530148 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
149 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530150 };
151 ph1 {
152 nvidia,pins = "ph1";
153 nvidia,function = "pwm1";
154 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
155 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
156 nvidia,tristate = <TEGRA_PIN_DISABLE>;
157 };
Laxman Dewangan365c4832013-12-18 18:22:58 +0530158 pk0 {
159 nvidia,pins = "pk0",
160 "kb_row15_ps7",
161 "clk_32k_out_pa0";
162 nvidia,function = "soc";
163 nvidia,pull = <TEGRA_PIN_PULL_UP>;
Thierry Redingf5cb19b2013-12-13 17:25:04 +0100164 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Laxman Dewangan365c4832013-12-18 18:22:58 +0530165 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
Thierry Redingf5cb19b2013-12-13 17:25:04 +0100166 };
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530167 sdmmc1_clk_pz0 {
Stephen Warrenbf5fd5b2014-03-20 18:06:01 -0600168 nvidia,pins = "sdmmc1_clk_pz0";
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530169 nvidia,function = "sdmmc1";
Stephen Warrenbf5fd5b2014-03-20 18:06:01 -0600170 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530171 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
172 nvidia,tristate = <TEGRA_PIN_DISABLE>;
173 };
Laxman Dewangan365c4832013-12-18 18:22:58 +0530174 sdmmc1_cmd_pz1 {
175 nvidia,pins = "sdmmc1_cmd_pz1",
176 "sdmmc1_dat0_py7",
177 "sdmmc1_dat1_py6",
178 "sdmmc1_dat2_py5",
179 "sdmmc1_dat3_py4";
180 nvidia,function = "sdmmc1";
181 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
182 nvidia,pull = <TEGRA_PIN_PULL_UP>;
183 nvidia,tristate = <TEGRA_PIN_DISABLE>;
184 };
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530185 sdmmc3_clk_pa6 {
186 nvidia,pins = "sdmmc3_clk_pa6";
187 nvidia,function = "sdmmc3";
188 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
189 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
190 nvidia,tristate = <TEGRA_PIN_DISABLE>;
191 };
192 sdmmc3_cmd_pa7 {
193 nvidia,pins = "sdmmc3_cmd_pa7",
194 "sdmmc3_dat0_pb7",
195 "sdmmc3_dat1_pb6",
196 "sdmmc3_dat2_pb5",
197 "sdmmc3_dat3_pb4",
198 "sdmmc3_clk_lb_out_pee4",
199 "sdmmc3_clk_lb_in_pee5";
200 nvidia,function = "sdmmc3";
201 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
202 nvidia,pull = <TEGRA_PIN_PULL_UP>;
203 nvidia,tristate = <TEGRA_PIN_DISABLE>;
204 };
205 sdmmc4_clk_pcc4 {
206 nvidia,pins = "sdmmc4_clk_pcc4";
207 nvidia,function = "sdmmc4";
208 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
209 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
210 nvidia,tristate = <TEGRA_PIN_DISABLE>;
211 };
212 sdmmc4_cmd_pt7 {
213 nvidia,pins = "sdmmc4_cmd_pt7",
214 "sdmmc4_dat0_paa0",
215 "sdmmc4_dat1_paa1",
216 "sdmmc4_dat2_paa2",
217 "sdmmc4_dat3_paa3",
218 "sdmmc4_dat4_paa4",
219 "sdmmc4_dat5_paa5",
220 "sdmmc4_dat6_paa6",
221 "sdmmc4_dat7_paa7";
222 nvidia,function = "sdmmc4";
223 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
224 nvidia,pull = <TEGRA_PIN_PULL_UP>;
225 nvidia,tristate = <TEGRA_PIN_DISABLE>;
226 };
227 pwr_i2c_scl_pz6 {
228 nvidia,pins = "pwr_i2c_scl_pz6",
229 "pwr_i2c_sda_pz7";
230 nvidia,function = "i2cpwr";
231 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
232 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
233 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Laxman Dewangan365c4832013-12-18 18:22:58 +0530234 nvidia,lock = <TEGRA_PIN_DISABLE>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530235 nvidia,open-drain = <TEGRA_PIN_ENABLE>;
236 };
237 jtag_rtck {
238 nvidia,pins = "jtag_rtck";
239 nvidia,function = "rtck";
240 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
241 nvidia,pull = <TEGRA_PIN_PULL_UP>;
242 nvidia,tristate = <TEGRA_PIN_DISABLE>;
243 };
244 clk_32k_in {
245 nvidia,pins = "clk_32k_in";
246 nvidia,function = "clk";
247 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
248 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
249 nvidia,tristate = <TEGRA_PIN_DISABLE>;
250 };
251 core_pwr_req {
252 nvidia,pins = "core_pwr_req";
253 nvidia,function = "pwron";
254 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
255 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
256 nvidia,tristate = <TEGRA_PIN_DISABLE>;
257 };
258 cpu_pwr_req {
259 nvidia,pins = "cpu_pwr_req";
260 nvidia,function = "cpu";
261 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
262 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
263 nvidia,tristate = <TEGRA_PIN_DISABLE>;
264 };
265 pwr_int_n {
266 nvidia,pins = "pwr_int_n";
267 nvidia,function = "pmi";
268 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
269 nvidia,pull = <TEGRA_PIN_PULL_UP>;
270 nvidia,tristate = <TEGRA_PIN_DISABLE>;
271 };
272 reset_out_n {
273 nvidia,pins = "reset_out_n";
274 nvidia,function = "reset_out_n";
275 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
276 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
277 nvidia,tristate = <TEGRA_PIN_DISABLE>;
278 };
279 clk3_out_pee0 {
280 nvidia,pins = "clk3_out_pee0";
281 nvidia,function = "extperiph3";
282 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
283 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
284 nvidia,tristate = <TEGRA_PIN_DISABLE>;
285 };
286 dap4_din_pp5 {
Laxman Dewangan365c4832013-12-18 18:22:58 +0530287 nvidia,pins = "dap4_din_pp5";
288 nvidia,function = "i2s3";
289 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
290 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
291 nvidia,tristate = <TEGRA_PIN_ENABLE>;
292 };
293 dap4_dout_pp6 {
294 nvidia,pins = "dap4_dout_pp6",
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530295 "dap4_fs_pp4",
296 "dap4_sclk_pp7";
297 nvidia,function = "i2s3";
Laxman Dewangan365c4832013-12-18 18:22:58 +0530298 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530299 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
300 nvidia,tristate = <TEGRA_PIN_ENABLE>;
301 };
302 gen1_i2c_sda_pc5 {
303 nvidia,pins = "gen1_i2c_sda_pc5",
304 "gen1_i2c_scl_pc4";
305 nvidia,function = "i2c1";
306 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
307 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
308 nvidia,tristate = <TEGRA_PIN_DISABLE>;
309 nvidia,lock = <TEGRA_PIN_DISABLE>;
Laxman Dewangan365c4832013-12-18 18:22:58 +0530310 nvidia,open-drain = <TEGRA_PIN_ENABLE>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530311 };
312 uart2_cts_n_pj5 {
Laxman Dewangan365c4832013-12-18 18:22:58 +0530313 nvidia,pins = "uart2_cts_n_pj5";
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530314 nvidia,function = "uartb";
315 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
316 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
317 nvidia,tristate = <TEGRA_PIN_DISABLE>;
318 };
Laxman Dewangan365c4832013-12-18 18:22:58 +0530319 uart2_rts_n_pj6 {
320 nvidia,pins = "uart2_rts_n_pj6";
321 nvidia,function = "uartb";
322 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
323 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
324 nvidia,tristate = <TEGRA_PIN_DISABLE>;
325 };
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530326 uart2_rxd_pc3 {
Laxman Dewangan365c4832013-12-18 18:22:58 +0530327 nvidia,pins = "uart2_rxd_pc3";
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530328 nvidia,function = "irda";
329 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
330 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
331 nvidia,tristate = <TEGRA_PIN_DISABLE>;
332 };
Laxman Dewangan365c4832013-12-18 18:22:58 +0530333 uart2_txd_pc2 {
334 nvidia,pins = "uart2_txd_pc2";
335 nvidia,function = "irda";
336 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
337 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
338 nvidia,tristate = <TEGRA_PIN_DISABLE>;
339 };
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530340 uart3_cts_n_pa1 {
341 nvidia,pins = "uart3_cts_n_pa1",
Laxman Dewangan365c4832013-12-18 18:22:58 +0530342 "uart3_rxd_pw7";
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530343 nvidia,function = "uartc";
344 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
345 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
346 nvidia,tristate = <TEGRA_PIN_DISABLE>;
347 };
Laxman Dewangan365c4832013-12-18 18:22:58 +0530348 uart3_rts_n_pc0 {
349 nvidia,pins = "uart3_rts_n_pc0",
350 "uart3_txd_pw6";
351 nvidia,function = "uartc";
352 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
353 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
354 nvidia,tristate = <TEGRA_PIN_DISABLE>;
355 };
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530356 hdmi_cec_pee3 {
357 nvidia,pins = "hdmi_cec_pee3";
358 nvidia,function = "cec";
359 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
360 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
361 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Laxman Dewangan365c4832013-12-18 18:22:58 +0530362 nvidia,lock = <TEGRA_PIN_DISABLE>;
363 nvidia,open-drain = <TEGRA_PIN_DISABLE>;
364 };
365 hdmi_int_pn7 {
366 nvidia,pins = "hdmi_int_pn7";
367 nvidia,function = "rsvd1";
368 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
369 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
370 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530371 };
372 ddc_scl_pv4 {
373 nvidia,pins = "ddc_scl_pv4",
374 "ddc_sda_pv5";
375 nvidia,function = "i2c4";
376 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
377 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
378 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Laxman Dewangan365c4832013-12-18 18:22:58 +0530379 nvidia,lock = <TEGRA_PIN_DISABLE>;
380 nvidia,rcv-sel = <TEGRA_PIN_ENABLE>;
381 };
382 pj7 {
383 nvidia,pins = "pj7",
384 "pk7";
385 nvidia,function = "uartd";
386 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
387 nvidia,tristate = <TEGRA_PIN_DISABLE>;
388 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
389 };
390 pb0 {
391 nvidia,pins = "pb0",
392 "pb1";
393 nvidia,function = "uartd";
394 nvidia,pull = <TEGRA_PIN_PULL_UP>;
395 nvidia,tristate = <TEGRA_PIN_DISABLE>;
396 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
397 };
398 ph0 {
399 nvidia,pins = "ph0";
400 nvidia,function = "pwm0";
401 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
402 nvidia,tristate = <TEGRA_PIN_DISABLE>;
403 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
404 };
405 kb_row10_ps2 {
406 nvidia,pins = "kb_row10_ps2";
407 nvidia,function = "uarta";
408 nvidia,pull = <TEGRA_PIN_PULL_UP>;
409 nvidia,tristate = <TEGRA_PIN_DISABLE>;
410 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
411 };
412 kb_row9_ps1 {
413 nvidia,pins = "kb_row9_ps1";
414 nvidia,function = "uarta";
415 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
416 nvidia,tristate = <TEGRA_PIN_DISABLE>;
417 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
418 };
419 kb_row6_pr6 {
420 nvidia,pins = "kb_row6_pr6";
421 nvidia,function = "displaya_alt";
422 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
423 nvidia,tristate = <TEGRA_PIN_DISABLE>;
424 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530425 };
426 usb_vbus_en0_pn4 {
Thierry Redingfa15ffa2014-02-25 16:45:04 +0100427 nvidia,pins = "usb_vbus_en0_pn4",
428 "usb_vbus_en1_pn5";
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530429 nvidia,function = "usb";
430 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
Thierry Redingfa15ffa2014-02-25 16:45:04 +0100431 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530432 nvidia,tristate = <TEGRA_PIN_DISABLE>;
433 nvidia,lock = <TEGRA_PIN_DISABLE>;
Laxman Dewangan365c4832013-12-18 18:22:58 +0530434 nvidia,open-drain = <TEGRA_PIN_ENABLE>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530435 };
436 drive_sdio1 {
437 nvidia,pins = "drive_sdio1";
438 nvidia,high-speed-mode = <TEGRA_PIN_ENABLE>;
439 nvidia,schmitt = <TEGRA_PIN_DISABLE>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530440 nvidia,pull-down-strength = <32>;
441 nvidia,pull-up-strength = <42>;
442 nvidia,slew-rate-rising = <TEGRA_PIN_SLEW_RATE_FASTEST>;
443 nvidia,slew-rate-falling = <TEGRA_PIN_SLEW_RATE_FASTEST>;
444 };
445 drive_sdio3 {
446 nvidia,pins = "drive_sdio3";
447 nvidia,high-speed-mode = <TEGRA_PIN_ENABLE>;
448 nvidia,schmitt = <TEGRA_PIN_DISABLE>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530449 nvidia,pull-down-strength = <20>;
450 nvidia,pull-up-strength = <36>;
451 nvidia,slew-rate-rising = <TEGRA_PIN_SLEW_RATE_FASTEST>;
452 nvidia,slew-rate-falling = <TEGRA_PIN_SLEW_RATE_FASTEST>;
453 };
454 drive_gma {
455 nvidia,pins = "drive_gma";
456 nvidia,high-speed-mode = <TEGRA_PIN_ENABLE>;
457 nvidia,schmitt = <TEGRA_PIN_DISABLE>;
458 nvidia,low-power-mode = <TEGRA_PIN_LP_DRIVE_DIV_1>;
459 nvidia,pull-down-strength = <1>;
460 nvidia,pull-up-strength = <2>;
461 nvidia,slew-rate-rising = <TEGRA_PIN_SLEW_RATE_FASTEST>;
462 nvidia,slew-rate-falling = <TEGRA_PIN_SLEW_RATE_FASTEST>;
463 nvidia,drive-type = <1>;
464 };
Laxman Dewangan365c4832013-12-18 18:22:58 +0530465 als_irq_l {
466 nvidia,pins = "gpio_x3_aud_px3";
467 nvidia,function = "gmi";
468 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
469 nvidia,tristate = <TEGRA_PIN_ENABLE>;
470 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
471 };
472 codec_irq_l {
473 nvidia,pins = "ph4";
474 nvidia,function = "gmi";
475 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
476 nvidia,tristate = <TEGRA_PIN_DISABLE>;
477 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
478 };
479 lcd_bl_en {
480 nvidia,pins = "ph2";
481 nvidia,function = "gmi";
482 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
483 nvidia,tristate = <TEGRA_PIN_DISABLE>;
484 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
485 };
486 touch_irq_l {
487 nvidia,pins = "gpio_w3_aud_pw3";
488 nvidia,function = "spi6";
489 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
490 nvidia,tristate = <TEGRA_PIN_ENABLE>;
491 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
492 };
493 tpm_davint_l {
494 nvidia,pins = "ph6";
495 nvidia,function = "gmi";
496 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
497 nvidia,tristate = <TEGRA_PIN_ENABLE>;
498 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
499 };
500 ts_irq_l {
501 nvidia,pins = "pk2";
502 nvidia,function = "gmi";
503 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
504 nvidia,tristate = <TEGRA_PIN_ENABLE>;
505 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
506 };
507 ts_reset_l {
508 nvidia,pins = "pk4";
509 nvidia,function = "gmi";
510 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
511 nvidia,tristate = <TEGRA_PIN_DISABLE>;
512 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
513 };
514 ts_shdn_l {
515 nvidia,pins = "pk1";
516 nvidia,function = "gmi";
517 nvidia,pull = <TEGRA_PIN_PULL_UP>;
518 nvidia,tristate = <TEGRA_PIN_DISABLE>;
519 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
520 };
521 ph7 {
522 nvidia,pins = "ph7";
523 nvidia,function = "gmi";
524 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
525 nvidia,tristate = <TEGRA_PIN_DISABLE>;
526 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
527 };
528 kb_col0_ap {
529 nvidia,pins = "kb_col0_pq0";
530 nvidia,function = "rsvd4";
531 nvidia,pull = <TEGRA_PIN_PULL_UP>;
532 nvidia,tristate = <TEGRA_PIN_DISABLE>;
533 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
534 };
535 lid_open {
536 nvidia,pins = "kb_row4_pr4";
537 nvidia,function = "rsvd3";
538 nvidia,pull = <TEGRA_PIN_PULL_UP>;
539 nvidia,tristate = <TEGRA_PIN_DISABLE>;
540 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
541 };
542 en_vdd_sd {
543 nvidia,pins = "kb_row0_pr0";
544 nvidia,function = "rsvd4";
545 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
546 nvidia,tristate = <TEGRA_PIN_DISABLE>;
547 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
548 };
549 ac_ok {
550 nvidia,pins = "pj0";
551 nvidia,function = "gmi";
552 nvidia,pull = <TEGRA_PIN_PULL_UP>;
553 nvidia,tristate = <TEGRA_PIN_ENABLE>;
554 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
555 };
556 sensor_irq_l {
557 nvidia,pins = "pi6";
558 nvidia,function = "gmi";
559 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
560 nvidia,tristate = <TEGRA_PIN_DISABLE>;
561 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
562 };
563 wifi_en {
564 nvidia,pins = "gpio_x7_aud_px7";
565 nvidia,function = "rsvd4";
566 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
567 nvidia,tristate = <TEGRA_PIN_DISABLE>;
568 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
569 };
570 wifi_rst_l {
571 nvidia,pins = "clk2_req_pcc5";
572 nvidia,function = "dap";
573 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
574 nvidia,tristate = <TEGRA_PIN_DISABLE>;
575 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
576 };
577 hp_det_l {
578 nvidia,pins = "ulpi_data1_po2";
579 nvidia,function = "spi3";
580 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
581 nvidia,tristate = <TEGRA_PIN_DISABLE>;
582 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
583 };
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530584 };
585 };
586
Stephen Warrene30cb232014-03-03 14:51:15 -0700587 serial@0,70006000 {
Joseph Loa1425d42013-10-08 12:50:06 +0800588 status = "okay";
589 };
590
Dylan Reidedfbad02014-09-04 15:20:34 -0700591 pwm@0,7000a000 {
Thierry Redinge0134852013-11-18 17:00:35 +0100592 status = "okay";
593 };
594
Stephen Warrene30cb232014-03-03 14:51:15 -0700595 i2c@0,7000c000 {
Stephen Warren9d5b2502013-12-03 16:44:35 -0700596 status = "okay";
597 clock-frequency = <100000>;
Stephen Warrenb0e1cae2013-12-03 17:26:12 -0700598
599 acodec: audio-codec@10 {
600 compatible = "maxim,max98090";
601 reg = <0x10>;
602 interrupt-parent = <&gpio>;
603 interrupts = <TEGRA_GPIO(H, 4) GPIO_ACTIVE_HIGH>;
604 };
Stephen Warren9d5b2502013-12-03 16:44:35 -0700605 };
606
Stephen Warrene30cb232014-03-03 14:51:15 -0700607 i2c@0,7000c400 {
Stephen Warren9d5b2502013-12-03 16:44:35 -0700608 status = "okay";
609 clock-frequency = <100000>;
Stephen Warrenbf8f0392014-09-02 09:57:09 -0600610
611 trackpad@4b {
612 compatible = "atmel,maxtouch";
613 reg = <0x4b>;
614 interrupt-parent = <&gpio>;
615 interrupts = <TEGRA_GPIO(W, 3) IRQ_TYPE_LEVEL_LOW>;
616 linux,gpio-keymap = <0 0 0 BTN_LEFT>;
617 };
Stephen Warren9d5b2502013-12-03 16:44:35 -0700618 };
619
Stephen Warrene30cb232014-03-03 14:51:15 -0700620 i2c@0,7000c500 {
Stephen Warren9d5b2502013-12-03 16:44:35 -0700621 status = "okay";
622 clock-frequency = <100000>;
623 };
624
Thierry Reding329c39f2014-04-25 17:44:46 +0200625 hdmi_ddc: i2c@0,7000c700 {
Stephen Warren9d5b2502013-12-03 16:44:35 -0700626 status = "okay";
627 clock-frequency = <100000>;
628 };
629
Stephen Warrene30cb232014-03-03 14:51:15 -0700630 i2c@0,7000d000 {
Stephen Warren9d5b2502013-12-03 16:44:35 -0700631 status = "okay";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530632 clock-frequency = <400000>;
633
Thierry Redingfdc44f92014-02-28 17:40:28 +0100634 pmic: pmic@40 {
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530635 compatible = "ams,as3722";
636 reg = <0x40>;
637 interrupts = <0 86 IRQ_TYPE_LEVEL_HIGH>;
638
Laxman Dewangan7be75df2014-01-09 16:31:48 +0530639 ams,system-power-controller;
640
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530641 #interrupt-cells = <2>;
642 interrupt-controller;
643
644 gpio-controller;
645 #gpio-cells = <2>;
646
647 pinctrl-names = "default";
648 pinctrl-0 = <&as3722_default>;
649
650 as3722_default: pinmux {
651 gpio0 {
652 pins = "gpio0";
653 function = "gpio";
654 bias-pull-down;
655 };
656
657 gpio1_2_4_7 {
658 pins = "gpio1", "gpio2", "gpio4", "gpio7";
659 function = "gpio";
660 bias-pull-up;
661 };
662
663 gpio3_6 {
664 pins = "gpio3", "gpio6";
665 bias-high-impedance;
666 };
667
668 gpio5 {
669 pins = "gpio5";
670 function = "clk32k-out";
671 };
672 };
673
674 regulators {
Thierry Redingaf144b82014-02-28 17:40:20 +0100675 vsup-sd2-supply = <&vdd_5v0_sys>;
676 vsup-sd3-supply = <&vdd_5v0_sys>;
677 vsup-sd4-supply = <&vdd_5v0_sys>;
678 vsup-sd5-supply = <&vdd_5v0_sys>;
679 vin-ldo0-supply = <&vdd_1v35_lp0>;
680 vin-ldo1-6-supply = <&vdd_3v3_run>;
681 vin-ldo2-5-7-supply = <&vddio_1v8>;
682 vin-ldo3-4-supply = <&vdd_3v3_sys>;
683 vin-ldo9-10-supply = <&vdd_5v0_sys>;
684 vin-ldo11-supply = <&vdd_3v3_run>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530685
686 sd0 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100687 regulator-name = "+VDD_CPU_AP";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530688 regulator-min-microvolt = <700000>;
689 regulator-max-microvolt = <1400000>;
690 regulator-min-microamp = <3500000>;
691 regulator-max-microamp = <3500000>;
692 regulator-always-on;
693 regulator-boot-on;
Tuomas Tynkkynenee913f72014-07-09 21:53:17 +0300694 ams,ext-control = <2>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530695 };
696
697 sd1 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100698 regulator-name = "+VDD_CORE";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530699 regulator-min-microvolt = <700000>;
700 regulator-max-microvolt = <1350000>;
701 regulator-min-microamp = <2500000>;
702 regulator-max-microamp = <2500000>;
703 regulator-always-on;
704 regulator-boot-on;
Tuomas Tynkkynenee913f72014-07-09 21:53:17 +0300705 ams,ext-control = <1>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530706 };
707
Thierry Redingaf144b82014-02-28 17:40:20 +0100708 vdd_1v35_lp0: sd2 {
709 regulator-name = "+1.35V_LP0(sd2)";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530710 regulator-min-microvolt = <1350000>;
711 regulator-max-microvolt = <1350000>;
712 regulator-always-on;
713 regulator-boot-on;
714 };
715
716 sd3 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100717 regulator-name = "+1.35V_LP0(sd3)";
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
Thierry Reding329c39f2014-04-25 17:44:46 +0200724 vdd_1v05_run: sd4 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100725 regulator-name = "+1.05V_RUN";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530726 regulator-min-microvolt = <1050000>;
727 regulator-max-microvolt = <1050000>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530728 };
729
Thierry Redingaf144b82014-02-28 17:40:20 +0100730 vddio_1v8: sd5 {
731 regulator-name = "+1.8V_VDDIO";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530732 regulator-min-microvolt = <1800000>;
733 regulator-max-microvolt = <1800000>;
734 regulator-boot-on;
735 regulator-always-on;
736 };
737
738 sd6 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100739 regulator-name = "+VDD_GPU_AP";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530740 regulator-min-microvolt = <650000>;
741 regulator-max-microvolt = <1200000>;
742 regulator-min-microamp = <3500000>;
743 regulator-max-microamp = <3500000>;
744 regulator-boot-on;
745 regulator-always-on;
746 };
747
748 ldo0 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100749 regulator-name = "+1.05V_RUN_AVDD";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530750 regulator-min-microvolt = <1050000>;
751 regulator-max-microvolt = <1050000>;
752 regulator-boot-on;
753 regulator-always-on;
Tuomas Tynkkynenee913f72014-07-09 21:53:17 +0300754 ams,ext-control = <1>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530755 };
756
757 ldo1 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100758 regulator-name = "+1.8V_RUN_CAM";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530759 regulator-min-microvolt = <1800000>;
760 regulator-max-microvolt = <1800000>;
761 };
762
763 ldo2 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100764 regulator-name = "+1.2V_GEN_AVDD";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530765 regulator-min-microvolt = <1200000>;
766 regulator-max-microvolt = <1200000>;
767 regulator-boot-on;
768 regulator-always-on;
769 };
770
771 ldo3 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100772 regulator-name = "+1.00V_LP0_VDD_RTC";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530773 regulator-min-microvolt = <1000000>;
774 regulator-max-microvolt = <1000000>;
775 regulator-boot-on;
776 regulator-always-on;
777 ams,enable-tracking;
778 };
779
Thierry Reding431b7be2014-02-28 17:40:26 +0100780 vdd_run_cam: ldo4 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100781 regulator-name = "+3.3V_RUN_CAM";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530782 regulator-min-microvolt = <2800000>;
783 regulator-max-microvolt = <2800000>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530784 };
785
786 ldo5 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100787 regulator-name = "+1.2V_RUN_CAM_FRONT";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530788 regulator-min-microvolt = <1200000>;
789 regulator-max-microvolt = <1200000>;
790 };
791
Thierry Reding4989b432014-02-28 17:40:21 +0100792 vddio_sdmmc3: ldo6 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100793 regulator-name = "+VDDIO_SDMMC3";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530794 regulator-min-microvolt = <1800000>;
795 regulator-max-microvolt = <3300000>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530796 };
797
798 ldo7 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100799 regulator-name = "+1.05V_RUN_CAM_REAR";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530800 regulator-min-microvolt = <1050000>;
801 regulator-max-microvolt = <1050000>;
802 };
803
804 ldo9 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100805 regulator-name = "+2.8V_RUN_TOUCH";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530806 regulator-min-microvolt = <2800000>;
807 regulator-max-microvolt = <2800000>;
808 };
809
810 ldo10 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100811 regulator-name = "+2.8V_RUN_CAM_AF";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530812 regulator-min-microvolt = <2800000>;
813 regulator-max-microvolt = <2800000>;
814 };
815
816 ldo11 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100817 regulator-name = "+1.8V_RUN_VPP_FUSE";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530818 regulator-min-microvolt = <1800000>;
819 regulator-max-microvolt = <1800000>;
820 };
821 };
822 };
Stephen Warren9d5b2502013-12-03 16:44:35 -0700823 };
824
Stephen Warrene30cb232014-03-03 14:51:15 -0700825 spi@0,7000d400 {
Thierry Reding146db0e2013-12-19 17:06:19 +0100826 status = "okay";
827
Doug Andersonf01dd552014-06-04 15:20:19 -0700828 cros_ec: cros-ec@0 {
Thierry Reding146db0e2013-12-19 17:06:19 +0100829 compatible = "google,cros-ec-spi";
830 spi-max-frequency = <4000000>;
831 interrupt-parent = <&gpio>;
832 interrupts = <TEGRA_GPIO(C, 7) IRQ_TYPE_LEVEL_LOW>;
833 reg = <0>;
834
835 google,cros-ec-spi-msg-delay = <2000>;
Doug Anderson72ceddd2014-04-30 10:44:10 -0700836
837 i2c-tunnel {
838 compatible = "google,cros-ec-i2c-tunnel";
839 #address-cells = <1>;
840 #size-cells = <0>;
841
842 google,remote-bus = <0>;
843
844 charger: bq24735@9 {
845 compatible = "ti,bq24735";
846 reg = <0x9>;
847 interrupt-parent = <&gpio>;
848 interrupts = <TEGRA_GPIO(J, 0)
849 GPIO_ACTIVE_HIGH>;
850 ti,ac-detect-gpios = <&gpio
851 TEGRA_GPIO(J, 0)
852 GPIO_ACTIVE_HIGH>;
853 };
854
855 battery: sbs-battery@b {
856 compatible = "sbs,sbs-battery";
857 reg = <0xb>;
858 sbs,i2c-retry-count = <2>;
859 sbs,poll-retry-count = <1>;
860 };
861 };
Thierry Reding146db0e2013-12-19 17:06:19 +0100862 };
863 };
864
Stephen Warrene30cb232014-03-03 14:51:15 -0700865 spi@0,7000da00 {
Stephen Warren11e5b4f2014-02-18 15:03:21 -0700866 status = "okay";
867 spi-max-frequency = <25000000>;
868 spi-flash@0 {
869 compatible = "winbond,w25q32dw";
870 reg = <0>;
871 spi-max-frequency = <20000000>;
872 };
873 };
874
Stephen Warrene30cb232014-03-03 14:51:15 -0700875 pmc@0,7000e400 {
Joseph Loa1425d42013-10-08 12:50:06 +0800876 nvidia,invert-interrupt;
Joseph Lo6ec1d122013-10-11 17:58:39 +0800877 nvidia,suspend-mode = <1>;
878 nvidia,cpu-pwr-good-time = <500>;
879 nvidia,cpu-pwr-off-time = <300>;
880 nvidia,core-pwr-good-time = <641 3845>;
881 nvidia,core-pwr-off-time = <61036>;
882 nvidia,core-power-req-active-high;
883 nvidia,sys-clock-req-active-high;
Joseph Loa1425d42013-10-08 12:50:06 +0800884 };
Joseph Lo3b86baf2013-10-08 15:47:40 +0800885
Dylan Reid0f3d3bf2014-05-19 19:35:46 -0700886 hda@0,70030000 {
887 status = "okay";
888 };
889
Stephen Warrene30cb232014-03-03 14:51:15 -0700890 sdhci@0,700b0400 {
Stephen Warren784c7442013-10-31 17:23:05 -0600891 cd-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_HIGH>;
892 power-gpios = <&gpio TEGRA_GPIO(R, 0) GPIO_ACTIVE_HIGH>;
Stephen Warren2be8f4a2014-04-28 12:10:26 -0600893 wp-gpios = <&gpio TEGRA_GPIO(Q, 4) GPIO_ACTIVE_LOW>;
Stephen Warren784c7442013-10-31 17:23:05 -0600894 status = "okay";
895 bus-width = <4>;
Andrew Bresticker49228ca2014-04-16 16:08:39 -0700896 vqmmc-supply = <&vddio_sdmmc3>;
Stephen Warren784c7442013-10-31 17:23:05 -0600897 };
898
Stephen Warrene30cb232014-03-03 14:51:15 -0700899 sdhci@0,700b0600 {
Stephen Warren784c7442013-10-31 17:23:05 -0600900 status = "okay";
901 bus-width = <8>;
902 };
903
Stephen Warrene30cb232014-03-03 14:51:15 -0700904 ahub@0,70300000 {
905 i2s@0,70301100 {
Stephen Warrenb0e1cae2013-12-03 17:26:12 -0700906 status = "okay";
907 };
908 };
909
Stephen Warrene30cb232014-03-03 14:51:15 -0700910 usb@0,7d000000 {
Thierry Reding431b7be2014-02-28 17:40:26 +0100911 status = "okay";
912 };
913
Stephen Warrene30cb232014-03-03 14:51:15 -0700914 usb-phy@0,7d000000 {
Thierry Reding431b7be2014-02-28 17:40:26 +0100915 status = "okay";
916 vbus-supply = <&vdd_usb1_vbus>;
917 };
918
Stephen Warrene30cb232014-03-03 14:51:15 -0700919 usb@0,7d004000 {
Thierry Reding431b7be2014-02-28 17:40:26 +0100920 status = "okay";
921 };
922
Stephen Warrene30cb232014-03-03 14:51:15 -0700923 usb-phy@0,7d004000 {
Thierry Reding431b7be2014-02-28 17:40:26 +0100924 status = "okay";
925 vbus-supply = <&vdd_run_cam>;
926 };
927
Stephen Warrene30cb232014-03-03 14:51:15 -0700928 usb@0,7d008000 {
Thierry Reding431b7be2014-02-28 17:40:26 +0100929 status = "okay";
930 };
931
Stephen Warrene30cb232014-03-03 14:51:15 -0700932 usb-phy@0,7d008000 {
Thierry Reding431b7be2014-02-28 17:40:26 +0100933 status = "okay";
934 vbus-supply = <&vdd_usb3_vbus>;
935 };
936
Thierry Reding40e231c2014-02-28 17:40:24 +0100937 backlight: backlight {
938 compatible = "pwm-backlight";
939
940 enable-gpios = <&gpio TEGRA_GPIO(H, 2) GPIO_ACTIVE_HIGH>;
941 power-supply = <&vdd_led>;
942 pwms = <&pwm 1 1000000>;
943
944 brightness-levels = <0 4 8 16 32 64 128 255>;
945 default-brightness-level = <6>;
946 };
947
Joseph Lo3b86baf2013-10-08 15:47:40 +0800948 clocks {
949 compatible = "simple-bus";
950 #address-cells = <1>;
951 #size-cells = <0>;
952
953 clk32k_in: clock@0 {
954 compatible = "fixed-clock";
Thierry Reding4b356602014-02-28 17:40:27 +0100955 reg = <0>;
Joseph Lo3b86baf2013-10-08 15:47:40 +0800956 #clock-cells = <0>;
957 clock-frequency = <32768>;
958 };
959 };
Stephen Warrenb0e1cae2013-12-03 17:26:12 -0700960
Thierry Reding3f748d42013-12-19 17:06:20 +0100961 gpio-keys {
962 compatible = "gpio-keys";
963
964 power {
965 label = "Power";
966 gpios = <&gpio TEGRA_GPIO(Q, 0) GPIO_ACTIVE_LOW>;
967 linux,code = <KEY_POWER>;
968 debounce-interval = <10>;
969 gpio-key,wakeup;
970 };
971 };
972
Thierry Reding40e231c2014-02-28 17:40:24 +0100973 panel: panel {
974 compatible = "lg,lp129qe", "simple-panel";
975
976 backlight = <&backlight>;
977 ddc-i2c-bus = <&dpaux>;
978 };
979
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530980 regulators {
981 compatible = "simple-bus";
982 #address-cells = <1>;
983 #size-cells = <0>;
984
Thierry Redingaf144b82014-02-28 17:40:20 +0100985 vdd_mux: regulator@0 {
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530986 compatible = "regulator-fixed";
987 reg = <0>;
Thierry Redingaf144b82014-02-28 17:40:20 +0100988 regulator-name = "+VDD_MUX";
989 regulator-min-microvolt = <12000000>;
990 regulator-max-microvolt = <12000000>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530991 regulator-always-on;
Thierry Redingaf144b82014-02-28 17:40:20 +0100992 regulator-boot-on;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530993 };
994
Thierry Redingaf144b82014-02-28 17:40:20 +0100995 vdd_5v0_sys: regulator@1 {
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530996 compatible = "regulator-fixed";
997 reg = <1>;
Thierry Redingaf144b82014-02-28 17:40:20 +0100998 regulator-name = "+5V_SYS";
999 regulator-min-microvolt = <5000000>;
1000 regulator-max-microvolt = <5000000>;
1001 regulator-always-on;
1002 regulator-boot-on;
1003 vin-supply = <&vdd_mux>;
1004 };
1005
1006 vdd_3v3_sys: regulator@2 {
1007 compatible = "regulator-fixed";
1008 reg = <2>;
1009 regulator-name = "+3.3V_SYS";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301010 regulator-min-microvolt = <3300000>;
1011 regulator-max-microvolt = <3300000>;
1012 regulator-always-on;
1013 regulator-boot-on;
Thierry Redingaf144b82014-02-28 17:40:20 +01001014 vin-supply = <&vdd_mux>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301015 };
1016
Thierry Redingaf144b82014-02-28 17:40:20 +01001017 vdd_3v3_run: regulator@3 {
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301018 compatible = "regulator-fixed";
1019 reg = <3>;
Thierry Redingaf144b82014-02-28 17:40:20 +01001020 regulator-name = "+3.3V_RUN";
1021 regulator-min-microvolt = <3300000>;
1022 regulator-max-microvolt = <3300000>;
Stephen Warrenc7fe7672014-04-15 16:27:01 -06001023 regulator-always-on;
1024 regulator-boot-on;
Thierry Redingfdc44f92014-02-28 17:40:28 +01001025 gpio = <&pmic 1 GPIO_ACTIVE_HIGH>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301026 enable-active-high;
Thierry Redingaf144b82014-02-28 17:40:20 +01001027 vin-supply = <&vdd_3v3_sys>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301028 };
1029
Thierry Redingaf144b82014-02-28 17:40:20 +01001030 vdd_3v3_hdmi: regulator@4 {
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301031 compatible = "regulator-fixed";
1032 reg = <4>;
Thierry Redingaf144b82014-02-28 17:40:20 +01001033 regulator-name = "+3.3V_AVDD_HDMI_AP_GATED";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301034 regulator-min-microvolt = <3300000>;
1035 regulator-max-microvolt = <3300000>;
Thierry Redingaf144b82014-02-28 17:40:20 +01001036 vin-supply = <&vdd_3v3_run>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301037 };
1038
Thierry Redingaf144b82014-02-28 17:40:20 +01001039 vdd_led: regulator@5 {
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301040 compatible = "regulator-fixed";
1041 reg = <5>;
Thierry Redingaf144b82014-02-28 17:40:20 +01001042 regulator-name = "+VDD_LED";
1043 gpio = <&gpio TEGRA_GPIO(P, 2) GPIO_ACTIVE_HIGH>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301044 enable-active-high;
Thierry Redingaf144b82014-02-28 17:40:20 +01001045 vin-supply = <&vdd_mux>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301046 };
1047
Thierry Redingaf144b82014-02-28 17:40:20 +01001048 vdd_5v0_ts: regulator@6 {
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301049 compatible = "regulator-fixed";
1050 reg = <6>;
Thierry Redingaf144b82014-02-28 17:40:20 +01001051 regulator-name = "+5V_VDD_TS_SW";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301052 regulator-min-microvolt = <5000000>;
1053 regulator-max-microvolt = <5000000>;
1054 regulator-boot-on;
Thierry Redingaf144b82014-02-28 17:40:20 +01001055 gpio = <&gpio TEGRA_GPIO(K, 1) GPIO_ACTIVE_HIGH>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301056 enable-active-high;
Thierry Redingaf144b82014-02-28 17:40:20 +01001057 vin-supply = <&vdd_5v0_sys>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301058 };
1059
Thierry Redingaf144b82014-02-28 17:40:20 +01001060 vdd_usb1_vbus: regulator@7 {
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301061 compatible = "regulator-fixed";
1062 reg = <7>;
Thierry Redingaf144b82014-02-28 17:40:20 +01001063 regulator-name = "+5V_USB_HS";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301064 regulator-min-microvolt = <5000000>;
1065 regulator-max-microvolt = <5000000>;
Thierry Redingaf144b82014-02-28 17:40:20 +01001066 gpio = <&gpio TEGRA_GPIO(N, 4) GPIO_ACTIVE_HIGH>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301067 enable-active-high;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301068 gpio-open-drain;
Thierry Redingaf144b82014-02-28 17:40:20 +01001069 vin-supply = <&vdd_5v0_sys>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301070 };
1071
Thierry Redingaf144b82014-02-28 17:40:20 +01001072 vdd_usb3_vbus: regulator@8 {
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301073 compatible = "regulator-fixed";
1074 reg = <8>;
Thierry Redingaf144b82014-02-28 17:40:20 +01001075 regulator-name = "+5V_USB_SS";
1076 regulator-min-microvolt = <5000000>;
1077 regulator-max-microvolt = <5000000>;
1078 gpio = <&gpio TEGRA_GPIO(N, 5) GPIO_ACTIVE_HIGH>;
1079 enable-active-high;
1080 gpio-open-drain;
1081 vin-supply = <&vdd_5v0_sys>;
1082 };
1083
1084 vdd_3v3_panel: regulator@9 {
1085 compatible = "regulator-fixed";
1086 reg = <9>;
1087 regulator-name = "+3.3V_PANEL";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301088 regulator-min-microvolt = <3300000>;
1089 regulator-max-microvolt = <3300000>;
Thierry Redingfdc44f92014-02-28 17:40:28 +01001090 gpio = <&pmic 4 GPIO_ACTIVE_HIGH>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301091 enable-active-high;
Thierry Redingaf144b82014-02-28 17:40:20 +01001092 vin-supply = <&vdd_3v3_run>;
1093 };
1094
1095 vdd_3v3_lp0: regulator@10 {
1096 compatible = "regulator-fixed";
1097 reg = <10>;
1098 regulator-name = "+3.3V_LP0";
1099 regulator-min-microvolt = <3300000>;
1100 regulator-max-microvolt = <3300000>;
1101 /*
1102 * TODO: find a way to wire this up with the USB EHCI
1103 * controllers so that it can be enabled on demand.
1104 */
1105 regulator-always-on;
Thierry Redingfdc44f92014-02-28 17:40:28 +01001106 gpio = <&pmic 2 GPIO_ACTIVE_HIGH>;
Thierry Redingaf144b82014-02-28 17:40:20 +01001107 enable-active-high;
1108 vin-supply = <&vdd_3v3_sys>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301109 };
Thierry Reding329c39f2014-04-25 17:44:46 +02001110
1111 vdd_hdmi_pll: regulator@11 {
1112 compatible = "regulator-fixed";
1113 reg = <11>;
1114 regulator-name = "+1.05V_RUN_AVDD_HDMI_PLL";
1115 regulator-min-microvolt = <1050000>;
1116 regulator-max-microvolt = <1050000>;
1117 gpio = <&gpio TEGRA_GPIO(H, 7) GPIO_ACTIVE_LOW>;
1118 vin-supply = <&vdd_1v05_run>;
1119 };
1120
1121 vdd_5v0_hdmi: regulator@12 {
1122 compatible = "regulator-fixed";
1123 reg = <12>;
1124 regulator-name = "+5V_HDMI_CON";
1125 regulator-min-microvolt = <5000000>;
1126 regulator-max-microvolt = <5000000>;
1127 gpio = <&gpio TEGRA_GPIO(K, 6) GPIO_ACTIVE_HIGH>;
1128 enable-active-high;
1129 vin-supply = <&vdd_5v0_sys>;
1130 };
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301131 };
1132
Stephen Warrenb0e1cae2013-12-03 17:26:12 -07001133 sound {
1134 compatible = "nvidia,tegra-audio-max98090-venice2",
1135 "nvidia,tegra-audio-max98090";
1136 nvidia,model = "NVIDIA Tegra Venice2";
1137
1138 nvidia,audio-routing =
1139 "Headphones", "HPR",
1140 "Headphones", "HPL",
1141 "Speakers", "SPKR",
1142 "Speakers", "SPKL",
1143 "Mic Jack", "MICBIAS",
1144 "IN34", "Mic Jack";
1145
1146 nvidia,i2s-controller = <&tegra_i2s1>;
1147 nvidia,audio-codec = <&acodec>;
1148
1149 clocks = <&tegra_car TEGRA124_CLK_PLL_A>,
1150 <&tegra_car TEGRA124_CLK_PLL_A_OUT0>,
1151 <&tegra_car TEGRA124_CLK_EXTERN1>;
1152 clock-names = "pll_a", "pll_a_out0", "mclk";
1153 };
Joseph Loa1425d42013-10-08 12:50:06 +08001154};
Doug Andersonf01dd552014-06-04 15:20:19 -07001155
1156#include "cros-ec-keyboard.dtsi"