]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: Kirkwood: enable GPIO fan alarm support for 2Big Network v2
authorSimon Guinot <simon.guinot@sequanux.org>
Wed, 25 Feb 2015 18:00:19 +0000 (19:00 +0100)
committerGregory CLEMENT <gregory.clement@free-electrons.com>
Wed, 4 Mar 2015 13:31:34 +0000 (14:31 +0100)
On the LaCie 2Big Network v2 (net2big_v2) board, the fan alarm is not
wired to the I2C fan controller but to a separe GPIO. This GPIO can be
controlled by using the gpio-fan driver.

This patch adds the gpio-fan alarm description in the net2big_v2 DTS.

Signed-off-by: Simon Guinot <simon.guinot@sequanux.org>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
arch/arm/boot/dts/kirkwood-net2big.dts

index 53dc37a3b6875dd10fcbe9babee959de4f5a95bd..13a44773b6dfa39fe02d4ce86f3344808e498d1b 100644 (file)
                device_type = "memory";
                reg = <0x00000000 0x10000000>;
        };
+
+       fan {
+               compatible = "gpio-fan";
+               alarm-gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
+       };
 };
 
 &regulators {