Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5f31fc59 authored by Xu Kai's avatar Xu Kai Committed by Gerrit - the friendly Code Review server
Browse files

ARM: dts: msm: enable simple led flash controlled by gpio for QRD SKUAB



This is a low cost led which is driven by system power, and use a
transistor controlled by pmic gpio 1 to gate its on/off state. This
is also a single mode flash led with no difference between flash
mode and torch mode. Enable this led in device tree.

CRs-fixed: 561538
Change-Id: I72a188d4dafbf600090861e77a84dac84f33e7b3
Signed-off-by: default avatarXu Kai <kaixu@codeaurora.org>
parent aace6ab1
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -13,6 +13,16 @@
/include/ "msm8610-qrd.dtsi"

&soc {
	gpio-leds {
		compatible = "gpio-leds";
		status = "disabled";

		gpio_flash: gpio-flash {
			gpios = <&pm8110_gpios 1 0>;
			label = "gpio-flash";
			linux,default-trigger = "gpio_flash_trigger";
		};
	};
    sound {
        qcom,model = "msm8x10-skuab-snd-card";

+13 −0
Original line number Diff line number Diff line
@@ -21,3 +21,16 @@
	compatible = "qcom,msm8610-qrd", "qcom,msm8610", "qcom,qrd";
	qcom,board-id = <0x2000b 3>;
};

&soc {
	gpio-leds {
		status = "ok";
	};
};

&pm8110_gpios {
	gpio@c000 { /* GPIO 1 */
		reg = <0xc000 0x100>;
		qcom,pin-num = <1>;
	};
};