pinctrl: pm8994: add pad voltage regulator defines
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Fri, 16 Sep 2016 17:41:20 +0000 (18:41 +0100)
committerAndy Gross <andy.gross@linaro.org>
Mon, 24 Oct 2016 20:48:21 +0000 (15:48 -0500)
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>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
include/dt-bindings/pinctrl/qcom,pmic-gpio.h
include/dt-bindings/pinctrl/qcom,pmic-mpp.h

index aafa76c..d33f17c 100644 (file)
 #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"
index a15c170..2e360d8 100644 (file)
 #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