xref: /freebsd/sys/contrib/device-tree/src/arm/samsung/exynos4412-odroidx.dts (revision 84943d6f38e936ac3b7a3947ca26eeb27a39f938)
1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
2f126890aSEmmanuel Vadot/*
3f126890aSEmmanuel Vadot * Hardkernel's Exynos4412 based ODROID-X board device tree source
4f126890aSEmmanuel Vadot *
5f126890aSEmmanuel Vadot * Copyright (c) 2012 Dongjin Kim <tobetter@gmail.com>
6f126890aSEmmanuel Vadot *
7f126890aSEmmanuel Vadot * Device tree source file for Hardkernel's ODROID-X board which is based
8f126890aSEmmanuel Vadot * on Samsung's Exynos4412 SoC.
9f126890aSEmmanuel Vadot */
10f126890aSEmmanuel Vadot
11f126890aSEmmanuel Vadot/dts-v1/;
12f126890aSEmmanuel Vadot#include <dt-bindings/leds/common.h>
13f126890aSEmmanuel Vadot#include "exynos4412-odroid-common.dtsi"
14f126890aSEmmanuel Vadot
15f126890aSEmmanuel Vadot/ {
16f126890aSEmmanuel Vadot	model = "Hardkernel ODROID-X board based on Exynos4412";
17f126890aSEmmanuel Vadot	compatible = "hardkernel,odroid-x", "samsung,exynos4412", "samsung,exynos4";
18f126890aSEmmanuel Vadot
19f126890aSEmmanuel Vadot	aliases {
20f126890aSEmmanuel Vadot		ethernet = &ethernet;
21f126890aSEmmanuel Vadot	};
22f126890aSEmmanuel Vadot
23f126890aSEmmanuel Vadot	memory@40000000 {
24f126890aSEmmanuel Vadot		device_type = "memory";
25f126890aSEmmanuel Vadot		reg = <0x40000000 0x3ff00000>;
26f126890aSEmmanuel Vadot	};
27f126890aSEmmanuel Vadot
28f126890aSEmmanuel Vadot	leds {
29f126890aSEmmanuel Vadot		compatible = "gpio-leds";
30f126890aSEmmanuel Vadot		led1 {
31f126890aSEmmanuel Vadot			function = LED_FUNCTION_HEARTBEAT;
32f126890aSEmmanuel Vadot			color = <LED_COLOR_ID_BLUE>;
33f126890aSEmmanuel Vadot			gpios = <&gpc1 0 GPIO_ACTIVE_LOW>;
34f126890aSEmmanuel Vadot			default-state = "on";
35f126890aSEmmanuel Vadot			linux,default-trigger = "heartbeat";
36f126890aSEmmanuel Vadot		};
37f126890aSEmmanuel Vadot		led2 {
38f126890aSEmmanuel Vadot			label = "led2:mmc0";
39f126890aSEmmanuel Vadot			function = LED_FUNCTION_DISK_ACTIVITY;
40f126890aSEmmanuel Vadot			gpios = <&gpc1 2 GPIO_ACTIVE_LOW>;
41f126890aSEmmanuel Vadot			default-state = "on";
42f126890aSEmmanuel Vadot			linux,default-trigger = "mmc0";
43f126890aSEmmanuel Vadot		};
44f126890aSEmmanuel Vadot	};
45f126890aSEmmanuel Vadot
46f126890aSEmmanuel Vadot	regulator-1 {
47f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
48f126890aSEmmanuel Vadot		regulator-name = "p3v3_en";
49f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
50f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
51f126890aSEmmanuel Vadot		gpio = <&gpa1 1 GPIO_ACTIVE_HIGH>;
52f126890aSEmmanuel Vadot		enable-active-high;
53f126890aSEmmanuel Vadot		regulator-always-on;
54f126890aSEmmanuel Vadot	};
55f126890aSEmmanuel Vadot};
56f126890aSEmmanuel Vadot
57f126890aSEmmanuel Vadot&adc {
58f126890aSEmmanuel Vadot	vdd-supply = <&ldo10_reg>;
59f126890aSEmmanuel Vadot	status = "okay";
60f126890aSEmmanuel Vadot};
61f126890aSEmmanuel Vadot
62f126890aSEmmanuel Vadot/* VDDQ for MSHC (eMMC card) */
63f126890aSEmmanuel Vadot&buck8_reg {
64f126890aSEmmanuel Vadot	regulator-name = "BUCK8_VDDQ_MMC4_2.8V";
65f126890aSEmmanuel Vadot	regulator-min-microvolt = <2800000>;
66f126890aSEmmanuel Vadot	regulator-max-microvolt = <2800000>;
67f126890aSEmmanuel Vadot};
68f126890aSEmmanuel Vadot
69f126890aSEmmanuel Vadot&ehci {
70f126890aSEmmanuel Vadot	#address-cells = <1>;
71f126890aSEmmanuel Vadot	#size-cells = <0>;
72f126890aSEmmanuel Vadot	phys = <&exynos_usbphy 2>;
73f126890aSEmmanuel Vadot	phy-names = "hsic0";
74f126890aSEmmanuel Vadot
75f126890aSEmmanuel Vadot	hub@2 {
76f126890aSEmmanuel Vadot		compatible = "usb424,3503";
77f126890aSEmmanuel Vadot		reg = <2>;
78f126890aSEmmanuel Vadot		#address-cells = <1>;
79f126890aSEmmanuel Vadot		#size-cells = <0>;
80f126890aSEmmanuel Vadot
81f126890aSEmmanuel Vadot		hub@1 {
82f126890aSEmmanuel Vadot			compatible = "usb424,9514";
83f126890aSEmmanuel Vadot			reg = <1>;
84f126890aSEmmanuel Vadot			#address-cells = <1>;
85f126890aSEmmanuel Vadot			#size-cells = <0>;
86f126890aSEmmanuel Vadot
87f126890aSEmmanuel Vadot			ethernet: ethernet@1 {
88f126890aSEmmanuel Vadot				compatible = "usb424,ec00";
89f126890aSEmmanuel Vadot				reg = <1>;
90f126890aSEmmanuel Vadot				/* Filled in by a bootloader */
91f126890aSEmmanuel Vadot				local-mac-address = [00 00 00 00 00 00];
92f126890aSEmmanuel Vadot			};
93f126890aSEmmanuel Vadot		};
94f126890aSEmmanuel Vadot	};
95f126890aSEmmanuel Vadot};
96f126890aSEmmanuel Vadot
97f126890aSEmmanuel Vadot&gpio_keys {
98f126890aSEmmanuel Vadot	pinctrl-0 = <&gpio_power_key &gpio_home_key>;
99f126890aSEmmanuel Vadot
100f126890aSEmmanuel Vadot	home-key {
101f126890aSEmmanuel Vadot		gpios = <&gpx2 2 GPIO_ACTIVE_HIGH>;
102f126890aSEmmanuel Vadot		linux,code = <KEY_HOME>;
103f126890aSEmmanuel Vadot		label = "home key";
104f126890aSEmmanuel Vadot		debounce-interval = <10>;
105f126890aSEmmanuel Vadot		wakeup-source;
106f126890aSEmmanuel Vadot	};
107f126890aSEmmanuel Vadot};
108f126890aSEmmanuel Vadot
109f126890aSEmmanuel Vadot&hsotg {
110f126890aSEmmanuel Vadot	dr_mode = "peripheral";
111f126890aSEmmanuel Vadot};
112f126890aSEmmanuel Vadot
113f126890aSEmmanuel Vadot&mshc_0 {
114f126890aSEmmanuel Vadot	vqmmc-supply = <&buck8_reg>;
115f126890aSEmmanuel Vadot};
116f126890aSEmmanuel Vadot
117f126890aSEmmanuel Vadot&pinctrl_1 {
118f126890aSEmmanuel Vadot	gpio_home_key: home-key-pins {
119f126890aSEmmanuel Vadot		samsung,pins = "gpx2-2";
120f126890aSEmmanuel Vadot		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
121f126890aSEmmanuel Vadot	};
122f126890aSEmmanuel Vadot};
123f126890aSEmmanuel Vadot
124f126890aSEmmanuel Vadot&serial_2 {
125f126890aSEmmanuel Vadot	status = "okay";
126f126890aSEmmanuel Vadot};
127f126890aSEmmanuel Vadot
128f126890aSEmmanuel Vadot&serial_3 {
129f126890aSEmmanuel Vadot	status = "okay";
130f126890aSEmmanuel Vadot};
131f126890aSEmmanuel Vadot
132f126890aSEmmanuel Vadot&sound {
133f126890aSEmmanuel Vadot	model = "Odroid-X";
134f126890aSEmmanuel Vadot	samsung,audio-widgets =
135f126890aSEmmanuel Vadot		"Headphone", "Headphone Jack",
136f126890aSEmmanuel Vadot		"Microphone", "Mic Jack",
137f126890aSEmmanuel Vadot		"Microphone", "DMIC";
138*84943d6fSEmmanuel Vadot	audio-routing = "Headphone Jack", "HPL",
139f126890aSEmmanuel Vadot			"Headphone Jack", "HPR",
140f126890aSEmmanuel Vadot			"IN1", "Mic Jack",
141f126890aSEmmanuel Vadot			"Mic Jack", "MICBIAS";
142f126890aSEmmanuel Vadot};
143