From 9de1b2f8847741cfe006fac55e51b265326423e8 Mon Sep 17 00:00:00 2001 From: Kavya Nunna Date: Mon, 9 Nov 2020 21:23:44 +0530 Subject: [PATCH] ARM: dts: msm: Add pmd9650 gpio nodes for SDXNIGHTJAR Add pmd9650 nodes and include pmic devicetree files in target specific files. Change-Id: Ia19f577dc8a295dabd20ce4089dca553b9e881e8 --- qcom/sdxnightjar-pinctrl.dtsi | 28 ++++++++++++++++++++++++++++ qcom/sdxnightjar.dtsi | 3 +++ 2 files changed, 31 insertions(+) diff --git a/qcom/sdxnightjar-pinctrl.dtsi b/qcom/sdxnightjar-pinctrl.dtsi index 410f4f9b0700..fe045ec0167e 100644 --- a/qcom/sdxnightjar-pinctrl.dtsi +++ b/qcom/sdxnightjar-pinctrl.dtsi @@ -1,3 +1,5 @@ +#include + &soc { tlmm_pinmux: pinctrl@1000000 { compatible = "qcom,sdxnightjar-pinctrl"; @@ -1333,3 +1335,29 @@ }; }; }; + +&pmd9650_gpios { + gpio@c100 { /* GPIO 2 - VADC */ + /* GPIO should be left off, and in the high + * impedance state when the pin is used with the VADC + */ + pins = "gpio2"; + function = "normal"; + bias-high-impedance; /* DISABLE GPIO */ + }; + + gpio@c200 { /* GPIO 3 - LED */ + pins = "gpio3"; + function = "normal"; + bias-high-impedance; /* DISABLE GPIO */ + }; + + gpio@c400 { /* GPIO 5 - USB_ID */ + pins = "gpio5"; + function = "normal"; + input-enable; /* Digital input */ + bias-pull-up; + qcom,pull-up-strength = ; /* Pull up 1.5 uA */ + power-source = <1>; /* 1.8 V */ + }; +}; diff --git a/qcom/sdxnightjar.dtsi b/qcom/sdxnightjar.dtsi index ad15a0902055..622d46a7c381 100644 --- a/qcom/sdxnightjar.dtsi +++ b/qcom/sdxnightjar.dtsi @@ -426,4 +426,7 @@ }; }; +#include "pmd9650.dtsi" +#include "pmd9650-rpm-regulator.dtsi" +#include "sdxnightjar-regulator.dtsi" #include "sdxnightjar-pinctrl.dtsi"