mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
pinctrl: Add support for PM8916 GPIO's and MPP's
Add compatible string definitions and supported pin functions. Signed-off-by: Ivan T. Ivanov <[email protected]> Acked-by: Bjorn Andersson <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
This commit is contained in:
parent
b8a19382ac
commit
7414b0993c
6 changed files with 25 additions and 0 deletions
|
|
@ -48,6 +48,14 @@
|
|||
#define PM8058_GPIO_L5 6
|
||||
#define PM8058_GPIO_L2 7
|
||||
|
||||
/*
|
||||
* Note: PM8916 GPIO1 and GPIO2 are supporting
|
||||
* only L2(1.15V) and L5(1.8V) options
|
||||
*/
|
||||
#define PM8916_GPIO_VPH 0
|
||||
#define PM8916_GPIO_L2 2
|
||||
#define PM8916_GPIO_L5 3
|
||||
|
||||
#define PM8917_GPIO_VPH 0
|
||||
#define PM8917_GPIO_S4 2
|
||||
#define PM8917_GPIO_L15 3
|
||||
|
|
@ -115,6 +123,13 @@
|
|||
#define PM8058_GPIO39_MP3_CLK PMIC_GPIO_FUNC_FUNC1
|
||||
#define PM8058_GPIO40_EXT_BB_EN PMIC_GPIO_FUNC_FUNC1
|
||||
|
||||
#define PM8916_GPIO1_BAT_ALRM_OUT PMIC_GPIO_FUNC_FUNC1
|
||||
#define PM8916_GPIO1_KEYP_DRV PMIC_GPIO_FUNC_FUNC2
|
||||
#define PM8916_GPIO2_DIV_CLK PMIC_GPIO_FUNC_FUNC1
|
||||
#define PM8916_GPIO2_SLEEP_CLK PMIC_GPIO_FUNC_FUNC2
|
||||
#define PM8916_GPIO3_KEYP_DRV PMIC_GPIO_FUNC_FUNC1
|
||||
#define PM8916_GPIO4_KEYP_DRV PMIC_GPIO_FUNC_FUNC2
|
||||
|
||||
#define PM8917_GPIO9_18_KEYP_DRV PMIC_GPIO_FUNC_FUNC1
|
||||
#define PM8917_GPIO20_BAT_ALRM_OUT PMIC_GPIO_FUNC_FUNC1
|
||||
#define PM8917_GPIO21_23_UART_TX PMIC_GPIO_FUNC_FUNC2
|
||||
|
|
|
|||
|
|
@ -10,6 +10,10 @@
|
|||
#define PM8841_MPP_VPH 0
|
||||
#define PM8841_MPP_S3 2
|
||||
|
||||
#define PM8916_MPP_VPH 0
|
||||
#define PM8916_MPP_L2 2
|
||||
#define PM8916_MPP_L5 3
|
||||
|
||||
#define PM8941_MPP_VPH 0
|
||||
#define PM8941_MPP_L1 1
|
||||
#define PM8941_MPP_S3 2
|
||||
|
|
|
|||
Loading…
Reference in a new issue