From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (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 0F0ED20B7E1 for ; Sun, 23 Nov 2025 19:11:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763925074; cv=none; b=qGovxTCn3de3V7tiESZgthopaODiIQbk1wtg5gCB0PTxc34Grj7vFTNFy30ZuJRtu/0mfa+GGmS1WXPh149jnX/NKcXL19AdA60rNptSd9QXPqJl/qPS8k+jISMVQPF/dGFjADAJt5DtUPyH4aWM8tJEkx4WP0SAw1QmlDQ/hk4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763925074; c=relaxed/simple; bh=LN6U1JVPb9+1eLo7g3FdtdqGnUAJDli/a5RS4lOyf10=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=dp08s+BR+susy7Ofw3LBt9u5FKSV9SX2xc9I8Xdu36PBZ0/27tOUSy78izg25vsNV1sjI6FArnVslQbdyDrHWDifB4Q21O6Q0ByVhdc+0wpvgrdiQwEqkvrVRcDwLrbJnb7zgYEPI1lwpFFkCrFf4SFOvu0z5IDy+WopxvnSNMY= 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=iOMdDLE8; arc=none smtp.client-ip=209.85.214.175 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="iOMdDLE8" Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-29812589890so42957675ad.3 for ; Sun, 23 Nov 2025 11:11:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763925072; x=1764529872; 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=tmHa/LXJpUTjBGHVWC+hnuQBMTBsWIpO679JoMtrn84=; b=iOMdDLE8fAGVk7tfLpvay21h0WC/XTevAG/C4o2Du14TKamob8BiZP1EcortPLiQtE pG9d3iOmwS4pGgBzQr1QWkCAZRnT1+0PawgyIg5FA4dxE3FEorqmHk8pkvQnz7wEn8oa utSH2Vt2HChPdVu6R9FShXEzmoKNyf9QXoaCGyPmQS3iDKUnBPtjgy+pu9th/rQTnoUb scXsBxzTIMaUIRPm3k4stA2T3Loj8c3uZHFUZAyIE61Db8x0ZnZNL/Fmk9prkXcgI15N d5Srbt39IUpC/dLEhJlZVNxmjyHMNYgsv2SpJYgczzVqzGbkYzdAwfR5/4svLM5z+46N /n6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763925072; x=1764529872; 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=tmHa/LXJpUTjBGHVWC+hnuQBMTBsWIpO679JoMtrn84=; b=j74FMLGmIKgabKnj9FNOyAlkbCDp60KbBdRzN9IFzNCPdqoHo+3rjrL7w/EoLm6q57 3NjQfyDX4OvqdD8eVPz7RaK7Slg9SdAhDHUlvrNSan/UGHeYpX4vBI2pyTPlWRqeIqPE sUCP9PuNXbdFNhd0tX9UYJKVZFxfMoBggcHM8oNUgjxhnme411EVhMvPjXSgBUIL4GSk 6Gui6ezc7zxd2tF3rpEnjV68eYExCyedC2JCUco5PTVL4hYm9aOtws+u3CLQUQcs+ixQ 5Rm4SwJq6RfNI8ii4JyCPRGlU/JUxPUacIJWVKz33sHwj5AjTdc6CyGQUFU4SIFot+zQ PzlQ== X-Forwarded-Encrypted: i=1; AJvYcCX4vXACOvchhZ/WeDJjIDbvsKWbx3HfM06rUw7BhwbUFLM5ME/0MFXRAW+HBcfnotp8CVlIm9lWS3k=@vger.kernel.org X-Gm-Message-State: AOJu0YybauYngfUwtdc986cWd48/QUDfihwb+bsAoxKFLAm5Rr1TdaRA L5/EYYIFb1tioGtUOp+kBPwnKICb71dp7QTshEJN0lcvDWlIKNo5XOuI X-Gm-Gg: ASbGnct7K3QCLDT10eYqc+7XWLQ/XChjuliG6VnPL4oQnW/z/orR3VFd3DWhHCjS0BB wUQGEMZeVEsqZodp2fl1iVS3Z6rW4hHxtaLu+yUP9BYeXE8MDLODmwMN3D0EuYpG0B+ofblpL6O y1jY8A+uJ9bvCW2aAyiI12MmKYbsI1ur85COGd4VFkgFcBAwM7ax5jR0am0kFMhknS2k6IRVyri WldGGMAgutrQ4ZLlK+pOAkH6YDQjS9SjloGa9bhKFVRiQNVIeH7rvsws9opoIlQrro2Fmy6DTKZ KHweCfK2vkOS4chal9xJdwUtYMNj/zPtdu/pHYNgSVXOq4kYd2f6Z3jpMjNHM/Lc+U+9fwGlnxh wwEHl38b89xigPrsH0JRgwzUJ71wwP5UVNfvDRAmAg+nVXn7MfEXy7V08WhEXqqy8KDIF8RmI9j gc8DA4BW02khZUSy/QWXZiCA== X-Google-Smtp-Source: AGHT+IHPFoSxQZoigWdf+doSXm3n1IZ6Vj/SJ4gDleYOYUskKuzp0oVLKr/lcnHOJRJnx6TXf+8YNg== X-Received: by 2002:a17:903:38c4:b0:297:df17:54cd with SMTP id d9443c01a7336-29b6becd454mr118444255ad.27.1763925072582; Sun, 23 Nov 2025 11:11:12 -0800 (PST) Received: from DESKTOP-P76LG1N.lan ([42.116.199.188]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-29b5b13e720sm109542655ad.42.2025.11.23.11.11.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Nov 2025 11:11:12 -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 v18 3/3] docs: leds: Document TI LP5812 LED driver Date: Mon, 24 Nov 2025 02:10:42 +0700 Message-Id: <20251123191042.116917-4-trannamatk@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20251123191042.116917-1-trannamatk@gmail.com> References: <20251123191042.116917-1-trannamatk@gmail.com> Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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-lp5812.rst new file mode 100644 index 000000000000..4c22d9a79d14 --- /dev/null +++ b/Documentation/leds/leds-lp5812.rst @@ -0,0 +1,50 @@ +.. SPDX-License-Identifier: GPL-2.0 + +======================== +Kernel driver for lp5812 +======================== + +* TI/National Semiconductor LP5812 LED Driver +* Datasheet: https://www.ti.com/product/LP5812#tech-docs + +Authors: Jared Zhou + +Description +=========== + +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 +=============== + +This driver uses the standard multicolor LED class interfaces defined +in `Documentation/ABI/testing/sysfs-class-led-multicolor`. + +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 +======================== + +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 +============= + +To control LED_A:: + # Set RGB intensity (R=50, G=50, B=50) + 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 9a7ae1794328..f696e2299a43 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -25453,6 +25453,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 -- 2.25.1