blob: fe4e0915c0c61552b7974bac4d88a64c558df811 [file] [log] [blame]
Arun Kumar K3528dd32014-05-09 06:06:25 +09001/*
2 * Google Peach Pit Rev 6+ board device tree source
3 *
4 * Copyright (c) 2014 Google, Inc
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 */
10
11/dts-v1/;
12#include <dt-bindings/input/input.h>
13#include <dt-bindings/gpio/gpio.h>
Javier Martinez Canillas064ac052014-09-14 00:45:15 +090014#include <dt-bindings/interrupt-controller/irq.h>
Javier Martinez Canillasfa781dd2014-09-24 00:16:45 +090015#include <dt-bindings/clock/maxim,max77802.h>
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +090016#include <dt-bindings/regulator/maxim,max77802.h>
Arun Kumar K3528dd32014-05-09 06:06:25 +090017#include "exynos5420.dtsi"
Krzysztof Kozlowski4f0d20e2015-12-11 15:05:56 +090018#include "exynos5420-cpus.dtsi"
Marek Szyprowski8b9ac7e2016-05-24 15:31:29 +020019#include "exynos-mfc-reserved-memory.dtsi"
Arun Kumar K3528dd32014-05-09 06:06:25 +090020
21/ {
22 model = "Google Peach Pit Rev 6+";
23
24 compatible = "google,pit-rev16",
25 "google,pit-rev15", "google,pit-rev14",
26 "google,pit-rev13", "google,pit-rev12",
27 "google,pit-rev11", "google,pit-rev10",
28 "google,pit-rev9", "google,pit-rev8",
29 "google,pit-rev7", "google,pit-rev6",
30 "google,pit", "google,peach","samsung,exynos5420",
31 "samsung,exynos5";
32
Doug Anderson80600982014-07-19 04:09:15 +090033 aliases {
34 /* Assign 20 so we don't get confused w/ builtin ones */
35 i2c20 = "/spi@12d40000/cros-ec@0/i2c-tunnel";
36 };
37
Ajay Kumar3b8fe982014-09-14 02:20:18 +090038 backlight: backlight {
Tushar Behera522c8ff2014-06-21 21:50:17 +090039 compatible = "pwm-backlight";
40 pwms = <&pwm 0 1000000 0>;
41 brightness-levels = <0 100 500 1000 1500 2000 2500 2800>;
42 default-brightness-level = <7>;
Ajay Kumar3b8fe982014-09-14 02:20:18 +090043 power-supply = <&tps65090_fet1>;
Tushar Behera522c8ff2014-06-21 21:50:17 +090044 pinctrl-0 = <&pwm0_out>;
45 pinctrl-names = "default";
Arun Kumar K3528dd32014-05-09 06:06:25 +090046 };
47
Javier Martinez Canillas1d1b00a2015-03-18 00:31:22 +090048 chosen {
49 stdout-path = "serial3:115200n8";
50 };
51
Arun Kumar K3528dd32014-05-09 06:06:25 +090052 fixed-rate-clocks {
53 oscclk {
54 compatible = "samsung,exynos5420-oscclk";
55 clock-frequency = <24000000>;
56 };
57 };
58
59 gpio-keys {
60 compatible = "gpio-keys";
61
62 pinctrl-names = "default";
Javier Martinez Canillas1f3cde42015-01-15 00:30:40 +090063 pinctrl-0 = <&power_key_irq &lid_irq>;
Arun Kumar K3528dd32014-05-09 06:06:25 +090064
65 power {
66 label = "Power";
67 gpios = <&gpx1 2 GPIO_ACTIVE_LOW>;
68 linux,code = <KEY_POWER>;
Sudeep Holla36a02822016-01-28 15:59:58 +000069 wakeup-source;
Arun Kumar K3528dd32014-05-09 06:06:25 +090070 };
Javier Martinez Canillas1f3cde42015-01-15 00:30:40 +090071
72 lid-switch {
73 label = "Lid";
74 gpios = <&gpx3 4 GPIO_ACTIVE_LOW>;
75 linux,input-type = <5>; /* EV_SW */
76 linux,code = <0>; /* SW_LID */
77 debounce-interval = <1>;
Sudeep Holla36a02822016-01-28 15:59:58 +000078 wakeup-source;
Javier Martinez Canillas1f3cde42015-01-15 00:30:40 +090079 };
Arun Kumar K3528dd32014-05-09 06:06:25 +090080 };
81
Tushar Behera522c8ff2014-06-21 21:50:17 +090082 memory {
83 reg = <0x20000000 0x80000000>;
Arun Kumar K3528dd32014-05-09 06:06:25 +090084 };
Tushar Beheraead39932014-05-17 07:44:10 +090085
86 sound {
87 compatible = "google,snow-audio-max98090";
88
Tushar Beheraa8d80b62014-07-08 08:20:08 +090089 samsung,model = "Peach-Pit-I2S-MAX98090";
Tushar Beheraead39932014-05-17 07:44:10 +090090 samsung,i2s-controller = <&i2s0>;
91 samsung,audio-codec = <&max98090>;
92 };
Vivek Gautam14a35ad2014-05-19 22:29:42 +090093
94 usb300_vbus_reg: regulator-usb300 {
95 compatible = "regulator-fixed";
96 regulator-name = "P5.0V_USB3CON0";
97 regulator-min-microvolt = <5000000>;
98 regulator-max-microvolt = <5000000>;
Javier Martinez Canillas31b99032015-10-08 07:39:58 +090099 gpio = <&gph0 0 GPIO_ACTIVE_HIGH>;
Vivek Gautam14a35ad2014-05-19 22:29:42 +0900100 pinctrl-names = "default";
101 pinctrl-0 = <&usb300_vbus_en>;
102 enable-active-high;
103 };
104
105 usb301_vbus_reg: regulator-usb301 {
106 compatible = "regulator-fixed";
107 regulator-name = "P5.0V_USB3CON1";
108 regulator-min-microvolt = <5000000>;
109 regulator-max-microvolt = <5000000>;
Javier Martinez Canillas31b99032015-10-08 07:39:58 +0900110 gpio = <&gph0 1 GPIO_ACTIVE_HIGH>;
Vivek Gautam14a35ad2014-05-19 22:29:42 +0900111 pinctrl-names = "default";
112 pinctrl-0 = <&usb301_vbus_en>;
113 enable-active-high;
114 };
Doug Anderson80600982014-07-19 04:09:15 +0900115
116 vbat: fixed-regulator {
117 compatible = "regulator-fixed";
118 regulator-name = "vbat-supply";
119 regulator-boot-on;
120 regulator-always-on;
121 };
Ajay Kumar3b8fe982014-09-14 02:20:18 +0900122
123 panel: panel {
124 compatible = "auo,b116xw03";
125 power-supply = <&tps65090_fet6>;
126 backlight = <&backlight>;
Ajay Kumare07eb1e2015-02-05 00:29:56 +0900127
128 port {
129 panel_in: endpoint {
130 remote-endpoint = <&bridge_out>;
131 };
132 };
Ajay Kumar3b8fe982014-09-14 02:20:18 +0900133 };
Javier Martinez Canillas3cb18182015-02-27 06:08:51 +0900134
135 mmc1_pwrseq: mmc1_pwrseq {
136 compatible = "mmc-pwrseq-simple";
137 reset-gpios = <&gpx0 0 GPIO_ACTIVE_LOW>; /* WIFI_EN */
138 clocks = <&max77802 MAX77802_CLK_32K_CP>;
139 clock-names = "ext_clock";
140 };
Arun Kumar K3528dd32014-05-09 06:06:25 +0900141};
142
Naveen Krishna Chatradhi7b488032014-09-14 00:46:56 +0900143&adc {
144 status = "okay";
145 vdd-supply = <&ldo9_reg>;
146};
147
Bartlomiej Zolnierkiewicz8b51c5e2015-12-15 18:33:15 +0100148&cpu0 {
149 cpu-supply = <&buck2_reg>;
150};
151
152&cpu4 {
153 cpu-supply = <&buck6_reg>;
154};
155
Tushar Behera522c8ff2014-06-21 21:50:17 +0900156&dp {
Arun Kumar K3528dd32014-05-09 06:06:25 +0900157 status = "okay";
Tushar Behera522c8ff2014-06-21 21:50:17 +0900158 pinctrl-names = "default";
159 pinctrl-0 = <&dp_hpd_gpio>;
160 samsung,color-space = <0>;
Tushar Behera522c8ff2014-06-21 21:50:17 +0900161 samsung,color-depth = <1>;
162 samsung,link-rate = <0x06>;
163 samsung,lane-count = <2>;
Yakir Yang12315572016-02-15 19:10:31 +0800164 hpd-gpios = <&gpx2 6 GPIO_ACTIVE_HIGH>;
Ajay Kumare07eb1e2015-02-05 00:29:56 +0900165
166 ports {
Javier Martinez Canillasa7d78652016-06-06 16:24:44 -0400167 port {
Ajay Kumare07eb1e2015-02-05 00:29:56 +0900168 dp_out: endpoint {
169 remote-endpoint = <&bridge_in>;
170 };
171 };
172 };
Arun Kumar K3528dd32014-05-09 06:06:25 +0900173};
174
Tushar Behera522c8ff2014-06-21 21:50:17 +0900175&fimd {
176 status = "okay";
177 samsung,invert-vclk;
178};
179
180&hdmi {
181 status = "okay";
182 hpd-gpio = <&gpx3 7 GPIO_ACTIVE_HIGH>;
183 pinctrl-names = "default";
184 pinctrl-0 = <&hdmi_hpd_irq>;
185 ddc = <&i2c_2>;
Rahul Sharmae634a152014-09-14 00:45:23 +0900186
187 hdmi-en-supply = <&tps65090_fet7>;
188 vdd-supply = <&ldo8_reg>;
189 vdd_osc-supply = <&ldo10_reg>;
190 vdd_pll-supply = <&ldo8_reg>;
Tushar Behera522c8ff2014-06-21 21:50:17 +0900191};
192
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900193&hsi2c_4 {
194 status = "okay";
195 clock-frequency = <400000>;
196
Javier Martinez Canillasfa781dd2014-09-24 00:16:45 +0900197 max77802: max77802-pmic@9 {
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900198 compatible = "maxim,max77802";
199 interrupt-parent = <&gpx3>;
200 interrupts = <1 IRQ_TYPE_NONE>;
201 pinctrl-names = "default";
202 pinctrl-0 = <&max77802_irq>, <&pmic_selb>,
203 <&pmic_dvs_1>, <&pmic_dvs_2>, <&pmic_dvs_3>;
204 wakeup-source;
205 reg = <0x9>;
206 #clock-cells = <1>;
207
208 inb1-supply = <&tps65090_dcdc2>;
209 inb2-supply = <&tps65090_dcdc1>;
210 inb3-supply = <&tps65090_dcdc2>;
211 inb4-supply = <&tps65090_dcdc2>;
212 inb5-supply = <&tps65090_dcdc1>;
213 inb6-supply = <&tps65090_dcdc2>;
214 inb7-supply = <&tps65090_dcdc1>;
215 inb8-supply = <&tps65090_dcdc1>;
216 inb9-supply = <&tps65090_dcdc1>;
217 inb10-supply = <&tps65090_dcdc1>;
218
219 inl1-supply = <&buck5_reg>;
220 inl2-supply = <&buck7_reg>;
221 inl3-supply = <&buck9_reg>;
222 inl4-supply = <&buck9_reg>;
223 inl5-supply = <&buck9_reg>;
224 inl6-supply = <&tps65090_dcdc2>;
225 inl7-supply = <&buck9_reg>;
226 inl9-supply = <&tps65090_dcdc2>;
227 inl10-supply = <&buck7_reg>;
228
229 regulators {
230 buck1_reg: BUCK1 {
231 regulator-name = "vdd_mif";
232 regulator-min-microvolt = <800000>;
233 regulator-max-microvolt = <1300000>;
234 regulator-always-on;
235 regulator-boot-on;
236 regulator-ramp-delay = <12500>;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900237 regulator-state-mem {
238 regulator-off-in-suspend;
239 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900240 };
241
242 buck2_reg: BUCK2 {
243 regulator-name = "vdd_arm";
244 regulator-min-microvolt = <800000>;
245 regulator-max-microvolt = <1500000>;
246 regulator-always-on;
247 regulator-boot-on;
248 regulator-ramp-delay = <12500>;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900249 regulator-state-mem {
250 regulator-off-in-suspend;
251 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900252 };
253
254 buck3_reg: BUCK3 {
255 regulator-name = "vdd_int";
256 regulator-min-microvolt = <800000>;
257 regulator-max-microvolt = <1400000>;
258 regulator-always-on;
259 regulator-boot-on;
260 regulator-ramp-delay = <12500>;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900261 regulator-state-mem {
262 regulator-off-in-suspend;
263 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900264 };
265
266 buck4_reg: BUCK4 {
267 regulator-name = "vdd_g3d";
268 regulator-min-microvolt = <700000>;
269 regulator-max-microvolt = <1400000>;
270 regulator-always-on;
271 regulator-boot-on;
272 regulator-ramp-delay = <12500>;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900273 regulator-state-mem {
274 regulator-off-in-suspend;
275 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900276 };
277
278 buck5_reg: BUCK5 {
279 regulator-name = "vdd_1v2";
280 regulator-min-microvolt = <1200000>;
281 regulator-max-microvolt = <1200000>;
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900282 regulator-boot-on;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900283 regulator-state-mem {
284 regulator-off-in-suspend;
285 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900286 };
287
288 buck6_reg: BUCK6 {
289 regulator-name = "vdd_kfc";
290 regulator-min-microvolt = <800000>;
291 regulator-max-microvolt = <1500000>;
292 regulator-always-on;
293 regulator-boot-on;
294 regulator-ramp-delay = <12500>;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900295 regulator-state-mem {
296 regulator-off-in-suspend;
297 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900298 };
299
300 buck7_reg: BUCK7 {
301 regulator-name = "vdd_1v35";
302 regulator-min-microvolt = <1350000>;
303 regulator-max-microvolt = <1350000>;
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900304 regulator-boot-on;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900305 regulator-state-mem {
306 regulator-on-in-suspend;
307 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900308 };
309
310 buck8_reg: BUCK8 {
311 regulator-name = "vdd_emmc";
312 regulator-min-microvolt = <2850000>;
313 regulator-max-microvolt = <2850000>;
314 regulator-always-on;
315 regulator-boot-on;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900316 regulator-state-mem {
317 regulator-off-in-suspend;
318 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900319 };
320
321 buck9_reg: BUCK9 {
322 regulator-name = "vdd_2v";
323 regulator-min-microvolt = <2000000>;
324 regulator-max-microvolt = <2000000>;
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900325 regulator-boot-on;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900326 regulator-state-mem {
327 regulator-on-in-suspend;
328 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900329 };
330
331 buck10_reg: BUCK10 {
332 regulator-name = "vdd_1v8";
333 regulator-min-microvolt = <1800000>;
334 regulator-max-microvolt = <1800000>;
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900335 regulator-boot-on;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900336 regulator-state-mem {
337 regulator-on-in-suspend;
338 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900339 };
340
341 ldo1_reg: LDO1 {
342 regulator-name = "vdd_1v0";
343 regulator-min-microvolt = <1000000>;
344 regulator-max-microvolt = <1000000>;
345 regulator-always-on;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900346 regulator-state-mem {
347 regulator-on-in-suspend;
348 regulator-mode = <MAX77802_OPMODE_LP>;
349 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900350 };
351
352 ldo2_reg: LDO2 {
353 regulator-name = "vdd_1v2_2";
354 regulator-min-microvolt = <1200000>;
355 regulator-max-microvolt = <1200000>;
356 };
357
358 ldo3_reg: LDO3 {
359 regulator-name = "vdd_1v8_3";
360 regulator-min-microvolt = <1800000>;
361 regulator-max-microvolt = <1800000>;
362 regulator-always-on;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900363 regulator-state-mem {
364 regulator-on-in-suspend;
365 regulator-mode = <MAX77802_OPMODE_LP>;
366 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900367 };
368
369 vqmmc_sdcard: ldo4_reg: LDO4 {
370 regulator-name = "vdd_sd";
371 regulator-min-microvolt = <1800000>;
372 regulator-max-microvolt = <2800000>;
373 regulator-always-on;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900374 regulator-state-mem {
375 regulator-off-in-suspend;
376 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900377 };
378
379 ldo5_reg: LDO5 {
380 regulator-name = "vdd_1v8_5";
381 regulator-min-microvolt = <1800000>;
382 regulator-max-microvolt = <1800000>;
383 regulator-always-on;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900384 regulator-state-mem {
385 regulator-off-in-suspend;
386 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900387 };
388
389 ldo6_reg: LDO6 {
390 regulator-name = "vdd_1v8_6";
391 regulator-min-microvolt = <1800000>;
392 regulator-max-microvolt = <1800000>;
393 regulator-always-on;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900394 regulator-state-mem {
395 regulator-off-in-suspend;
396 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900397 };
398
399 ldo7_reg: LDO7 {
400 regulator-name = "vdd_1v8_7";
401 regulator-min-microvolt = <1800000>;
402 regulator-max-microvolt = <1800000>;
403 };
404
405 ldo8_reg: LDO8 {
406 regulator-name = "vdd_ldo8";
407 regulator-min-microvolt = <1000000>;
408 regulator-max-microvolt = <1000000>;
409 regulator-always-on;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900410 regulator-state-mem {
411 regulator-off-in-suspend;
412 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900413 };
414
415 ldo9_reg: LDO9 {
416 regulator-name = "vdd_ldo9";
417 regulator-min-microvolt = <1800000>;
418 regulator-max-microvolt = <1800000>;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900419 regulator-state-mem {
420 regulator-on-in-suspend;
421 regulator-mode = <MAX77802_OPMODE_LP>;
422 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900423 };
424
425 ldo10_reg: LDO10 {
426 regulator-name = "vdd_ldo10";
427 regulator-min-microvolt = <1800000>;
428 regulator-max-microvolt = <1800000>;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900429 regulator-state-mem {
430 regulator-off-in-suspend;
431 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900432 };
433
434 ldo11_reg: LDO11 {
435 regulator-name = "vdd_ldo11";
436 regulator-min-microvolt = <1800000>;
437 regulator-max-microvolt = <1800000>;
438 regulator-always-on;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900439 regulator-state-mem {
440 regulator-on-in-suspend;
441 regulator-mode = <MAX77802_OPMODE_LP>;
442 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900443 };
444
445 ldo12_reg: LDO12 {
446 regulator-name = "vdd_ldo12";
447 regulator-min-microvolt = <3000000>;
448 regulator-max-microvolt = <3000000>;
449 regulator-always-on;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900450 regulator-state-mem {
451 regulator-off-in-suspend;
452 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900453 };
454
455 ldo13_reg: LDO13 {
456 regulator-name = "vdd_ldo13";
457 regulator-min-microvolt = <1800000>;
458 regulator-max-microvolt = <1800000>;
459 regulator-always-on;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900460 regulator-state-mem {
461 regulator-on-in-suspend;
462 regulator-mode = <MAX77802_OPMODE_LP>;
463 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900464 };
465
466 ldo14_reg: LDO14 {
467 regulator-name = "vdd_ldo14";
468 regulator-min-microvolt = <1800000>;
469 regulator-max-microvolt = <1800000>;
470 regulator-always-on;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900471 regulator-state-mem {
472 regulator-off-in-suspend;
473 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900474 };
475
476 ldo15_reg: LDO15 {
477 regulator-name = "vdd_ldo15";
478 regulator-min-microvolt = <1000000>;
479 regulator-max-microvolt = <1000000>;
480 regulator-always-on;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900481 regulator-state-mem {
482 regulator-off-in-suspend;
483 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900484 };
485
486 ldo17_reg: LDO17 {
487 regulator-name = "vdd_g3ds";
488 regulator-min-microvolt = <900000>;
489 regulator-max-microvolt = <1400000>;
490 regulator-always-on;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900491 regulator-state-mem {
492 regulator-off-in-suspend;
493 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900494 };
495
496 ldo18_reg: LDO18 {
497 regulator-name = "ldo_18";
498 regulator-min-microvolt = <1800000>;
499 regulator-max-microvolt = <1800000>;
500 };
501
502 ldo19_reg: LDO19 {
503 regulator-name = "ldo_19";
504 regulator-min-microvolt = <1800000>;
505 regulator-max-microvolt = <1800000>;
506 };
507
508 ldo20_reg: LDO20 {
509 regulator-name = "ldo_20";
510 regulator-min-microvolt = <1800000>;
511 regulator-max-microvolt = <1800000>;
512 regulator-always-on;
513 };
514
515 ldo21_reg: LDO21 {
516 regulator-name = "ldo_21";
517 regulator-min-microvolt = <2800000>;
518 regulator-max-microvolt = <2800000>;
519 };
520
521 ldo23_reg: LDO23 {
522 regulator-name = "ldo_23";
523 regulator-min-microvolt = <3300000>;
524 regulator-max-microvolt = <3300000>;
525 };
526 ldo24_reg: LDO24 {
527 regulator-name = "ldo_24";
528 regulator-min-microvolt = <2800000>;
529 regulator-max-microvolt = <2800000>;
530 };
531
532 ldo25_reg: LDO25 {
533 regulator-name = "ldo_25";
534 regulator-min-microvolt = <3300000>;
535 regulator-max-microvolt = <3300000>;
536 };
537
538 ldo26_reg: LDO26 {
539 regulator-name = "ldo_26";
540 regulator-min-microvolt = <1200000>;
541 regulator-max-microvolt = <1200000>;
542 };
543
544 ldo27_reg: LDO27 {
545 regulator-name = "ldo_27";
546 regulator-min-microvolt = <1200000>;
547 regulator-max-microvolt = <1200000>;
548 };
549
550 ldo28_reg: LDO28 {
551 regulator-name = "ldo_28";
552 regulator-min-microvolt = <1800000>;
553 regulator-max-microvolt = <1800000>;
554 };
555
556 ldo29_reg: LDO29 {
557 regulator-name = "ldo_29";
558 regulator-min-microvolt = <1800000>;
559 regulator-max-microvolt = <1800000>;
560 };
561
562 ldo30_reg: LDO30 {
563 regulator-name = "vdd_mifs";
564 regulator-min-microvolt = <1000000>;
565 regulator-max-microvolt = <1000000>;
566 regulator-always-on;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900567 regulator-state-mem {
568 regulator-off-in-suspend;
569 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900570 };
571
572 ldo32_reg: LDO32 {
573 regulator-name = "ldo_32";
574 regulator-min-microvolt = <3000000>;
575 regulator-max-microvolt = <3000000>;
576 };
577
578 ldo33_reg: LDO33 {
579 regulator-name = "ldo_33";
580 regulator-min-microvolt = <2800000>;
581 regulator-max-microvolt = <2800000>;
582 };
583
584 ldo34_reg: LDO34 {
585 regulator-name = "ldo_34";
586 regulator-min-microvolt = <3000000>;
587 regulator-max-microvolt = <3000000>;
588 };
589
590 ldo35_reg: LDO35 {
591 regulator-name = "ldo_35";
592 regulator-min-microvolt = <1200000>;
593 regulator-max-microvolt = <1200000>;
594 };
595 };
596 };
597};
598
Tushar Behera522c8ff2014-06-21 21:50:17 +0900599&hsi2c_7 {
600 status = "okay";
Javier Martinez Canillas8be6a6d2014-09-14 00:47:22 +0900601 clock-frequency = <400000>;
Tushar Behera522c8ff2014-06-21 21:50:17 +0900602
603 max98090: codec@10 {
604 compatible = "maxim,max98090";
605 reg = <0x10>;
606 interrupts = <2 0>;
607 interrupt-parent = <&gpx0>;
608 pinctrl-names = "default";
609 pinctrl-0 = <&max98090_irq>;
Tushar Behera2fad9722015-02-27 06:08:52 +0900610 clocks = <&pmu_system_controller 0>;
611 clock-names = "mclk";
Tushar Behera522c8ff2014-06-21 21:50:17 +0900612 };
Javier Martinez Canillasdc0cf1a2014-09-14 00:47:17 +0900613
614 light-sensor@44 {
615 compatible = "isil,isl29018";
616 reg = <0x44>;
617 vcc-supply = <&tps65090_fet5>;
618 };
Ajay Kumar3b8fe982014-09-14 02:20:18 +0900619
620 ps8625: lvds-bridge@48 {
621 compatible = "parade,ps8625";
622 reg = <0x48>;
623 sleep-gpios = <&gpx3 5 GPIO_ACTIVE_HIGH>;
624 reset-gpios = <&gpy7 7 GPIO_ACTIVE_HIGH>;
625 lane-count = <2>;
Ajay Kumar3b8fe982014-09-14 02:20:18 +0900626 use-external-pwm;
Ajay Kumare07eb1e2015-02-05 00:29:56 +0900627
628 ports {
Javier Martinez Canillasa7d78652016-06-06 16:24:44 -0400629 #address-cells = <1>;
630 #size-cells = <0>;
631
632 port@0 {
633 reg = <0>;
634
Ajay Kumare07eb1e2015-02-05 00:29:56 +0900635 bridge_out: endpoint {
636 remote-endpoint = <&panel_in>;
637 };
638 };
639
Javier Martinez Canillasa7d78652016-06-06 16:24:44 -0400640 port@1 {
641 reg = <1>;
642
Ajay Kumare07eb1e2015-02-05 00:29:56 +0900643 bridge_in: endpoint {
644 remote-endpoint = <&dp_out>;
645 };
646 };
647 };
648
Ajay Kumar3b8fe982014-09-14 02:20:18 +0900649 };
Tushar Behera522c8ff2014-06-21 21:50:17 +0900650};
651
Sjoerd Simons6a9e7312014-09-14 01:33:15 +0900652&hsi2c_8 {
653 status = "okay";
654 clock-frequency = <333000>;
655
656 /* Atmel mXT336S */
657 trackpad@4b {
658 compatible = "atmel,maxtouch";
659 reg = <0x4b>;
660 interrupt-parent = <&gpx1>;
661 interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
662 wakeup-source;
663 pinctrl-names = "default";
664 pinctrl-0 = <&trackpad_irq>;
665 linux,gpio-keymap = <KEY_RESERVED
666 KEY_RESERVED
667 KEY_RESERVED /* GPIO0 */
668 KEY_RESERVED /* GPIO1 */
669 KEY_RESERVED /* GPIO2 */
670 BTN_LEFT>; /* GPIO3 */
671 };
672};
673
Tushar Behera522c8ff2014-06-21 21:50:17 +0900674&hsi2c_9 {
675 status = "okay";
676 clock-frequency = <400000>;
677
678 tpm@20 {
679 compatible = "infineon,slb9645tt";
680 reg = <0x20>;
681
682 /* Unused irq; but still need to configure the pins */
683 pinctrl-names = "default";
684 pinctrl-0 = <&tpm_irq>;
685 };
686};
687
688&i2c_2 {
689 status = "okay";
690 samsung,i2c-sda-delay = <100>;
691 samsung,i2c-max-bus-freq = <66000>;
692 samsung,i2c-slave-addr = <0x50>;
693};
694
695&i2s0 {
Arun Kumar K3528dd32014-05-09 06:06:25 +0900696 status = "okay";
697};
698
699&mmc_0 {
700 status = "okay";
701 num-slots = <1>;
Naveen Krishna Chatradhi65354302014-09-24 00:39:20 +0900702 mmc-hs200-1_8v;
Jaehoon Chungaaa25a52014-08-18 11:55:32 -0500703 cap-mmc-highspeed;
Arun Kumar K3528dd32014-05-09 06:06:25 +0900704 non-removable;
Arun Kumar K3528dd32014-05-09 06:06:25 +0900705 clock-frequency = <400000000>;
706 samsung,dw-mshc-ciu-div = <3>;
707 samsung,dw-mshc-sdr-timing = <0 4>;
708 samsung,dw-mshc-ddr-timing = <0 2>;
Seungwon Jeon4f59ebe2015-03-27 01:52:02 +0900709 samsung,dw-mshc-hs400-timing = <0 2>;
710 samsung,read-strobe-delay = <90>;
Arun Kumar K3528dd32014-05-09 06:06:25 +0900711 pinctrl-names = "default";
Seungwon Jeon4f59ebe2015-03-27 01:52:02 +0900712 pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus1 &sd0_bus4 &sd0_bus8 &sd0_rclk>;
Jaehoon Chungaaa25a52014-08-18 11:55:32 -0500713 bus-width = <8>;
Arun Kumar K3528dd32014-05-09 06:06:25 +0900714};
715
Javier Martinez Canillas3cb18182015-02-27 06:08:51 +0900716&mmc_1 {
717 status = "okay";
718 num-slots = <1>;
Javier Martinez Canillas29a22892015-10-15 18:51:09 +0200719 non-removable;
Javier Martinez Canillas3cb18182015-02-27 06:08:51 +0900720 cap-sdio-irq;
Javier Martinez Canillasb2706872015-04-07 15:03:34 +0200721 keep-power-in-suspend;
Javier Martinez Canillas3cb18182015-02-27 06:08:51 +0900722 clock-frequency = <400000000>;
723 samsung,dw-mshc-ciu-div = <1>;
724 samsung,dw-mshc-sdr-timing = <0 1>;
725 samsung,dw-mshc-ddr-timing = <0 2>;
726 pinctrl-names = "default";
727 pinctrl-0 = <&sd1_clk>, <&sd1_cmd>, <&sd1_int>, <&sd1_bus1>,
728 <&sd1_bus4>, <&sd1_bus8>, <&wifi_en>;
729 bus-width = <4>;
730 cap-sd-highspeed;
731 mmc-pwrseq = <&mmc1_pwrseq>;
732 vqmmc-supply = <&buck10_reg>;
733};
734
Arun Kumar K3528dd32014-05-09 06:06:25 +0900735&mmc_2 {
736 status = "okay";
737 num-slots = <1>;
Jaehoon Chungaaa25a52014-08-18 11:55:32 -0500738 cap-sd-highspeed;
Arun Kumar K3528dd32014-05-09 06:06:25 +0900739 card-detect-delay = <200>;
740 clock-frequency = <400000000>;
741 samsung,dw-mshc-ciu-div = <3>;
742 samsung,dw-mshc-sdr-timing = <2 3>;
743 samsung,dw-mshc-ddr-timing = <1 2>;
744 pinctrl-names = "default";
Javier Martinez Canillasaf6ad882015-02-27 06:08:51 +0900745 pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus1 &sd2_bus4>;
Jaehoon Chungaaa25a52014-08-18 11:55:32 -0500746 bus-width = <4>;
Arun Kumar K3528dd32014-05-09 06:06:25 +0900747};
748
Tushar Beheraead39932014-05-17 07:44:10 +0900749
Tushar Behera522c8ff2014-06-21 21:50:17 +0900750&pinctrl_0 {
Doug Andersonac5ce092014-07-16 02:38:39 +0900751 pinctrl-names = "default";
752 pinctrl-0 = <&mask_tpm_reset>;
753
Javier Martinez Canillas3cb18182015-02-27 06:08:51 +0900754 wifi_en: wifi-en {
755 samsung,pins = "gpx0-0";
756 samsung,pin-function = <1>;
757 samsung,pin-pud = <0>;
758 samsung,pin-drv = <0>;
759 };
760
Tushar Behera522c8ff2014-06-21 21:50:17 +0900761 max98090_irq: max98090-irq {
762 samsung,pins = "gpx0-2";
763 samsung,pin-function = <0>;
764 samsung,pin-pud = <0>;
765 samsung,pin-drv = <0>;
766 };
767
Doug Andersonac5ce092014-07-16 02:38:39 +0900768 /* We need GPX0_6 to be low at sleep time; just keep it low always */
769 mask_tpm_reset: mask-tpm-reset {
770 samsung,pins = "gpx0-6";
771 samsung,pin-function = <1>;
772 samsung,pin-pud = <0>;
773 samsung,pin-drv = <0>;
774 samsung,pin-val = <0>;
775 };
776
Tushar Behera522c8ff2014-06-21 21:50:17 +0900777 tpm_irq: tpm-irq {
778 samsung,pins = "gpx1-0";
779 samsung,pin-function = <0>;
780 samsung,pin-pud = <0>;
781 samsung,pin-drv = <0>;
782 };
783
Sjoerd Simons6a9e7312014-09-14 01:33:15 +0900784 trackpad_irq: trackpad-irq {
785 samsung,pins = "gpx1-1";
786 samsung,pin-function = <0xf>;
787 samsung,pin-pud = <0>;
788 samsung,pin-drv = <0>;
789 };
790
Tushar Behera522c8ff2014-06-21 21:50:17 +0900791 power_key_irq: power-key-irq {
792 samsung,pins = "gpx1-2";
793 samsung,pin-function = <0>;
794 samsung,pin-pud = <0>;
795 samsung,pin-drv = <0>;
796 };
797
Doug Anderson80600982014-07-19 04:09:15 +0900798 ec_irq: ec-irq {
799 samsung,pins = "gpx1-5";
800 samsung,pin-function = <0>;
801 samsung,pin-pud = <0>;
802 samsung,pin-drv = <0>;
803 };
804
805 tps65090_irq: tps65090-irq {
806 samsung,pins = "gpx2-5";
807 samsung,pin-function = <0>;
808 samsung,pin-pud = <0>;
809 samsung,pin-drv = <0>;
810 };
811
Tushar Behera522c8ff2014-06-21 21:50:17 +0900812 dp_hpd_gpio: dp_hpd_gpio {
813 samsung,pins = "gpx2-6";
814 samsung,pin-function = <0>;
815 samsung,pin-pud = <3>;
816 samsung,pin-drv = <0>;
817 };
818
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900819 max77802_irq: max77802-irq {
820 samsung,pins = "gpx3-1";
821 samsung,pin-function = <0>;
822 samsung,pin-pud = <0>;
823 samsung,pin-drv = <0>;
824 };
825
Javier Martinez Canillas1f3cde42015-01-15 00:30:40 +0900826 lid_irq: lid-irq {
827 samsung,pins = "gpx3-4";
828 samsung,pin-function = <0xf>;
829 samsung,pin-pud = <0>;
830 samsung,pin-drv = <0>;
831 };
832
Tushar Behera522c8ff2014-06-21 21:50:17 +0900833 hdmi_hpd_irq: hdmi-hpd-irq {
834 samsung,pins = "gpx3-7";
835 samsung,pin-function = <0>;
836 samsung,pin-pud = <1>;
837 samsung,pin-drv = <0>;
Tushar Beheraead39932014-05-17 07:44:10 +0900838 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900839
840 pmic_dvs_1: pmic-dvs-1 {
841 samsung,pins = "gpy7-6";
842 samsung,pin-function = <1>;
843 samsung,pin-pud = <0>;
844 samsung,pin-drv = <0>;
845 };
846};
847
Javier Martinez Canillas3cb18182015-02-27 06:08:51 +0900848&pinctrl_1 {
849 /* Adjust WiFi drive strengths lower for EMI */
850 sd1_clk: sd1-clk {
851 samsung,pin-drv = <2>;
852 };
853
854 sd1_cmd: sd1-cmd {
855 samsung,pin-drv = <2>;
856 };
857
858 sd1_bus1: sd1-bus-width1 {
859 samsung,pin-drv = <2>;
860 };
861
862 sd1_bus4: sd1-bus-width4 {
863 samsung,pin-drv = <2>;
864 };
865
866 sd1_bus8: sd1-bus-width8 {
867 samsung,pin-drv = <2>;
868 };
869};
870
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900871&pinctrl_2 {
872 pmic_dvs_2: pmic-dvs-2 {
873 samsung,pins = "gpj4-2";
874 samsung,pin-function = <1>;
875 samsung,pin-pud = <0>;
876 samsung,pin-drv = <0>;
877 };
878
879 pmic_dvs_3: pmic-dvs-3 {
880 samsung,pins = "gpj4-3";
881 samsung,pin-function = <1>;
882 samsung,pin-pud = <0>;
883 samsung,pin-drv = <0>;
884 };
Tushar Beheraead39932014-05-17 07:44:10 +0900885};
886
Tushar Behera522c8ff2014-06-21 21:50:17 +0900887&pinctrl_3 {
Doug Anderson80600982014-07-19 04:09:15 +0900888 /* Drive SPI lines at x2 for better integrity */
889 spi2-bus {
890 samsung,pin-drv = <2>;
891 };
892
893 /* Drive SPI chip select at x2 for better integrity */
894 ec_spi_cs: ec-spi-cs {
895 samsung,pins = "gpb1-2";
896 samsung,pin-function = <1>;
897 samsung,pin-pud = <0>;
898 samsung,pin-drv = <2>;
899 };
900
Tushar Behera522c8ff2014-06-21 21:50:17 +0900901 usb300_vbus_en: usb300-vbus-en {
902 samsung,pins = "gph0-0";
903 samsung,pin-function = <1>;
904 samsung,pin-pud = <0>;
905 samsung,pin-drv = <0>;
906 };
Arun Kumar K3528dd32014-05-09 06:06:25 +0900907
Tushar Behera522c8ff2014-06-21 21:50:17 +0900908 usb301_vbus_en: usb301-vbus-en {
909 samsung,pins = "gph0-1";
910 samsung,pin-function = <1>;
911 samsung,pin-pud = <0>;
912 samsung,pin-drv = <0>;
Arun Kumar K3528dd32014-05-09 06:06:25 +0900913 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900914
915 pmic_selb: pmic-selb {
916 samsung,pins = "gph0-2", "gph0-3", "gph0-4", "gph0-5",
917 "gph0-6";
918 samsung,pin-function = <1>;
919 samsung,pin-pud = <0>;
920 samsung,pin-drv = <0>;
921 };
Arun Kumar K3528dd32014-05-09 06:06:25 +0900922};
923
Alim Akhtarb8bb9ba2015-10-13 04:32:53 +0900924&pmu_system_controller {
925 assigned-clocks = <&pmu_system_controller 0>;
926 assigned-clock-parents = <&clock CLK_FIN_PLL>;
927};
928
Tushar Behera522c8ff2014-06-21 21:50:17 +0900929&rtc {
Rahul Sharma6ac189f2014-05-16 05:23:21 +0900930 status = "okay";
Javier Martinez Canillasfa781dd2014-09-24 00:16:45 +0900931 clocks = <&clock CLK_RTC>, <&max77802 MAX77802_CLK_32K_AP>;
932 clock-names = "rtc", "rtc_src";
Rahul Sharma6ac189f2014-05-16 05:23:21 +0900933};
934
Doug Anderson80600982014-07-19 04:09:15 +0900935&spi_2 {
936 status = "okay";
937 num-cs = <1>;
938 samsung,spi-src-clk = <0>;
Javier Martinez Canillas31b99032015-10-08 07:39:58 +0900939 cs-gpios = <&gpb1 2 GPIO_ACTIVE_HIGH>;
Doug Anderson80600982014-07-19 04:09:15 +0900940
941 cros_ec: cros-ec@0 {
942 compatible = "google,cros-ec-spi";
943 interrupt-parent = <&gpx1>;
944 interrupts = <5 0>;
945 pinctrl-names = "default";
946 pinctrl-0 = <&ec_spi_cs &ec_irq>;
947 reg = <0>;
948 spi-max-frequency = <3125000>;
Emilio Lopez27e66992015-10-08 07:35:21 +0900949 google,has-vbc-nvram;
Doug Anderson80600982014-07-19 04:09:15 +0900950
951 controller-data {
952 samsung,spi-feedback-delay = <1>;
953 };
954
955 i2c-tunnel {
956 compatible = "google,cros-ec-i2c-tunnel";
957 #address-cells = <1>;
958 #size-cells = <0>;
959 google,remote-bus = <0>;
960
961 battery: sbs-battery@b {
962 compatible = "sbs,sbs-battery";
963 reg = <0xb>;
964 sbs,poll-retry-count = <1>;
965 sbs,i2c-retry-count = <2>;
966 };
967
968 power-regulator@48 {
969 compatible = "ti,tps65090";
970 reg = <0x48>;
971
972 /*
973 * Config irq to disable internal pulls
974 * even though we run in polling mode.
975 */
976 pinctrl-names = "default";
977 pinctrl-0 = <&tps65090_irq>;
978
979 vsys1-supply = <&vbat>;
980 vsys2-supply = <&vbat>;
981 vsys3-supply = <&vbat>;
982 infet1-supply = <&vbat>;
Javier Martinez Canillasa1305482014-08-18 13:26:51 -0500983 infet2-supply = <&tps65090_dcdc1>;
984 infet3-supply = <&tps65090_dcdc2>;
985 infet4-supply = <&tps65090_dcdc2>;
986 infet5-supply = <&tps65090_dcdc2>;
987 infet6-supply = <&tps65090_dcdc2>;
988 infet7-supply = <&tps65090_dcdc1>;
Doug Anderson80600982014-07-19 04:09:15 +0900989 vsys-l1-supply = <&vbat>;
990 vsys-l2-supply = <&vbat>;
991
992 regulators {
993 tps65090_dcdc1: dcdc1 {
994 ti,enable-ext-control;
995 };
996 tps65090_dcdc2: dcdc2 {
997 ti,enable-ext-control;
998 };
999 tps65090_dcdc3: dcdc3 {
1000 ti,enable-ext-control;
1001 };
1002 tps65090_fet1: fet1 {
1003 regulator-name = "vcd_led";
1004 };
1005 tps65090_fet2: fet2 {
1006 regulator-name = "video_mid";
1007 regulator-always-on;
1008 };
1009 tps65090_fet3: fet3 {
1010 regulator-name = "wwan_r";
1011 regulator-always-on;
1012 };
1013 tps65090_fet4: fet4 {
1014 regulator-name = "sdcard";
1015 regulator-always-on;
1016 };
1017 tps65090_fet5: fet5 {
1018 regulator-name = "camout";
Javier Martinez Canillasae845472015-01-15 00:30:44 +09001019 regulator-always-on;
Doug Anderson80600982014-07-19 04:09:15 +09001020 };
1021 tps65090_fet6: fet6 {
1022 regulator-name = "lcd_vdd";
1023 };
1024 tps65090_fet7: fet7 {
1025 regulator-name = "video_mid_1a";
1026 regulator-always-on;
1027 };
1028 tps65090_ldo1: ldo1 {
1029 };
1030 tps65090_ldo2: ldo2 {
1031 };
1032 };
1033
1034 charger {
1035 compatible = "ti,tps65090-charger";
1036 };
1037 };
1038 };
1039 };
1040};
1041
Krzysztof Kozlowski3a3cf6c2015-04-12 20:57:36 +09001042&serial_3 {
Rahul Sharma6ac189f2014-05-16 05:23:21 +09001043 status = "okay";
Rahul Sharma6ac189f2014-05-16 05:23:21 +09001044};
1045
Javier Martinez Canillasaff138b2016-06-01 09:20:35 -04001046&tmu_cpu0 {
1047 vtmu-supply = <&ldo10_reg>;
1048};
1049
1050&tmu_cpu1 {
1051 vtmu-supply = <&ldo10_reg>;
1052};
1053
1054&tmu_cpu2 {
1055 vtmu-supply = <&ldo10_reg>;
1056};
1057
1058&tmu_cpu3 {
1059 vtmu-supply = <&ldo10_reg>;
1060};
1061
1062&tmu_gpu {
1063 vtmu-supply = <&ldo10_reg>;
1064};
1065
Sjoerd Simonse1c69ef2014-09-25 17:32:14 +09001066&usbdrd_dwc3_0 {
1067 dr_mode = "host";
1068};
1069
1070&usbdrd_dwc3_1 {
1071 dr_mode = "host";
1072};
1073
Arun Kumar K0ce9f472014-05-31 02:11:39 +09001074&usbdrd_phy0 {
Vivek Gautam14a35ad2014-05-19 22:29:42 +09001075 vbus-supply = <&usb300_vbus_reg>;
1076};
1077
Arun Kumar K0ce9f472014-05-31 02:11:39 +09001078&usbdrd_phy1 {
Vivek Gautam14a35ad2014-05-19 22:29:42 +09001079 vbus-supply = <&usb301_vbus_reg>;
1080};
1081
Arun Kumar K3528dd32014-05-09 06:06:25 +09001082/*
1083 * Use longest HW watchdog in SoC (32 seconds) since the hardware
1084 * watchdog provides no debugging information (compared to soft/hard
1085 * lockup detectors) and so should be last resort.
1086 */
1087&watchdog {
1088 timeout-sec = <32>;
1089};
Tushar Beheraead39932014-05-17 07:44:10 +09001090
Doug Anderson80600982014-07-19 04:09:15 +09001091#include "cros-ec-keyboard.dtsi"
Naveen Krishna Chatradhi7b488032014-09-14 00:46:56 +09001092#include "cros-adc-thermistors.dtsi"