Skip to content

Commit 5b3b3e3

Browse files
andy-shevBartosz Golaszewski
authored andcommitted
Documentation: gpio: Input mode is not true Hi-Z
The true Hi-Z (a.k.a. high impedance) mode is when pin is completely disconnected from the chip. This includes input buffer as well. Nevertheless, some hardware may not support that mode and they are considering input only as Hi-Z, but more precisely it is an equivalent to that, in electronics it's basically "an antenna mode". Sligthly correct documentation to take the above into consideration. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
1 parent db4064c commit 5b3b3e3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Documentation/driver-api/gpio/driver.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,10 @@ not support open drain/open source in hardware, the GPIO library will instead
218218
use a trick: when a line is set as output, if the line is flagged as open
219219
drain, and the IN output value is low, it will be driven low as usual. But
220220
if the IN output value is set to high, it will instead *NOT* be driven high,
221-
instead it will be switched to input, as input mode is high impedance, thus
222-
achieving an "open drain emulation" of sorts: electrically the behaviour will
223-
be identical, with the exception of possible hardware glitches when switching
224-
the mode of the line.
221+
instead it will be switched to input, as input mode is an equivalent to
222+
high impedance, thus achieving an "open drain emulation" of sorts: electrically
223+
the behaviour will be identical, with the exception of possible hardware glitches
224+
when switching the mode of the line.
225225

226226
For open source configuration the same principle is used, just that instead
227227
of actively driving the line low, it is set to input.

0 commit comments

Comments
 (0)