From ab8eb2a8297af9319d185f8e12e99295a18c2e05 Mon Sep 17 00:00:00 2001 From: Xenolphthalein <21215869+Xenolphthalein@users.noreply.github.com> Date: Thu, 3 Dec 2026 14:33:58 +0100 Subject: [PATCH] arm64: dts: qcom: sm8250-pico4-phoenix: the status LED The headset's status LED is the tri-colour LED on the PM8150L's LPG, channels 1 to 3 (red, green, blue), as the stock tree's pm8150l_rgb_led has it. Describe it as one multicolour LED with the status function, rgb:status in the LED class, keeping the state the bootloader left until user space sets it. The PM8150L comes in with its shared description, as the PM8150B does. --- .../boot/dts/qcom/sm8250-pico4-phoenix.dts | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250-pico4-phoenix.dts b/arch/arm64/boot/dts/qcom/sm8250-pico4-phoenix.dts index 7987a6ddae22..f36fec0a1b51 100644 --- a/arch/arm64/boot/dts/qcom/sm8250-pico4-phoenix.dts +++ b/arch/arm64/boot/dts/qcom/sm8250-pico4-phoenix.dts @@ -12,12 +12,15 @@ #include #include #include +#include #include #include #include "sm8250.dtsi" #include "pm8150.dtsi" /* PM8150B: the charger and fuel gauge's PMIC (its temperature alarm, ADC and GPIOs here). */ #include "pm8150b.dtsi" +/* PM8150L: the status LED on its LPG (and its temperature alarm, ADC and GPIOs). */ +#include "pm8150l.dtsi" / { model = "PICO 4 (phoenix)"; @@ -439,6 +442,38 @@ }; }; +/* + * The status LED: the tri-colour LED on the PM8150L's LPG channels 1 to 3 (red, green, blue), as the stock + * tree's pm8150l_rgb_led has it. A user-space service sets it as PICO OS does; until then it keeps what + * the bootloader left. + */ +&pm8150l_lpg { + status = "okay"; + + multi-led { + color = ; + function = LED_FUNCTION_STATUS; + default-state = "keep"; + #address-cells = <1>; + #size-cells = <0>; + + led@1 { + reg = <1>; + color = ; + }; + + led@2 { + reg = <2>; + color = ; + }; + + led@3 { + reg = <3>; + color = ; + }; + }; +}; + /* * The stock loader holds a bus vote from the compute DSP to its memory NoC while it starts * (master 154 to slave 10070, the path mainline names qnm_npu to qns_cdsp_mem_noc); without