Skip to content

Commit b49722c

Browse files
System64fumoandersson
authored andcommitted
arm64: dts: qcom: sdm845-lg-common: Add LEDs
Add the multicolor status LED in the phone's notch. Signed-off-by: Amir Dahan <system64fumo@tuta.io> Reviewed-by: Pavel Machek <pavel@ucw.cz> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Signed-off-by: Paul Sajna <sajattack@postmarketos.org> Link: https://lore.kernel.org/r/20260331-judyln-dts-v7-8-87217b15fefb@postmarketos.org Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent 995c258 commit b49722c

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
*/
77

88
#include <dt-bindings/gpio/gpio.h>
9+
#include <dt-bindings/leds/common.h>
910
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
1011
#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
1112

@@ -497,6 +498,33 @@
497498
status = "okay";
498499
};
499500

501+
&pmi8998_lpg {
502+
status = "okay";
503+
504+
multi-led {
505+
color = <LED_COLOR_ID_RGB>;
506+
function = LED_FUNCTION_STATUS;
507+
508+
#address-cells = <1>;
509+
#size-cells = <0>;
510+
511+
led@3 {
512+
reg = <3>;
513+
color = <LED_COLOR_ID_BLUE>;
514+
};
515+
516+
led@4 {
517+
reg = <4>;
518+
color = <LED_COLOR_ID_GREEN>;
519+
};
520+
521+
led@5 {
522+
reg = <5>;
523+
color = <LED_COLOR_ID_RED>;
524+
};
525+
};
526+
};
527+
500528
&qupv3_id_0 {
501529
status = "okay";
502530
};

0 commit comments

Comments
 (0)