[PATCH v4 1/3] dt-bindings: leds: ti,lp5860: Document I2C interface
From: Peter LaDow via B4 Relay
Date: Thu Dec 03 2026 - 19:35:15 EST
From: Peter LaDow <pladow@xxxxxxxxx>
Document the I2C 7-bit page-zero base address convention (0x40, 0x44,
0x48, or 0x4c) and add an I2C example node to the TI LP5860 binding.
Signed-off-by: Peter LaDow <pladow@xxxxxxxxx>
---
.../devicetree/bindings/leds/leds-lp5860.yaml | 45 ++++++++++++++++++++++
1 file changed, 45 insertions(+)
diff --git a/Documentation/devicetree/bindings/leds/leds-lp5860.yaml b/Documentation/devicetree/bindings/leds/leds-lp5860.yaml
index 710fec3738ed..8a204c4717af 100644
--- a/Documentation/devicetree/bindings/leds/leds-lp5860.yaml
+++ b/Documentation/devicetree/bindings/leds/leds-lp5860.yaml
@@ -26,6 +26,11 @@ properties:
reg:
maxItems: 1
+ description: |
+ For SPI, the chip select number.
+ For I2C, the 7-bit page-zero base address (0x40, 0x44, 0x48, or 0x4c)
+ selected by ADDR1 and ADDR0. The device consumes four consecutive 7-bit
+ addresses (base through base + 3) to access its 10-bit register space.
'#address-cells':
const: 1
@@ -89,6 +94,46 @@ examples:
led-controller@0 {
compatible = "ti,lp5860";
reg = <0x0>;
+ spi-max-frequency = <12000000>;
+ enable-gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ multi-led@0 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ reg = <0x0>;
+ color = <LED_COLOR_ID_RGB>;
+
+ led@0 {
+ reg = <0x0>;
+ color = <LED_COLOR_ID_RED>;
+ };
+
+ led@1 {
+ reg = <0x1>;
+ color = <LED_COLOR_ID_GREEN>;
+ };
+
+ led@2 {
+ reg = <0x2>;
+ color = <LED_COLOR_ID_BLUE>;
+ };
+ };
+ };
+ };
+
+ - |
+ #include <dt-bindings/gpio/gpio.h>
+ #include <dt-bindings/leds/common.h>
+
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ led-controller@40 {
+ compatible = "ti,lp5860";
+ reg = <0x40>;
enable-gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
#address-cells = <1>;
#size-cells = <0>;
--
2.43.0