Dongjin Kim | 800974a | 2013-01-10 17:12:50 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Hardkernel's Exynos4412 based ODROID-X board device tree source |
| 3 | * |
| 4 | * Copyright (c) 2012 Dongjin Kim <tobetter@gmail.com> |
| 5 | * |
Marek Szyprowski | ec601ff | 2014-07-16 02:54:07 +0900 | [diff] [blame] | 6 | * Device tree source file for Hardkernel's ODROID-X board which is based |
| 7 | * on Samsung's Exynos4412 SoC. |
Dongjin Kim | 800974a | 2013-01-10 17:12:50 -0800 | [diff] [blame] | 8 | * |
| 9 | * This program is free software; you can redistribute it and/or modify |
| 10 | * it under the terms of the GNU General Public License version 2 as |
| 11 | * published by the Free Software Foundation. |
| 12 | */ |
| 13 | |
| 14 | /dts-v1/; |
Marek Szyprowski | ec601ff | 2014-07-16 02:54:07 +0900 | [diff] [blame] | 15 | #include "exynos4412-odroid-common.dtsi" |
Dongjin Kim | 800974a | 2013-01-10 17:12:50 -0800 | [diff] [blame] | 16 | |
| 17 | / { |
| 18 | model = "Hardkernel ODROID-X board based on Exynos4412"; |
Sachin Kamat | 8bdb31b | 2014-03-21 02:17:22 +0900 | [diff] [blame] | 19 | compatible = "hardkernel,odroid-x", "samsung,exynos4412", "samsung,exynos4"; |
Dongjin Kim | 800974a | 2013-01-10 17:12:50 -0800 | [diff] [blame] | 20 | |
| 21 | memory { |
Marek Szyprowski | f9e45a6 | 2014-07-16 02:54:06 +0900 | [diff] [blame] | 22 | reg = <0x40000000 0x3FF00000>; |
Dongjin Kim | 800974a | 2013-01-10 17:12:50 -0800 | [diff] [blame] | 23 | }; |
| 24 | |
| 25 | leds { |
| 26 | compatible = "gpio-leds"; |
| 27 | led1 { |
| 28 | label = "led1:heart"; |
Javier Martinez Canillas | c10d329 | 2015-10-08 07:39:58 +0900 | [diff] [blame] | 29 | gpios = <&gpc1 0 GPIO_ACTIVE_LOW>; |
Dongjin Kim | 800974a | 2013-01-10 17:12:50 -0800 | [diff] [blame] | 30 | default-state = "on"; |
| 31 | linux,default-trigger = "heartbeat"; |
| 32 | }; |
| 33 | led2 { |
| 34 | label = "led2:mmc0"; |
Javier Martinez Canillas | c10d329 | 2015-10-08 07:39:58 +0900 | [diff] [blame] | 35 | gpios = <&gpc1 2 GPIO_ACTIVE_LOW>; |
Dongjin Kim | 800974a | 2013-01-10 17:12:50 -0800 | [diff] [blame] | 36 | default-state = "on"; |
| 37 | linux,default-trigger = "mmc0"; |
| 38 | }; |
| 39 | }; |
| 40 | |
Marek Szyprowski | 081a15e | 2014-07-16 02:54:07 +0900 | [diff] [blame] | 41 | gpio_keys { |
| 42 | pinctrl-0 = <&gpio_power_key &gpio_home_key>; |
| 43 | |
| 44 | home_key { |
| 45 | interrupt-parent = <&gpx2>; |
| 46 | interrupts = <2 0>; |
Javier Martinez Canillas | c10d329 | 2015-10-08 07:39:58 +0900 | [diff] [blame] | 47 | gpios = <&gpx2 2 GPIO_ACTIVE_HIGH>; |
Marek Szyprowski | 081a15e | 2014-07-16 02:54:07 +0900 | [diff] [blame] | 48 | linux,code = <KEY_HOME>; |
| 49 | label = "home key"; |
| 50 | debounce-interval = <10>; |
Sudeep Holla | 36a0282 | 2016-01-28 15:59:58 +0000 | [diff] [blame] | 51 | wakeup-source; |
Marek Szyprowski | 081a15e | 2014-07-16 02:54:07 +0900 | [diff] [blame] | 52 | }; |
| 53 | }; |
| 54 | |
Dongjin Kim | 800974a | 2013-01-10 17:12:50 -0800 | [diff] [blame] | 55 | regulator_p3v3 { |
| 56 | compatible = "regulator-fixed"; |
| 57 | regulator-name = "p3v3_en"; |
| 58 | regulator-min-microvolt = <3300000>; |
| 59 | regulator-max-microvolt = <3300000>; |
Javier Martinez Canillas | c10d329 | 2015-10-08 07:39:58 +0900 | [diff] [blame] | 60 | gpio = <&gpa1 1 GPIO_ACTIVE_LOW>; |
Dongjin Kim | 800974a | 2013-01-10 17:12:50 -0800 | [diff] [blame] | 61 | enable-active-high; |
Marek Szyprowski | ec601ff | 2014-07-16 02:54:07 +0900 | [diff] [blame] | 62 | regulator-always-on; |
Dongjin Kim | 800974a | 2013-01-10 17:12:50 -0800 | [diff] [blame] | 63 | }; |
Marek Szyprowski | ec601ff | 2014-07-16 02:54:07 +0900 | [diff] [blame] | 64 | }; |
Dongjin Kim | 800974a | 2013-01-10 17:12:50 -0800 | [diff] [blame] | 65 | |
Krzysztof Kozlowski | 303ce71 | 2016-05-04 14:43:59 +0200 | [diff] [blame] | 66 | /* VDDQ for MSHC (eMMC card) */ |
| 67 | &buck8_reg { |
| 68 | regulator-name = "BUCK8_VDDQ_MMC4_2.8V"; |
| 69 | regulator-min-microvolt = <2800000>; |
| 70 | regulator-max-microvolt = <2800000>; |
| 71 | }; |
| 72 | |
Marek Szyprowski | ec601ff | 2014-07-16 02:54:07 +0900 | [diff] [blame] | 73 | &ehci { |
| 74 | port@1 { |
Marek Szyprowski | 0c80244 | 2014-07-16 02:54:06 +0900 | [diff] [blame] | 75 | status = "okay"; |
| 76 | }; |
Dongjin Kim | 800974a | 2013-01-10 17:12:50 -0800 | [diff] [blame] | 77 | }; |
Marek Szyprowski | 081a15e | 2014-07-16 02:54:07 +0900 | [diff] [blame] | 78 | |
Krzysztof Kozlowski | 303ce71 | 2016-05-04 14:43:59 +0200 | [diff] [blame] | 79 | &mshc_0 { |
| 80 | vqmmc-supply = <&buck8_reg>; |
| 81 | }; |
| 82 | |
Marek Szyprowski | 081a15e | 2014-07-16 02:54:07 +0900 | [diff] [blame] | 83 | &pinctrl_1 { |
| 84 | gpio_home_key: home_key { |
| 85 | samsung,pins = "gpx2-2"; |
| 86 | samsung,pin-pud = <0>; |
| 87 | }; |
| 88 | }; |
Krzysztof Kozlowski | 49c1a16 | 2015-04-06 21:06:50 +0200 | [diff] [blame] | 89 | |
| 90 | &serial_2 { |
| 91 | status = "okay"; |
| 92 | }; |
| 93 | |
| 94 | &serial_3 { |
| 95 | status = "okay"; |
| 96 | }; |