Re: [PATCH v4 09/12] arm64: dts: qcom: sdm845-lg-common: Add camera flash
From: Paul Sajna
Date: Wed Dec 03 2025 - 04:27:55 EST
linux-postmarketos-qcom-sdm845-6.16.7_p20251203010632-r0.apk
December 1, 2025 at 11:42 AM, "Konrad Dybcio" <konrad.dybcio@xxxxxxxxxxxxxxxx mailto:konrad.dybcio@xxxxxxxxxxxxxxxx?to=%22Konrad%20Dybcio%22%20%3Ckonrad.dybcio%40oss.qualcomm.com%3E > wrote:
>
> On 11/28/25 9:20 PM, Paul Sajna wrote:
>
> >
> > 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?
> >
> FWIW your downstream kernel sets up channels 0 and 1, here you only
> enabled 1. Taking a look at a picture of the phone, I only see a single
> LED on the back, so perhaps you're (over)driving a single power line?
>
> I'm not a milion percent sure, but I would assume the current draw
> *limiting* register applies to the sum of the current going through
> the three channels because there's only a single instance of it.
>
> Konrad
>
I tried setting up both, but only the one that was mapped as `led-sources = <2>` seemed to have any effect. Also it would confuse userspace flashlight apps if there were two I think. So I'll push v5 with just the one that does anything.