Loading...
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Hardkernel's Exynos4412 based ODROID-X board device tree source
4 *
5 * Copyright (c) 2012 Dongjin Kim <tobetter@gmail.com>
6 *
7 * Device tree source file for Hardkernel's ODROID-X board which is based
8 * on Samsung's Exynos4412 SoC.
9 */
10
11/dts-v1/;
12#include "exynos4412-odroid-common.dtsi"
13
14/ {
15 model = "Hardkernel ODROID-X board based on Exynos4412";
16 compatible = "hardkernel,odroid-x", "samsung,exynos4412", "samsung,exynos4";
17
18 memory@40000000 {
19 device_type = "memory";
20 reg = <0x40000000 0x3FF00000>;
21 };
22
23 leds {
24 compatible = "gpio-leds";
25 led1 {
26 label = "led1:heart";
27 gpios = <&gpc1 0 GPIO_ACTIVE_LOW>;
28 default-state = "on";
29 linux,default-trigger = "heartbeat";
30 };
31 led2 {
32 label = "led2:mmc0";
33 gpios = <&gpc1 2 GPIO_ACTIVE_LOW>;
34 default-state = "on";
35 linux,default-trigger = "mmc0";
36 };
37 };
38
39 gpio_keys {
40 pinctrl-0 = <&gpio_power_key &gpio_home_key>;
41
42 home_key {
43 gpios = <&gpx2 2 GPIO_ACTIVE_HIGH>;
44 linux,code = <KEY_HOME>;
45 label = "home key";
46 debounce-interval = <10>;
47 wakeup-source;
48 };
49 };
50
51 regulator_p3v3 {
52 compatible = "regulator-fixed";
53 regulator-name = "p3v3_en";
54 regulator-min-microvolt = <3300000>;
55 regulator-max-microvolt = <3300000>;
56 gpio = <&gpa1 1 GPIO_ACTIVE_HIGH>;
57 enable-active-high;
58 regulator-always-on;
59 };
60};
61
62&adc {
63 vdd-supply = <&ldo10_reg>;
64 status = "okay";
65};
66
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
74&ehci {
75 phys = <&exynos_usbphy 2>;
76 phy-names = "hsic0";
77};
78
79&mshc_0 {
80 vqmmc-supply = <&buck8_reg>;
81};
82
83&pinctrl_1 {
84 gpio_home_key: home_key {
85 samsung,pins = "gpx2-2";
86 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
87 };
88};
89
90&serial_2 {
91 status = "okay";
92};
93
94&serial_3 {
95 status = "okay";
96};
97
98&sound {
99 model = "Odroid-X";
100 samsung,audio-widgets =
101 "Headphone", "Headphone Jack",
102 "Microphone", "Mic Jack",
103 "Microphone", "DMIC";
104 samsung,audio-routing =
105 "Headphone Jack", "HPL",
106 "Headphone Jack", "HPR",
107 "IN1", "Mic Jack",
108 "Mic Jack", "MICBIAS";
109};
1/*
2 * Hardkernel's Exynos4412 based ODROID-X board device tree source
3 *
4 * Copyright (c) 2012 Dongjin Kim <tobetter@gmail.com>
5 *
6 * Device tree source file for Hardkernel's ODROID-X board which is based
7 * on Samsung's Exynos4412 SoC.
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/;
15#include "exynos4412-odroid-common.dtsi"
16
17/ {
18 model = "Hardkernel ODROID-X board based on Exynos4412";
19 compatible = "hardkernel,odroid-x", "samsung,exynos4412", "samsung,exynos4";
20
21 memory {
22 reg = <0x40000000 0x3FF00000>;
23 };
24
25 leds {
26 compatible = "gpio-leds";
27 led1 {
28 label = "led1:heart";
29 gpios = <&gpc1 0 GPIO_ACTIVE_LOW>;
30 default-state = "on";
31 linux,default-trigger = "heartbeat";
32 };
33 led2 {
34 label = "led2:mmc0";
35 gpios = <&gpc1 2 GPIO_ACTIVE_LOW>;
36 default-state = "on";
37 linux,default-trigger = "mmc0";
38 };
39 };
40
41 gpio_keys {
42 pinctrl-0 = <&gpio_power_key &gpio_home_key>;
43
44 home_key {
45 interrupt-parent = <&gpx2>;
46 interrupts = <2 0>;
47 gpios = <&gpx2 2 GPIO_ACTIVE_HIGH>;
48 linux,code = <KEY_HOME>;
49 label = "home key";
50 debounce-interval = <10>;
51 wakeup-source;
52 };
53 };
54
55 regulator_p3v3 {
56 compatible = "regulator-fixed";
57 regulator-name = "p3v3_en";
58 regulator-min-microvolt = <3300000>;
59 regulator-max-microvolt = <3300000>;
60 gpio = <&gpa1 1 GPIO_ACTIVE_LOW>;
61 enable-active-high;
62 regulator-always-on;
63 };
64};
65
66&ehci {
67 port@1 {
68 status = "okay";
69 };
70};
71
72&pinctrl_1 {
73 gpio_home_key: home_key {
74 samsung,pins = "gpx2-2";
75 samsung,pin-pud = <0>;
76 };
77};
78
79&serial_2 {
80 status = "okay";
81};
82
83&serial_3 {
84 status = "okay";
85};