linux-stable/Documentation/driver-api/gpio
Hannu Hartikainen f3f1017a98 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>
2021-07-21 15:21:36 +02:00
..
board.rst gpiolib: Add support for GPIO lookup by line name 2020-05-18 10:12:42 +02:00
bt8xxgpio.rst docs: driver-api: bt8xxgpio: Revive dead link 2019-10-09 11:13:36 +02:00
consumer.rst docs: gpio: explain GPIOD_OUT_* values and toggling active low 2021-07-21 15:21:36 +02:00
driver.rst Documentation: gpio: driver.rst: Remove gpiochip_irqchip_add mention 2021-07-21 15:17:53 +02:00
drivers-on-gpio.rst gpio: Mention GPIO MUX in docs 2021-03-26 14:56:19 +01:00
index.rst gpio: Add use guidance documentation 2020-01-15 11:11:43 +01:00
intro.rst Documentation: gpio: chip should be plural 2021-03-25 11:41:37 -06:00
legacy.rst Documentation: rename pinctl to pin-control 2021-03-10 14:41:58 +01:00
using-gpio.rst docs: driver-api: gpio: using-gpio.rst: avoid using ReST :doc:`foo` markup 2021-06-17 13:24:37 -06:00