Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions arch/arm64/boot/dts/qcom/sm8250-pico4-phoenix.dts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,15 @@
#include <dt-bindings/arm/qcom,ids.h>
#include <dt-bindings/firmware/qcom,scm.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
#include <dt-bindings/usb/pd.h>
#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)";
Expand Down Expand Up @@ -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 = <LED_COLOR_ID_RGB>;
function = LED_FUNCTION_STATUS;
default-state = "keep";
#address-cells = <1>;
#size-cells = <0>;

led@1 {
reg = <1>;
color = <LED_COLOR_ID_RED>;
};

led@2 {
reg = <2>;
color = <LED_COLOR_ID_GREEN>;
};

led@3 {
reg = <3>;
color = <LED_COLOR_ID_BLUE>;
};
};
};

/*
* 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
Expand Down
Loading