mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
rockchip: refine fan speed for mmbox anas3035
This commit is contained in:
parent
1609903030
commit
007d406efc
@ -18,7 +18,7 @@
|
|||||||
+};
|
+};
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/arch/arm/dts/rk3568-mmbox-anas3035.dts
|
+++ b/arch/arm/dts/rk3568-mmbox-anas3035.dts
|
||||||
@@ -0,0 +1,758 @@
|
@@ -0,0 +1,762 @@
|
||||||
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||||
+
|
+
|
||||||
+/dts-v1/;
|
+/dts-v1/;
|
||||||
@ -48,34 +48,27 @@
|
|||||||
+ pinctrl-0 = <&power_led_pin>, <&sata0_pins>, <&sata1_pins>, <&sata2_pins>;
|
+ pinctrl-0 = <&power_led_pin>, <&sata0_pins>, <&sata1_pins>, <&sata2_pins>;
|
||||||
+
|
+
|
||||||
+ power_led: led-0 {
|
+ power_led: led-0 {
|
||||||
+ color = <LED_COLOR_ID_RED>;
|
+ label = "red:power";
|
||||||
+ function = LED_FUNCTION_POWER;
|
|
||||||
+ gpios = <&gpio3 RK_PA2 GPIO_ACTIVE_HIGH>;
|
+ gpios = <&gpio3 RK_PA2 GPIO_ACTIVE_HIGH>;
|
||||||
+ };
|
+ };
|
||||||
+
|
+
|
||||||
+ sata0_led: led-1 {
|
+ sata0_led: led-1 {
|
||||||
+ color = <LED_COLOR_ID_BLUE>;
|
+ /* for sata2 slot */
|
||||||
+ function = LED_FUNCTION_DISK;
|
+ label = "blue:sata3";
|
||||||
+ /* for to sata2 slot */
|
|
||||||
+ function-enumerator = <3>;
|
|
||||||
+ gpios = <&gpio4 RK_PC6 GPIO_ACTIVE_LOW>;
|
+ gpios = <&gpio4 RK_PC6 GPIO_ACTIVE_LOW>;
|
||||||
+ linux,default-trigger = "disk-activity";
|
+ linux,default-trigger = "disk-activity";
|
||||||
+ };
|
+ };
|
||||||
+
|
+
|
||||||
+ sata1_led: led-2 {
|
+ sata1_led: led-2 {
|
||||||
+ color = <LED_COLOR_ID_BLUE>;
|
+ /* for sata0 slot */
|
||||||
+ function = LED_FUNCTION_DISK;
|
+ label = "blue:sata1";
|
||||||
+ /* for to sata0 slot */
|
|
||||||
+ function-enumerator = <1>;
|
|
||||||
+ gpios = <&gpio4 RK_PC5 GPIO_ACTIVE_LOW>;
|
+ gpios = <&gpio4 RK_PC5 GPIO_ACTIVE_LOW>;
|
||||||
+ linux,default-trigger = "disk-activity";
|
+ linux,default-trigger = "disk-activity";
|
||||||
+ };
|
+ };
|
||||||
+
|
+
|
||||||
+ sata2_led: led-3 {
|
+ sata2_led: led-3 {
|
||||||
+ color = <LED_COLOR_ID_BLUE>;
|
+ /* for sata1 slot */
|
||||||
+ function = LED_FUNCTION_DISK;
|
+ label = "blue:sata2";
|
||||||
+ /* for to sata1 slot */
|
|
||||||
+ function-enumerator = <2>;
|
|
||||||
+ gpios = <&gpio4 RK_PC4 GPIO_ACTIVE_LOW>;
|
+ gpios = <&gpio4 RK_PC4 GPIO_ACTIVE_LOW>;
|
||||||
+ linux,default-trigger = "disk-activity";
|
+ linux,default-trigger = "disk-activity";
|
||||||
+ };
|
+ };
|
||||||
@ -95,7 +88,7 @@
|
|||||||
+ fan: pwm-fan {
|
+ fan: pwm-fan {
|
||||||
+ compatible = "pwm-fan";
|
+ compatible = "pwm-fan";
|
||||||
+ #cooling-cells = <2>;
|
+ #cooling-cells = <2>;
|
||||||
+ cooling-levels = <0 95 145 195 255>;
|
+ cooling-levels = <0 80 128 175 230 255>;
|
||||||
+ fan-supply = <&vcc5v0_fan>;
|
+ fan-supply = <&vcc5v0_fan>;
|
||||||
+ pwms = <&pwm5 0 50000 0>;
|
+ pwms = <&pwm5 0 50000 0>;
|
||||||
+ };
|
+ };
|
||||||
@ -234,50 +227,61 @@
|
|||||||
+
|
+
|
||||||
+&cpu_thermal {
|
+&cpu_thermal {
|
||||||
+ trips {
|
+ trips {
|
||||||
|
+ cpu_trip_active_cool: cpu-trip-active-cool {
|
||||||
|
+ temperature = <20000>;
|
||||||
|
+ hysteresis = <2000>;
|
||||||
|
+ type = "active";
|
||||||
|
+ };
|
||||||
|
+
|
||||||
+ cpu_trip_active_low: cpu-trip-active-low {
|
+ cpu_trip_active_low: cpu-trip-active-low {
|
||||||
+ temperature = <50000>;
|
+ temperature = <30000>;
|
||||||
+ hysteresis = <2000>;
|
+ hysteresis = <2000>;
|
||||||
+ type = "active";
|
+ type = "active";
|
||||||
+ };
|
+ };
|
||||||
+
|
+
|
||||||
+ cpu_trip_active_med: cpu-trip-active-med {
|
+ cpu_trip_active_med: cpu-trip-active-med {
|
||||||
+ temperature = <60000>;
|
+ temperature = <40000>;
|
||||||
+ hysteresis = <2000>;
|
+ hysteresis = <2000>;
|
||||||
+ type = "active";
|
+ type = "active";
|
||||||
+ };
|
+ };
|
||||||
+
|
+
|
||||||
+ cpu_trip_active_high: cpu-trip-active-high {
|
+ cpu_trip_active_high: cpu-trip-active-high {
|
||||||
+ temperature = <70000>;
|
+ temperature = <50000>;
|
||||||
+ hysteresis = <2000>;
|
+ hysteresis = <2000>;
|
||||||
+ type = "active";
|
+ type = "active";
|
||||||
+ };
|
+ };
|
||||||
+
|
+
|
||||||
+ cpu_trip_active_hot: cpu-trip-active-hot {
|
+ cpu_trip_active_hot: cpu-trip-active-hot {
|
||||||
+ temperature = <75000>;
|
+ temperature = <60000>;
|
||||||
+ hysteresis = <2000>;
|
+ hysteresis = <2000>;
|
||||||
+ type = "hot";
|
+ type = "hot";
|
||||||
+ };
|
+ };
|
||||||
+ };
|
+ };
|
||||||
+
|
+
|
||||||
+ cooling-maps {
|
+ cooling-maps {
|
||||||
|
+ cpu-active-cool {
|
||||||
|
+ trip = <&cpu_trip_active_cool>;
|
||||||
|
+ cooling-device = <&fan THERMAL_NO_LIMIT 1>;
|
||||||
|
+ };
|
||||||
|
+
|
||||||
+ cpu-active-low {
|
+ cpu-active-low {
|
||||||
+ trip = <&cpu_trip_active_low>;
|
+ trip = <&cpu_trip_active_low>;
|
||||||
+ cooling-device = <&fan THERMAL_NO_LIMIT 1>;
|
+ cooling-device = <&fan 1 2>;
|
||||||
+ };
|
+ };
|
||||||
+
|
+
|
||||||
+ cpu-active-med {
|
+ cpu-active-med {
|
||||||
+ trip = <&cpu_trip_active_med>;
|
+ trip = <&cpu_trip_active_med>;
|
||||||
+ cooling-device = <&fan 1 2>;
|
+ cooling-device = <&fan 2 3>;
|
||||||
+ };
|
+ };
|
||||||
+
|
+
|
||||||
+ cpu-active-high {
|
+ cpu-active-high {
|
||||||
+ trip = <&cpu_trip_active_high>;
|
+ trip = <&cpu_trip_active_high>;
|
||||||
+ cooling-device = <&fan 2 3>;
|
+ cooling-device = <&fan 3 4>;
|
||||||
+ };
|
+ };
|
||||||
+
|
+
|
||||||
+ cpu-active-hot {
|
+ cpu-active-hot {
|
||||||
+ trip = <&cpu_trip_active_hot>;
|
+ trip = <&cpu_trip_active_hot>;
|
||||||
+ cooling-device = <&fan 3 THERMAL_NO_LIMIT>;
|
+ cooling-device = <&fan 4 THERMAL_NO_LIMIT>;
|
||||||
+ };
|
+ };
|
||||||
+ };
|
+ };
|
||||||
+};
|
+};
|
||||||
|
@ -72,7 +72,7 @@
|
|||||||
fan: pwm-fan {
|
fan: pwm-fan {
|
||||||
compatible = "pwm-fan";
|
compatible = "pwm-fan";
|
||||||
#cooling-cells = <2>;
|
#cooling-cells = <2>;
|
||||||
cooling-levels = <0 95 145 195 255>;
|
cooling-levels = <0 80 128 175 230 255>;
|
||||||
fan-supply = <&vcc5v0_fan>;
|
fan-supply = <&vcc5v0_fan>;
|
||||||
pwms = <&pwm5 0 50000 0>;
|
pwms = <&pwm5 0 50000 0>;
|
||||||
};
|
};
|
||||||
@ -211,50 +211,61 @@
|
|||||||
|
|
||||||
&cpu_thermal {
|
&cpu_thermal {
|
||||||
trips {
|
trips {
|
||||||
|
cpu_trip_active_cool: cpu-trip-active-cool {
|
||||||
|
temperature = <20000>;
|
||||||
|
hysteresis = <2000>;
|
||||||
|
type = "active";
|
||||||
|
};
|
||||||
|
|
||||||
cpu_trip_active_low: cpu-trip-active-low {
|
cpu_trip_active_low: cpu-trip-active-low {
|
||||||
temperature = <50000>;
|
temperature = <30000>;
|
||||||
hysteresis = <2000>;
|
hysteresis = <2000>;
|
||||||
type = "active";
|
type = "active";
|
||||||
};
|
};
|
||||||
|
|
||||||
cpu_trip_active_med: cpu-trip-active-med {
|
cpu_trip_active_med: cpu-trip-active-med {
|
||||||
temperature = <60000>;
|
temperature = <40000>;
|
||||||
hysteresis = <2000>;
|
hysteresis = <2000>;
|
||||||
type = "active";
|
type = "active";
|
||||||
};
|
};
|
||||||
|
|
||||||
cpu_trip_active_high: cpu-trip-active-high {
|
cpu_trip_active_high: cpu-trip-active-high {
|
||||||
temperature = <70000>;
|
temperature = <50000>;
|
||||||
hysteresis = <2000>;
|
hysteresis = <2000>;
|
||||||
type = "active";
|
type = "active";
|
||||||
};
|
};
|
||||||
|
|
||||||
cpu_trip_active_hot: cpu-trip-active-hot {
|
cpu_trip_active_hot: cpu-trip-active-hot {
|
||||||
temperature = <75000>;
|
temperature = <60000>;
|
||||||
hysteresis = <2000>;
|
hysteresis = <2000>;
|
||||||
type = "hot";
|
type = "hot";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
cooling-maps {
|
cooling-maps {
|
||||||
|
cpu-active-cool {
|
||||||
|
trip = <&cpu_trip_active_cool>;
|
||||||
|
cooling-device = <&fan THERMAL_NO_LIMIT 1>;
|
||||||
|
};
|
||||||
|
|
||||||
cpu-active-low {
|
cpu-active-low {
|
||||||
trip = <&cpu_trip_active_low>;
|
trip = <&cpu_trip_active_low>;
|
||||||
cooling-device = <&fan THERMAL_NO_LIMIT 1>;
|
cooling-device = <&fan 1 2>;
|
||||||
};
|
};
|
||||||
|
|
||||||
cpu-active-med {
|
cpu-active-med {
|
||||||
trip = <&cpu_trip_active_med>;
|
trip = <&cpu_trip_active_med>;
|
||||||
cooling-device = <&fan 1 2>;
|
cooling-device = <&fan 2 3>;
|
||||||
};
|
};
|
||||||
|
|
||||||
cpu-active-high {
|
cpu-active-high {
|
||||||
trip = <&cpu_trip_active_high>;
|
trip = <&cpu_trip_active_high>;
|
||||||
cooling-device = <&fan 2 3>;
|
cooling-device = <&fan 3 4>;
|
||||||
};
|
};
|
||||||
|
|
||||||
cpu-active-hot {
|
cpu-active-hot {
|
||||||
trip = <&cpu_trip_active_hot>;
|
trip = <&cpu_trip_active_hot>;
|
||||||
cooling-device = <&fan 3 THERMAL_NO_LIMIT>;
|
cooling-device = <&fan 4 THERMAL_NO_LIMIT>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user