1 /* 2 * This header provides constants for the Qualcomm PMIC's 3 * Multi-Purpose Pin binding. 4 */ 5 6 #ifndef _DT_BINDINGS_PINCTRL_QCOM_PMIC_MPP_H 7 #define _DT_BINDINGS_PINCTRL_QCOM_PMIC_MPP_H 8 9 /* power-source */ 10 #define PM8841_MPP_VPH 0 11 #define PM8841_MPP_S3 2 12 13 #define PM8941_MPP_VPH 0 14 #define PM8941_MPP_L1 1 15 #define PM8941_MPP_S3 2 16 #define PM8941_MPP_L6 3 17 18 #define PMA8084_MPP_VPH 0 19 #define PMA8084_MPP_L1 1 20 #define PMA8084_MPP_S4 2 21 #define PMA8084_MPP_L6 3 22 23 /* 24 * Analog Input - Set the source for analog input. 25 * To be used with "qcom,amux-route" property 26 */ 27 #define PMIC_MPP_AMUX_ROUTE_CH5 0 28 #define PMIC_MPP_AMUX_ROUTE_CH6 1 29 #define PMIC_MPP_AMUX_ROUTE_CH7 2 30 #define PMIC_MPP_AMUX_ROUTE_CH8 3 31 #define PMIC_MPP_AMUX_ROUTE_ABUS1 4 32 #define PMIC_MPP_AMUX_ROUTE_ABUS2 5 33 #define PMIC_MPP_AMUX_ROUTE_ABUS3 6 34 #define PMIC_MPP_AMUX_ROUTE_ABUS4 7 35 36 /* To be used with "function" */ 37 #define PMIC_MPP_FUNC_NORMAL "normal" 38 #define PMIC_MPP_FUNC_PAIRED "paired" 39 #define PMIC_MPP_FUNC_DTEST1 "dtest1" 40 #define PMIC_MPP_FUNC_DTEST2 "dtest2" 41 #define PMIC_MPP_FUNC_DTEST3 "dtest3" 42 #define PMIC_MPP_FUNC_DTEST4 "dtest4" 43 44 #endif 45