linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 1/3] Documentation: gpio: Input mode is not true Hi-Z
@ 2022-11-30 15:55 Andy Shevchenko
  2022-11-30 15:55 ` [PATCH v1 2/3] Documentation: gpio: Add a section on what to return in ->get() callback Andy Shevchenko
                   ` (2 more replies)
  0 siblings, 3 replies; 21+ messages in thread
From: Andy Shevchenko @ 2022-11-30 15:55 UTC (permalink / raw)
  To: Andy Shevchenko, Marc Zyngier, linux-gpio, linux-doc,
	linux-kernel
  Cc: Linus Walleij, Bartosz Golaszewski, Jonathan Corbet,
	Hans de Goede

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>
---
 Documentation/driver-api/gpio/driver.rst | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Documentation/driver-api/gpio/driver.rst b/Documentation/driver-api/gpio/driver.rst
index 6baaeab79534..bf6319cc531b 100644
--- a/Documentation/driver-api/gpio/driver.rst
+++ b/Documentation/driver-api/gpio/driver.rst
@@ -218,10 +218,10 @@ not support open drain/open source in hardware, the GPIO library will instead
 use a trick: when a line is set as output, if the line is flagged as open
 drain, and the IN output value is low, it will be driven low as usual. But
 if the IN output value is set to high, it will instead *NOT* be driven high,
-instead it will be switched to input, as input mode is high impedance, thus
-achieving an "open drain emulation" of sorts: electrically the behaviour will
-be identical, with the exception of possible hardware glitches when switching
-the mode of the line.
+instead it will be switched to input, as input mode is an equivalent to
+high impedance, thus achieving an "open drain emulation" of sorts: electrically
+the behaviour will be identical, with the exception of possible hardware glitches
+when switching the mode of the line.
 
 For open source configuration the same principle is used, just that instead
 of actively driving the line low, it is set to input.
-- 
2.35.1


^ permalink raw reply related	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2023-03-15 10:08 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-30 15:55 [PATCH v1 1/3] Documentation: gpio: Input mode is not true Hi-Z Andy Shevchenko
2022-11-30 15:55 ` [PATCH v1 2/3] Documentation: gpio: Add a section on what to return in ->get() callback Andy Shevchenko
2022-11-30 16:12   ` Hans de Goede
2022-11-30 16:14     ` Hans de Goede
2022-11-30 16:22       ` Andy Shevchenko
2022-11-30 16:20     ` Andy Shevchenko
2022-12-01 11:18       ` Hans de Goede
2022-12-03  9:38   ` Linus Walleij
2022-12-03 12:09     ` Hans de Goede
2022-12-05  1:43     ` Kent Gibson
2022-12-05 12:08       ` Andy Shevchenko
2022-12-05 15:35         ` Kent Gibson
2022-12-07  0:06       ` Linus Walleij
2022-12-07  9:55         ` Andy Shevchenko
2022-12-07 10:11           ` Kent Gibson
2022-12-07 13:49           ` Linus Walleij
2022-11-30 15:55 ` [PATCH v1 3/3] Documentation: gpio: Replace leading TABs by spaces in the code blocks Andy Shevchenko
2022-12-03  9:35   ` Linus Walleij
2022-12-03  9:33 ` [PATCH v1 1/3] Documentation: gpio: Input mode is not true Hi-Z Linus Walleij
2023-03-10 17:25   ` Andy Shevchenko
2023-03-15 10:07     ` Bartosz Golaszewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).