blob: bf7b21b817e48567d164a91268f5b448d15f1a4f [file] [log] [blame]
Dongjin Kim800974a2013-01-10 17:12:50 -08001/*
2 * Hardkernel's Exynos4412 based ODROID-X board device tree source
3 *
4 * Copyright (c) 2012 Dongjin Kim <tobetter@gmail.com>
5 *
Marek Szyprowskiec601ff2014-07-16 02:54:07 +09006 * Device tree source file for Hardkernel's ODROID-X board which is based
7 * on Samsung's Exynos4412 SoC.
Dongjin Kim800974a2013-01-10 17:12:50 -08008 *
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 Szyprowskiec601ff2014-07-16 02:54:07 +090015#include "exynos4412-odroid-common.dtsi"
Dongjin Kim800974a2013-01-10 17:12:50 -080016
17/ {
18 model = "Hardkernel ODROID-X board based on Exynos4412";
Sachin Kamat8bdb31b2014-03-21 02:17:22 +090019 compatible = "hardkernel,odroid-x", "samsung,exynos4412", "samsung,exynos4";
Dongjin Kim800974a2013-01-10 17:12:50 -080020
21 memory {
Marek Szyprowskif9e45a62014-07-16 02:54:06 +090022 reg = <0x40000000 0x3FF00000>;
Dongjin Kim800974a2013-01-10 17:12:50 -080023 };
24
25 leds {
26 compatible = "gpio-leds";
27 led1 {
28 label = "led1:heart";
Javier Martinez Canillasc10d3292015-10-08 07:39:58 +090029 gpios = <&gpc1 0 GPIO_ACTIVE_LOW>;
Dongjin Kim800974a2013-01-10 17:12:50 -080030 default-state = "on";
31 linux,default-trigger = "heartbeat";
32 };
33 led2 {
34 label = "led2:mmc0";
Javier Martinez Canillasc10d3292015-10-08 07:39:58 +090035 gpios = <&gpc1 2 GPIO_ACTIVE_LOW>;
Dongjin Kim800974a2013-01-10 17:12:50 -080036 default-state = "on";
37 linux,default-trigger = "mmc0";
38 };
39 };
40
Marek Szyprowski081a15e2014-07-16 02:54:07 +090041 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 Canillasc10d3292015-10-08 07:39:58 +090047 gpios = <&gpx2 2 GPIO_ACTIVE_HIGH>;
Marek Szyprowski081a15e2014-07-16 02:54:07 +090048 linux,code = <KEY_HOME>;
49 label = "home key";
50 debounce-interval = <10>;
Sudeep Holla36a02822016-01-28 15:59:58 +000051 wakeup-source;
Marek Szyprowski081a15e2014-07-16 02:54:07 +090052 };
53 };
54
Dongjin Kim800974a2013-01-10 17:12:50 -080055 regulator_p3v3 {
56 compatible = "regulator-fixed";
57 regulator-name = "p3v3_en";
58 regulator-min-microvolt = <3300000>;
59 regulator-max-microvolt = <3300000>;
Javier Martinez Canillasc10d3292015-10-08 07:39:58 +090060 gpio = <&gpa1 1 GPIO_ACTIVE_LOW>;
Dongjin Kim800974a2013-01-10 17:12:50 -080061 enable-active-high;
Marek Szyprowskiec601ff2014-07-16 02:54:07 +090062 regulator-always-on;
Dongjin Kim800974a2013-01-10 17:12:50 -080063 };
Marek Szyprowskiec601ff2014-07-16 02:54:07 +090064};
Dongjin Kim800974a2013-01-10 17:12:50 -080065
Marek Szyprowskiec601ff2014-07-16 02:54:07 +090066&ehci {
67 port@1 {
Marek Szyprowski0c802442014-07-16 02:54:06 +090068 status = "okay";
69 };
Dongjin Kim800974a2013-01-10 17:12:50 -080070};
Marek Szyprowski081a15e2014-07-16 02:54:07 +090071
72&pinctrl_1 {
73 gpio_home_key: home_key {
74 samsung,pins = "gpx2-2";
75 samsung,pin-pud = <0>;
76 };
77};
Krzysztof Kozlowski49c1a162015-04-06 21:06:50 +020078
79&serial_2 {
80 status = "okay";
81};
82
83&serial_3 {
84 status = "okay";
85};