From: Randy Dunlap <rdunlap@infradead.org>
To: Nam Tran <trannamatk@gmail.com>,
lee@kernel.org, Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: pavel@kernel.org, christophe.jaillet@wanadoo.fr,
krzk+dt@kernel.org, robh@kernel.org, conor+dt@kernel.org,
corbet@lwn.net, linux-leds@vger.kernel.org,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
linux-doc@vger.kernel.org
Subject: Re: [PATCH v13 RESEND 3/4] docs: ABI: Document LP5812 LED sysfs interfaces
Date: Sun, 17 Aug 2025 19:07:21 -0700 [thread overview]
Message-ID: <1075a908-23d0-4a9e-97d2-cb68d1d6b675@infradead.org> (raw)
In-Reply-To: <20250818012654.143058-4-trannamatk@gmail.com>
Hi--
On 8/17/25 6:26 PM, Nam Tran wrote:
> The LP5812 is a 4x3 matrix RGB LED driver with autonomous animation
> engine control.
>
> This patch documents the basic sysfs interfaces provided by the driver,
> including LED activation, current control, fault status, and simple
> chip-level operations such as software reset and fault clearing.
>
> Signed-off-by: Nam Tran <trannamatk@gmail.com>
> ---
> .../ABI/testing/sysfs-bus-i2c-devices-lp5812 | 32 +++++++++++++++++++
> .../ABI/testing/sysfs-class-led-lp5812 | 32 +++++++++++++++++++
> MAINTAINERS | 2 ++
> 3 files changed, 66 insertions(+)
> create mode 100644 Documentation/ABI/testing/sysfs-bus-i2c-devices-lp5812
> create mode 100644 Documentation/ABI/testing/sysfs-class-led-lp5812
>
> diff --git a/Documentation/ABI/testing/sysfs-class-led-lp5812 b/Documentation/ABI/testing/sysfs-class-led-lp5812
> new file mode 100644
> index 000000000000..93eeecc60864
> --- /dev/null
> +++ b/Documentation/ABI/testing/sysfs-class-led-lp5812
> @@ -0,0 +1,32 @@
> +What: /sys/class/leds/led_<id>/activate
> +Date: July 2025
> +KernelVersion: 6.17
> +Contact: Nam Tran <trannamatk@gmail.com>
> +Description:
> + Activate or deactivate the specified LED channel. (WO)
> + 1 - Activate
> + 0 - Deactivate
> +
> +What: /sys/class/leds/led_<id>/led_current
> +Date: July 2025
> +KernelVersion: 6.17
> +Contact: Nam Tran <trannamatk@gmail.com>
> +Description:
> + DC current level. (WO)
> + Valid values: 0 - 255
> +
> +What: /sys/class/leds/led_<id>/max_current
> +Date: July 2025
> +KernelVersion: 6.17
> +Contact: Nam Tran <trannamatk@gmail.com>
> +Description:
> + Shows maximum DC current bit setting. (RO)
> + 0 (default) means the LED maximum current is set to 25.5 mA.
> + 1 means the LED maximum current is set to 51 mA.
> +
> +What: /sys/class/leds/led_<id>/lod_lsd
> +Date: July 2025
> +KernelVersion: 6.17
> +Contact: Nam Tran <trannamatk@gmail.com>
> +Description:
> + 0 0 mean no lod and lsd fault detected, 1 1 mean lod and lsd fault detected (RO)
At first the "0 0" and "1 1" confused me (thought it was a typo),
but I think what you are showing here is a sysfs file with 2 values, right?
That used to be discouraged (or even nacked), although I don't know the
current policy on that.
@Greg, any comment?
--
~Randy
next prev parent reply other threads:[~2025-08-18 2:07 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-18 1:26 [PATCH v13 RESEND 0/4] leds: add new LED driver for TI LP5812 Nam Tran
2025-08-18 1:26 ` [PATCH v13 RESEND 1/4] dt-bindings: leds: add TI/National Semiconductor LP5812 LED Driver Nam Tran
2025-08-18 2:31 ` Rob Herring (Arm)
2025-08-19 16:10 ` Nam Tran
2025-08-18 1:26 ` [PATCH v13 RESEND 2/4] leds: add basic support for " Nam Tran
2025-09-02 12:11 ` Lee Jones
2025-09-04 16:17 ` Nam Tran
2025-08-18 1:26 ` [PATCH v13 RESEND 3/4] docs: ABI: Document LP5812 LED sysfs interfaces Nam Tran
2025-08-18 2:07 ` Randy Dunlap [this message]
2025-08-19 16:29 ` Nam Tran
2025-08-18 1:26 ` [PATCH v13 RESEND 4/4] docs: leds: Document TI LP5812 LED driver Nam Tran
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1075a908-23d0-4a9e-97d2-cb68d1d6b675@infradead.org \
--to=rdunlap@infradead.org \
--cc=christophe.jaillet@wanadoo.fr \
--cc=conor+dt@kernel.org \
--cc=corbet@lwn.net \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=krzk+dt@kernel.org \
--cc=lee@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=pavel@kernel.org \
--cc=robh@kernel.org \
--cc=trannamatk@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).