blob: 1de972d46a87f31abc814991b2517d4bf75a59f1 [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"
Arun Kumar K3528dd32014-05-09 06:06:25 +090019
20/ {
21 model = "Google Peach Pit Rev 6+";
22
23 compatible = "google,pit-rev16",
24 "google,pit-rev15", "google,pit-rev14",
25 "google,pit-rev13", "google,pit-rev12",
26 "google,pit-rev11", "google,pit-rev10",
27 "google,pit-rev9", "google,pit-rev8",
28 "google,pit-rev7", "google,pit-rev6",
29 "google,pit", "google,peach","samsung,exynos5420",
30 "samsung,exynos5";
31
Doug Anderson80600982014-07-19 04:09:15 +090032 aliases {
33 /* Assign 20 so we don't get confused w/ builtin ones */
34 i2c20 = "/spi@12d40000/cros-ec@0/i2c-tunnel";
35 };
36
Ajay Kumar3b8fe982014-09-14 02:20:18 +090037 backlight: backlight {
Tushar Behera522c8ff2014-06-21 21:50:17 +090038 compatible = "pwm-backlight";
39 pwms = <&pwm 0 1000000 0>;
40 brightness-levels = <0 100 500 1000 1500 2000 2500 2800>;
41 default-brightness-level = <7>;
Ajay Kumar3b8fe982014-09-14 02:20:18 +090042 power-supply = <&tps65090_fet1>;
Tushar Behera522c8ff2014-06-21 21:50:17 +090043 pinctrl-0 = <&pwm0_out>;
44 pinctrl-names = "default";
Arun Kumar K3528dd32014-05-09 06:06:25 +090045 };
46
Javier Martinez Canillas1d1b00a2015-03-18 00:31:22 +090047 chosen {
48 stdout-path = "serial3:115200n8";
49 };
50
Arun Kumar K3528dd32014-05-09 06:06:25 +090051 fixed-rate-clocks {
52 oscclk {
53 compatible = "samsung,exynos5420-oscclk";
54 clock-frequency = <24000000>;
55 };
56 };
57
58 gpio-keys {
59 compatible = "gpio-keys";
60
61 pinctrl-names = "default";
Javier Martinez Canillas1f3cde42015-01-15 00:30:40 +090062 pinctrl-0 = <&power_key_irq &lid_irq>;
Arun Kumar K3528dd32014-05-09 06:06:25 +090063
64 power {
65 label = "Power";
66 gpios = <&gpx1 2 GPIO_ACTIVE_LOW>;
67 linux,code = <KEY_POWER>;
Sudeep Holla36a02822016-01-28 15:59:58 +000068 wakeup-source;
Arun Kumar K3528dd32014-05-09 06:06:25 +090069 };
Javier Martinez Canillas1f3cde42015-01-15 00:30:40 +090070
71 lid-switch {
72 label = "Lid";
73 gpios = <&gpx3 4 GPIO_ACTIVE_LOW>;
74 linux,input-type = <5>; /* EV_SW */
75 linux,code = <0>; /* SW_LID */
76 debounce-interval = <1>;
Sudeep Holla36a02822016-01-28 15:59:58 +000077 wakeup-source;
Javier Martinez Canillas1f3cde42015-01-15 00:30:40 +090078 };
Arun Kumar K3528dd32014-05-09 06:06:25 +090079 };
80
Tushar Behera522c8ff2014-06-21 21:50:17 +090081 memory {
82 reg = <0x20000000 0x80000000>;
Arun Kumar K3528dd32014-05-09 06:06:25 +090083 };
Tushar Beheraead39932014-05-17 07:44:10 +090084
85 sound {
86 compatible = "google,snow-audio-max98090";
87
Tushar Beheraa8d80b62014-07-08 08:20:08 +090088 samsung,model = "Peach-Pit-I2S-MAX98090";
Tushar Beheraead39932014-05-17 07:44:10 +090089 samsung,i2s-controller = <&i2s0>;
90 samsung,audio-codec = <&max98090>;
91 };
Vivek Gautam14a35ad2014-05-19 22:29:42 +090092
93 usb300_vbus_reg: regulator-usb300 {
94 compatible = "regulator-fixed";
95 regulator-name = "P5.0V_USB3CON0";
96 regulator-min-microvolt = <5000000>;
97 regulator-max-microvolt = <5000000>;
Javier Martinez Canillas31b99032015-10-08 07:39:58 +090098 gpio = <&gph0 0 GPIO_ACTIVE_HIGH>;
Vivek Gautam14a35ad2014-05-19 22:29:42 +090099 pinctrl-names = "default";
100 pinctrl-0 = <&usb300_vbus_en>;
101 enable-active-high;
102 };
103
104 usb301_vbus_reg: regulator-usb301 {
105 compatible = "regulator-fixed";
106 regulator-name = "P5.0V_USB3CON1";
107 regulator-min-microvolt = <5000000>;
108 regulator-max-microvolt = <5000000>;
Javier Martinez Canillas31b99032015-10-08 07:39:58 +0900109 gpio = <&gph0 1 GPIO_ACTIVE_HIGH>;
Vivek Gautam14a35ad2014-05-19 22:29:42 +0900110 pinctrl-names = "default";
111 pinctrl-0 = <&usb301_vbus_en>;
112 enable-active-high;
113 };
Doug Anderson80600982014-07-19 04:09:15 +0900114
115 vbat: fixed-regulator {
116 compatible = "regulator-fixed";
117 regulator-name = "vbat-supply";
118 regulator-boot-on;
119 regulator-always-on;
120 };
Ajay Kumar3b8fe982014-09-14 02:20:18 +0900121
122 panel: panel {
123 compatible = "auo,b116xw03";
124 power-supply = <&tps65090_fet6>;
125 backlight = <&backlight>;
Ajay Kumare07eb1e2015-02-05 00:29:56 +0900126
127 port {
128 panel_in: endpoint {
129 remote-endpoint = <&bridge_out>;
130 };
131 };
Ajay Kumar3b8fe982014-09-14 02:20:18 +0900132 };
Javier Martinez Canillas3cb18182015-02-27 06:08:51 +0900133
134 mmc1_pwrseq: mmc1_pwrseq {
135 compatible = "mmc-pwrseq-simple";
136 reset-gpios = <&gpx0 0 GPIO_ACTIVE_LOW>; /* WIFI_EN */
137 clocks = <&max77802 MAX77802_CLK_32K_CP>;
138 clock-names = "ext_clock";
139 };
Arun Kumar K3528dd32014-05-09 06:06:25 +0900140};
141
Naveen Krishna Chatradhi7b488032014-09-14 00:46:56 +0900142&adc {
143 status = "okay";
144 vdd-supply = <&ldo9_reg>;
145};
146
Bartlomiej Zolnierkiewicz8b51c5e2015-12-15 18:33:15 +0100147&cpu0 {
148 cpu-supply = <&buck2_reg>;
149};
150
151&cpu4 {
152 cpu-supply = <&buck6_reg>;
153};
154
Tushar Behera522c8ff2014-06-21 21:50:17 +0900155&dp {
Arun Kumar K3528dd32014-05-09 06:06:25 +0900156 status = "okay";
Tushar Behera522c8ff2014-06-21 21:50:17 +0900157 pinctrl-names = "default";
158 pinctrl-0 = <&dp_hpd_gpio>;
159 samsung,color-space = <0>;
Tushar Behera522c8ff2014-06-21 21:50:17 +0900160 samsung,color-depth = <1>;
161 samsung,link-rate = <0x06>;
162 samsung,lane-count = <2>;
Yakir Yang12315572016-02-15 19:10:31 +0800163 hpd-gpios = <&gpx2 6 GPIO_ACTIVE_HIGH>;
Ajay Kumare07eb1e2015-02-05 00:29:56 +0900164
165 ports {
Javier Martinez Canillasa7d78652016-06-06 16:24:44 -0400166 port {
Ajay Kumare07eb1e2015-02-05 00:29:56 +0900167 dp_out: endpoint {
168 remote-endpoint = <&bridge_in>;
169 };
170 };
171 };
Arun Kumar K3528dd32014-05-09 06:06:25 +0900172};
173
Tushar Behera522c8ff2014-06-21 21:50:17 +0900174&fimd {
175 status = "okay";
176 samsung,invert-vclk;
177};
178
179&hdmi {
180 status = "okay";
181 hpd-gpio = <&gpx3 7 GPIO_ACTIVE_HIGH>;
182 pinctrl-names = "default";
183 pinctrl-0 = <&hdmi_hpd_irq>;
184 ddc = <&i2c_2>;
Rahul Sharmae634a152014-09-14 00:45:23 +0900185
186 hdmi-en-supply = <&tps65090_fet7>;
187 vdd-supply = <&ldo8_reg>;
188 vdd_osc-supply = <&ldo10_reg>;
189 vdd_pll-supply = <&ldo8_reg>;
Tushar Behera522c8ff2014-06-21 21:50:17 +0900190};
191
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900192&hsi2c_4 {
193 status = "okay";
194 clock-frequency = <400000>;
195
Javier Martinez Canillasfa781dd2014-09-24 00:16:45 +0900196 max77802: max77802-pmic@9 {
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900197 compatible = "maxim,max77802";
198 interrupt-parent = <&gpx3>;
199 interrupts = <1 IRQ_TYPE_NONE>;
200 pinctrl-names = "default";
201 pinctrl-0 = <&max77802_irq>, <&pmic_selb>,
202 <&pmic_dvs_1>, <&pmic_dvs_2>, <&pmic_dvs_3>;
203 wakeup-source;
204 reg = <0x9>;
205 #clock-cells = <1>;
206
207 inb1-supply = <&tps65090_dcdc2>;
208 inb2-supply = <&tps65090_dcdc1>;
209 inb3-supply = <&tps65090_dcdc2>;
210 inb4-supply = <&tps65090_dcdc2>;
211 inb5-supply = <&tps65090_dcdc1>;
212 inb6-supply = <&tps65090_dcdc2>;
213 inb7-supply = <&tps65090_dcdc1>;
214 inb8-supply = <&tps65090_dcdc1>;
215 inb9-supply = <&tps65090_dcdc1>;
216 inb10-supply = <&tps65090_dcdc1>;
217
218 inl1-supply = <&buck5_reg>;
219 inl2-supply = <&buck7_reg>;
220 inl3-supply = <&buck9_reg>;
221 inl4-supply = <&buck9_reg>;
222 inl5-supply = <&buck9_reg>;
223 inl6-supply = <&tps65090_dcdc2>;
224 inl7-supply = <&buck9_reg>;
225 inl9-supply = <&tps65090_dcdc2>;
226 inl10-supply = <&buck7_reg>;
227
228 regulators {
229 buck1_reg: BUCK1 {
230 regulator-name = "vdd_mif";
231 regulator-min-microvolt = <800000>;
232 regulator-max-microvolt = <1300000>;
233 regulator-always-on;
234 regulator-boot-on;
235 regulator-ramp-delay = <12500>;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900236 regulator-state-mem {
237 regulator-off-in-suspend;
238 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900239 };
240
241 buck2_reg: BUCK2 {
242 regulator-name = "vdd_arm";
243 regulator-min-microvolt = <800000>;
244 regulator-max-microvolt = <1500000>;
245 regulator-always-on;
246 regulator-boot-on;
247 regulator-ramp-delay = <12500>;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900248 regulator-state-mem {
249 regulator-off-in-suspend;
250 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900251 };
252
253 buck3_reg: BUCK3 {
254 regulator-name = "vdd_int";
255 regulator-min-microvolt = <800000>;
256 regulator-max-microvolt = <1400000>;
257 regulator-always-on;
258 regulator-boot-on;
259 regulator-ramp-delay = <12500>;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900260 regulator-state-mem {
261 regulator-off-in-suspend;
262 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900263 };
264
265 buck4_reg: BUCK4 {
266 regulator-name = "vdd_g3d";
267 regulator-min-microvolt = <700000>;
268 regulator-max-microvolt = <1400000>;
269 regulator-always-on;
270 regulator-boot-on;
271 regulator-ramp-delay = <12500>;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900272 regulator-state-mem {
273 regulator-off-in-suspend;
274 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900275 };
276
277 buck5_reg: BUCK5 {
278 regulator-name = "vdd_1v2";
279 regulator-min-microvolt = <1200000>;
280 regulator-max-microvolt = <1200000>;
281 regulator-always-on;
282 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>;
304 regulator-always-on;
305 regulator-boot-on;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900306 regulator-state-mem {
307 regulator-on-in-suspend;
308 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900309 };
310
311 buck8_reg: BUCK8 {
312 regulator-name = "vdd_emmc";
313 regulator-min-microvolt = <2850000>;
314 regulator-max-microvolt = <2850000>;
315 regulator-always-on;
316 regulator-boot-on;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900317 regulator-state-mem {
318 regulator-off-in-suspend;
319 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900320 };
321
322 buck9_reg: BUCK9 {
323 regulator-name = "vdd_2v";
324 regulator-min-microvolt = <2000000>;
325 regulator-max-microvolt = <2000000>;
326 regulator-always-on;
327 regulator-boot-on;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900328 regulator-state-mem {
329 regulator-on-in-suspend;
330 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900331 };
332
333 buck10_reg: BUCK10 {
334 regulator-name = "vdd_1v8";
335 regulator-min-microvolt = <1800000>;
336 regulator-max-microvolt = <1800000>;
337 regulator-always-on;
338 regulator-boot-on;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900339 regulator-state-mem {
340 regulator-on-in-suspend;
341 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900342 };
343
344 ldo1_reg: LDO1 {
345 regulator-name = "vdd_1v0";
346 regulator-min-microvolt = <1000000>;
347 regulator-max-microvolt = <1000000>;
348 regulator-always-on;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900349 regulator-state-mem {
350 regulator-on-in-suspend;
351 regulator-mode = <MAX77802_OPMODE_LP>;
352 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900353 };
354
355 ldo2_reg: LDO2 {
356 regulator-name = "vdd_1v2_2";
357 regulator-min-microvolt = <1200000>;
358 regulator-max-microvolt = <1200000>;
359 };
360
361 ldo3_reg: LDO3 {
362 regulator-name = "vdd_1v8_3";
363 regulator-min-microvolt = <1800000>;
364 regulator-max-microvolt = <1800000>;
365 regulator-always-on;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900366 regulator-state-mem {
367 regulator-on-in-suspend;
368 regulator-mode = <MAX77802_OPMODE_LP>;
369 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900370 };
371
372 vqmmc_sdcard: ldo4_reg: LDO4 {
373 regulator-name = "vdd_sd";
374 regulator-min-microvolt = <1800000>;
375 regulator-max-microvolt = <2800000>;
376 regulator-always-on;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900377 regulator-state-mem {
378 regulator-off-in-suspend;
379 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900380 };
381
382 ldo5_reg: LDO5 {
383 regulator-name = "vdd_1v8_5";
384 regulator-min-microvolt = <1800000>;
385 regulator-max-microvolt = <1800000>;
386 regulator-always-on;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900387 regulator-state-mem {
388 regulator-off-in-suspend;
389 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900390 };
391
392 ldo6_reg: LDO6 {
393 regulator-name = "vdd_1v8_6";
394 regulator-min-microvolt = <1800000>;
395 regulator-max-microvolt = <1800000>;
396 regulator-always-on;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900397 regulator-state-mem {
398 regulator-off-in-suspend;
399 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900400 };
401
402 ldo7_reg: LDO7 {
403 regulator-name = "vdd_1v8_7";
404 regulator-min-microvolt = <1800000>;
405 regulator-max-microvolt = <1800000>;
406 };
407
408 ldo8_reg: LDO8 {
409 regulator-name = "vdd_ldo8";
410 regulator-min-microvolt = <1000000>;
411 regulator-max-microvolt = <1000000>;
412 regulator-always-on;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900413 regulator-state-mem {
414 regulator-off-in-suspend;
415 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900416 };
417
418 ldo9_reg: LDO9 {
419 regulator-name = "vdd_ldo9";
420 regulator-min-microvolt = <1800000>;
421 regulator-max-microvolt = <1800000>;
422 regulator-always-on;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900423 regulator-state-mem {
424 regulator-on-in-suspend;
425 regulator-mode = <MAX77802_OPMODE_LP>;
426 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900427 };
428
429 ldo10_reg: LDO10 {
430 regulator-name = "vdd_ldo10";
431 regulator-min-microvolt = <1800000>;
432 regulator-max-microvolt = <1800000>;
433 regulator-always-on;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900434 regulator-state-mem {
435 regulator-off-in-suspend;
436 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900437 };
438
439 ldo11_reg: LDO11 {
440 regulator-name = "vdd_ldo11";
441 regulator-min-microvolt = <1800000>;
442 regulator-max-microvolt = <1800000>;
443 regulator-always-on;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900444 regulator-state-mem {
445 regulator-on-in-suspend;
446 regulator-mode = <MAX77802_OPMODE_LP>;
447 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900448 };
449
450 ldo12_reg: LDO12 {
451 regulator-name = "vdd_ldo12";
452 regulator-min-microvolt = <3000000>;
453 regulator-max-microvolt = <3000000>;
454 regulator-always-on;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900455 regulator-state-mem {
456 regulator-off-in-suspend;
457 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900458 };
459
460 ldo13_reg: LDO13 {
461 regulator-name = "vdd_ldo13";
462 regulator-min-microvolt = <1800000>;
463 regulator-max-microvolt = <1800000>;
464 regulator-always-on;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900465 regulator-state-mem {
466 regulator-on-in-suspend;
467 regulator-mode = <MAX77802_OPMODE_LP>;
468 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900469 };
470
471 ldo14_reg: LDO14 {
472 regulator-name = "vdd_ldo14";
473 regulator-min-microvolt = <1800000>;
474 regulator-max-microvolt = <1800000>;
475 regulator-always-on;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900476 regulator-state-mem {
477 regulator-off-in-suspend;
478 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900479 };
480
481 ldo15_reg: LDO15 {
482 regulator-name = "vdd_ldo15";
483 regulator-min-microvolt = <1000000>;
484 regulator-max-microvolt = <1000000>;
485 regulator-always-on;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900486 regulator-state-mem {
487 regulator-off-in-suspend;
488 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900489 };
490
491 ldo17_reg: LDO17 {
492 regulator-name = "vdd_g3ds";
493 regulator-min-microvolt = <900000>;
494 regulator-max-microvolt = <1400000>;
495 regulator-always-on;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900496 regulator-state-mem {
497 regulator-off-in-suspend;
498 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900499 };
500
501 ldo18_reg: LDO18 {
502 regulator-name = "ldo_18";
503 regulator-min-microvolt = <1800000>;
504 regulator-max-microvolt = <1800000>;
505 };
506
507 ldo19_reg: LDO19 {
508 regulator-name = "ldo_19";
509 regulator-min-microvolt = <1800000>;
510 regulator-max-microvolt = <1800000>;
511 };
512
513 ldo20_reg: LDO20 {
514 regulator-name = "ldo_20";
515 regulator-min-microvolt = <1800000>;
516 regulator-max-microvolt = <1800000>;
517 regulator-always-on;
518 };
519
520 ldo21_reg: LDO21 {
521 regulator-name = "ldo_21";
522 regulator-min-microvolt = <2800000>;
523 regulator-max-microvolt = <2800000>;
524 };
525
526 ldo23_reg: LDO23 {
527 regulator-name = "ldo_23";
528 regulator-min-microvolt = <3300000>;
529 regulator-max-microvolt = <3300000>;
530 };
531 ldo24_reg: LDO24 {
532 regulator-name = "ldo_24";
533 regulator-min-microvolt = <2800000>;
534 regulator-max-microvolt = <2800000>;
535 };
536
537 ldo25_reg: LDO25 {
538 regulator-name = "ldo_25";
539 regulator-min-microvolt = <3300000>;
540 regulator-max-microvolt = <3300000>;
541 };
542
543 ldo26_reg: LDO26 {
544 regulator-name = "ldo_26";
545 regulator-min-microvolt = <1200000>;
546 regulator-max-microvolt = <1200000>;
547 };
548
549 ldo27_reg: LDO27 {
550 regulator-name = "ldo_27";
551 regulator-min-microvolt = <1200000>;
552 regulator-max-microvolt = <1200000>;
553 };
554
555 ldo28_reg: LDO28 {
556 regulator-name = "ldo_28";
557 regulator-min-microvolt = <1800000>;
558 regulator-max-microvolt = <1800000>;
559 };
560
561 ldo29_reg: LDO29 {
562 regulator-name = "ldo_29";
563 regulator-min-microvolt = <1800000>;
564 regulator-max-microvolt = <1800000>;
565 };
566
567 ldo30_reg: LDO30 {
568 regulator-name = "vdd_mifs";
569 regulator-min-microvolt = <1000000>;
570 regulator-max-microvolt = <1000000>;
571 regulator-always-on;
Javier Martinez Canillas23c76dc2015-01-15 00:30:49 +0900572 regulator-state-mem {
573 regulator-off-in-suspend;
574 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900575 };
576
577 ldo32_reg: LDO32 {
578 regulator-name = "ldo_32";
579 regulator-min-microvolt = <3000000>;
580 regulator-max-microvolt = <3000000>;
581 };
582
583 ldo33_reg: LDO33 {
584 regulator-name = "ldo_33";
585 regulator-min-microvolt = <2800000>;
586 regulator-max-microvolt = <2800000>;
587 };
588
589 ldo34_reg: LDO34 {
590 regulator-name = "ldo_34";
591 regulator-min-microvolt = <3000000>;
592 regulator-max-microvolt = <3000000>;
593 };
594
595 ldo35_reg: LDO35 {
596 regulator-name = "ldo_35";
597 regulator-min-microvolt = <1200000>;
598 regulator-max-microvolt = <1200000>;
599 };
600 };
601 };
602};
603
Tushar Behera522c8ff2014-06-21 21:50:17 +0900604&hsi2c_7 {
605 status = "okay";
Javier Martinez Canillas8be6a6d2014-09-14 00:47:22 +0900606 clock-frequency = <400000>;
Tushar Behera522c8ff2014-06-21 21:50:17 +0900607
608 max98090: codec@10 {
609 compatible = "maxim,max98090";
610 reg = <0x10>;
611 interrupts = <2 0>;
612 interrupt-parent = <&gpx0>;
613 pinctrl-names = "default";
614 pinctrl-0 = <&max98090_irq>;
Tushar Behera2fad9722015-02-27 06:08:52 +0900615 clocks = <&pmu_system_controller 0>;
616 clock-names = "mclk";
Tushar Behera522c8ff2014-06-21 21:50:17 +0900617 };
Javier Martinez Canillasdc0cf1a2014-09-14 00:47:17 +0900618
619 light-sensor@44 {
620 compatible = "isil,isl29018";
621 reg = <0x44>;
622 vcc-supply = <&tps65090_fet5>;
623 };
Ajay Kumar3b8fe982014-09-14 02:20:18 +0900624
625 ps8625: lvds-bridge@48 {
626 compatible = "parade,ps8625";
627 reg = <0x48>;
628 sleep-gpios = <&gpx3 5 GPIO_ACTIVE_HIGH>;
629 reset-gpios = <&gpy7 7 GPIO_ACTIVE_HIGH>;
630 lane-count = <2>;
Ajay Kumar3b8fe982014-09-14 02:20:18 +0900631 use-external-pwm;
Ajay Kumare07eb1e2015-02-05 00:29:56 +0900632
633 ports {
Javier Martinez Canillasa7d78652016-06-06 16:24:44 -0400634 #address-cells = <1>;
635 #size-cells = <0>;
636
637 port@0 {
638 reg = <0>;
639
Ajay Kumare07eb1e2015-02-05 00:29:56 +0900640 bridge_out: endpoint {
641 remote-endpoint = <&panel_in>;
642 };
643 };
644
Javier Martinez Canillasa7d78652016-06-06 16:24:44 -0400645 port@1 {
646 reg = <1>;
647
Ajay Kumare07eb1e2015-02-05 00:29:56 +0900648 bridge_in: endpoint {
649 remote-endpoint = <&dp_out>;
650 };
651 };
652 };
653
Ajay Kumar3b8fe982014-09-14 02:20:18 +0900654 };
Tushar Behera522c8ff2014-06-21 21:50:17 +0900655};
656
Sjoerd Simons6a9e7312014-09-14 01:33:15 +0900657&hsi2c_8 {
658 status = "okay";
659 clock-frequency = <333000>;
660
661 /* Atmel mXT336S */
662 trackpad@4b {
663 compatible = "atmel,maxtouch";
664 reg = <0x4b>;
665 interrupt-parent = <&gpx1>;
666 interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
667 wakeup-source;
668 pinctrl-names = "default";
669 pinctrl-0 = <&trackpad_irq>;
670 linux,gpio-keymap = <KEY_RESERVED
671 KEY_RESERVED
672 KEY_RESERVED /* GPIO0 */
673 KEY_RESERVED /* GPIO1 */
674 KEY_RESERVED /* GPIO2 */
675 BTN_LEFT>; /* GPIO3 */
676 };
677};
678
Tushar Behera522c8ff2014-06-21 21:50:17 +0900679&hsi2c_9 {
680 status = "okay";
681 clock-frequency = <400000>;
682
683 tpm@20 {
684 compatible = "infineon,slb9645tt";
685 reg = <0x20>;
686
687 /* Unused irq; but still need to configure the pins */
688 pinctrl-names = "default";
689 pinctrl-0 = <&tpm_irq>;
690 };
691};
692
693&i2c_2 {
694 status = "okay";
695 samsung,i2c-sda-delay = <100>;
696 samsung,i2c-max-bus-freq = <66000>;
697 samsung,i2c-slave-addr = <0x50>;
698};
699
700&i2s0 {
Arun Kumar K3528dd32014-05-09 06:06:25 +0900701 status = "okay";
702};
703
Javier Martinez Canillas7c44e912016-04-28 15:21:50 -0400704&mfc {
705 samsung,mfc-r = <0x43000000 0x800000>;
706 samsung,mfc-l = <0x51000000 0x800000>;
707};
708
Arun Kumar K3528dd32014-05-09 06:06:25 +0900709&mmc_0 {
710 status = "okay";
711 num-slots = <1>;
Naveen Krishna Chatradhi65354302014-09-24 00:39:20 +0900712 mmc-hs200-1_8v;
Jaehoon Chungaaa25a52014-08-18 11:55:32 -0500713 cap-mmc-highspeed;
Arun Kumar K3528dd32014-05-09 06:06:25 +0900714 non-removable;
Arun Kumar K3528dd32014-05-09 06:06:25 +0900715 clock-frequency = <400000000>;
716 samsung,dw-mshc-ciu-div = <3>;
717 samsung,dw-mshc-sdr-timing = <0 4>;
718 samsung,dw-mshc-ddr-timing = <0 2>;
Seungwon Jeon4f59ebe2015-03-27 01:52:02 +0900719 samsung,dw-mshc-hs400-timing = <0 2>;
720 samsung,read-strobe-delay = <90>;
Arun Kumar K3528dd32014-05-09 06:06:25 +0900721 pinctrl-names = "default";
Seungwon Jeon4f59ebe2015-03-27 01:52:02 +0900722 pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus1 &sd0_bus4 &sd0_bus8 &sd0_rclk>;
Jaehoon Chungaaa25a52014-08-18 11:55:32 -0500723 bus-width = <8>;
Arun Kumar K3528dd32014-05-09 06:06:25 +0900724};
725
Javier Martinez Canillas3cb18182015-02-27 06:08:51 +0900726&mmc_1 {
727 status = "okay";
728 num-slots = <1>;
Javier Martinez Canillas29a22892015-10-15 18:51:09 +0200729 non-removable;
Javier Martinez Canillas3cb18182015-02-27 06:08:51 +0900730 cap-sdio-irq;
Javier Martinez Canillasb2706872015-04-07 15:03:34 +0200731 keep-power-in-suspend;
Javier Martinez Canillas3cb18182015-02-27 06:08:51 +0900732 clock-frequency = <400000000>;
733 samsung,dw-mshc-ciu-div = <1>;
734 samsung,dw-mshc-sdr-timing = <0 1>;
735 samsung,dw-mshc-ddr-timing = <0 2>;
736 pinctrl-names = "default";
737 pinctrl-0 = <&sd1_clk>, <&sd1_cmd>, <&sd1_int>, <&sd1_bus1>,
738 <&sd1_bus4>, <&sd1_bus8>, <&wifi_en>;
739 bus-width = <4>;
740 cap-sd-highspeed;
741 mmc-pwrseq = <&mmc1_pwrseq>;
742 vqmmc-supply = <&buck10_reg>;
743};
744
Arun Kumar K3528dd32014-05-09 06:06:25 +0900745&mmc_2 {
746 status = "okay";
747 num-slots = <1>;
Jaehoon Chungaaa25a52014-08-18 11:55:32 -0500748 cap-sd-highspeed;
Arun Kumar K3528dd32014-05-09 06:06:25 +0900749 card-detect-delay = <200>;
750 clock-frequency = <400000000>;
751 samsung,dw-mshc-ciu-div = <3>;
752 samsung,dw-mshc-sdr-timing = <2 3>;
753 samsung,dw-mshc-ddr-timing = <1 2>;
754 pinctrl-names = "default";
Javier Martinez Canillasaf6ad882015-02-27 06:08:51 +0900755 pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus1 &sd2_bus4>;
Jaehoon Chungaaa25a52014-08-18 11:55:32 -0500756 bus-width = <4>;
Arun Kumar K3528dd32014-05-09 06:06:25 +0900757};
758
Tushar Beheraead39932014-05-17 07:44:10 +0900759
Tushar Behera522c8ff2014-06-21 21:50:17 +0900760&pinctrl_0 {
Doug Andersonac5ce092014-07-16 02:38:39 +0900761 pinctrl-names = "default";
762 pinctrl-0 = <&mask_tpm_reset>;
763
Javier Martinez Canillas3cb18182015-02-27 06:08:51 +0900764 wifi_en: wifi-en {
765 samsung,pins = "gpx0-0";
766 samsung,pin-function = <1>;
767 samsung,pin-pud = <0>;
768 samsung,pin-drv = <0>;
769 };
770
Tushar Behera522c8ff2014-06-21 21:50:17 +0900771 max98090_irq: max98090-irq {
772 samsung,pins = "gpx0-2";
773 samsung,pin-function = <0>;
774 samsung,pin-pud = <0>;
775 samsung,pin-drv = <0>;
776 };
777
Doug Andersonac5ce092014-07-16 02:38:39 +0900778 /* We need GPX0_6 to be low at sleep time; just keep it low always */
779 mask_tpm_reset: mask-tpm-reset {
780 samsung,pins = "gpx0-6";
781 samsung,pin-function = <1>;
782 samsung,pin-pud = <0>;
783 samsung,pin-drv = <0>;
784 samsung,pin-val = <0>;
785 };
786
Tushar Behera522c8ff2014-06-21 21:50:17 +0900787 tpm_irq: tpm-irq {
788 samsung,pins = "gpx1-0";
789 samsung,pin-function = <0>;
790 samsung,pin-pud = <0>;
791 samsung,pin-drv = <0>;
792 };
793
Sjoerd Simons6a9e7312014-09-14 01:33:15 +0900794 trackpad_irq: trackpad-irq {
795 samsung,pins = "gpx1-1";
796 samsung,pin-function = <0xf>;
797 samsung,pin-pud = <0>;
798 samsung,pin-drv = <0>;
799 };
800
Tushar Behera522c8ff2014-06-21 21:50:17 +0900801 power_key_irq: power-key-irq {
802 samsung,pins = "gpx1-2";
803 samsung,pin-function = <0>;
804 samsung,pin-pud = <0>;
805 samsung,pin-drv = <0>;
806 };
807
Doug Anderson80600982014-07-19 04:09:15 +0900808 ec_irq: ec-irq {
809 samsung,pins = "gpx1-5";
810 samsung,pin-function = <0>;
811 samsung,pin-pud = <0>;
812 samsung,pin-drv = <0>;
813 };
814
815 tps65090_irq: tps65090-irq {
816 samsung,pins = "gpx2-5";
817 samsung,pin-function = <0>;
818 samsung,pin-pud = <0>;
819 samsung,pin-drv = <0>;
820 };
821
Tushar Behera522c8ff2014-06-21 21:50:17 +0900822 dp_hpd_gpio: dp_hpd_gpio {
823 samsung,pins = "gpx2-6";
824 samsung,pin-function = <0>;
825 samsung,pin-pud = <3>;
826 samsung,pin-drv = <0>;
827 };
828
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900829 max77802_irq: max77802-irq {
830 samsung,pins = "gpx3-1";
831 samsung,pin-function = <0>;
832 samsung,pin-pud = <0>;
833 samsung,pin-drv = <0>;
834 };
835
Javier Martinez Canillas1f3cde42015-01-15 00:30:40 +0900836 lid_irq: lid-irq {
837 samsung,pins = "gpx3-4";
838 samsung,pin-function = <0xf>;
839 samsung,pin-pud = <0>;
840 samsung,pin-drv = <0>;
841 };
842
Tushar Behera522c8ff2014-06-21 21:50:17 +0900843 hdmi_hpd_irq: hdmi-hpd-irq {
844 samsung,pins = "gpx3-7";
845 samsung,pin-function = <0>;
846 samsung,pin-pud = <1>;
847 samsung,pin-drv = <0>;
Tushar Beheraead39932014-05-17 07:44:10 +0900848 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900849
850 pmic_dvs_1: pmic-dvs-1 {
851 samsung,pins = "gpy7-6";
852 samsung,pin-function = <1>;
853 samsung,pin-pud = <0>;
854 samsung,pin-drv = <0>;
855 };
856};
857
Javier Martinez Canillas3cb18182015-02-27 06:08:51 +0900858&pinctrl_1 {
859 /* Adjust WiFi drive strengths lower for EMI */
860 sd1_clk: sd1-clk {
861 samsung,pin-drv = <2>;
862 };
863
864 sd1_cmd: sd1-cmd {
865 samsung,pin-drv = <2>;
866 };
867
868 sd1_bus1: sd1-bus-width1 {
869 samsung,pin-drv = <2>;
870 };
871
872 sd1_bus4: sd1-bus-width4 {
873 samsung,pin-drv = <2>;
874 };
875
876 sd1_bus8: sd1-bus-width8 {
877 samsung,pin-drv = <2>;
878 };
879};
880
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900881&pinctrl_2 {
882 pmic_dvs_2: pmic-dvs-2 {
883 samsung,pins = "gpj4-2";
884 samsung,pin-function = <1>;
885 samsung,pin-pud = <0>;
886 samsung,pin-drv = <0>;
887 };
888
889 pmic_dvs_3: pmic-dvs-3 {
890 samsung,pins = "gpj4-3";
891 samsung,pin-function = <1>;
892 samsung,pin-pud = <0>;
893 samsung,pin-drv = <0>;
894 };
Tushar Beheraead39932014-05-17 07:44:10 +0900895};
896
Tushar Behera522c8ff2014-06-21 21:50:17 +0900897&pinctrl_3 {
Doug Anderson80600982014-07-19 04:09:15 +0900898 /* Drive SPI lines at x2 for better integrity */
899 spi2-bus {
900 samsung,pin-drv = <2>;
901 };
902
903 /* Drive SPI chip select at x2 for better integrity */
904 ec_spi_cs: ec-spi-cs {
905 samsung,pins = "gpb1-2";
906 samsung,pin-function = <1>;
907 samsung,pin-pud = <0>;
908 samsung,pin-drv = <2>;
909 };
910
Tushar Behera522c8ff2014-06-21 21:50:17 +0900911 usb300_vbus_en: usb300-vbus-en {
912 samsung,pins = "gph0-0";
913 samsung,pin-function = <1>;
914 samsung,pin-pud = <0>;
915 samsung,pin-drv = <0>;
916 };
Arun Kumar K3528dd32014-05-09 06:06:25 +0900917
Tushar Behera522c8ff2014-06-21 21:50:17 +0900918 usb301_vbus_en: usb301-vbus-en {
919 samsung,pins = "gph0-1";
920 samsung,pin-function = <1>;
921 samsung,pin-pud = <0>;
922 samsung,pin-drv = <0>;
Arun Kumar K3528dd32014-05-09 06:06:25 +0900923 };
Javier Martinez Canillas064ac052014-09-14 00:45:15 +0900924
925 pmic_selb: pmic-selb {
926 samsung,pins = "gph0-2", "gph0-3", "gph0-4", "gph0-5",
927 "gph0-6";
928 samsung,pin-function = <1>;
929 samsung,pin-pud = <0>;
930 samsung,pin-drv = <0>;
931 };
Arun Kumar K3528dd32014-05-09 06:06:25 +0900932};
933
Alim Akhtarb8bb9ba2015-10-13 04:32:53 +0900934&pmu_system_controller {
935 assigned-clocks = <&pmu_system_controller 0>;
936 assigned-clock-parents = <&clock CLK_FIN_PLL>;
937};
938
Tushar Behera522c8ff2014-06-21 21:50:17 +0900939&rtc {
Rahul Sharma6ac189f2014-05-16 05:23:21 +0900940 status = "okay";
Javier Martinez Canillasfa781dd2014-09-24 00:16:45 +0900941 clocks = <&clock CLK_RTC>, <&max77802 MAX77802_CLK_32K_AP>;
942 clock-names = "rtc", "rtc_src";
Rahul Sharma6ac189f2014-05-16 05:23:21 +0900943};
944
Doug Anderson80600982014-07-19 04:09:15 +0900945&spi_2 {
946 status = "okay";
947 num-cs = <1>;
948 samsung,spi-src-clk = <0>;
Javier Martinez Canillas31b99032015-10-08 07:39:58 +0900949 cs-gpios = <&gpb1 2 GPIO_ACTIVE_HIGH>;
Doug Anderson80600982014-07-19 04:09:15 +0900950
951 cros_ec: cros-ec@0 {
952 compatible = "google,cros-ec-spi";
953 interrupt-parent = <&gpx1>;
954 interrupts = <5 0>;
955 pinctrl-names = "default";
956 pinctrl-0 = <&ec_spi_cs &ec_irq>;
957 reg = <0>;
958 spi-max-frequency = <3125000>;
Emilio Lopez27e66992015-10-08 07:35:21 +0900959 google,has-vbc-nvram;
Doug Anderson80600982014-07-19 04:09:15 +0900960
961 controller-data {
962 samsung,spi-feedback-delay = <1>;
963 };
964
965 i2c-tunnel {
966 compatible = "google,cros-ec-i2c-tunnel";
967 #address-cells = <1>;
968 #size-cells = <0>;
969 google,remote-bus = <0>;
970
971 battery: sbs-battery@b {
972 compatible = "sbs,sbs-battery";
973 reg = <0xb>;
974 sbs,poll-retry-count = <1>;
975 sbs,i2c-retry-count = <2>;
976 };
977
978 power-regulator@48 {
979 compatible = "ti,tps65090";
980 reg = <0x48>;
981
982 /*
983 * Config irq to disable internal pulls
984 * even though we run in polling mode.
985 */
986 pinctrl-names = "default";
987 pinctrl-0 = <&tps65090_irq>;
988
989 vsys1-supply = <&vbat>;
990 vsys2-supply = <&vbat>;
991 vsys3-supply = <&vbat>;
992 infet1-supply = <&vbat>;
Javier Martinez Canillasa1305482014-08-18 13:26:51 -0500993 infet2-supply = <&tps65090_dcdc1>;
994 infet3-supply = <&tps65090_dcdc2>;
995 infet4-supply = <&tps65090_dcdc2>;
996 infet5-supply = <&tps65090_dcdc2>;
997 infet6-supply = <&tps65090_dcdc2>;
998 infet7-supply = <&tps65090_dcdc1>;
Doug Anderson80600982014-07-19 04:09:15 +0900999 vsys-l1-supply = <&vbat>;
1000 vsys-l2-supply = <&vbat>;
1001
1002 regulators {
1003 tps65090_dcdc1: dcdc1 {
1004 ti,enable-ext-control;
1005 };
1006 tps65090_dcdc2: dcdc2 {
1007 ti,enable-ext-control;
1008 };
1009 tps65090_dcdc3: dcdc3 {
1010 ti,enable-ext-control;
1011 };
1012 tps65090_fet1: fet1 {
1013 regulator-name = "vcd_led";
1014 };
1015 tps65090_fet2: fet2 {
1016 regulator-name = "video_mid";
1017 regulator-always-on;
1018 };
1019 tps65090_fet3: fet3 {
1020 regulator-name = "wwan_r";
1021 regulator-always-on;
1022 };
1023 tps65090_fet4: fet4 {
1024 regulator-name = "sdcard";
1025 regulator-always-on;
1026 };
1027 tps65090_fet5: fet5 {
1028 regulator-name = "camout";
Javier Martinez Canillasae845472015-01-15 00:30:44 +09001029 regulator-always-on;
Doug Anderson80600982014-07-19 04:09:15 +09001030 };
1031 tps65090_fet6: fet6 {
1032 regulator-name = "lcd_vdd";
1033 };
1034 tps65090_fet7: fet7 {
1035 regulator-name = "video_mid_1a";
1036 regulator-always-on;
1037 };
1038 tps65090_ldo1: ldo1 {
1039 };
1040 tps65090_ldo2: ldo2 {
1041 };
1042 };
1043
1044 charger {
1045 compatible = "ti,tps65090-charger";
1046 };
1047 };
1048 };
1049 };
1050};
1051
Krzysztof Kozlowski3a3cf6c2015-04-12 20:57:36 +09001052&serial_3 {
Rahul Sharma6ac189f2014-05-16 05:23:21 +09001053 status = "okay";
Rahul Sharma6ac189f2014-05-16 05:23:21 +09001054};
1055
Sjoerd Simonse1c69ef2014-09-25 17:32:14 +09001056&usbdrd_dwc3_0 {
1057 dr_mode = "host";
1058};
1059
1060&usbdrd_dwc3_1 {
1061 dr_mode = "host";
1062};
1063
Arun Kumar K0ce9f472014-05-31 02:11:39 +09001064&usbdrd_phy0 {
Vivek Gautam14a35ad2014-05-19 22:29:42 +09001065 vbus-supply = <&usb300_vbus_reg>;
1066};
1067
Arun Kumar K0ce9f472014-05-31 02:11:39 +09001068&usbdrd_phy1 {
Vivek Gautam14a35ad2014-05-19 22:29:42 +09001069 vbus-supply = <&usb301_vbus_reg>;
1070};
1071
Arun Kumar K3528dd32014-05-09 06:06:25 +09001072/*
1073 * Use longest HW watchdog in SoC (32 seconds) since the hardware
1074 * watchdog provides no debugging information (compared to soft/hard
1075 * lockup detectors) and so should be last resort.
1076 */
1077&watchdog {
1078 timeout-sec = <32>;
1079};
Tushar Beheraead39932014-05-17 07:44:10 +09001080
Doug Anderson80600982014-07-19 04:09:15 +09001081#include "cros-ec-keyboard.dtsi"
Naveen Krishna Chatradhi7b488032014-09-14 00:46:56 +09001082#include "cros-adc-thermistors.dtsi"