/dts-v1/; /plugin/; #include #include #include / { 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>; }; }; }; }; };