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

Commit 45f1be59 authored by Gustavo Solaira's avatar Gustavo Solaira Committed by Gerrit - the friendly Code Review server
Browse files

ARM: dts: msm: add gpio leds support for SKUT1



Add gpio leds device tree in SKUT1 device tree and
set the correct pinctrl configuration.

Change-Id: I8565a8b5e467f44d5632d2298745fb68f7e9f2e4
Signed-off-by: default avatarGustavo Solaira <gustavos@codeaurora.org>
parent 06f2f0c6
Loading
Loading
Loading
Loading
+30 −0
Original line number Diff line number Diff line
@@ -38,6 +38,36 @@
		pinctrl-0 = <&cdc_pdm_lines_act>;
		pinctrl-1 = <&cdc_pdm_lines_sus>;
	};

	gpio-leds {
		compatible = "gpio-leds";
		status = "okay";
		pinctrl-names = "default";
		pinctrl-0 = <&gpio_led_off>;

		red {
			gpios = <&msm_gpio 117 0>;
			label = "red";
			linux,default-trigger = "none";
			default-state = "off";
			retain-state-suspended;
		};

		green {
			gpios = <&msm_gpio 118 0>;
			label = "green";
			linux,default-trigger = "none";
			default-state = "off";
			retain-state-suspended;
		};
	};
};

&tlmm_pinmux {
	gpio_led_pins {
		qcom,pins = <&gp 117>, <&gp 118>;
		qcom,num-grp-pins = <2>;
	};
};

&mdss_mdp {