I did more testing on this, and the led only comes on if it's brightness is set to approx 150/255 or lower. In that case, should I set led-max-microamp to 60mA?
November 25, 2025 at 8:12 AM, "Paul Sajna" <[email protected] mailto:[email protected]?to=%22Paul%20Sajna%22%20%3Csajattack%40postmarketos.org%3E > wrote: > > Camera doesn't work yet (imx351), but we can use the flash as a flashlight. > > Reviewed-by: Konrad Dybcio <[email protected]> > Signed-off-by: Paul Sajna <[email protected]> > --- > arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi > b/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi > index 93b9a0246510..fa664b5120d2 100644 > --- a/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi > +++ b/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi > @@ -494,6 +494,19 @@ &pm8998_resin { > status = "okay"; > }; > > +&pmi8998_flash { > + status = "okay"; > + > + led-0 { > + function = LED_FUNCTION_FLASH; > + color = <LED_COLOR_ID_WHITE>; > + led-sources = <1>; > + led-max-microamp = <100000>; > + flash-max-microamp = <500000>; > + flash-max-timeout-us = <500000>; > + }; > +}; > + > &pmi8998_lpg { > status = "okay"; > > > -- > 2.52.0 >

