From nobody Fri Sep 5 18:42:38 2025 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4cJQFV57B9z66DY1; Fri, 05 Sep 2025 18:42:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cJQFV3548z4PHy; Fri, 05 Sep 2025 18:42:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757097758; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Kz3kXimxIYTHgPD0aVimkf0OUEpAfaSmZx3uHUzMSDY=; b=rNFWeQGw3peF4mFSR4X9A9X+yCiSP2vnmDgYzUG2qzEICLnqpzA1voCdm2KWG5UpFOJ31m /n/rnSCt2xLfZSIAQXeaixNOiKAyEZ6f2Nh0CQ2gKFXW16UjklJ5gn6WkbUoRuOYC4AVXi qk+vfGYDNO9cs9tJPhVTjdS99qI4ur09E73FgxYeXQNRNY0T8k5meDIT1Jah++BcukNj+3 ZXjXKQFmmFaaYbnnBlZEjIE+dakgARfv/r73Iw1RUpjwHirL8LQThbQbCNXwE42qI2KL3u TQ2AjQmEfGhxFUnm7mgSii54b8k/LXhKfkpItDQ+weuM222eCPzaQn2t62NkLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757097758; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Kz3kXimxIYTHgPD0aVimkf0OUEpAfaSmZx3uHUzMSDY=; b=uWjqc0E5JjF6DusOHRb+WOjqjdL9RDvRydRaqAcKxILIHKdJb3o3oDB9qjq2iq7RJMaOpw 4aZcdGupSXEEe1RgQrKyYoUHy9t9SHzHVQBIFtqy/+OA6zlVZQWbS8+cMhV/4wFalhPV2B nulajG7WyoTOdDe3HV0TcfdRPDRbEMjedD6Afv9CRv1PU8es1PigjTWBfim9d3Rh9l7p1M UZAS121s+LB8xRsUplgQvBr/zWb6T9nkvwh/hGOQ1n+Y9c/JipuKh6boKgeQjnbpoyqet3 nXyQY+pBGy+1+Gp31TgitPbfZOf5+CONZ+UG5Zu6XD5mTQ3nwcWlLKO+R8gK+Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1757097758; a=rsa-sha256; cv=none; b=RnGKFC4o3y8y6m5TVB/rgU+0wB0g55RBYe6cefQ9J0KpFPk83N/x65YOb6vcqQZVxOvTjD HgkX8IlCajF0HyyZIHqzUGq+VZt6YdUwHiUmVrDnPgip1KRxeqJd9CGP+J3UNnbKwdvW4V +6T6mRAW/rTKd7rUBZLgRynrWhJkvBR82aZE4rBPB6NgkGh2usSSYejQilA+LHJwkp2ais c3X5CDRhomNYA/CKuzzpnXot/xAX830yCLMcdtZZTaXhzULiVg/g4gp9vpm3Ldu93Oq4ep HGjsETmL3zWoI8/uXTXcBoiPh7dmPc+hbZ310POfebYGBu1or6w/c2HKU0W3PA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4cJQFV2TSwz11BJ; Fri, 05 Sep 2025 18:42:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 585IgcXH096861; Fri, 5 Sep 2025 18:42:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 585Igc0E096857; Fri, 5 Sep 2025 18:42:38 GMT (envelope-from git) Date: Fri, 5 Sep 2025 18:42:38 GMT Message-Id: <202509051842.585Igc0E096857@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 6a5c193a1aed - main - gpioled: document the invmode hint in gpioled(4) List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6a5c193a1aed731c67e65bb17256c086fc5abe65 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=6a5c193a1aed731c67e65bb17256c086fc5abe65 commit 6a5c193a1aed731c67e65bb17256c086fc5abe65 Author: Stéphane Rochoy AuthorDate: 2025-08-12 09:29:05 +0000 Commit: Warner Losh CommitDate: 2025-09-05 18:42:23 +0000 gpioled: document the invmode hint in gpioled(4) Signed-off-by: Stéphane Rochoy Sponsored-by: Stormshield Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1805 --- share/man/man4/gpioled.4 | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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.