arm64: dts: freescale: sl28: enable fan support
authorMichael Walle <michael@walle.cc>
Mon, 14 Sep 2020 21:43:40 +0000 (23:43 +0200)
committerShawn Guo <shawnguo@kernel.org>
Tue, 22 Sep 2020 09:06:04 +0000 (17:06 +0800)
Add a pwm-fan mapped to the PWM channel 0 which is connected to the
fan connector of the carrier.

Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28-var3-ads2.dts

index 0973a6a..c45d7b4 100644 (file)
        compatible = "kontron,sl28-var3-ads2", "kontron,sl28-var3",
                     "kontron,sl28", "fsl,ls1028a";
 
+       pwm-fan {
+               compatible = "pwm-fan";
+               cooling-min-state = <0>;
+               cooling-max-state = <3>;
+               #cooling-cells = <2>;
+               pwms = <&sl28cpld_pwm0 0 4000000>;
+               cooling-levels = <1 128 192 255>;
+       };
+
        sound {
                #address-cells = <1>;
                #size-cells = <0>;