Linux 4.1.18
[linux/fpc-iii.git] / include / dt-bindings / pinctrl / qcom,pmic-mpp.h
blobc10205491f8d6589f3d63ab21eb6d01d7d4ac049
1 /*
2 * This header provides constants for the Qualcomm PMIC's
3 * Multi-Purpose Pin binding.
4 */
6 #ifndef _DT_BINDINGS_PINCTRL_QCOM_PMIC_MPP_H
7 #define _DT_BINDINGS_PINCTRL_QCOM_PMIC_MPP_H
9 /* power-source */
10 #define PM8841_MPP_VPH 0
11 #define PM8841_MPP_S3 2
13 #define PM8916_MPP_VPH 0
14 #define PM8916_MPP_L2 2
15 #define PM8916_MPP_L5 3
17 #define PM8941_MPP_VPH 0
18 #define PM8941_MPP_L1 1
19 #define PM8941_MPP_S3 2
20 #define PM8941_MPP_L6 3
22 #define PMA8084_MPP_VPH 0
23 #define PMA8084_MPP_L1 1
24 #define PMA8084_MPP_S4 2
25 #define PMA8084_MPP_L6 3
28 * Analog Input - Set the source for analog input.
29 * To be used with "qcom,amux-route" property
31 #define PMIC_MPP_AMUX_ROUTE_CH5 0
32 #define PMIC_MPP_AMUX_ROUTE_CH6 1
33 #define PMIC_MPP_AMUX_ROUTE_CH7 2
34 #define PMIC_MPP_AMUX_ROUTE_CH8 3
35 #define PMIC_MPP_AMUX_ROUTE_ABUS1 4
36 #define PMIC_MPP_AMUX_ROUTE_ABUS2 5
37 #define PMIC_MPP_AMUX_ROUTE_ABUS3 6
38 #define PMIC_MPP_AMUX_ROUTE_ABUS4 7
40 /* To be used with "function" */
41 #define PMIC_MPP_FUNC_NORMAL "normal"
42 #define PMIC_MPP_FUNC_PAIRED "paired"
43 #define PMIC_MPP_FUNC_DTEST1 "dtest1"
44 #define PMIC_MPP_FUNC_DTEST2 "dtest2"
45 #define PMIC_MPP_FUNC_DTEST3 "dtest3"
46 #define PMIC_MPP_FUNC_DTEST4 "dtest4"
48 #endif