On 9/29/25 7:05 AM, Paul Sajna wrote:
> So it can be used as a flashlight
> 
> 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 
> a8c8706f2057d36d5ef4130f11d9ad417f93d575..f309e6ebc075a691c7a522238b4a93ba9e63f3c0
>  100644
> --- a/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
> @@ -509,6 +509,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 = <850000>;
> +             flash-max-microamp = <850000>;

Allowing the same current for flash (brief on/off for night photos)
and LED (flashlight which you normally toggle through quick settings)
sounds no less than suspicious

Konrad

> +             flash-max-timeout-us = <500000>;
> +     };
> +};
> +
>  &pmi8998_lpg {
>       status = "okay";
>  
> 

Reply via email to