exynos4412-odroidx.dts 2.1 KB
Newer Older
1
// SPDX-License-Identifier: GPL-2.0
2 3 4 5 6
/*
 * Hardkernel's Exynos4412 based ODROID-X board device tree source
 *
 * Copyright (c) 2012 Dongjin Kim <tobetter@gmail.com>
 *
7 8
 * Device tree source file for Hardkernel's ODROID-X board which is based
 * 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 24 25 26
	};

	leds {
		compatible = "gpio-leds";
		led1 {
			label = "led1:heart";
27
			gpios = <&gpc1 0 GPIO_ACTIVE_LOW>;
28 29 30 31 32
			default-state = "on";
			linux,default-trigger = "heartbeat";
		};
		led2 {
			label = "led2:mmc0";
33
			gpios = <&gpc1 2 GPIO_ACTIVE_LOW>;
34 35 36 37 38
			default-state = "on";
			linux,default-trigger = "mmc0";
		};
	};

39 40 41 42
	gpio_keys {
		pinctrl-0 = <&gpio_power_key &gpio_home_key>;

		home_key {
43
			gpios = <&gpx2 2 GPIO_ACTIVE_HIGH>;
44 45 46
			linux,code = <KEY_HOME>;
			label = "home key";
			debounce-interval = <10>;
47
			wakeup-source;
48 49 50
		};
	};

51 52 53 54 55
	regulator_p3v3 {
		compatible = "regulator-fixed";
		regulator-name = "p3v3_en";
		regulator-min-microvolt = <3300000>;
		regulator-max-microvolt = <3300000>;
56
		gpio = <&gpa1 1 GPIO_ACTIVE_LOW>;
57
		enable-active-high;
58
		regulator-always-on;
59
	};
60
};
61

62 63 64 65 66
&adc {
	vdd-supply = <&ldo10_reg>;
	status = "okay";
};

67 68 69 70 71 72 73
/* VDDQ for MSHC (eMMC card) */
&buck8_reg {
	regulator-name = "BUCK8_VDDQ_MMC4_2.8V";
	regulator-min-microvolt = <2800000>;
	regulator-max-microvolt = <2800000>;
};

74 75
&ehci {
	port@1 {
76 77
		status = "okay";
	};
78
};
79

80 81 82 83
&mshc_0 {
	vqmmc-supply = <&buck8_reg>;
};

84 85 86
&pinctrl_1 {
	gpio_home_key: home_key {
		samsung,pins = "gpx2-2";
87
		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
88 89
	};
};
90 91 92 93 94 95 96 97

&serial_2 {
	status = "okay";
};

&serial_3 {
	status = "okay";
};
98 99 100 101 102 103 104 105 106 107 108 109 110

&sound {
	simple-audio-card,name = "Odroid-X";
	simple-audio-card,widgets =
		"Headphone", "Headphone Jack",
		"Microphone", "Mic Jack",
		"Microphone", "DMIC";
	simple-audio-card,routing =
		"Headphone Jack", "HPL",
		"Headphone Jack", "HPR",
		"IN1", "Mic Jack",
		"Mic Jack", "MICBIAS";
};