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 | |
Javier Martinez Canillas | 824e413 | 2016-09-01 11:06:55 +0200 | [diff] [blame^] | 21 | memory@40000000 { |
Javier Martinez Canillas | 1354835 | 2016-09-01 11:06:52 +0200 | [diff] [blame] | 22 | device_type = "memory"; |
Marek Szyprowski | f9e45a6 | 2014-07-16 02:54:06 +0900 | [diff] [blame] | 23 | reg = <0x40000000 0x3FF00000>; |
Dongjin Kim | 800974a | 2013-01-10 17:12:50 -0800 | [diff] [blame] | 24 | }; |
| 25 | |
| 26 | leds { |
| 27 | compatible = "gpio-leds"; |
| 28 | led1 { |
| 29 | label = "led1:heart"; |
Javier Martinez Canillas | c10d329 | 2015-10-08 07:39:58 +0900 | [diff] [blame] | 30 | gpios = <&gpc1 0 GPIO_ACTIVE_LOW>; |
Dongjin Kim | 800974a | 2013-01-10 17:12:50 -0800 | [diff] [blame] | 31 | default-state = "on"; |
| 32 | linux,default-trigger = "heartbeat"; |
| 33 | }; |
| 34 | led2 { |
| 35 | label = "led2:mmc0"; |
Javier Martinez Canillas | c10d329 | 2015-10-08 07:39:58 +0900 | [diff] [blame] | 36 | gpios = <&gpc1 2 GPIO_ACTIVE_LOW>; |
Dongjin Kim | 800974a | 2013-01-10 17:12:50 -0800 | [diff] [blame] | 37 | default-state = "on"; |
| 38 | linux,default-trigger = "mmc0"; |
| 39 | }; |
| 40 | }; |
| 41 | |
Marek Szyprowski | 081a15e | 2014-07-16 02:54:07 +0900 | [diff] [blame] | 42 | gpio_keys { |
| 43 | pinctrl-0 = <&gpio_power_key &gpio_home_key>; |
| 44 | |
| 45 | home_key { |
| 46 | interrupt-parent = <&gpx2>; |
| 47 | interrupts = <2 0>; |
Javier Martinez Canillas | c10d329 | 2015-10-08 07:39:58 +0900 | [diff] [blame] | 48 | gpios = <&gpx2 2 GPIO_ACTIVE_HIGH>; |
Marek Szyprowski | 081a15e | 2014-07-16 02:54:07 +0900 | [diff] [blame] | 49 | linux,code = <KEY_HOME>; |
| 50 | label = "home key"; |
| 51 | debounce-interval = <10>; |
Sudeep Holla | 36a0282 | 2016-01-28 15:59:58 +0000 | [diff] [blame] | 52 | wakeup-source; |
Marek Szyprowski | 081a15e | 2014-07-16 02:54:07 +0900 | [diff] [blame] | 53 | }; |
| 54 | }; |
| 55 | |
Dongjin Kim | 800974a | 2013-01-10 17:12:50 -0800 | [diff] [blame] | 56 | regulator_p3v3 { |
| 57 | compatible = "regulator-fixed"; |
| 58 | regulator-name = "p3v3_en"; |
| 59 | regulator-min-microvolt = <3300000>; |
| 60 | regulator-max-microvolt = <3300000>; |
Javier Martinez Canillas | c10d329 | 2015-10-08 07:39:58 +0900 | [diff] [blame] | 61 | gpio = <&gpa1 1 GPIO_ACTIVE_LOW>; |
Dongjin Kim | 800974a | 2013-01-10 17:12:50 -0800 | [diff] [blame] | 62 | enable-active-high; |
Marek Szyprowski | ec601ff | 2014-07-16 02:54:07 +0900 | [diff] [blame] | 63 | regulator-always-on; |
Dongjin Kim | 800974a | 2013-01-10 17:12:50 -0800 | [diff] [blame] | 64 | }; |
Marek Szyprowski | ec601ff | 2014-07-16 02:54:07 +0900 | [diff] [blame] | 65 | }; |
Dongjin Kim | 800974a | 2013-01-10 17:12:50 -0800 | [diff] [blame] | 66 | |
Krzysztof Kozlowski | 303ce71 | 2016-05-04 14:43:59 +0200 | [diff] [blame] | 67 | /* VDDQ for MSHC (eMMC card) */ |
| 68 | &buck8_reg { |
| 69 | regulator-name = "BUCK8_VDDQ_MMC4_2.8V"; |
| 70 | regulator-min-microvolt = <2800000>; |
| 71 | regulator-max-microvolt = <2800000>; |
| 72 | }; |
| 73 | |
Marek Szyprowski | ec601ff | 2014-07-16 02:54:07 +0900 | [diff] [blame] | 74 | &ehci { |
| 75 | port@1 { |
Marek Szyprowski | 0c80244 | 2014-07-16 02:54:06 +0900 | [diff] [blame] | 76 | status = "okay"; |
| 77 | }; |
Dongjin Kim | 800974a | 2013-01-10 17:12:50 -0800 | [diff] [blame] | 78 | }; |
Marek Szyprowski | 081a15e | 2014-07-16 02:54:07 +0900 | [diff] [blame] | 79 | |
Krzysztof Kozlowski | 303ce71 | 2016-05-04 14:43:59 +0200 | [diff] [blame] | 80 | &mshc_0 { |
| 81 | vqmmc-supply = <&buck8_reg>; |
| 82 | }; |
| 83 | |
Marek Szyprowski | 081a15e | 2014-07-16 02:54:07 +0900 | [diff] [blame] | 84 | &pinctrl_1 { |
| 85 | gpio_home_key: home_key { |
| 86 | samsung,pins = "gpx2-2"; |
| 87 | samsung,pin-pud = <0>; |
| 88 | }; |
| 89 | }; |
Krzysztof Kozlowski | 49c1a16 | 2015-04-06 21:06:50 +0200 | [diff] [blame] | 90 | |
| 91 | &serial_2 { |
| 92 | status = "okay"; |
| 93 | }; |
| 94 | |
| 95 | &serial_3 { |
| 96 | status = "okay"; |
| 97 | }; |