xref: /linux/scripts/dtc/include-prefixes/arm/samsung/exynos4412-odroidx.dts (revision 0ea5c948cb64bab5bc7a5516774eb8536f05aa0d)
1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0
2724ba675SRob Herring/*
3724ba675SRob Herring * Hardkernel's Exynos4412 based ODROID-X board device tree source
4724ba675SRob Herring *
5724ba675SRob Herring * Copyright (c) 2012 Dongjin Kim <tobetter@gmail.com>
6724ba675SRob Herring *
7724ba675SRob Herring * Device tree source file for Hardkernel's ODROID-X board which is based
8724ba675SRob Herring * on Samsung's Exynos4412 SoC.
9724ba675SRob Herring */
10724ba675SRob Herring
11724ba675SRob Herring/dts-v1/;
12724ba675SRob Herring#include <dt-bindings/leds/common.h>
13724ba675SRob Herring#include "exynos4412-odroid-common.dtsi"
14724ba675SRob Herring
15724ba675SRob Herring/ {
16724ba675SRob Herring	model = "Hardkernel ODROID-X board based on Exynos4412";
17724ba675SRob Herring	compatible = "hardkernel,odroid-x", "samsung,exynos4412", "samsung,exynos4";
18724ba675SRob Herring
19724ba675SRob Herring	aliases {
20724ba675SRob Herring		ethernet = &ethernet;
21724ba675SRob Herring	};
22724ba675SRob Herring
23724ba675SRob Herring	memory@40000000 {
24724ba675SRob Herring		device_type = "memory";
25724ba675SRob Herring		reg = <0x40000000 0x3ff00000>;
26724ba675SRob Herring	};
27724ba675SRob Herring
28724ba675SRob Herring	leds {
29724ba675SRob Herring		compatible = "gpio-leds";
30724ba675SRob Herring		led1 {
31724ba675SRob Herring			function = LED_FUNCTION_HEARTBEAT;
32724ba675SRob Herring			color = <LED_COLOR_ID_BLUE>;
33724ba675SRob Herring			gpios = <&gpc1 0 GPIO_ACTIVE_LOW>;
34724ba675SRob Herring			default-state = "on";
35724ba675SRob Herring			linux,default-trigger = "heartbeat";
36724ba675SRob Herring		};
37724ba675SRob Herring		led2 {
38724ba675SRob Herring			label = "led2:mmc0";
39724ba675SRob Herring			function = LED_FUNCTION_DISK_ACTIVITY;
40724ba675SRob Herring			gpios = <&gpc1 2 GPIO_ACTIVE_LOW>;
41724ba675SRob Herring			default-state = "on";
42724ba675SRob Herring			linux,default-trigger = "mmc0";
43724ba675SRob Herring		};
44724ba675SRob Herring	};
45724ba675SRob Herring
46724ba675SRob Herring	regulator-1 {
47724ba675SRob Herring		compatible = "regulator-fixed";
48724ba675SRob Herring		regulator-name = "p3v3_en";
49724ba675SRob Herring		regulator-min-microvolt = <3300000>;
50724ba675SRob Herring		regulator-max-microvolt = <3300000>;
51724ba675SRob Herring		gpio = <&gpa1 1 GPIO_ACTIVE_HIGH>;
52724ba675SRob Herring		enable-active-high;
53724ba675SRob Herring		regulator-always-on;
54724ba675SRob Herring	};
55724ba675SRob Herring};
56724ba675SRob Herring
57724ba675SRob Herring&adc {
58724ba675SRob Herring	vdd-supply = <&ldo10_reg>;
59724ba675SRob Herring	status = "okay";
60724ba675SRob Herring};
61724ba675SRob Herring
62724ba675SRob Herring/* VDDQ for MSHC (eMMC card) */
63724ba675SRob Herring&buck8_reg {
64724ba675SRob Herring	regulator-name = "BUCK8_VDDQ_MMC4_2.8V";
65724ba675SRob Herring	regulator-min-microvolt = <2800000>;
66724ba675SRob Herring	regulator-max-microvolt = <2800000>;
67724ba675SRob Herring};
68724ba675SRob Herring
69724ba675SRob Herring&ehci {
70724ba675SRob Herring	#address-cells = <1>;
71724ba675SRob Herring	#size-cells = <0>;
72724ba675SRob Herring	phys = <&exynos_usbphy 2>;
73724ba675SRob Herring	phy-names = "hsic0";
74724ba675SRob Herring
75724ba675SRob Herring	hub@2 {
76724ba675SRob Herring		compatible = "usb424,3503";
77724ba675SRob Herring		reg = <2>;
78724ba675SRob Herring		#address-cells = <1>;
79724ba675SRob Herring		#size-cells = <0>;
80724ba675SRob Herring
81724ba675SRob Herring		hub@1 {
82724ba675SRob Herring			compatible = "usb424,9514";
83724ba675SRob Herring			reg = <1>;
84724ba675SRob Herring			#address-cells = <1>;
85724ba675SRob Herring			#size-cells = <0>;
86724ba675SRob Herring
87724ba675SRob Herring			ethernet: ethernet@1 {
88724ba675SRob Herring				compatible = "usb424,ec00";
89724ba675SRob Herring				reg = <1>;
90724ba675SRob Herring				/* Filled in by a bootloader */
91724ba675SRob Herring				local-mac-address = [00 00 00 00 00 00];
92724ba675SRob Herring			};
93724ba675SRob Herring		};
94724ba675SRob Herring	};
95724ba675SRob Herring};
96724ba675SRob Herring
97724ba675SRob Herring&gpio_keys {
98724ba675SRob Herring	pinctrl-0 = <&gpio_power_key &gpio_home_key>;
99724ba675SRob Herring
100724ba675SRob Herring	home-key {
101724ba675SRob Herring		gpios = <&gpx2 2 GPIO_ACTIVE_HIGH>;
102724ba675SRob Herring		linux,code = <KEY_HOME>;
103724ba675SRob Herring		label = "home key";
104724ba675SRob Herring		debounce-interval = <10>;
105724ba675SRob Herring		wakeup-source;
106724ba675SRob Herring	};
107724ba675SRob Herring};
108724ba675SRob Herring
109724ba675SRob Herring&hsotg {
110724ba675SRob Herring	dr_mode = "peripheral";
111724ba675SRob Herring};
112724ba675SRob Herring
113724ba675SRob Herring&mshc_0 {
114724ba675SRob Herring	vqmmc-supply = <&buck8_reg>;
115724ba675SRob Herring};
116724ba675SRob Herring
117724ba675SRob Herring&pinctrl_1 {
118724ba675SRob Herring	gpio_home_key: home-key-pins {
119724ba675SRob Herring		samsung,pins = "gpx2-2";
120724ba675SRob Herring		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
121724ba675SRob Herring	};
122724ba675SRob Herring};
123724ba675SRob Herring
124724ba675SRob Herring&serial_2 {
125724ba675SRob Herring	status = "okay";
126724ba675SRob Herring};
127724ba675SRob Herring
128724ba675SRob Herring&serial_3 {
129724ba675SRob Herring	status = "okay";
130724ba675SRob Herring};
131724ba675SRob Herring
132724ba675SRob Herring&sound {
133724ba675SRob Herring	model = "Odroid-X";
134724ba675SRob Herring	samsung,audio-widgets =
135724ba675SRob Herring		"Headphone", "Headphone Jack",
136724ba675SRob Herring		"Microphone", "Mic Jack",
137724ba675SRob Herring		"Microphone", "DMIC";
138*f632a437SKrzysztof Kozlowski	audio-routing = "Headphone Jack", "HPL",
139724ba675SRob Herring			"Headphone Jack", "HPR",
140724ba675SRob Herring			"IN1", "Mic Jack",
141724ba675SRob Herring			"Mic Jack", "MICBIAS";
142724ba675SRob Herring};
143