[Letux-kernel] [PATCH 0/3] iio: adc: palmas_gpadc: add iio events
risca at dalakolonin.se
Sun Mar 19 23:39:05 CET 2023
These changes are based on  and .
The palmas gpadc block has support for monitoring up to 2 ADC channels
and issue an interrupt if they reach past a set threshold. This can be
configured statically with device tree todayi, but it only gets enabled
when reaching sleep mode. Also, it doesn't look like anyone is using it.
Instead of this one special case, change the code so userspace can
configure the ADC channels to their own needs through the iio events
Thresholds and events were tested on omap5-uevm board. It should still
be possible to wake up from sleep mode on events, but my board don't
like sleep. A userspace tool for monitoring events and adjusting
thresholds can be found at .
Patrik Dahlström (3):
iio: adc: palmas_gpadc: add support for iio threshold events
iio: adc: palmas_gpadc: remove adc_wakeupX_data
iio: adc: palmas_gpadc: remove palmas_adc_wakeup_property
drivers/iio/adc/palmas_gpadc.c | 527 +++++++++++++++++++++++++++------
include/linux/mfd/palmas.h | 8 -
2 files changed, 434 insertions(+), 101 deletions(-)
More information about the Letux-kernel