armbian-build/patch/kernel/archive/meson64-6.12/overlay/meson-g12-pwm-gpiox-5-fan.dtso

44 lines
814 B
Plaintext

/dts-v1/;
/plugin/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/gpio/meson-g12a-gpio.h>
#include <dt-bindings/thermal/thermal.h>
/ {
compatible = "amlogic,a311d", "amlogic,g12a", "amlogic,g12b", "amlogic,sm1";
fragment@0 {
target-path = "/";
__overlay__ {
fan: gpio-fan {
compatible = "gpio-fan";
gpios = <&gpio GPIOX_5 GPIO_ACTIVE_HIGH>;
gpio-fan,speed-map = <0 0>, <5000 1>;
#cooling-cells = <2>;
};
};
};
fragment@1 {
target = <&cpu_thermal>;
polling-delay = <2000>;
__overlay__ {
trips {
cpu_active: cpu-active {
temperature = <55000>;
hysteresis = <10000>;
type = "active";
};
};
cooling-maps {
map {
trip = <&cpu_active>;
cooling-device = <&fan THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
};
};
};
};
};