blob: 459919b65df814b2405db95043000607d39f86fa [file] [log] [blame]
Krzysztof Kozlowskicc4637f2017-12-25 11:40:09 +01001// SPDX-License-Identifier: GPL-2.0
Marek Szyprowskiec601ff2014-07-16 02:54:07 +09002/*
3 * Hardkernel's Exynos4412 based ODROID-U3 board device tree source
4 *
5 * Copyright (c) 2014 Marek Szyprowski <m.szyprowski@samsung.com>
6 *
7 * Device tree source file for Hardkernel's ODROID-U3 board which is based
8 * on Samsung's Exynos4412 SoC.
Krzysztof Kozlowskicc4637f2017-12-25 11:40:09 +01009 */
Marek Szyprowskiec601ff2014-07-16 02:54:07 +090010
11/dts-v1/;
12#include "exynos4412-odroid-common.dtsi"
Bartlomiej Zolnierkiewicz80b7a2e2016-12-29 14:36:51 +010013#include "exynos4412-prime.dtsi"
Marek Szyprowskiec601ff2014-07-16 02:54:07 +090014
15/ {
16 model = "Hardkernel ODROID-U3 board based on Exynos4412";
17 compatible = "hardkernel,odroid-u3", "samsung,exynos4412", "samsung,exynos4";
18
Javier Martinez Canillas824e4132016-09-01 11:06:55 +020019 memory@40000000 {
Javier Martinez Canillas13548352016-09-01 11:06:52 +020020 device_type = "memory";
Marek Szyprowskiec601ff2014-07-16 02:54:07 +090021 reg = <0x40000000 0x7FF00000>;
22 };
23
24 leds {
25 compatible = "gpio-leds";
26 led1 {
27 label = "led1:heart";
Javier Martinez Canillasc10d3292015-10-08 07:39:58 +090028 gpios = <&gpc1 0 GPIO_ACTIVE_LOW>;
Marek Szyprowskiec601ff2014-07-16 02:54:07 +090029 default-state = "on";
30 linux,default-trigger = "heartbeat";
31 };
32 };
Kamil Debskiee6011f2015-08-17 08:53:47 +090033
Lukasz Majewskid3981d12015-08-17 08:53:48 +090034 fan0: pwm-fan {
Kamil Debskiee6011f2015-08-17 08:53:47 +090035 compatible = "pwm-fan";
36 pwms = <&pwm 0 10000 0>;
Lukasz Majewskid3981d12015-08-17 08:53:48 +090037 cooling-min-state = <0>;
38 cooling-max-state = <3>;
39 #cooling-cells = <2>;
40 cooling-levels = <0 102 170 230>;
41 };
42
43 thermal-zones {
44 cpu_thermal: cpu-thermal {
45 cooling-maps {
46 map0 {
47 trip = <&cpu_alert1>;
Bartlomiej Zolnierkiewicz80b7a2e2016-12-29 14:36:51 +010048 cooling-device = <&cpu0 9 9>;
Lukasz Majewskid3981d12015-08-17 08:53:48 +090049 };
50 map1 {
51 trip = <&cpu_alert2>;
Bartlomiej Zolnierkiewicz80b7a2e2016-12-29 14:36:51 +010052 cooling-device = <&cpu0 15 15>;
Lukasz Majewskid3981d12015-08-17 08:53:48 +090053 };
54 map2 {
55 trip = <&cpu_alert0>;
56 cooling-device = <&fan0 0 1>;
57 };
58 map3 {
59 trip = <&cpu_alert1>;
60 cooling-device = <&fan0 1 2>;
61 };
62 map4 {
63 trip = <&cpu_alert2>;
64 cooling-device = <&fan0 2 3>;
65 };
66 };
67 };
Kamil Debskiee6011f2015-08-17 08:53:47 +090068 };
69};
70
Krzysztof Kozlowski303ce712016-05-04 14:43:59 +020071/* Supply for LAN9730/SMSC95xx */
72&buck8_reg {
73 regulator-name = "BUCK8_P3V3";
74 regulator-min-microvolt = <3300000>;
75 regulator-max-microvolt = <3300000>;
76};
77
Hans Verkuil82d1afb2017-06-13 15:47:06 +020078&hdmicec {
79 needs-hpd;
80};
81
Krzysztof Kozlowski303ce712016-05-04 14:43:59 +020082/* VDDQ for MSHC (eMMC card) */
83&ldo22_reg {
84 regulator-name = "LDO22_VDDQ_MMC4_2.8V";
85 regulator-min-microvolt = <2800000>;
86 regulator-max-microvolt = <2800000>;
87};
88
89&mshc_0 {
90 vqmmc-supply = <&ldo22_reg>;
91};
92
Kamil Debskiee6011f2015-08-17 08:53:47 +090093&pwm {
94 pinctrl-0 = <&pwm0_out>;
95 pinctrl-names = "default";
96 samsung,pwm-outputs = <0>;
97 status = "okay";
Marek Szyprowskiec601ff2014-07-16 02:54:07 +090098};
99
100&usb3503 {
101 clock-names = "refclk";
102 clocks = <&pmu_system_controller 0>;
103 refclk-frequency = <24000000>;
104};
105
106&ehci {
107 port@1 {
108 status = "okay";
109 };
110 port@2 {
111 status = "okay";
112 };
113};
Sylwester Nawrocki5a852742014-07-16 03:16:44 +0900114
115&sound {
Sylwester Nawrocki68605102018-05-14 10:01:48 +0200116 model = "Odroid-U3";
117 samsung,audio-widgets =
Sylwester Nawrocki16696332015-02-03 15:06:21 +0100118 "Headphone", "Headphone Jack",
119 "Speakers", "Speakers";
Sylwester Nawrocki68605102018-05-14 10:01:48 +0200120 samsung,audio-routing =
Sylwester Nawrocki5a852742014-07-16 03:16:44 +0900121 "Headphone Jack", "HPL",
122 "Headphone Jack", "HPR",
123 "Headphone Jack", "MICBIAS",
124 "IN1", "Headphone Jack",
125 "Speakers", "SPKL",
126 "Speakers", "SPKR";
127};
Alexis Ballierc8b34e32015-08-14 02:27:33 +0900128
129&spi_1 {
130 pinctrl-names = "default";
131 pinctrl-0 = <&spi1_bus>;
132 cs-gpios = <&gpb 5 GPIO_ACTIVE_HIGH>;
133 status = "okay";
134};