Thread (14 messages) 14 messages, 5 authors, 2020-02-26

Re: [PATCH 3/4] ARM: dts: axp813: Add charger LED

From: Dan Murphy <hidden>
Date: 2020-02-25 13:02:15
Also in: linux-arm-kernel, linux-leds, lkml

Ondrej

On 2/23/20 7:14 AM, Ondrej Jirman wrote:
quoted hunk ↗ jump to hunk
PMIC supports charging status indication via a LED. Add support
for it.

Signed-off-by: Ondrej Jirman <redacted>
---
  arch/arm/boot/dts/axp81x.dtsi | 5 +++++
  1 file changed, 5 insertions(+)
diff --git a/arch/arm/boot/dts/axp81x.dtsi b/arch/arm/boot/dts/axp81x.dtsi
index 1dfeeceabf4c3..00b092f94433d 100644
--- a/arch/arm/boot/dts/axp81x.dtsi
+++ b/arch/arm/boot/dts/axp81x.dtsi
@@ -175,4 +175,9 @@ reg_drivevbus: drivevbus {
  	usb_power_supply: usb-power-supply {
  		compatible = "x-powers,axp813-usb-power-supply";
  	};
+
+	charger_led: charger-led {
+		compatible = "x-powers,axp813-charger-led";
+		status = "disabled";
As I commented before you need to add function and color to this node 
and read it from the driver.  Or you can add them to the over ride for 
the specific use case.

Another question is is this LED only used for charging or can it be 
multi purpose?

Dan

+	};
  };
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help