65 lines
1.7 KiB
Diff
65 lines
1.7 KiB
Diff
diff -Naur linux-5.3-rc8-old/arch/arm64/boot/dts/amlogic/meson-gxl-s905w-tx3-mini.dts linux-5.3-rc8-new/arch/arm64/boot/dts/amlogic/meson-gxl-s905w-tx3-mini.dts
|
|
--- linux-5.3-rc8-old/arch/arm64/boot/dts/amlogic/meson-gxl-s905w-tx3-mini.dts 2019-09-10 13:18:29.000000007 +0200
|
|
+++ linux-5.3-rc8-new/arch/arm64/boot/dts/amlogic/meson-gxl-s905w-tx3-mini.dts 2019-09-10 11:51:15.700000008 +0200
|
|
@@ -10,6 +10,7 @@
|
|
|
|
#include "meson-gxl-s905x.dtsi"
|
|
#include "meson-gx-p23x-q20x.dtsi"
|
|
+#include <dt-bindings/thermal/thermal.h>
|
|
|
|
/ {
|
|
compatible = "oranth,tx3-mini", "amlogic,s905w", "amlogic,meson-gxl";
|
|
@@ -19,8 +20,49 @@
|
|
device_type = "memory";
|
|
reg = <0x0 0x0 0x0 0x40000000>; /* 1 GiB or 2 GiB */
|
|
};
|
|
-};
|
|
|
|
-&ir {
|
|
- linux,rc-map-name = "rc-tanix-tx3mini";
|
|
+ thermal-zones {
|
|
+ cpu-thermal {
|
|
+ polling-delay-passive = <250>; /* milliseconds */
|
|
+ polling-delay = <1000>; /* milliseconds */
|
|
+
|
|
+ thermal-sensors = <&scpi_sensors 0>;
|
|
+
|
|
+ trips {
|
|
+ cpu_alert0: cpu-alert0 {
|
|
+ temperature = <70000>; /* millicelsius */
|
|
+ hysteresis = <2000>; /* millicelsius */
|
|
+ type = "active";
|
|
+ };
|
|
+
|
|
+ cpu_alert1: cpu-alert1 {
|
|
+ temperature = <80000>; /* millicelsius */
|
|
+ hysteresis = <2000>; /* millicelsius */
|
|
+ type = "passive";
|
|
+ };
|
|
+ };
|
|
+
|
|
+ cooling-maps {
|
|
+ map0 {
|
|
+ trip = <&cpu_alert0>;
|
|
+ cooling-device = <&gpio_fan THERMAL_NO_LIMIT 1>;
|
|
+ };
|
|
+
|
|
+ map1 {
|
|
+ trip = <&cpu_alert1>;
|
|
+ cooling-device = <&gpio_fan THERMAL_NO_LIMIT 1>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
+ gpio_fan: gpio-fan {
|
|
+ compatible = "gpio-fan";
|
|
+ /* Dummy RPM values since fan is optional */
|
|
+ gpio-fan,speed-map = <0 0
|
|
+ 1 1
|
|
+ 2 2
|
|
+ 3 3>;
|
|
+ #cooling-cells = <2>;
|
|
+ };
|
|
};
|