From 8b936253e3dad69506cb47043dd6451a0a14cf22 Mon Sep 17 00:00:00 2001 From: Dylan Van Assche Date: Thu, 12 May 2022 07:44:39 +0200 Subject: [PATCH] arm64: dts: qcom: sdm845-shift-axolotl: Enable pmi9889 LPG LED Enables the RGB notification LED on the SHIFT 6mq (sdm845-shift-axolotl) with the Qualcomm Light Pulse Generator bindings by Bjorn Andersson [1]. Patches are merged in for-next branch of linux-leds. Tested these changes on the SHIFT 6mq. [1] https://git.kernel.org/pub/scm/linux/kernel/git/pavel/linux-leds.git/commit/?h=for-next&id=a8e53db46f19f67be6a26488aafb7d10c78e33bd Signed-off-by: Dylan Van Assche Reviewed-by: Alexander Martinz Tested-by: Alexander Martinz Tested-by: Caleb Connolly Reviewed-by: Caleb Connolly Signed-off-by: Bjorn Andersson Link: https://lore.kernel.org/r/20220512054439.13971-1-me@dylanvanassche.be --- .../boot/dts/qcom/sdm845-shift-axolotl.dts | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts b/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts index 43625a4498873..83261c9bb4f23 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts @@ -2,11 +2,13 @@ /* * Copyright (c) 2022, Alexander Martinz * Copyright (c) 2022, Caleb Connolly + * Copyright (c) 2022, Dylan Van Assche */ /dts-v1/; #include +#include #include #include "sdm845.dtsi" #include "pm8998.dtsi" @@ -529,6 +531,33 @@ }; }; +&pmi8998_lpg { + status = "okay"; + + multi-led { + color = ; + function = LED_FUNCTION_STATUS; + + #address-cells = <1>; + #size-cells = <0>; + + led@3 { + reg = <3>; + color = ; + }; + + led@4 { + reg = <4>; + color = ; + }; + + led@5 { + reg = <5>; + color = ; + }; + }; +}; + &qup_uart9_default { pinconf-rx { pins = "gpio5"; -- 2.30.2