diff mbox

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

Message ID 1424887219-26652-1-git-send-email-simon.guinot@sequanux.org (mailing list archive)
State New, archived
Headers show

Commit Message

Simon Guinot Feb. 25, 2015, 6 p.m. UTC
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>
---
 arch/arm/boot/dts/kirkwood-net2big.dts | 5 +++++
 1 file changed, 5 insertions(+)

v2 change:
- Fix node name according to the ePAPR standard.

Comments

Guenter Roeck Feb. 28, 2015, 3:46 p.m. UTC | #1
On 02/25/2015 10:00 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@sequanux.org>

Acked-by: Guenter Roeck <linux@roeck-us.net>
Gregory CLEMENT March 2, 2015, 7:28 p.m. UTC | #2
Hi Simon,

On 25/02/2015 19:00, 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.

Now that the driver part had been merged, I applied this patch on
mvebu/dt.

Thanks,

Gregory

> 
> Signed-off-by: Simon Guinot <simon.guinot@sequanux.org>
> ---
>  arch/arm/boot/dts/kirkwood-net2big.dts | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> v2 change:
> - Fix node name according to the ePAPR standard.
> 
> diff --git a/arch/arm/boot/dts/kirkwood-net2big.dts b/arch/arm/boot/dts/kirkwood-net2big.dts
> index 53dc37a3b687..13a44773b6df 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>;
>  	};
> +
> +	fan {
> +		compatible = "gpio-fan";
> +		alarm-gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
> +	};
>  };
>  
>  &regulators {
>
diff mbox

Patch

diff --git a/arch/arm/boot/dts/kirkwood-net2big.dts b/arch/arm/boot/dts/kirkwood-net2big.dts
index 53dc37a3b687..13a44773b6df 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>;
 	};
+
+	fan {
+		compatible = "gpio-fan";
+		alarm-gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
+	};
 };
 
 &regulators {