linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] dts: arm64: db820c: adds support to pmic pins
@ 2016-09-16 17:41 Srinivas Kandagatla
  2016-09-16 17:41 ` [PATCH 1/2] pinctrl: pm8994: add pad voltage regulator defines Srinivas Kandagatla
  2016-09-16 17:41 ` [PATCH 2/2] dts: arm64: db820c: add pmic pins specific dts file Srinivas Kandagatla
  0 siblings, 2 replies; 5+ messages in thread
From: Srinivas Kandagatla @ 2016-09-16 17:41 UTC (permalink / raw)
  To: Andy Gross
  Cc: linux-arm-msm, linux-soc, devicetree, linux-arm-kernel,
	linux-kernel, linus.walleij, Srinivas Kandagatla

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/2] pinctrl: pm8994: add pad voltage regulator defines
  2016-09-16 17:41 [PATCH 0/2] dts: arm64: db820c: adds support to pmic pins Srinivas Kandagatla
@ 2016-09-16 17:41 ` Srinivas Kandagatla
  2016-09-18 11:38   ` Linus Walleij
  2016-09-16 17:41 ` [PATCH 2/2] dts: arm64: db820c: add pmic pins specific dts file Srinivas Kandagatla
  1 sibling, 1 reply; 5+ messages in thread
From: Srinivas Kandagatla @ 2016-09-16 17:41 UTC (permalink / raw)
  To: Andy Gross
  Cc: linux-arm-msm, linux-soc, devicetree, linux-arm-kernel,
	linux-kernel, linus.walleij, Srinivas Kandagatla

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

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
---
 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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/2] dts: arm64: db820c: add pmic pins specific dts file
  2016-09-16 17:41 [PATCH 0/2] dts: arm64: db820c: adds support to pmic pins Srinivas Kandagatla
  2016-09-16 17:41 ` [PATCH 1/2] pinctrl: pm8994: add pad voltage regulator defines Srinivas Kandagatla
@ 2016-09-16 17:41 ` Srinivas Kandagatla
  1 sibling, 0 replies; 5+ messages in thread
From: Srinivas Kandagatla @ 2016-09-16 17:41 UTC (permalink / raw)
  To: Andy Gross
  Cc: linux-arm-msm, linux-soc, devicetree, linux-arm-kernel,
	linux-kernel, linus.walleij, Srinivas Kandagatla

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 <srinivas.kandagatla@linaro.org>
---
 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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] pinctrl: pm8994: add pad voltage regulator defines
  2016-09-16 17:41 ` [PATCH 1/2] pinctrl: pm8994: add pad voltage regulator defines Srinivas Kandagatla
@ 2016-09-18 11:38   ` Linus Walleij
  2016-10-21 22:39     ` Andy Gross
  0 siblings, 1 reply; 5+ messages in thread
From: Linus Walleij @ 2016-09-18 11:38 UTC (permalink / raw)
  To: Srinivas Kandagatla
  Cc: Andy Gross, linux-arm-msm, linux-soc, devicetree,
	linux-arm-kernel, linux-kernel

On Fri, Sep 16, 2016 at 7:41 PM, Srinivas Kandagatla
<srinivas.kandagatla@linaro.org> wrote:

> This patch adds defines for internal voltage regulators used
> to switch voltage levels on gpio/mpp pads.
>
> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>

Acked-by: Linus Walleij <linus.walleij@linaro.org>

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

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] pinctrl: pm8994: add pad voltage regulator defines
  2016-09-18 11:38   ` Linus Walleij
@ 2016-10-21 22:39     ` Andy Gross
  0 siblings, 0 replies; 5+ messages in thread
From: Andy Gross @ 2016-10-21 22:39 UTC (permalink / raw)
  To: Linus Walleij
  Cc: Srinivas Kandagatla, linux-arm-msm, linux-soc, devicetree,
	linux-arm-kernel, linux-kernel

On Sun, Sep 18, 2016 at 01:38:30PM +0200, Linus Walleij wrote:
> On Fri, Sep 16, 2016 at 7:41 PM, Srinivas Kandagatla
> <srinivas.kandagatla@linaro.org> wrote:
> 
> > This patch adds defines for internal voltage regulators used
> > to switch voltage levels on gpio/mpp pads.
> >
> > Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
> 
> Acked-by: Linus Walleij <linus.walleij@linaro.org>
> 
> Andy can merge this with the rest of the stuff to the Qualcomm SoC tree.

Yup.  Picked it up.  Thanks!


Andy

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-10-21 22:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-16 17:41 [PATCH 0/2] dts: arm64: db820c: adds support to pmic pins Srinivas Kandagatla
2016-09-16 17:41 ` [PATCH 1/2] pinctrl: pm8994: add pad voltage regulator defines Srinivas Kandagatla
2016-09-18 11:38   ` Linus Walleij
2016-10-21 22:39     ` Andy Gross
2016-09-16 17:41 ` [PATCH 2/2] dts: arm64: db820c: add pmic pins specific dts file Srinivas Kandagatla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).