[PATCH v6 2/4] dt-bindings: leds: ti,lp5860: Document I2C interface
From: Peter LaDow via B4 Relay
Date: Fri Dec 04 2026 - 10:15:36 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 | 44 ++++++++++++++++++++++
1 file changed, 44 insertions(+)
diff --git a/Documentation/devicetree/bindings/leds/leds-lp5860.yaml b/Documentation/devicetree/bindings/leds/leds-lp5860.yaml
index 710fec3738ed..a7bc59304a44 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
@@ -116,3 +121,42 @@ examples:
};
};
};
+
+ - |
+ #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>;
+
+ 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>;
+ };
+ };
+ };
+ };
--
2.43.0