aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/exynos5800-peach-pi.dts
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/boot/dts/exynos5800-peach-pi.dts')
-rw-r--r--arch/arm/boot/dts/exynos5800-peach-pi.dts101
1 files changed, 100 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/exynos5800-peach-pi.dts b/arch/arm/boot/dts/exynos5800-peach-pi.dts
index e8fdda827fc9..06737c60d333 100644
--- a/arch/arm/boot/dts/exynos5800-peach-pi.dts
+++ b/arch/arm/boot/dts/exynos5800-peach-pi.dts
@@ -13,6 +13,7 @@
13#include <dt-bindings/gpio/gpio.h> 13#include <dt-bindings/gpio/gpio.h>
14#include <dt-bindings/interrupt-controller/irq.h> 14#include <dt-bindings/interrupt-controller/irq.h>
15#include <dt-bindings/clock/maxim,max77802.h> 15#include <dt-bindings/clock/maxim,max77802.h>
16#include <dt-bindings/regulator/maxim,max77802.h>
16#include "exynos5800.dtsi" 17#include "exynos5800.dtsi"
17 18
18/ { 19/ {
@@ -52,7 +53,7 @@
52 compatible = "gpio-keys"; 53 compatible = "gpio-keys";
53 54
54 pinctrl-names = "default"; 55 pinctrl-names = "default";
55 pinctrl-0 = <&power_key_irq>; 56 pinctrl-0 = <&power_key_irq &lid_irq>;
56 57
57 power { 58 power {
58 label = "Power"; 59 label = "Power";
@@ -60,6 +61,16 @@
60 linux,code = <KEY_POWER>; 61 linux,code = <KEY_POWER>;
61 gpio-key,wakeup; 62 gpio-key,wakeup;
62 }; 63 };
64
65 lid-switch {
66 label = "Lid";
67 gpios = <&gpx3 4 GPIO_ACTIVE_LOW>;
68 linux,input-type = <5>; /* EV_SW */
69 linux,code = <0>; /* SW_LID */
70 debounce-interval = <1>;
71 gpio-key,wakeup;
72 };
73
63 }; 74 };
64 75
65 memory { 76 memory {
@@ -191,6 +202,9 @@
191 regulator-always-on; 202 regulator-always-on;
192 regulator-boot-on; 203 regulator-boot-on;
193 regulator-ramp-delay = <12500>; 204 regulator-ramp-delay = <12500>;
205 regulator-state-mem {
206 regulator-off-in-suspend;
207 };
194 }; 208 };
195 209
196 buck2_reg: BUCK2 { 210 buck2_reg: BUCK2 {
@@ -200,6 +214,9 @@
200 regulator-always-on; 214 regulator-always-on;
201 regulator-boot-on; 215 regulator-boot-on;
202 regulator-ramp-delay = <12500>; 216 regulator-ramp-delay = <12500>;
217 regulator-state-mem {
218 regulator-off-in-suspend;
219 };
203 }; 220 };
204 221
205 buck3_reg: BUCK3 { 222 buck3_reg: BUCK3 {
@@ -209,6 +226,9 @@
209 regulator-always-on; 226 regulator-always-on;
210 regulator-boot-on; 227 regulator-boot-on;
211 regulator-ramp-delay = <12500>; 228 regulator-ramp-delay = <12500>;
229 regulator-state-mem {
230 regulator-off-in-suspend;
231 };
212 }; 232 };
213 233
214 buck4_reg: BUCK4 { 234 buck4_reg: BUCK4 {
@@ -218,6 +238,9 @@
218 regulator-always-on; 238 regulator-always-on;
219 regulator-boot-on; 239 regulator-boot-on;
220 regulator-ramp-delay = <12500>; 240 regulator-ramp-delay = <12500>;
241 regulator-state-mem {
242 regulator-off-in-suspend;
243 };
221 }; 244 };
222 245
223 buck5_reg: BUCK5 { 246 buck5_reg: BUCK5 {
@@ -226,6 +249,9 @@
226 regulator-max-microvolt = <1200000>; 249 regulator-max-microvolt = <1200000>;
227 regulator-always-on; 250 regulator-always-on;
228 regulator-boot-on; 251 regulator-boot-on;
252 regulator-state-mem {
253 regulator-off-in-suspend;
254 };
229 }; 255 };
230 256
231 buck6_reg: BUCK6 { 257 buck6_reg: BUCK6 {
@@ -235,6 +261,9 @@
235 regulator-always-on; 261 regulator-always-on;
236 regulator-boot-on; 262 regulator-boot-on;
237 regulator-ramp-delay = <12500>; 263 regulator-ramp-delay = <12500>;
264 regulator-state-mem {
265 regulator-off-in-suspend;
266 };
238 }; 267 };
239 268
240 buck7_reg: BUCK7 { 269 buck7_reg: BUCK7 {
@@ -243,6 +272,9 @@
243 regulator-max-microvolt = <1350000>; 272 regulator-max-microvolt = <1350000>;
244 regulator-always-on; 273 regulator-always-on;
245 regulator-boot-on; 274 regulator-boot-on;
275 regulator-state-mem {
276 regulator-on-in-suspend;
277 };
246 }; 278 };
247 279
248 buck8_reg: BUCK8 { 280 buck8_reg: BUCK8 {
@@ -251,6 +283,9 @@
251 regulator-max-microvolt = <2850000>; 283 regulator-max-microvolt = <2850000>;
252 regulator-always-on; 284 regulator-always-on;
253 regulator-boot-on; 285 regulator-boot-on;
286 regulator-state-mem {
287 regulator-off-in-suspend;
288 };
254 }; 289 };
255 290
256 buck9_reg: BUCK9 { 291 buck9_reg: BUCK9 {
@@ -259,6 +294,9 @@
259 regulator-max-microvolt = <2000000>; 294 regulator-max-microvolt = <2000000>;
260 regulator-always-on; 295 regulator-always-on;
261 regulator-boot-on; 296 regulator-boot-on;
297 regulator-state-mem {
298 regulator-on-in-suspend;
299 };
262 }; 300 };
263 301
264 buck10_reg: BUCK10 { 302 buck10_reg: BUCK10 {
@@ -267,6 +305,9 @@
267 regulator-max-microvolt = <1800000>; 305 regulator-max-microvolt = <1800000>;
268 regulator-always-on; 306 regulator-always-on;
269 regulator-boot-on; 307 regulator-boot-on;
308 regulator-state-mem {
309 regulator-on-in-suspend;
310 };
270 }; 311 };
271 312
272 ldo1_reg: LDO1 { 313 ldo1_reg: LDO1 {
@@ -274,6 +315,10 @@
274 regulator-min-microvolt = <1000000>; 315 regulator-min-microvolt = <1000000>;
275 regulator-max-microvolt = <1000000>; 316 regulator-max-microvolt = <1000000>;
276 regulator-always-on; 317 regulator-always-on;
318 regulator-state-mem {
319 regulator-on-in-suspend;
320 regulator-mode = <MAX77802_OPMODE_LP>;
321 };
277 }; 322 };
278 323
279 ldo2_reg: LDO2 { 324 ldo2_reg: LDO2 {
@@ -287,6 +332,10 @@
287 regulator-min-microvolt = <1800000>; 332 regulator-min-microvolt = <1800000>;
288 regulator-max-microvolt = <1800000>; 333 regulator-max-microvolt = <1800000>;
289 regulator-always-on; 334 regulator-always-on;
335 regulator-state-mem {
336 regulator-on-in-suspend;
337 regulator-mode = <MAX77802_OPMODE_LP>;
338 };
290 }; 339 };
291 340
292 vqmmc_sdcard: ldo4_reg: LDO4 { 341 vqmmc_sdcard: ldo4_reg: LDO4 {
@@ -294,6 +343,9 @@
294 regulator-min-microvolt = <1800000>; 343 regulator-min-microvolt = <1800000>;
295 regulator-max-microvolt = <2800000>; 344 regulator-max-microvolt = <2800000>;
296 regulator-always-on; 345 regulator-always-on;
346 regulator-state-mem {
347 regulator-off-in-suspend;
348 };
297 }; 349 };
298 350
299 ldo5_reg: LDO5 { 351 ldo5_reg: LDO5 {
@@ -301,6 +353,9 @@
301 regulator-min-microvolt = <1800000>; 353 regulator-min-microvolt = <1800000>;
302 regulator-max-microvolt = <1800000>; 354 regulator-max-microvolt = <1800000>;
303 regulator-always-on; 355 regulator-always-on;
356 regulator-state-mem {
357 regulator-off-in-suspend;
358 };
304 }; 359 };
305 360
306 ldo6_reg: LDO6 { 361 ldo6_reg: LDO6 {
@@ -308,6 +363,9 @@
308 regulator-min-microvolt = <1800000>; 363 regulator-min-microvolt = <1800000>;
309 regulator-max-microvolt = <1800000>; 364 regulator-max-microvolt = <1800000>;
310 regulator-always-on; 365 regulator-always-on;
366 regulator-state-mem {
367 regulator-off-in-suspend;
368 };
311 }; 369 };
312 370
313 ldo7_reg: LDO7 { 371 ldo7_reg: LDO7 {
@@ -321,6 +379,9 @@
321 regulator-min-microvolt = <1000000>; 379 regulator-min-microvolt = <1000000>;
322 regulator-max-microvolt = <1000000>; 380 regulator-max-microvolt = <1000000>;
323 regulator-always-on; 381 regulator-always-on;
382 regulator-state-mem {
383 regulator-off-in-suspend;
384 };
324 }; 385 };
325 386
326 ldo9_reg: LDO9 { 387 ldo9_reg: LDO9 {
@@ -328,6 +389,10 @@
328 regulator-min-microvolt = <1800000>; 389 regulator-min-microvolt = <1800000>;
329 regulator-max-microvolt = <1800000>; 390 regulator-max-microvolt = <1800000>;
330 regulator-always-on; 391 regulator-always-on;
392 regulator-state-mem {
393 regulator-on-in-suspend;
394 regulator-mode = <MAX77802_OPMODE_LP>;
395 };
331 }; 396 };
332 397
333 ldo10_reg: LDO10 { 398 ldo10_reg: LDO10 {
@@ -335,6 +400,9 @@
335 regulator-min-microvolt = <1800000>; 400 regulator-min-microvolt = <1800000>;
336 regulator-max-microvolt = <1800000>; 401 regulator-max-microvolt = <1800000>;
337 regulator-always-on; 402 regulator-always-on;
403 regulator-state-mem {
404 regulator-off-in-suspend;
405 };
338 }; 406 };
339 407
340 ldo11_reg: LDO11 { 408 ldo11_reg: LDO11 {
@@ -342,6 +410,10 @@
342 regulator-min-microvolt = <1800000>; 410 regulator-min-microvolt = <1800000>;
343 regulator-max-microvolt = <1800000>; 411 regulator-max-microvolt = <1800000>;
344 regulator-always-on; 412 regulator-always-on;
413 regulator-state-mem {
414 regulator-on-in-suspend;
415 regulator-mode = <MAX77802_OPMODE_LP>;
416 };
345 }; 417 };
346 418
347 ldo12_reg: LDO12 { 419 ldo12_reg: LDO12 {
@@ -349,6 +421,9 @@
349 regulator-min-microvolt = <3000000>; 421 regulator-min-microvolt = <3000000>;
350 regulator-max-microvolt = <3000000>; 422 regulator-max-microvolt = <3000000>;
351 regulator-always-on; 423 regulator-always-on;
424 regulator-state-mem {
425 regulator-off-in-suspend;
426 };
352 }; 427 };
353 428
354 ldo13_reg: LDO13 { 429 ldo13_reg: LDO13 {
@@ -356,6 +431,10 @@
356 regulator-min-microvolt = <1800000>; 431 regulator-min-microvolt = <1800000>;
357 regulator-max-microvolt = <1800000>; 432 regulator-max-microvolt = <1800000>;
358 regulator-always-on; 433 regulator-always-on;
434 regulator-state-mem {
435 regulator-on-in-suspend;
436 regulator-mode = <MAX77802_OPMODE_LP>;
437 };
359 }; 438 };
360 439
361 ldo14_reg: LDO14 { 440 ldo14_reg: LDO14 {
@@ -363,6 +442,9 @@
363 regulator-min-microvolt = <1800000>; 442 regulator-min-microvolt = <1800000>;
364 regulator-max-microvolt = <1800000>; 443 regulator-max-microvolt = <1800000>;
365 regulator-always-on; 444 regulator-always-on;
445 regulator-state-mem {
446 regulator-off-in-suspend;
447 };
366 }; 448 };
367 449
368 ldo15_reg: LDO15 { 450 ldo15_reg: LDO15 {
@@ -370,6 +452,9 @@
370 regulator-min-microvolt = <1000000>; 452 regulator-min-microvolt = <1000000>;
371 regulator-max-microvolt = <1000000>; 453 regulator-max-microvolt = <1000000>;
372 regulator-always-on; 454 regulator-always-on;
455 regulator-state-mem {
456 regulator-off-in-suspend;
457 };
373 }; 458 };
374 459
375 ldo17_reg: LDO17 { 460 ldo17_reg: LDO17 {
@@ -377,6 +462,9 @@
377 regulator-min-microvolt = <900000>; 462 regulator-min-microvolt = <900000>;
378 regulator-max-microvolt = <1400000>; 463 regulator-max-microvolt = <1400000>;
379 regulator-always-on; 464 regulator-always-on;
465 regulator-state-mem {
466 regulator-off-in-suspend;
467 };
380 }; 468 };
381 469
382 ldo18_reg: LDO18 { 470 ldo18_reg: LDO18 {
@@ -450,6 +538,9 @@
450 regulator-min-microvolt = <1000000>; 538 regulator-min-microvolt = <1000000>;
451 regulator-max-microvolt = <1000000>; 539 regulator-max-microvolt = <1000000>;
452 regulator-always-on; 540 regulator-always-on;
541 regulator-state-mem {
542 regulator-off-in-suspend;
543 };
453 }; 544 };
454 545
455 ldo32_reg: LDO32 { 546 ldo32_reg: LDO32 {
@@ -646,6 +737,13 @@
646 samsung,pin-drv = <0>; 737 samsung,pin-drv = <0>;
647 }; 738 };
648 739
740 lid_irq: lid-irq {
741 samsung,pins = "gpx3-4";
742 samsung,pin-function = <0xf>;
743 samsung,pin-pud = <0>;
744 samsung,pin-drv = <0>;
745 };
746
649 hdmi_hpd_irq: hdmi-hpd-irq { 747 hdmi_hpd_irq: hdmi-hpd-irq {
650 samsung,pins = "gpx3-7"; 748 samsung,pins = "gpx3-7";
651 samsung,pin-function = <0>; 749 samsung,pin-function = <0>;
@@ -803,6 +901,7 @@
803 }; 901 };
804 tps65090_fet5: fet5 { 902 tps65090_fet5: fet5 {
805 regulator-name = "camout"; 903 regulator-name = "camout";
904 regulator-always-on;
806 }; 905 };
807 tps65090_fet6: fet6 { 906 tps65090_fet6: fet6 {
808 regulator-name = "lcd_vdd"; 907 regulator-name = "lcd_vdd";