Skip to content

Commit fd93fc3

Browse files
strumtrarlag-linaro
authored andcommitted
dt-bindings: leds: lp5860: add enable-gpio
The VIO_EN pin on the lp5860 can either be connected to VIO power supply or GPIO. Add the enable-gpios pin to the binding documentation. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Acked-by: Conor Dooley <conor.dooley@microchip.com> Link: https://patch.msgid.link/20260217-v6-19-topic-ti-lp5860-enable-gpio-v1-1-f5e8edeb5d74@pengutronix.de Signed-off-by: Lee Jones <lee@kernel.org>
1 parent e68f95a commit fd93fc3

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Documentation/devicetree/bindings/leds/leds-lp5860.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ properties:
3333
'#size-cells':
3434
const: 0
3535

36+
enable-gpios:
37+
maxItems: 1
38+
description: |
39+
GPIO attached to the chip's enable pin (VIO_EN).
40+
3641
patternProperties:
3742
'^multi-led@[0-9a-f]+$':
3843
type: object
@@ -74,6 +79,7 @@ unevaluatedProperties: false
7479

7580
examples:
7681
- |
82+
#include <dt-bindings/gpio/gpio.h>
7783
#include <dt-bindings/leds/common.h>
7884
7985
spi {
@@ -83,6 +89,7 @@ examples:
8389
led-controller@0 {
8490
compatible = "ti,lp5860";
8591
reg = <0x0>;
92+
enable-gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
8693
#address-cells = <1>;
8794
#size-cells = <0>;
8895

0 commit comments

Comments
 (0)