From nobody Mon Feb 9 05:58:22 2026 Received: from mail-pg1-f194.google.com (mail-pg1-f194.google.com [209.85.215.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DE1E933D6DA for ; Sun, 11 Jan 2026 13:56:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.194 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768139771; cv=none; b=n6nzD2MSiX42doQ+4pNliIedWksQ3o0ahifvXWrxO8iUZDsKuMJyd59lg1ZHid9pq6Lc8jIT/i75bW3FT5o4GLKb0PME0oEGssOO3tvKXb6LujLQ1VFw/EbaIUoLcvshDEyrU7/fOPYXAOrlvOvbCSdLsakfxlL7vqp+KndbbJo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768139771; c=relaxed/simple; bh=fQGHg/GaALo4L7NakZAnZQKi+khkZF+lQSdpTOINtvU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=HYIUfbX7tDl1WVkX6pXOUfs6Pbhud07bJS/AMJorEIQCKhXAzUTnQBq96go4DRN17mXr0UV1TpWBdUb1dXB4I5cwww0a/gAwr6cYrqomjelYFjZblfJVzMoxb//pbglGfybSWCq5StdPITSkR0nb05Q9+cguI3ZtunM0lERap7s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=VsGPOTwt; arc=none smtp.client-ip=209.85.215.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VsGPOTwt" Received: by mail-pg1-f194.google.com with SMTP id 41be03b00d2f7-b553412a19bso2601202a12.1 for ; Sun, 11 Jan 2026 05:56:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768139769; x=1768744569; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=fOv6EGsZbFYXRB0m9rGx8n7JodIqftlLa5WhfqqaVtc=; b=VsGPOTwtF8qPGY+3/aWuhFOS6jXIrBPAM1OZzC0N/WGBLYbk0WZEX6puXzDpZ+2o33 2VlFRnHBEk9v80pefFk1wNCPOFXc00Z0pgeUrkLnDlwVPi555H6rq+F+6ZIItqN3r1Zq GmWqVBd8U1kxXAfntEb7nWBD19CET1BHnK+y3klMapj4wRPt8H7xey58CdI56FfXu3n+ K8ysfV5YVsn9g2PTSQlPY9oYa3ToJAgLSz9e7u/L0VRbExWyUnM+ifiGh+eoZyN578tz c1bXCNztALTi1sKcG2VO/abJPQm0M+rkW6mpEaiRhicnuSLpm47zJvyOKY7Tn9Y3ajk5 HE9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768139769; x=1768744569; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=fOv6EGsZbFYXRB0m9rGx8n7JodIqftlLa5WhfqqaVtc=; b=FnoVvq8rfx9HoPoANfxtm77t+DRmtL2Y5Gw0OpDCnhEu5N3RI5MaI8mGcZLDHaRQYQ 0qiCqn50VoF7jZa9GFSx9Av0QaUCEGV5BsNvaI6DlNIHaPxvA1HHszEzkNGqSgy25FKX bLs6oWhBSBGcQ+MPrEDEIcelv4CFZgL5rQr5McSahnXAqucQKnICmNw9O7Bg1XWCnBqc SfpuIhFAg9tLe9CHRuUALtWuFQKcNzA1xqhNnh0pmFjDc6z5MqmcIrlGx4ukQqXYafwn 0LzlI6Lak2fwIRFuMGFlfjaaFX8oriLMqpLKR3LXKhX74hhpAKdZ9tgGMr8VHeFkwjTE jfCw== X-Forwarded-Encrypted: i=1; AJvYcCWtKqLFN1s7goE/bjVkAJM8Y2tNGyxXnKgMx156xngvRh7HQdbVPsqBek0yulfU17fZhmSOe9/CM3a4rTM=@vger.kernel.org X-Gm-Message-State: AOJu0YxI9zSxiYIHPoAMdnRTkHjLZLrN83WcRu3GJXPkyFjNX+j4oWUt HRhdWQoBkqlaSVYJhhAg/jLuKaCKHVUJEsUZaFg4BB6lFyslMv4Q5SDC X-Gm-Gg: AY/fxX7GSSYA8rjOJgxKNIZDVCLG7XgGL3L1W+sLXyh3ZRtXV69NE1Egjxd5GUU3g8D stHFyNnBV37LAMef2rnp3KBQkyHoYu1xgUX3WEbaAK585P3+cnY7AaaUOML1vp9OPT++1bb1/re 8GCDqE92y13wUSG+gdtKziACDKOez4365pFG9pPt94mulHsjBGz3/+y+wzN7uRIgA6n+2VgQayC qLxcJPH7nYsPg8nPaNBXikqmAQjVl0NMoJlimTjxfAxPcD8dR16WS1d2TObvO2oqPMfQsVJdJoL fnSyRCBfctcw6JbVWgbcwC87j95pr5LHV2e3uoLEJbqKIeiFwIHVgSXXefqRM3IC3t/C8MGaFBS 15fbVEaTOYFikoBLL3bZ72zMjH7VnQxo6eti0bv0RduZATejaJajskykEVo1XwL2JXNwLhCx4fi uqoFcwKh5KZmEykPd5wAVMcOUaEd4puaeW9Wc= X-Google-Smtp-Source: AGHT+IEB1YKs1sBri/CwpT883LDcNuDwf7Q1SbSRf2vdPYouCmwfR4cxzcsipVBYtOx/jDlkTLMMPw== X-Received: by 2002:a17:90b:1b03:b0:343:e461:9022 with SMTP id 98e67ed59e1d1-34f68ca444bmr15338692a91.24.1768139768855; Sun, 11 Jan 2026 05:56:08 -0800 (PST) Received: from localhost.localdomain ([113.164.155.57]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-34f6b88d984sm5742345a91.3.2026.01.11.05.56.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Jan 2026 05:56:08 -0800 (PST) From: Nam Tran To: lee@kernel.org Cc: pavel@kernel.org, gregkh@linuxfoundation.org, rdunlap@infradead.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, Nam Tran Subject: [PATCH v21 3/3] docs: leds: Document TI LP5812 LED driver Date: Sun, 11 Jan 2026 20:55:19 +0700 Message-Id: <20260111135519.28112-4-trannamatk@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20260111135519.28112-1-trannamatk@gmail.com> References: <20260111135519.28112-1-trannamatk@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The driver provides sysfs interfaces to control and configure the LP5812 device and its LED channels. The documetation describes the chip's capabilities, sysfs interface, and usage examples. Signed-off-by: Nam Tran --- Documentation/leds/index.rst | 1 + Documentation/leds/leds-lp5812.rst | 50 ++++++++++++++++++++++++++++++ MAINTAINERS | 1 + 3 files changed, 52 insertions(+) create mode 100644 Documentation/leds/leds-lp5812.rst diff --git a/Documentation/leds/index.rst b/Documentation/leds/index.rst index 76fae171039c..bebf44004278 100644 --- a/Documentation/leds/index.rst +++ b/Documentation/leds/index.rst @@ -25,6 +25,7 @@ LEDs leds-lp5523 leds-lp5562 leds-lp55xx + leds-lp5812 leds-mlxcpld leds-mt6370-rgb leds-sc27xx diff --git a/Documentation/leds/leds-lp5812.rst b/Documentation/leds/leds-l= p5812.rst new file mode 100644 index 000000000000..c2a6368d5149 --- /dev/null +++ b/Documentation/leds/leds-lp5812.rst @@ -0,0 +1,50 @@ +.. SPDX-License-Identifier: GPL-2.0 + +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D +Kernel driver for lp5812 +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +* TI/National Semiconductor LP5812 LED Driver +* Datasheet: https://www.ti.com/product/LP5812#tech-docs + +Authors: Jared Zhou + +Description +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +The LP5812 is a 4x3 matrix LED driver with support for both manual and +autonomous animation control. This driver provides sysfs interfaces to +control and configure the LP5812 device and its LED channels. + +Sysfs Interface +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +This driver uses the standard multicolor LED class interfaces defined +in Documentation/ABI/testing/sysfs-class-led-multicolor.rst. + +Each LP5812 LED output appears under ``/sys/class/leds/`` with its +assigned label (for example ``LED_A``). + +The following attributes are exposed: + - multi_intensity: Per-channel RGB intensity control + - brightness: Standard brightness control (0-255) + +Autonomous Control Modes +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +The driver also supports autonomous control through pattern configuration +(e.g., direct, tcmscan, or mixscan modes) defined in the device tree. +When configured, the LP5812 can generate transitions and color effects +without CPU intervention. + +Refer to the device tree binding document for valid mode strings and +configuration examples. + +Example Usage +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +To control LED_A:: + # Set RGB intensity (R=3D50, G=3D50, B=3D50) + echo 50 50 50 > /sys/class/leds/LED_A/multi_intensity + # Set overall brightness to maximum + echo 255 > /sys/class/leds/LED_A/brightness diff --git a/MAINTAINERS b/MAINTAINERS index 65fca8dc34fb..584cf63aaacb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -25936,6 +25936,7 @@ M: Nam Tran L: linux-leds@vger.kernel.org S: Maintained F: Documentation/devicetree/bindings/leds/ti,lp5812.yaml +F: Documentation/leds/leds-lp5812.rst F: drivers/leds/rgb/Kconfig F: drivers/leds/rgb/Makefile F: drivers/leds/rgb/leds-lp5812.c --=20 2.25.1