[PATCH 0/2] dts: arm64: db820c: adds support to pmic pins

STALE3608d

5 messages, 3 authors, 2016-10-21 · open the first message on its own page

[PATCH 0/2] dts: arm64: db820c: adds support to pmic pins

From: Srinivas Kandagatla <hidden>
Date: 2016-09-16 17:41:57

Hi Andy/Linus W,

This patchset adds support to pm8994 gpios/mpps on db820c board.
DB820c board Low Speed expansion GPIO_F is connected to PM8994_GPIO5

Its better if we take this patchset from single tree, as dts patch has
dependency on the dt-bindings include file.

Without this patchset GPIO_F on LS expansion would be at 2.7v
instead of 1.8v.

Thanks,
srini

Srinivas Kandagatla (2):
  pinctrl: pm8994: add pad voltage regulator defines
  dts: arm64: db820c: add pmic pins specific dts file

 arch/arm64/boot/dts/qcom/apq8096-db820c-pmic-pins.dtsi | 15 +++++++++++++++
 arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi           |  2 ++
 include/dt-bindings/pinctrl/qcom,pmic-gpio.h           |  4 ++++
 include/dt-bindings/pinctrl/qcom,pmic-mpp.h            |  6 ++++++
 4 files changed, 27 insertions(+)
 create mode 100644 arch/arm64/boot/dts/qcom/apq8096-db820c-pmic-pins.dtsi

-- 
2.7.4

[PATCH 2/2] dts: arm64: db820c: add pmic pins specific dts file

From: Srinivas Kandagatla <hidden>
Date: 2016-09-16 17:42:12

This patch adds pmic specific dts which are configured specially
for db820c. One of such pin is GPIO_F on the Low Speed expansion
which has default output voltage of 2.7v. This patch fixes setup
for that pin to have an output voltage of 1.8v to comply with
96boards LS expansion specs.

Signed-off-by: Srinivas Kandagatla <redacted>
---
 arch/arm64/boot/dts/qcom/apq8096-db820c-pmic-pins.dtsi | 15 +++++++++++++++
 arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi           |  2 ++
 2 files changed, 17 insertions(+)
 create mode 100644 arch/arm64/boot/dts/qcom/apq8096-db820c-pmic-pins.dtsi
diff --git a/arch/arm64/boot/dts/qcom/apq8096-db820c-pmic-pins.dtsi b/arch/arm64/boot/dts/qcom/apq8096-db820c-pmic-pins.dtsi
new file mode 100644
index 0000000..0938191
--- /dev/null
+++ b/arch/arm64/boot/dts/qcom/apq8096-db820c-pmic-pins.dtsi
@@ -0,0 +1,15 @@
+
+#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
+&pm8994_gpios {
+
+	pinctrl-names = "default";
+	pinctrl-0 = <&ls_exp_gpio_f>;
+
+	ls_exp_gpio_f: pm8916_mpp4 {
+		pinconf {
+			pins = "gpio5";
+			output-low;
+			power-source = <PM8994_GPIO_S4>; // 1.8V
+		};
+	};
+};
diff --git a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi
index afb218c..422959b 100644
--- a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi
+++ b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi
@@ -12,7 +12,9 @@
  */
 
 #include "msm8996.dtsi"
+#include "pm8994.dtsi"
 #include "apq8096-db820c-pins.dtsi"
+#include "apq8096-db820c-pmic-pins.dtsi"
 
 / {
 	aliases {
-- 
2.7.4

[PATCH 1/2] pinctrl: pm8994: add pad voltage regulator defines

From: Srinivas Kandagatla <hidden>
Date: 2016-09-16 17:42:21

This patch adds defines for internal voltage regulators used
to switch voltage levels on gpio/mpp pads.

Signed-off-by: Srinivas Kandagatla <redacted>
---
 include/dt-bindings/pinctrl/qcom,pmic-gpio.h | 4 ++++
 include/dt-bindings/pinctrl/qcom,pmic-mpp.h  | 6 ++++++
 2 files changed, 10 insertions(+)
diff --git a/include/dt-bindings/pinctrl/qcom,pmic-gpio.h b/include/dt-bindings/pinctrl/qcom,pmic-gpio.h
index aafa76c..d33f17c 100644
--- a/include/dt-bindings/pinctrl/qcom,pmic-gpio.h
+++ b/include/dt-bindings/pinctrl/qcom,pmic-gpio.h
@@ -89,6 +89,10 @@
 #define PMA8084_GPIO_S4			2
 #define PMA8084_GPIO_L6			3
 
+#define PM8994_GPIO_VPH			0
+#define PM8994_GPIO_S4			2
+#define PM8994_GPIO_L12			3
+
 /* To be used with "function" */
 #define PMIC_GPIO_FUNC_NORMAL		"normal"
 #define PMIC_GPIO_FUNC_PAIRED		"paired"
diff --git a/include/dt-bindings/pinctrl/qcom,pmic-mpp.h b/include/dt-bindings/pinctrl/qcom,pmic-mpp.h
index a15c170..2e360d8f 100644
--- a/include/dt-bindings/pinctrl/qcom,pmic-mpp.h
+++ b/include/dt-bindings/pinctrl/qcom,pmic-mpp.h
@@ -65,6 +65,12 @@
 #define PMA8084_MPP_S4			2
 #define PMA8084_MPP_L6			3
 
+#define PM8994_MPP_VPH			0
+/* Only supported for MPP_05-MPP_08 */
+#define PM8994_MPP_L19			1
+#define PM8994_MPP_S4			2
+#define PM8994_MPP_L12			3
+
 /*
  * Analog Input - Set the source for analog input.
  * To be used with "qcom,amux-route" property
-- 
2.7.4

Re: [PATCH 1/2] pinctrl: pm8994: add pad voltage regulator defines

From: Linus Walleij <hidden>
Date: 2016-09-18 11:38:40

On Fri, Sep 16, 2016 at 7:41 PM, Srinivas Kandagatla
[off-list ref] wrote:
This patch adds defines for internal voltage regulators used
to switch voltage levels on gpio/mpp pads.

Signed-off-by: Srinivas Kandagatla <redacted>
Acked-by: Linus Walleij <redacted>

Andy can merge this with the rest of the stuff to the Qualcomm SoC tree.

Yours,
Linus Walleij

Re: [PATCH 1/2] pinctrl: pm8994: add pad voltage regulator defines

From: Andy Gross <hidden>
Date: 2016-10-21 22:39:22

On Sun, Sep 18, 2016 at 01:38:30PM +0200, Linus Walleij wrote:
On Fri, Sep 16, 2016 at 7:41 PM, Srinivas Kandagatla
[off-list ref] wrote:
quoted
This patch adds defines for internal voltage regulators used
to switch voltage levels on gpio/mpp pads.

Signed-off-by: Srinivas Kandagatla <redacted>
Acked-by: Linus Walleij <redacted>

Andy can merge this with the rest of the stuff to the Qualcomm SoC tree.
Yup.  Picked it up.  Thanks!


Andy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help