blob: 646ff0bd001a33e9cd1862d77bc4ef9f0a8bbb98 [file] [log] [blame]
Marek Szyprowskiec601ff2014-07-16 02:54:07 +09001/*
2 * Hardkernel's Exynos4412 based ODROID-U3 board device tree source
3 *
4 * Copyright (c) 2014 Marek Szyprowski <m.szyprowski@samsung.com>
5 *
6 * Device tree source file for Hardkernel's ODROID-U3 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"
Alexis Ballierc8b34e32015-08-14 02:27:33 +090016#include <dt-bindings/gpio/gpio.h>
Marek Szyprowskiec601ff2014-07-16 02:54:07 +090017
18/ {
19 model = "Hardkernel ODROID-U3 board based on Exynos4412";
20 compatible = "hardkernel,odroid-u3", "samsung,exynos4412", "samsung,exynos4";
21
22 memory {
23 reg = <0x40000000 0x7FF00000>;
24 };
25
26 leds {
27 compatible = "gpio-leds";
28 led1 {
29 label = "led1:heart";
Javier Martinez Canillasc10d3292015-10-08 07:39:58 +090030 gpios = <&gpc1 0 GPIO_ACTIVE_LOW>;
Marek Szyprowskiec601ff2014-07-16 02:54:07 +090031 default-state = "on";
32 linux,default-trigger = "heartbeat";
33 };
34 };
Kamil Debskiee6011f2015-08-17 08:53:47 +090035
Lukasz Majewskid3981d12015-08-17 08:53:48 +090036 fan0: pwm-fan {
Kamil Debskiee6011f2015-08-17 08:53:47 +090037 compatible = "pwm-fan";
38 pwms = <&pwm 0 10000 0>;
Lukasz Majewskid3981d12015-08-17 08:53:48 +090039 cooling-min-state = <0>;
40 cooling-max-state = <3>;
41 #cooling-cells = <2>;
42 cooling-levels = <0 102 170 230>;
43 };
44
45 thermal-zones {
46 cpu_thermal: cpu-thermal {
47 cooling-maps {
48 map0 {
49 trip = <&cpu_alert1>;
50 cooling-device = <&cpu0 7 7>;
51 };
52 map1 {
53 trip = <&cpu_alert2>;
54 cooling-device = <&cpu0 13 13>;
55 };
56 map2 {
57 trip = <&cpu_alert0>;
58 cooling-device = <&fan0 0 1>;
59 };
60 map3 {
61 trip = <&cpu_alert1>;
62 cooling-device = <&fan0 1 2>;
63 };
64 map4 {
65 trip = <&cpu_alert2>;
66 cooling-device = <&fan0 2 3>;
67 };
68 };
69 };
Kamil Debskiee6011f2015-08-17 08:53:47 +090070 };
71};
72
73&pwm {
74 pinctrl-0 = <&pwm0_out>;
75 pinctrl-names = "default";
76 samsung,pwm-outputs = <0>;
77 status = "okay";
Marek Szyprowskiec601ff2014-07-16 02:54:07 +090078};
79
80&usb3503 {
81 clock-names = "refclk";
82 clocks = <&pmu_system_controller 0>;
83 refclk-frequency = <24000000>;
84};
85
86&ehci {
87 port@1 {
88 status = "okay";
89 };
90 port@2 {
91 status = "okay";
92 };
93};
Sylwester Nawrocki5a852742014-07-16 03:16:44 +090094
95&sound {
Sylwester Nawrocki16696332015-02-03 15:06:21 +010096 simple-audio-card,name = "Odroid-U3";
97 simple-audio-card,widgets =
98 "Headphone", "Headphone Jack",
99 "Speakers", "Speakers";
100 simple-audio-card,routing =
Sylwester Nawrocki5a852742014-07-16 03:16:44 +0900101 "Headphone Jack", "HPL",
102 "Headphone Jack", "HPR",
103 "Headphone Jack", "MICBIAS",
104 "IN1", "Headphone Jack",
105 "Speakers", "SPKL",
106 "Speakers", "SPKR";
107};
Alexis Ballierc8b34e32015-08-14 02:27:33 +0900108
109&spi_1 {
110 pinctrl-names = "default";
111 pinctrl-0 = <&spi1_bus>;
112 cs-gpios = <&gpb 5 GPIO_ACTIVE_HIGH>;
113 status = "okay";
114};