From: Nishanth Menon Date: Mon, 5 Jan 2015 16:32:29 +0000 (-0600) Subject: ARM: dts: am57xx-beagle-x15: Add GPIO controlled fan node X-Git-Tag: v4.0-rc1~69^2~27^2~2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7a03f2c08d62371a6459331036e214bd7288ed10;p=karo-tx-linux.git ARM: dts: am57xx-beagle-x15: Add GPIO controlled fan node TPS gpio now controls a 5v 500mA TL5209 regulator which may be supply a fan (such as AFB02505HHB) over J1 connector for various purposes. Provide device tree node to enable the same. Signed-off-by: Nishanth Menon Reviewed-by: Felipe Balbi Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/boot/dts/am57xx-beagle-x15.dts b/arch/arm/boot/dts/am57xx-beagle-x15.dts index 6c2e8e41b1e9..c5d4ceabdd80 100644 --- a/arch/arm/boot/dts/am57xx-beagle-x15.dts +++ b/arch/arm/boot/dts/am57xx-beagle-x15.dts @@ -80,6 +80,14 @@ default-state = "off"; }; }; + + gpio_fan: gpio_fan { + /* Based on 5v 500mA AFB02505HHB */ + compatible = "gpio-fan"; + gpios = <&tps659038_gpio 1 GPIO_ACTIVE_HIGH>; + gpio-fan,speed-map = <0 0>, + <13000 1>; + }; }; &dra7_pmx_core { @@ -394,6 +402,12 @@ wakeup-source; ti,palmas-long-press-seconds = <12>; }; + + tps659038_gpio: tps659038_gpio { + compatible = "ti,palmas-gpio"; + gpio-controller; + #gpio-cells = <2>; + }; }; tmp102: tmp102@48 {