Commit 599a259a authored by Lin, Meng-Bo's avatar Lin, Meng-Bo Committed by Bjorn Andersson
Browse files

arm64: dts: qcom: msm8916-gplus-fl8005a: Add flash LED



FL8005A uses Qualcomm GPIO flash LEDs which is compatible with
SGM3140 Flash LED driver. Add it to the device tree.

Signed-off-by: default avatarLin, Meng-Bo <linmengbo0689@protonmail.com>
Reviewed-by: default avatarKonrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: default avatarBjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230107133235.139947-1-linmengbo0689@protonmail.com
parent 143b4b84
Loading
Loading
Loading
Loading
+23 −0
Original line number Diff line number Diff line
@@ -21,6 +21,22 @@ chosen {
		stdout-path = "serial0";
	};

	flash-led-controller {
		/* Actually qcom,leds-gpio-flash */
		compatible = "sgmicro,sgm3140";
		enable-gpios = <&msmgpio 31 GPIO_ACTIVE_HIGH>;
		flash-gpios = <&msmgpio 32 GPIO_ACTIVE_HIGH>;

		pinctrl-0 = <&camera_flash_default>;
		pinctrl-names = "default";

		flash_led: led {
			function = LED_FUNCTION_FLASH;
			color = <LED_COLOR_ID_WHITE>;
			flash-max-timeout-us = <250000>;
		};
	};

	gpio-keys {
		compatible = "gpio-keys";

@@ -237,6 +253,13 @@ l18 {
};

&msmgpio {
	camera_flash_default: camera-flash-default-state {
		pins = "gpio31", "gpio32";
		function = "gpio";
		drive-strength = <2>;
		bias-disable;
	};

	gpio_keys_default: gpio-keys-default-state {
		pins = "gpio107";
		function = "gpio";