Re: [PATCH] arm64: dts: qcom: msm8917-xiaomi-wingtech: enable flash LED
From: Konrad Dybcio
Date: Mon Sep 14 2026 - 04:47:52 EST
On 9/12/26 3:41 PM, Martin wrote:
> From: hemisputnik <hemisputnik@xxxxxxxxx>
>
> Add SGM3780 flash LED controller to msm8917-xiaomi-wingtech device tree.
[...]
> + flash-led-controller {
Please sort this entry alphabetically vs other nodes in the same scope
> + compatible = "sgmicro,sgm3780", "sgmicro,sgm3140";
> + enable-gpios = <&tlmm 93 GPIO_ACTIVE_HIGH>;
> + flash-gpios = <&tlmm 90 GPIO_ACTIVE_HIGH>;
> +
> + pinctrl-0 = <&flash_led_default>;
> + pinctrl-names = "default";
> +
> + led {
> + function = LED_FUNCTION_FLASH;
> + color = <LED_COLOR_ID_WHITE>;
> + };
> + };
> +
> chosen {
> #address-cells = <2>;
> #size-cells = <2>;
> @@ -306,6 +321,14 @@ tsp_int_rst_default: tsp-int-rst-default-state {
> drive-strength = <8>;
> bias-pull-up;
> };
> +
> + flash_led_default: flash-led-default-state {
> + pins = "gpio90", "gpio93";
> + function = "gpio";
> + drive-strength = <2>;
> + bias-disable;
> + output-high;
This essentially says "by default, if the OS doesn't do anything
with these pins via drivers, I want the flash to shine", which I
believe is rather undesirable.. let's drop the `output-high` line
Konrad