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

Configure Feed

Select the types of activity you want to include in your feed.

docs: iio: ad4062: Add GPIO Controller support

Explains the GPIO controller support with emphasis on the mask
depending on which GPs are exposed.

Signed-off-by: Jorge Marques <jorge.marques@analog.com>
Reviewed-by: Linus Walleij <linusw@kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Jorge Marques and committed by
Jonathan Cameron
d2ca7af2 ba3a34b1

+12
+12
Documentation/iio/ad4062.rst
··· 29 29 - GP0: Is assigned the role of Threshold Either signal. 30 30 - GP1: Is assigned the role of Data Ready signal. 31 31 32 + If the property ``gpio-controller`` is present in the devicetree, then the GPO 33 + not present in the ``interrupt-names`` is exposed as a GPO. 34 + 32 35 Device attributes 33 36 ================= 34 37 ··· 137 134 - Set the hysteresis value for the maximum threshold. 138 135 * - ``thresh_rising_value`` 139 136 - Set the maximum threshold value. 137 + 138 + GPO controller support 139 + ====================== 140 + 141 + The device supports using GP0 and GP1 as GPOs. If the devicetree contains the 142 + node ``gpio-controller```, the device is marked as a GPIO controller and the 143 + GPs not listed in ``interrupt-names`` are exposed as a GPO. The GPIO index 144 + matches the pin name, so if GP0 is not exposed but GP1 is, index 0 is masked 145 + out and only index 1 can be set.