]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
docs: gpio: explain GPIOD_OUT_* values and toggling active low
authorHannu Hartikainen <hannu@hrtk.in>
Thu, 8 Jul 2021 15:20:54 +0000 (18:20 +0300)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 21 Jul 2021 13:21:36 +0000 (15:21 +0200)
commitf3f1017a98f91355671feb0e741391999a43b55d
treec534cc067b6428634ed76afe81c26669f232b836
parent17ce60b2e4f87262eedd693021224130d720c00c
docs: gpio: explain GPIOD_OUT_* values and toggling active low

I was confused about the gpiod_flags values and thought that
GPIOD_OUT_LOW and GPIOD_OUT_HIGH set the line to be active low / active
high. This is not true, but I got the misconception because the flags
GPIOD_OUT_*_OPEN_DRAIN do change line configuration and there's a
subchapter about *active low* and *open drain* semantics.

Add an explicit mention that the initial value is a logical value (and
not the line configuration or physical line level). Also add a mention
of the function gpiod_toggle_active_low which was previously missing
from this document.

Signed-off-by: Hannu Hartikainen <hannu@hrtk.in>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Documentation/driver-api/gpio/consumer.rst