Linux Audio

Check our new training course

Linux kernel drivers training

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