diff options
author | Ivan T. Ivanov <ivan.ivanov@linaro.org> | 2015-03-31 05:37:18 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2015-04-08 11:00:18 -0400 |
commit | 7414b0993cd020aea14574065c28b55f3f849688 (patch) | |
tree | 31d91529686bdc2c3c9cba3660cf49f570a5b661 /include/dt-bindings | |
parent | b8a19382ac6212d18b21fcc7867060a5d54fe1a2 (diff) |
pinctrl: Add support for PM8916 GPIO's and MPP's
Add compatible string definitions and supported pin functions.
Signed-off-by: Ivan T. Ivanov <ivan.ivanov@linaro.org>
Acked-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/dt-bindings')
-rw-r--r-- | include/dt-bindings/pinctrl/qcom,pmic-gpio.h | 15 | ||||
-rw-r--r-- | include/dt-bindings/pinctrl/qcom,pmic-mpp.h | 4 |
2 files changed, 19 insertions, 0 deletions
diff --git a/include/dt-bindings/pinctrl/qcom,pmic-gpio.h b/include/dt-bindings/pinctrl/qcom,pmic-gpio.h index fa74d7cc960c..aafa76cb569d 100644 --- a/include/dt-bindings/pinctrl/qcom,pmic-gpio.h +++ b/include/dt-bindings/pinctrl/qcom,pmic-gpio.h | |||
@@ -48,6 +48,14 @@ | |||
48 | #define PM8058_GPIO_L5 6 | 48 | #define PM8058_GPIO_L5 6 |
49 | #define PM8058_GPIO_L2 7 | 49 | #define PM8058_GPIO_L2 7 |
50 | 50 | ||
51 | /* | ||
52 | * Note: PM8916 GPIO1 and GPIO2 are supporting | ||
53 | * only L2(1.15V) and L5(1.8V) options | ||
54 | */ | ||
55 | #define PM8916_GPIO_VPH 0 | ||
56 | #define PM8916_GPIO_L2 2 | ||
57 | #define PM8916_GPIO_L5 3 | ||
58 | |||
51 | #define PM8917_GPIO_VPH 0 | 59 | #define PM8917_GPIO_VPH 0 |
52 | #define PM8917_GPIO_S4 2 | 60 | #define PM8917_GPIO_S4 2 |
53 | #define PM8917_GPIO_L15 3 | 61 | #define PM8917_GPIO_L15 3 |
@@ -115,6 +123,13 @@ | |||
115 | #define PM8058_GPIO39_MP3_CLK PMIC_GPIO_FUNC_FUNC1 | 123 | #define PM8058_GPIO39_MP3_CLK PMIC_GPIO_FUNC_FUNC1 |
116 | #define PM8058_GPIO40_EXT_BB_EN PMIC_GPIO_FUNC_FUNC1 | 124 | #define PM8058_GPIO40_EXT_BB_EN PMIC_GPIO_FUNC_FUNC1 |
117 | 125 | ||
126 | #define PM8916_GPIO1_BAT_ALRM_OUT PMIC_GPIO_FUNC_FUNC1 | ||
127 | #define PM8916_GPIO1_KEYP_DRV PMIC_GPIO_FUNC_FUNC2 | ||
128 | #define PM8916_GPIO2_DIV_CLK PMIC_GPIO_FUNC_FUNC1 | ||
129 | #define PM8916_GPIO2_SLEEP_CLK PMIC_GPIO_FUNC_FUNC2 | ||
130 | #define PM8916_GPIO3_KEYP_DRV PMIC_GPIO_FUNC_FUNC1 | ||
131 | #define PM8916_GPIO4_KEYP_DRV PMIC_GPIO_FUNC_FUNC2 | ||
132 | |||
118 | #define PM8917_GPIO9_18_KEYP_DRV PMIC_GPIO_FUNC_FUNC1 | 133 | #define PM8917_GPIO9_18_KEYP_DRV PMIC_GPIO_FUNC_FUNC1 |
119 | #define PM8917_GPIO20_BAT_ALRM_OUT PMIC_GPIO_FUNC_FUNC1 | 134 | #define PM8917_GPIO20_BAT_ALRM_OUT PMIC_GPIO_FUNC_FUNC1 |
120 | #define PM8917_GPIO21_23_UART_TX PMIC_GPIO_FUNC_FUNC2 | 135 | #define PM8917_GPIO21_23_UART_TX PMIC_GPIO_FUNC_FUNC2 |
diff --git a/include/dt-bindings/pinctrl/qcom,pmic-mpp.h b/include/dt-bindings/pinctrl/qcom,pmic-mpp.h index d2c7dabe3223..c10205491f8d 100644 --- a/include/dt-bindings/pinctrl/qcom,pmic-mpp.h +++ b/include/dt-bindings/pinctrl/qcom,pmic-mpp.h | |||
@@ -10,6 +10,10 @@ | |||
10 | #define PM8841_MPP_VPH 0 | 10 | #define PM8841_MPP_VPH 0 |
11 | #define PM8841_MPP_S3 2 | 11 | #define PM8841_MPP_S3 2 |
12 | 12 | ||
13 | #define PM8916_MPP_VPH 0 | ||
14 | #define PM8916_MPP_L2 2 | ||
15 | #define PM8916_MPP_L5 3 | ||
16 | |||
13 | #define PM8941_MPP_VPH 0 | 17 | #define PM8941_MPP_VPH 0 |
14 | #define PM8941_MPP_L1 1 | 18 | #define PM8941_MPP_L1 1 |
15 | #define PM8941_MPP_S3 2 | 19 | #define PM8941_MPP_S3 2 |