ARM: dts: msm: Add pinctrl configuration for flash LED3 in sdm845 CDP/MTP
Flash and torch LED devices that uses LED3 channel use GPIO21 to
enable the LED on SDM845 CDP and MTP. Add pinctrl configuration
needed for it.
Change-Id: Idc2dc5740fbf46a224cba3ad821d1ec24e4da22a
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
diff --git a/arch/arm64/boot/dts/qcom/sdm845-cdp.dtsi b/arch/arm64/boot/dts/qcom/sdm845-cdp.dtsi
index 06f620b..cd324e6 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-cdp.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm845-cdp.dtsi
@@ -118,3 +118,15 @@
status = "ok";
};
+
+&pmi8998_flash2 {
+ pinctrl-names = "led_enable", "led_disable";
+ pinctrl-0 = <&flash_led3_front_en>;
+ pinctrl-1 = <&flash_led3_front_dis>;
+};
+
+&pmi8998_torch2 {
+ pinctrl-names = "led_enable", "led_disable";
+ pinctrl-0 = <&flash_led3_front_en>;
+ pinctrl-1 = <&flash_led3_front_dis>;
+};