diff options
| author | Stéphane Rochoy <stephane.rochoy@stormshield.eu> | 2025-08-12 09:29:05 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2025-09-05 18:42:23 +0000 |
| commit | 6a5c193a1aed731c67e65bb17256c086fc5abe65 (patch) | |
| tree | 4faa354f6f9d4c9b7bd1743484fbed3b6c4a1f31 | |
| parent | 9ae3c3010a0deb80eb96b1184734904ed61fecef (diff) | |
gpioled: document the invmode hint in gpioled(4)
Signed-off-by: Stéphane Rochoy <stephane.rochoy@stormshield.eu>
Sponsored-by: Stormshield
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1805
| -rw-r--r-- | share/man/man4/gpioled.4 | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/share/man/man4/gpioled.4 b/share/man/man4/gpioled.4 index 646e2ff2a8f0..45457d20d298 100644 --- a/share/man/man4/gpioled.4 +++ b/share/man/man4/gpioled.4 @@ -70,7 +70,20 @@ Which pin on the GPIO interface to map to this instance. Please note that this mask should only ever have one bit set (any other bits - i.e., pins - will be ignored). .It Va hint.gpioled.%d.invert -If set to 1, the pin will be set to 0 to light the LED, and 1 to clear it. +Use pin inversion. If set to 1, the pin will be set to 0 to light the LED, and 1 +to clear it. +.It Va hint.gpioled.%d.invmode +Whether or not to use hardware support when pin inversion is requested. Must be +one of: +.Bl -tag +.It Va auto +Use hardware pin inversion if available, else fallback to software pin +inversion. This is the default. +.It Va hw +Use hardware pin inversion. +.It Va sw +Use software pin inversion. +.El .It Va hint.gpioled.%d.state The initial state of the LED when the driver takes control over it. If set to 1 or 0, the LED will be on or off correspondingly. |
