0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003 * Hardkernel Odroid HC1 board device tree source
0004 *
0005 * Copyright (c) 2017 Marek Szyprowski
0006 * Copyright (c) 2017 Samsung Electronics Co., Ltd.
0007 * http://www.samsung.com
0008 */
0009
0010 /dts-v1/;
0011 #include <dt-bindings/leds/common.h>
0012 #include "exynos5422-odroid-core.dtsi"
0013
0014 / {
0015 model = "Hardkernel Odroid HC1";
0016 compatible = "hardkernel,odroid-hc1", "samsung,exynos5800", \
0017 "samsung,exynos5";
0018
0019 led-controller {
0020 compatible = "pwm-leds";
0021
0022 led-1 {
0023 function = LED_FUNCTION_HEARTBEAT;
0024 color = <LED_COLOR_ID_BLUE>;
0025 pwms = <&pwm 2 2000000 0>;
0026 pwm-names = "pwm2";
0027 max-brightness = <255>;
0028 linux,default-trigger = "heartbeat";
0029 };
0030 };
0031
0032 thermal-zones {
0033 cpu0_thermal: cpu0-thermal {
0034 thermal-sensors = <&tmu_cpu0 0>;
0035 trips {
0036 cpu0_alert0: cpu-alert-0 {
0037 temperature = <70000>; /* millicelsius */
0038 hysteresis = <10000>; /* millicelsius */
0039 type = "active";
0040 };
0041 cpu0_alert1: cpu-alert-1 {
0042 temperature = <85000>; /* millicelsius */
0043 hysteresis = <10000>; /* millicelsius */
0044 type = "active";
0045 };
0046 cpu0_crit0: cpu-crit-0 {
0047 temperature = <120000>; /* millicelsius */
0048 hysteresis = <0>; /* millicelsius */
0049 type = "critical";
0050 };
0051 };
0052
0053 cooling-maps {
0054 /*
0055 * When reaching cpu0_alert0, reduce CPU
0056 * by 2 steps. On Exynos5422/5800 that would
0057 * be: 1600 MHz and 1100 MHz.
0058 */
0059 map0 {
0060 trip = <&cpu0_alert0>;
0061 cooling-device = <&cpu0 0 2>,
0062 <&cpu1 0 2>,
0063 <&cpu2 0 2>,
0064 <&cpu3 0 2>,
0065 <&cpu4 0 2>,
0066 <&cpu5 0 2>,
0067 <&cpu6 0 2>,
0068 <&cpu7 0 2>;
0069 };
0070 /*
0071 * When reaching cpu0_alert1, reduce CPU
0072 * further, down to 600 MHz (12 steps for big,
0073 * 7 steps for LITTLE).
0074 */
0075 map1 {
0076 trip = <&cpu0_alert1>;
0077 cooling-device = <&cpu0 3 8>,
0078 <&cpu1 3 8>,
0079 <&cpu2 3 8>,
0080 <&cpu3 3 8>,
0081 <&cpu4 3 14>,
0082 <&cpu5 3 14>,
0083 <&cpu6 3 14>,
0084 <&cpu7 3 14>;
0085 };
0086 };
0087 };
0088 cpu1_thermal: cpu1-thermal {
0089 thermal-sensors = <&tmu_cpu1 0>;
0090 trips {
0091 cpu1_alert0: cpu-alert-0 {
0092 temperature = <70000>;
0093 hysteresis = <10000>;
0094 type = "active";
0095 };
0096 cpu1_alert1: cpu-alert-1 {
0097 temperature = <85000>;
0098 hysteresis = <10000>;
0099 type = "active";
0100 };
0101 cpu1_crit0: cpu-crit-0 {
0102 temperature = <120000>;
0103 hysteresis = <0>;
0104 type = "critical";
0105 };
0106 };
0107 cooling-maps {
0108 map0 {
0109 trip = <&cpu1_alert0>;
0110 cooling-device = <&cpu0 0 2>,
0111 <&cpu1 0 2>,
0112 <&cpu2 0 2>,
0113 <&cpu3 0 2>,
0114 <&cpu4 0 2>,
0115 <&cpu5 0 2>,
0116 <&cpu6 0 2>,
0117 <&cpu7 0 2>;
0118 };
0119 map1 {
0120 trip = <&cpu1_alert1>;
0121 cooling-device = <&cpu0 3 8>,
0122 <&cpu1 3 8>,
0123 <&cpu2 3 8>,
0124 <&cpu3 3 8>,
0125 <&cpu4 3 14>,
0126 <&cpu5 3 14>,
0127 <&cpu6 3 14>,
0128 <&cpu7 3 14>;
0129 };
0130 };
0131 };
0132 cpu2_thermal: cpu2-thermal {
0133 thermal-sensors = <&tmu_cpu2 0>;
0134 trips {
0135 cpu2_alert0: cpu-alert-0 {
0136 temperature = <70000>;
0137 hysteresis = <10000>;
0138 type = "active";
0139 };
0140 cpu2_alert1: cpu-alert-1 {
0141 temperature = <85000>;
0142 hysteresis = <10000>;
0143 type = "active";
0144 };
0145 cpu2_crit0: cpu-crit-0 {
0146 temperature = <120000>;
0147 hysteresis = <0>;
0148 type = "critical";
0149 };
0150 };
0151 cooling-maps {
0152 map0 {
0153 trip = <&cpu2_alert0>;
0154 cooling-device = <&cpu0 0 2>,
0155 <&cpu1 0 2>,
0156 <&cpu2 0 2>,
0157 <&cpu3 0 2>,
0158 <&cpu4 0 2>,
0159 <&cpu5 0 2>,
0160 <&cpu6 0 2>,
0161 <&cpu7 0 2>;
0162 };
0163 map1 {
0164 trip = <&cpu2_alert1>;
0165 cooling-device = <&cpu0 3 8>,
0166 <&cpu1 3 8>,
0167 <&cpu2 3 8>,
0168 <&cpu3 3 8>,
0169 <&cpu4 3 14>,
0170 <&cpu5 3 14>,
0171 <&cpu6 3 14>,
0172 <&cpu7 3 14>;
0173 };
0174 };
0175 };
0176 cpu3_thermal: cpu3-thermal {
0177 thermal-sensors = <&tmu_cpu3 0>;
0178 trips {
0179 cpu3_alert0: cpu-alert-0 {
0180 temperature = <70000>;
0181 hysteresis = <10000>;
0182 type = "active";
0183 };
0184 cpu3_alert1: cpu-alert-1 {
0185 temperature = <85000>;
0186 hysteresis = <10000>;
0187 type = "active";
0188 };
0189 cpu3_crit0: cpu-crit-0 {
0190 temperature = <120000>;
0191 hysteresis = <0>;
0192 type = "critical";
0193 };
0194 };
0195 cooling-maps {
0196 map0 {
0197 trip = <&cpu3_alert0>;
0198 cooling-device = <&cpu0 0 2>,
0199 <&cpu1 0 2>,
0200 <&cpu2 0 2>,
0201 <&cpu3 0 2>,
0202 <&cpu4 0 2>,
0203 <&cpu5 0 2>,
0204 <&cpu6 0 2>,
0205 <&cpu7 0 2>;
0206 };
0207 map1 {
0208 trip = <&cpu3_alert1>;
0209 cooling-device = <&cpu0 3 8>,
0210 <&cpu1 3 8>,
0211 <&cpu2 3 8>,
0212 <&cpu3 3 8>,
0213 <&cpu4 3 14>,
0214 <&cpu5 3 14>,
0215 <&cpu6 3 14>,
0216 <&cpu7 3 14>;
0217 };
0218 };
0219 };
0220 gpu_thermal: gpu-thermal {
0221 thermal-sensors = <&tmu_gpu 0>;
0222 trips {
0223 gpu_alert0: gpu-alert-0 {
0224 temperature = <70000>;
0225 hysteresis = <10000>;
0226 type = "active";
0227 };
0228 gpu_alert1: gpu-alert-1 {
0229 temperature = <85000>;
0230 hysteresis = <10000>;
0231 type = "active";
0232 };
0233 gpu_crit0: gpu-crit-0 {
0234 temperature = <120000>;
0235 hysteresis = <0>;
0236 type = "critical";
0237 };
0238 };
0239 cooling-maps {
0240 map0 {
0241 trip = <&gpu_alert0>;
0242 cooling-device = <&gpu 0 2>;
0243 };
0244 map1 {
0245 trip = <&gpu_alert1>;
0246 cooling-device = <&gpu 3 6>;
0247 };
0248 };
0249 };
0250 };
0251
0252 };
0253
0254 &pwm {
0255 /*
0256 * PWM 2 -- Blue LED
0257 */
0258 pinctrl-0 = <&pwm2_out>;
0259 pinctrl-names = "default";
0260 samsung,pwm-outputs = <2>;
0261 status = "okay";
0262 };
0263
0264 &usbdrd_dwc3_1 {
0265 dr_mode = "host";
0266 };