[PATCH] ARM: Kirkwood: enable GPIO fan alarm support for 2Big Network v2

Simon Guinot simon.guinot at sequanux.org
Mon Feb 23 06:40:49 PST 2015


On Mon, Feb 23, 2015 at 06:10:59AM -0800, Guenter Roeck wrote:
> On 02/23/2015 05:02 AM, Simon Guinot wrote:
> >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 at sequanux.org>
> >---
> >  arch/arm/boot/dts/kirkwood-net2big.dts | 5 +++++
> >  1 file changed, 5 insertions(+)
> >
> >diff --git a/arch/arm/boot/dts/kirkwood-net2big.dts b/arch/arm/boot/dts/kirkwood-net2big.dts
> >index 53dc37a3b687..e4f7e497379f 100644
> >--- a/arch/arm/boot/dts/kirkwood-net2big.dts
> >+++ b/arch/arm/boot/dts/kirkwood-net2big.dts
> >@@ -27,6 +27,11 @@
> >  		device_type = "memory";
> >  		reg = <0x00000000 0x10000000>;
> >  	};
> >+
> >+	gpio_fan {
> >+		compatible = "gpio-fan";
> >+		alarm-gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
> >+	};
> >  };
> >
> >  &regulators {
> >
> Again, wrong solution, and conceptually wrong as well from a dt perspective.
> 
> The alarm signal should be handled by the g762 driver, and the alarm-gpios
> property should be added to the g762 description.

OK. Then you think it would be better to add support for alarm GPIOs
support in the g762. The problem is that we should have to find a
generic way to do that. After all, we could want the very same
modification for a bunch of fan drivers.

Simon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150223/f288e6ea/attachment.sig>


More information about the linux-arm-kernel mailing list