123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266 |
- // SPDX-License-Identifier: GPL-2.0
- /*
- * Hardkernel Odroid HC1 board device tree source
- *
- * Copyright (c) 2017 Marek Szyprowski
- * Copyright (c) 2017 Samsung Electronics Co., Ltd.
- * http://www.samsung.com
- */
- /dts-v1/;
- #include <dt-bindings/leds/common.h>
- #include "exynos5422-odroid-core.dtsi"
- / {
- model = "Hardkernel Odroid HC1";
- compatible = "hardkernel,odroid-hc1", "samsung,exynos5800", \
- "samsung,exynos5";
- led-controller {
- compatible = "pwm-leds";
- led-1 {
- function = LED_FUNCTION_HEARTBEAT;
- color = <LED_COLOR_ID_BLUE>;
- pwms = <&pwm 2 2000000 0>;
- pwm-names = "pwm2";
- max-brightness = <255>;
- linux,default-trigger = "heartbeat";
- };
- };
- thermal-zones {
- cpu0_thermal: cpu0-thermal {
- thermal-sensors = <&tmu_cpu0>;
- trips {
- cpu0_alert0: cpu-alert-0 {
- temperature = <70000>; /* millicelsius */
- hysteresis = <10000>; /* millicelsius */
- type = "active";
- };
- cpu0_alert1: cpu-alert-1 {
- temperature = <85000>; /* millicelsius */
- hysteresis = <10000>; /* millicelsius */
- type = "active";
- };
- cpu0_crit0: cpu-crit-0 {
- temperature = <120000>; /* millicelsius */
- hysteresis = <0>; /* millicelsius */
- type = "critical";
- };
- };
- cooling-maps {
- /*
- * When reaching cpu0_alert0, reduce CPU
- * by 2 steps. On Exynos5422/5800 that would
- * be: 1600 MHz and 1100 MHz.
- */
- map0 {
- trip = <&cpu0_alert0>;
- cooling-device = <&cpu0 0 2>,
- <&cpu1 0 2>,
- <&cpu2 0 2>,
- <&cpu3 0 2>,
- <&cpu4 0 2>,
- <&cpu5 0 2>,
- <&cpu6 0 2>,
- <&cpu7 0 2>;
- };
- /*
- * When reaching cpu0_alert1, reduce CPU
- * further, down to 600 MHz (12 steps for big,
- * 7 steps for LITTLE).
- */
- map1 {
- trip = <&cpu0_alert1>;
- cooling-device = <&cpu0 3 8>,
- <&cpu1 3 8>,
- <&cpu2 3 8>,
- <&cpu3 3 8>,
- <&cpu4 3 14>,
- <&cpu5 3 14>,
- <&cpu6 3 14>,
- <&cpu7 3 14>;
- };
- };
- };
- cpu1_thermal: cpu1-thermal {
- thermal-sensors = <&tmu_cpu1>;
- trips {
- cpu1_alert0: cpu-alert-0 {
- temperature = <70000>;
- hysteresis = <10000>;
- type = "active";
- };
- cpu1_alert1: cpu-alert-1 {
- temperature = <85000>;
- hysteresis = <10000>;
- type = "active";
- };
- cpu1_crit0: cpu-crit-0 {
- temperature = <120000>;
- hysteresis = <0>;
- type = "critical";
- };
- };
- cooling-maps {
- map0 {
- trip = <&cpu1_alert0>;
- cooling-device = <&cpu0 0 2>,
- <&cpu1 0 2>,
- <&cpu2 0 2>,
- <&cpu3 0 2>,
- <&cpu4 0 2>,
- <&cpu5 0 2>,
- <&cpu6 0 2>,
- <&cpu7 0 2>;
- };
- map1 {
- trip = <&cpu1_alert1>;
- cooling-device = <&cpu0 3 8>,
- <&cpu1 3 8>,
- <&cpu2 3 8>,
- <&cpu3 3 8>,
- <&cpu4 3 14>,
- <&cpu5 3 14>,
- <&cpu6 3 14>,
- <&cpu7 3 14>;
- };
- };
- };
- cpu2_thermal: cpu2-thermal {
- thermal-sensors = <&tmu_cpu2>;
- trips {
- cpu2_alert0: cpu-alert-0 {
- temperature = <70000>;
- hysteresis = <10000>;
- type = "active";
- };
- cpu2_alert1: cpu-alert-1 {
- temperature = <85000>;
- hysteresis = <10000>;
- type = "active";
- };
- cpu2_crit0: cpu-crit-0 {
- temperature = <120000>;
- hysteresis = <0>;
- type = "critical";
- };
- };
- cooling-maps {
- map0 {
- trip = <&cpu2_alert0>;
- cooling-device = <&cpu0 0 2>,
- <&cpu1 0 2>,
- <&cpu2 0 2>,
- <&cpu3 0 2>,
- <&cpu4 0 2>,
- <&cpu5 0 2>,
- <&cpu6 0 2>,
- <&cpu7 0 2>;
- };
- map1 {
- trip = <&cpu2_alert1>;
- cooling-device = <&cpu0 3 8>,
- <&cpu1 3 8>,
- <&cpu2 3 8>,
- <&cpu3 3 8>,
- <&cpu4 3 14>,
- <&cpu5 3 14>,
- <&cpu6 3 14>,
- <&cpu7 3 14>;
- };
- };
- };
- cpu3_thermal: cpu3-thermal {
- thermal-sensors = <&tmu_cpu3>;
- trips {
- cpu3_alert0: cpu-alert-0 {
- temperature = <70000>;
- hysteresis = <10000>;
- type = "active";
- };
- cpu3_alert1: cpu-alert-1 {
- temperature = <85000>;
- hysteresis = <10000>;
- type = "active";
- };
- cpu3_crit0: cpu-crit-0 {
- temperature = <120000>;
- hysteresis = <0>;
- type = "critical";
- };
- };
- cooling-maps {
- map0 {
- trip = <&cpu3_alert0>;
- cooling-device = <&cpu0 0 2>,
- <&cpu1 0 2>,
- <&cpu2 0 2>,
- <&cpu3 0 2>,
- <&cpu4 0 2>,
- <&cpu5 0 2>,
- <&cpu6 0 2>,
- <&cpu7 0 2>;
- };
- map1 {
- trip = <&cpu3_alert1>;
- cooling-device = <&cpu0 3 8>,
- <&cpu1 3 8>,
- <&cpu2 3 8>,
- <&cpu3 3 8>,
- <&cpu4 3 14>,
- <&cpu5 3 14>,
- <&cpu6 3 14>,
- <&cpu7 3 14>;
- };
- };
- };
- gpu_thermal: gpu-thermal {
- thermal-sensors = <&tmu_gpu>;
- trips {
- gpu_alert0: gpu-alert-0 {
- temperature = <70000>;
- hysteresis = <10000>;
- type = "active";
- };
- gpu_alert1: gpu-alert-1 {
- temperature = <85000>;
- hysteresis = <10000>;
- type = "active";
- };
- gpu_crit0: gpu-crit-0 {
- temperature = <120000>;
- hysteresis = <0>;
- type = "critical";
- };
- };
- cooling-maps {
- map0 {
- trip = <&gpu_alert0>;
- cooling-device = <&gpu 0 2>;
- };
- map1 {
- trip = <&gpu_alert1>;
- cooling-device = <&gpu 3 6>;
- };
- };
- };
- };
- };
- &pwm {
- /*
- * PWM 2 -- Blue LED
- */
- pinctrl-0 = <&pwm2_out>;
- pinctrl-names = "default";
- samsung,pwm-outputs = <2>;
- status = "okay";
- };
- &usbdrd_dwc3_1 {
- dr_mode = "host";
- };
|