Skip to content

Commit 7a03f2c

Browse files
nmenontmlind
authored andcommitted
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>
1 parent cd5bca6 commit 7a03f2c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

arch/arm/boot/dts/am57xx-beagle-x15.dts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,14 @@
8080
default-state = "off";
8181
};
8282
};
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+
};
8391
};
8492

8593
&dra7_pmx_core {
@@ -394,6 +402,12 @@
394402
wakeup-source;
395403
ti,palmas-long-press-seconds = <12>;
396404
};
405+
406+
tps659038_gpio: tps659038_gpio {
407+
compatible = "ti,palmas-gpio";
408+
gpio-controller;
409+
#gpio-cells = <2>;
410+
};
397411
};
398412

399413
tmp102: tmp102@48 {

0 commit comments

Comments
 (0)