From nobody Sun Feb 8 17:37:30 2026 Received: from mail-pl1-f194.google.com (mail-pl1-f194.google.com [209.85.214.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 6636A221F1C for ; Sun, 21 Dec 2025 04:20:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.194 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766290846; cv=none; b=aW9mRTjtq+1kTMNYhIp8dH7M1chRwh9JkVGA2SGbbrAIjM13pTV5pLVuv7N8pks3d2Djz6bnZ+vwhkv2EEuts4tIbhhjQmZEu2cTHHF/jcUQtl1cfot7tdexhvUYcOPhb6r74NJq5u7ObXAz6mffe3A5x00sTW20yUo9aw19uJQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766290846; c=relaxed/simple; bh=p32qd1CMtpZrvOqiOyNxVvmMRWtTmW3d9z9hTfsYpGw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Ta6bC/lsA5qfb4G3cx0VmeYCa2qHhI/VbBA1dOV5Uxyi+LuR8sB49zC0FFd0XOO4LUq6CBQUiGv1VZHC/J8fAPLonVM00kqXTenwP24JcGgkfxaJwbD3Fzl1AHyO8x4buJnYD7IL0+R39fb6cscBl3rkYYlf/YWFwjCvCT65mg8= 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=eQhNzP2h; arc=none smtp.client-ip=209.85.214.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="eQhNzP2h" Received: by mail-pl1-f194.google.com with SMTP id d9443c01a7336-2a0833b5aeeso40796945ad.1 for ; Sat, 20 Dec 2025 20:20:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1766290842; x=1766895642; 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=eQhNzP2hyJPrrXzQHti/TlHxYQ7rh820FC1uSKeiaxBMTqW84YClOkDOgmygSLcyJ4 SD7T+3YXTNzDJwuQBzzlnYy8OL4jZY2C3Bd6dYXK2n2fz+GlvKzy+3xFnnGZhuthLJ0O 7mFdd67OeJL9rCg1Ovina79UX447bw20MpLPeOChQ5DktvBIcGRC10lCKOOhLIYZtSPc xEo6dyOsKpOR12doH04Z/OIdjjwvfv8glw1cidp4j//+3R1egb/W5ZJR9wENagxRKmf+ FgMyE/3ErvPTbrLXLncnHzR/cMN+DW6Sp4Hu8CsA+CXpHz2aaDel++dpaRcTT+mbuz5e WJzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766290842; x=1766895642; 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=YpZx6wPvtvEH0HC4TV556Zxho1FsJtGa3JzaICW5zS0Igzjt/1QVw5TecVcvakuLkg Pehg+qbyQjwtZX2KzT1y21ZmxwdXAsJolG/8WOZvHxDQmndII6Uxu7N7idw/+KgQiXik Rl6kkg0GOl4DfQLNjux4eOF9uciegXQoa/0aim3OtZM2t9Nfu3HHy8MpTMSI6NidD2mQ P7ggELIx9wU6ccssxNSlZ7R5P4OH2y6UyY3X3LSet0ANZYxZ09dx7dXNixrH2jnIGmPa yfno4pwh5pjQmBnT3hURcFxDCQDRVQr8QFRWu0XAoDD6/xoNvjFYkjYHyEjmWzkUeGzT K+MQ== X-Forwarded-Encrypted: i=1; AJvYcCUDu0FelMnD1AfPO2RZ3NZxsQKIAFOV4PHtfcmzibNFqiKI48ilhXOspXspBmSfpHTjlsbJ85kYBcpTK8c=@vger.kernel.org X-Gm-Message-State: AOJu0YyHIp7jlQ+0/X9jX/R+z1FPVWLRRuUrUiCGrUB8jh3Z/9JRrS6M JYOyiePBjFO6VmhWkPpfF8GJxUs0+rr3EHUAtnUgZBzuxpbdVa74ItIW X-Gm-Gg: AY/fxX7jPiiTqPl0eb+l+dck2YEQr0wrFnN65vFdsFDDgYOavXbgA3O0Jovx7rEcg+o SudAB9sbYVvmtvmIUko5/rHvufnYQ5W3hqhs16DYWcVrHkUcIyZblCMPNJmz+KbEyVZvHVi1QQS 9jUjLxk6D5UYmv4J2kgYIm9MHT0dE2wNMxSuOjEKqlcvqYvctrj1jpZHuiLCrcZf61i9riQTxsS OBNPdfBcuCvtxKhhgIu3aF9+n7Ir7aXlg+JwIM+eNYEquWYa2qG5YZhLNrUmEmQK0ln4EdCX0hp o/vKGdDbVcN7sIgss6PrZht847hIK8UiSRfH74znTHTaLmgzl2nyPpb8I6Jz2gHZUkb4AUm74mA ev+LA93YOPsW816yT5negQeBhP+7Ect8u6BZ3l7yS0jcDuxyn0YDw6twappYO3cZ3IMGWwp+mKM z2WbcFA3IAF+wMRHfXAEaeoqY= X-Google-Smtp-Source: AGHT+IGmGZSCNhEhHjUIS60wSnhLvOSqRgduWOyCEsTNRSYTC/0ddkkGHZQMcpHHjFAEheFEk433nw== X-Received: by 2002:a17:903:2342:b0:2a0:e5cd:80a1 with SMTP id d9443c01a7336-2a2f2a34fa1mr71333975ad.41.1766290842511; Sat, 20 Dec 2025 20:20:42 -0800 (PST) Received: from localhost.localdomain ([14.255.43.222]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2a2f3d4cb90sm62319245ad.51.2025.12.20.20.20.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Dec 2025 20:20:42 -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 v20 3/3] docs: leds: Document TI LP5812 LED driver Date: Sun, 21 Dec 2025 11:19:50 +0700 Message-Id: <20251221041950.4631-4-trannamatk@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20251221041950.4631-1-trannamatk@gmail.com> References: <20251221041950.4631-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