qcom,pmic-mpp.h 1.2 KB

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