blob: 97882267ef093ded9a513e728ee097fdcd0efcbf [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
Javier Martinez Canillas824e4132016-09-01 11:06:55 +020021 memory@40000000 {
Javier Martinez Canillas13548352016-09-01 11:06:52 +020022 device_type = "memory";
Marek Szyprowskif9e45a62014-07-16 02:54:06 +090023 reg = <0x40000000 0x3FF00000>;
Dongjin Kim800974a2013-01-10 17:12:50 -080024 };
25
26 leds {
27 compatible = "gpio-leds";
28 led1 {
29 label = "led1:heart";
Javier Martinez Canillasc10d3292015-10-08 07:39:58 +090030 gpios = <&gpc1 0 GPIO_ACTIVE_LOW>;
Dongjin Kim800974a2013-01-10 17:12:50 -080031 default-state = "on";
32 linux,default-trigger = "heartbeat";
33 };
34 led2 {
35 label = "led2:mmc0";
Javier Martinez Canillasc10d3292015-10-08 07:39:58 +090036 gpios = <&gpc1 2 GPIO_ACTIVE_LOW>;
Dongjin Kim800974a2013-01-10 17:12:50 -080037 default-state = "on";
38 linux,default-trigger = "mmc0";
39 };
40 };
41
Marek Szyprowski081a15e2014-07-16 02:54:07 +090042 gpio_keys {
43 pinctrl-0 = <&gpio_power_key &gpio_home_key>;
44
45 home_key {
46 interrupt-parent = <&gpx2>;
Krzysztof Kozlowski6ff0b902017-06-02 20:13:45 +020047 interrupts = <2 IRQ_TYPE_NONE>;
Javier Martinez Canillasc10d3292015-10-08 07:39:58 +090048 gpios = <&gpx2 2 GPIO_ACTIVE_HIGH>;
Marek Szyprowski081a15e2014-07-16 02:54:07 +090049 linux,code = <KEY_HOME>;
50 label = "home key";
51 debounce-interval = <10>;
Sudeep Holla36a02822016-01-28 15:59:58 +000052 wakeup-source;
Marek Szyprowski081a15e2014-07-16 02:54:07 +090053 };
54 };
55
Dongjin Kim800974a2013-01-10 17:12:50 -080056 regulator_p3v3 {
57 compatible = "regulator-fixed";
58 regulator-name = "p3v3_en";
59 regulator-min-microvolt = <3300000>;
60 regulator-max-microvolt = <3300000>;
Javier Martinez Canillasc10d3292015-10-08 07:39:58 +090061 gpio = <&gpa1 1 GPIO_ACTIVE_LOW>;
Dongjin Kim800974a2013-01-10 17:12:50 -080062 enable-active-high;
Marek Szyprowskiec601ff2014-07-16 02:54:07 +090063 regulator-always-on;
Dongjin Kim800974a2013-01-10 17:12:50 -080064 };
Marek Szyprowskiec601ff2014-07-16 02:54:07 +090065};
Dongjin Kim800974a2013-01-10 17:12:50 -080066
Markus Reichlc9a865b2016-11-18 10:55:04 +010067&adc {
68 vdd-supply = <&ldo10_reg>;
69 status = "okay";
70};
71
Krzysztof Kozlowski303ce712016-05-04 14:43:59 +020072/* VDDQ for MSHC (eMMC card) */
73&buck8_reg {
74 regulator-name = "BUCK8_VDDQ_MMC4_2.8V";
75 regulator-min-microvolt = <2800000>;
76 regulator-max-microvolt = <2800000>;
77};
78
Marek Szyprowskiec601ff2014-07-16 02:54:07 +090079&ehci {
80 port@1 {
Marek Szyprowski0c802442014-07-16 02:54:06 +090081 status = "okay";
82 };
Dongjin Kim800974a2013-01-10 17:12:50 -080083};
Marek Szyprowski081a15e2014-07-16 02:54:07 +090084
Krzysztof Kozlowski303ce712016-05-04 14:43:59 +020085&mshc_0 {
86 vqmmc-supply = <&buck8_reg>;
87};
88
Marek Szyprowski081a15e2014-07-16 02:54:07 +090089&pinctrl_1 {
90 gpio_home_key: home_key {
91 samsung,pins = "gpx2-2";
Krzysztof Kozlowskic35bc3f2016-09-04 13:04:09 +020092 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
Marek Szyprowski081a15e2014-07-16 02:54:07 +090093 };
94};
Krzysztof Kozlowski49c1a162015-04-06 21:06:50 +020095
96&serial_2 {
97 status = "okay";
98};
99
100&serial_3 {
101 status = "okay";
102};
Markus Reichl287dad02016-11-28 13:48:06 +0100103
104&sound {
105 simple-audio-card,name = "Odroid-X";
106 simple-audio-card,widgets =
107 "Headphone", "Headphone Jack",
108 "Microphone", "Mic Jack",
109 "Microphone", "DMIC";
110 simple-audio-card,routing =
111 "Headphone Jack", "HPL",
112 "Headphone Jack", "HPR",
113 "IN1", "Mic Jack",
114 "Mic Jack", "MICBIAS";
115};