From nobody Mon Feb 9 13:02:50 2026 Received: from mail-pl1-f196.google.com (mail-pl1-f196.google.com [209.85.214.196]) (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 2BBC73B8BDA for ; Thu, 15 Jan 2026 16:10:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.196 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768493441; cv=none; b=JTRT7/tnR/bOcq2yTkRzj+DK47LXWopYmPPI0NUGad0Up05vCgz1JJlx1Zc7HkIvSRCswyY7BUODpsaTnuDFSooolpZMppChWkkfS5wN0XxYKaguTTUVg/rPwFA25bnliMsEsaDVtsIcFUX4t9/2nAvmkrOwY8dFvF4EtlGqzIc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768493441; c=relaxed/simple; bh=p32qd1CMtpZrvOqiOyNxVvmMRWtTmW3d9z9hTfsYpGw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=RBtNIlDx3lFANyvFdzLlDPaX6eCKN++iOwMzONsWo2HW+aZWsJfpPOQTnYyQ5dmsSsST0cEzgk60qSHmOqdUnO1D34b7tYOMMG1UFnaHJ5r8bGoMmGwZ2XCO07mlulPSyMd9YPrie8dTW+Gy2WXlnw7899siYuUmDVicAaXBYWo= 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=CkhfzMjM; arc=none smtp.client-ip=209.85.214.196 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="CkhfzMjM" Received: by mail-pl1-f196.google.com with SMTP id d9443c01a7336-2a0bae9aca3so7436285ad.3 for ; Thu, 15 Jan 2026 08:10:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768493437; x=1769098237; 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=XnP7OKw91qUHBafMZ5I1kAG02nR+3IKvTt8SsYgVCHw=; b=CkhfzMjMsWhs3clmN5O8bQkazXIN7Co4BUqv6MqR0ImsS7dq+uLesuzhzU3aKql3wm islDtKmjR7epvIZG5+i5148WPdyeqFAX5aJvlUJIhVxRzWM0zcjg6tQLtW39/bZYTiiO MnyTAgYu4Auyj9VX/uEb1bvkD8KxdOk/lu6MNyysOgMy94BLRQAAucn4QC1yfomFNww3 DoTKk8tBgpFeLe+Y4mD5W14coRPCQQQ6FXhcs/0/SdpantSlfV0SsyUM9wRZK/TPik/c 19M3vIlGHtjnJtDpv3/M3lDS1yIEMGvI8yTMuxORyVNNm/xobMEulryNIufHOnNGr6HB SN+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768493437; x=1769098237; 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=XnP7OKw91qUHBafMZ5I1kAG02nR+3IKvTt8SsYgVCHw=; b=Tr4LH20jcmK3I1cLgFGZNf5IUAAkNPX6obXjEVWxxjjOfIz48ZgI55KNQVIVBxnSPu F0P4FUXRkaWvpmaAfNb+f97BHJ+kpECBMDKgzkAAmQYU9878SLWDm+oBkOij85EOuqIH LdoE5rI1CwNV4yj2R5QD7OAR5uUqAhoLg7etJdflzkHGIuP8rp2yEAT1JEt5i0jkUAFV mxC6tZOUl3E01Lvi5yd2PqvyVFI7SXLpa83aguNfjD2qvPQVXIK1DPougE6xeGPGOeDg T2BeM0fRHZL5raU32KDOnNmYc/93TZIdLnzlF3jgGyBmGT2P5yeYkAudZqiEnm1ZzFSD s7tg== X-Forwarded-Encrypted: i=1; AJvYcCXcU+44ECMRbbp6Qfh03ngkQIM7+3iLyo7URJ7WJnIXmaJSDjOoMPSojyDDr8NAs+NVwWt/tJyPmoWQOoE=@vger.kernel.org X-Gm-Message-State: AOJu0Yz5yD17lz5o7nAKAwhAM/BeRIuVzT0c6Y8TQELYQHBlmsueF73s tMMyudJA9mwy/0jTzN3AAQ3Lav6s7iLm9LcX+lzHkB/zuBTPo97p/evT X-Gm-Gg: AY/fxX5B5/+xZm6tUMaN80IAGUZdr+N2Ac8JVRlVRAr7Rx5VF3E0mH0H1HxtktGPM1L G/oPb7DqX5PcGMdt5xGzcpE1RMabqC7D01Kn6ImlhIN69/p75G4HVWj0tedS+757z7YRd4NaS0I WUyDPn3kABsY4BkST9s+sZFFoSiqUBnV8tBslnNWSN6h516u2W02W5qa12BaRcYeSZgYFsu+pMe ofIHHouNLZwv7GFI9XbkRRqZw0lFkEFUemFvot/Mx+LdnkCdPgtx5o7iDUHX4jpLKnStL1C96z6 XGRkTiMc40m1xSFP6XsXeN9seBvWUqhH/l3eSlU5aGV47RVjxCHFfLKg6ftNB1hLjE1SQwmXqV6 Z0FV66WamudHJlFDQoNlTAxjQ3hOZHw5p0RB+ACaGRNAM1krBdUknuD7AHSOEy787fGYS4Iyz+k VVN940SFJ+lx3Xc72AkQvMbw== X-Received: by 2002:a17:902:f544:b0:2a0:ba6d:d0ff with SMTP id d9443c01a7336-2a717533f7fmr380715ad.16.1768493437015; Thu, 15 Jan 2026 08:10:37 -0800 (PST) Received: from DESKTOP-P76LG1N.lan ([42.114.215.169]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2a3e3cb2d88sm258523195ad.52.2026.01.15.08.10.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jan 2026 08:10:36 -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 v22 2/2] docs: leds: Document TI LP5812 LED driver Date: Thu, 15 Jan 2026 23:10:13 +0700 Message-Id: <20260115161013.40706-3-trannamatk@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20260115161013.40706-1-trannamatk@gmail.com> References: <20260115161013.40706-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 8d840b34c924..394165660e67 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -25841,6 +25841,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