Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <nm@ti.com>
Reviewed-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>

authored by

Nishanth Menon and committed by
Tony Lindgren
7a03f2c0 cd5bca6f

+14
+14
arch/arm/boot/dts/am57xx-beagle-x15.dts
··· 80 80 default-state = "off"; 81 81 }; 82 82 }; 83 + 84 + gpio_fan: gpio_fan { 85 + /* Based on 5v 500mA AFB02505HHB */ 86 + compatible = "gpio-fan"; 87 + gpios = <&tps659038_gpio 1 GPIO_ACTIVE_HIGH>; 88 + gpio-fan,speed-map = <0 0>, 89 + <13000 1>; 90 + }; 83 91 }; 84 92 85 93 &dra7_pmx_core { ··· 401 393 interrupts = <1 IRQ_TYPE_EDGE_FALLING>; 402 394 wakeup-source; 403 395 ti,palmas-long-press-seconds = <12>; 396 + }; 397 + 398 + tps659038_gpio: tps659038_gpio { 399 + compatible = "ti,palmas-gpio"; 400 + gpio-controller; 401 + #gpio-cells = <2>; 404 402 }; 405 403 }; 406 404