]> git.karo-electronics.de Git - karo-tx-linux.git/commit
regulator: ltc3589: make IRQ optional
authorLothar Waßmann <LW@KARO-electronics.de>
Wed, 27 Aug 2014 10:02:15 +0000 (12:02 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 27 Aug 2014 10:02:15 +0000 (12:02 +0200)
commit75417131f3ed514a44f3f1194fdfb8c2f2e7f7be
treeed3b77260cb72889b866f94fae0dd49d257bd692
parent88ccd9ff41d2d8ddfbe03495685fb8f51feaaa65
regulator: ltc3589: make IRQ optional

On the AM335x SoC rev. <= 1.0 the "Input Function of the EXTINTn
Terminal is Inverted", for which the only remedy is to "Use an active
high interrupt source or use an external inverter to change the
polarity of any active low interrupt source."

This pin is used as IRQ pin for the LTC3589 PMIC on the Ka-Ro
electronics TX48 module. Make the IRQ optional in the driver and use a
polling routine instead if no IRQ is specified in DT.
Otherwise the driver will continuously generate interrupts and make
the system unusable.
drivers/regulator/ltc3589.c