Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / exynos5422-odroidhc1.dts
1 /*
2  * Hardkernel Odroid HC1 board device tree source
3  *
4  * Copyright (c) 2017 Marek Szyprowski
5  * Copyright (c) 2017 Samsung Electronics Co., Ltd.
6  *              http://www.samsung.com
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License version 2 as
10  * published by the Free Software Foundation.
11 */
12
13 /dts-v1/;
14 #include "exynos5422-odroid-core.dtsi"
15
16 / {
17         model = "Hardkernel Odroid HC1";
18         compatible = "hardkernel,odroid-hc1", "samsung,exynos5800", \
19                      "samsung,exynos5";
20
21         pwmleds {
22                 compatible = "pwm-leds";
23
24                 blueled {
25                         label = "blue:heartbeat";
26                         pwms = <&pwm 2 2000000 0>;
27                         pwm-names = "pwm2";
28                         max_brightness = <255>;
29                         linux,default-trigger = "heartbeat";
30                 };
31         };
32
33         thermal-zones {
34                 cpu0_thermal: cpu0-thermal {
35                         thermal-sensors = <&tmu_cpu0 0>;
36                         trips {
37                                 cpu0_alert0: cpu-alert-0 {
38                                         temperature = <70000>; /* millicelsius */
39                                         hysteresis = <10000>; /* millicelsius */
40                                         type = "active";
41                                 };
42                                 cpu0_alert1: cpu-alert-1 {
43                                         temperature = <85000>; /* millicelsius */
44                                         hysteresis = <10000>; /* millicelsius */
45                                         type = "active";
46                                 };
47                                 cpu0_crit0: cpu-crit-0 {
48                                         temperature = <120000>; /* millicelsius */
49                                         hysteresis = <0>; /* millicelsius */
50                                         type = "critical";
51                                 };
52                         };
53
54                         cooling-maps {
55                                 /*
56                                  * When reaching cpu0_alert0, reduce CPU
57                                  * by 2 steps. On Exynos5422/5800 that would
58                                  * be: 1600 MHz and 1100 MHz.
59                                  */
60                                 map0 {
61                                         trip = <&cpu0_alert0>;
62                                         cooling-device = <&cpu0 0 2>;
63                                 };
64                                 map1 {
65                                         trip = <&cpu0_alert0>;
66                                         cooling-device = <&cpu4 0 2>;
67                                 };
68                                 /*
69                                  * When reaching cpu0_alert1, reduce CPU
70                                  * further, down to 600 MHz (12 steps for big,
71                                  * 7 steps for LITTLE).
72                                  */
73                                 map2 {
74                                         trip = <&cpu0_alert1>;
75                                         cooling-device = <&cpu0 3 7>;
76                                 };
77                                 map3 {
78                                         trip = <&cpu0_alert1>;
79                                         cooling-device = <&cpu4 3 12>;
80                                 };
81                         };
82                 };
83                 cpu1_thermal: cpu1-thermal {
84                         thermal-sensors = <&tmu_cpu1 0>;
85                         trips {
86                                 cpu1_alert0: cpu-alert-0 {
87                                         temperature = <70000>;
88                                         hysteresis = <10000>;
89                                         type = "active";
90                                 };
91                                 cpu1_alert1: cpu-alert-1 {
92                                         temperature = <85000>;
93                                         hysteresis = <10000>;
94                                         type = "active";
95                                 };
96                                 cpu1_crit0: cpu-crit-0 {
97                                         temperature = <120000>;
98                                         hysteresis = <0>;
99                                         type = "critical";
100                                 };
101                         };
102                         cooling-maps {
103                                 map0 {
104                                         trip = <&cpu1_alert0>;
105                                         cooling-device = <&cpu0 0 2>;
106                                 };
107                                 map1 {
108                                         trip = <&cpu1_alert0>;
109                                         cooling-device = <&cpu4 0 2>;
110                                 };
111                                 map2 {
112                                         trip = <&cpu1_alert1>;
113                                         cooling-device = <&cpu0 3 7>;
114                                 };
115                                 map3 {
116                                         trip = <&cpu1_alert1>;
117                                         cooling-device = <&cpu4 3 12>;
118                                 };
119                         };
120                 };
121                 cpu2_thermal: cpu2-thermal {
122                         thermal-sensors = <&tmu_cpu2 0>;
123                         trips {
124                                 cpu2_alert0: cpu-alert-0 {
125                                         temperature = <70000>;
126                                         hysteresis = <10000>;
127                                         type = "active";
128                                 };
129                                 cpu2_alert1: cpu-alert-1 {
130                                         temperature = <85000>;
131                                         hysteresis = <10000>;
132                                         type = "active";
133                                 };
134                                 cpu2_crit0: cpu-crit-0 {
135                                         temperature = <120000>;
136                                         hysteresis = <0>;
137                                         type = "critical";
138                                 };
139                         };
140                         cooling-maps {
141                                 map0 {
142                                         trip = <&cpu2_alert0>;
143                                         cooling-device = <&cpu0 0 2>;
144                                 };
145                                 map1 {
146                                         trip = <&cpu2_alert0>;
147                                         cooling-device = <&cpu4 0 2>;
148                                 };
149                                 map2 {
150                                         trip = <&cpu2_alert1>;
151                                         cooling-device = <&cpu0 3 7>;
152                                 };
153                                 map3 {
154                                         trip = <&cpu2_alert1>;
155                                         cooling-device = <&cpu4 3 12>;
156                                 };
157                         };
158                 };
159                 cpu3_thermal: cpu3-thermal {
160                         thermal-sensors = <&tmu_cpu3 0>;
161                         trips {
162                                 cpu3_alert0: cpu-alert-0 {
163                                         temperature = <70000>;
164                                         hysteresis = <10000>;
165                                         type = "active";
166                                 };
167                                 cpu3_alert1: cpu-alert-1 {
168                                         temperature = <85000>;
169                                         hysteresis = <10000>;
170                                         type = "active";
171                                 };
172                                 cpu3_crit0: cpu-crit-0 {
173                                         temperature = <120000>;
174                                         hysteresis = <0>;
175                                         type = "critical";
176                                 };
177                         };
178                         cooling-maps {
179                                 map0 {
180                                         trip = <&cpu3_alert0>;
181                                         cooling-device = <&cpu0 0 2>;
182                                 };
183                                 map1 {
184                                         trip = <&cpu3_alert0>;
185                                         cooling-device = <&cpu4 0 2>;
186                                 };
187                                 map2 {
188                                         trip = <&cpu3_alert1>;
189                                         cooling-device = <&cpu0 3 7>;
190                                 };
191                                 map3 {
192                                         trip = <&cpu3_alert1>;
193                                         cooling-device = <&cpu4 3 12>;
194                                 };
195                         };
196                 };
197         };
198
199 };
200
201 &pwm {
202         /*
203          * PWM 2 -- Blue LED
204          */
205         pinctrl-0 = <&pwm2_out>;
206         pinctrl-names = "default";
207         samsung,pwm-outputs = <2>;
208         status = "okay";
209 };
210
211 &usbdrd_dwc3_1 {
212         dr_mode = "host";
213 };