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 PM8916_MPP_VPH 0 14#define PM8916_MPP_L2 2 15#define PM8916_MPP_L5 3 16 17#define PM8941_MPP_VPH 0 18#define PM8941_MPP_L1 1 19#define PM8941_MPP_S3 2 20#define PM8941_MPP_L6 3 21 22#define PMA8084_MPP_VPH 0 23#define PMA8084_MPP_L1 1 24#define PMA8084_MPP_S4 2 25#define PMA8084_MPP_L6 3 26 27/* 28 * Analog Input - Set the source for analog input. 29 * To be used with "qcom,amux-route" property 30 */ 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 39 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" 47 48#endif 49