Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / exynos4412-odroidu3.dts
1 // SPDX-License-Identifier: GPL-2.0
2 /*
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.
9  */
10
11 /dts-v1/;
12 #include "exynos4412-odroid-common.dtsi"
13 #include "exynos4412-prime.dtsi"
14
15 / {
16         model = "Hardkernel ODROID-U3 board based on Exynos4412";
17         compatible = "hardkernel,odroid-u3", "samsung,exynos4412", "samsung,exynos4";
18
19         memory@40000000 {
20                 device_type = "memory";
21                 reg = <0x40000000 0x7FF00000>;
22         };
23
24         leds {
25                 compatible = "gpio-leds";
26                 led1 {
27                         label = "led1:heart";
28                         gpios = <&gpc1 0 GPIO_ACTIVE_LOW>;
29                         default-state = "on";
30                         linux,default-trigger = "heartbeat";
31                 };
32         };
33
34         fan0: pwm-fan {
35                 compatible = "pwm-fan";
36                 pwms = <&pwm 0 10000 0>;
37                 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>;
48                                      cooling-device = <&cpu0 9 9>, <&cpu1 9 9>,
49                                                       <&cpu2 9 9>, <&cpu3 9 9>,
50                                                       <&fan0 1 2>;
51                                 };
52                                 map1 {
53                                      trip = <&cpu_alert2>;
54                                      cooling-device = <&cpu0 15 15>,
55                                                       <&cpu1 15 15>,
56                                                       <&cpu2 15 15>,
57                                                       <&cpu3 15 15>,
58                                                       <&fan0 2 3>;
59                                 };
60                                 map2 {
61                                      trip = <&cpu_alert0>;
62                                      cooling-device = <&fan0 0 1>;
63                                 };
64                         };
65                 };
66         };
67 };
68
69 /* Supply for LAN9730/SMSC95xx */
70 &buck8_reg {
71         regulator-name = "BUCK8_P3V3";
72         regulator-min-microvolt = <3300000>;
73         regulator-max-microvolt = <3300000>;
74 };
75
76 &hdmicec {
77         needs-hpd;
78 };
79
80 /* VDDQ for MSHC (eMMC card) */
81 &ldo22_reg {
82         regulator-name = "LDO22_VDDQ_MMC4_2.8V";
83         regulator-min-microvolt = <2800000>;
84         regulator-max-microvolt = <2800000>;
85 };
86
87 &mshc_0 {
88         vqmmc-supply = <&ldo22_reg>;
89 };
90
91 &pwm {
92         pinctrl-0 = <&pwm0_out>;
93         pinctrl-names = "default";
94         samsung,pwm-outputs = <0>;
95         status = "okay";
96 };
97
98 &usb3503 {
99         clock-names = "refclk";
100         clocks = <&pmu_system_controller 0>;
101         refclk-frequency = <24000000>;
102 };
103
104 &ehci {
105         port@1 {
106                 status = "okay";
107         };
108         port@2 {
109                 status = "okay";
110         };
111 };
112
113 &sound {
114         model = "Odroid-U3";
115         samsung,audio-widgets =
116                 "Headphone", "Headphone Jack",
117                 "Speakers", "Speakers";
118         samsung,audio-routing =
119                 "Headphone Jack", "HPL",
120                 "Headphone Jack", "HPR",
121                 "Headphone Jack", "MICBIAS",
122                 "IN1", "Headphone Jack",
123                 "Speakers", "SPKL",
124                 "Speakers", "SPKR";
125 };
126
127 &spi_1 {
128         pinctrl-names = "default";
129         pinctrl-0 = <&spi1_bus>;
130         cs-gpios = <&gpb 5 GPIO_ACTIVE_HIGH>;
131         status = "okay";
132 };