qcom,pmic-mpp.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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. /* Digital Input/Output: level [PM8058] */
  9. #define PM8058_MPP_VPH 0
  10. #define PM8058_MPP_S3 1
  11. #define PM8058_MPP_L2 2
  12. #define PM8058_MPP_L3 3
  13. /* Digital Input/Output: level [PM8901] */
  14. #define PM8901_MPP_MSMIO 0
  15. #define PM8901_MPP_DIG 1
  16. #define PM8901_MPP_L5 2
  17. #define PM8901_MPP_S4 3
  18. #define PM8901_MPP_VPH 4
  19. /* Digital Input/Output: level [PM8921] */
  20. #define PM8921_MPP_S4 1
  21. #define PM8921_MPP_L15 3
  22. #define PM8921_MPP_L17 4
  23. #define PM8921_MPP_VPH 7
  24. /* Digital Input/Output: level [PM8821] */
  25. #define PM8821_MPP_1P8 0
  26. #define PM8821_MPP_VPH 7
  27. /* Digital Input/Output: level [PM8018] */
  28. #define PM8018_MPP_L4 0
  29. #define PM8018_MPP_L14 1
  30. #define PM8018_MPP_S3 2
  31. #define PM8018_MPP_L6 3
  32. #define PM8018_MPP_L2 4
  33. #define PM8018_MPP_L5 5
  34. #define PM8018_MPP_VPH 7
  35. /* Digital Input/Output: level [PM8038] */
  36. #define PM8038_MPP_L20 0
  37. #define PM8038_MPP_L11 1
  38. #define PM8038_MPP_L5 2
  39. #define PM8038_MPP_L15 3
  40. #define PM8038_MPP_L17 4
  41. #define PM8038_MPP_VPH 7
  42. #define PM8841_MPP_VPH 0
  43. #define PM8841_MPP_S3 2
  44. #define PM8916_MPP_VPH 0
  45. #define PM8916_MPP_L2 2
  46. #define PM8916_MPP_L5 3
  47. #define PM8941_MPP_VPH 0
  48. #define PM8941_MPP_L1 1
  49. #define PM8941_MPP_S3 2
  50. #define PM8941_MPP_L6 3
  51. #define PMA8084_MPP_VPH 0
  52. #define PMA8084_MPP_L1 1
  53. #define PMA8084_MPP_S4 2
  54. #define PMA8084_MPP_L6 3
  55. /*
  56. * Analog Input - Set the source for analog input.
  57. * To be used with "qcom,amux-route" property
  58. */
  59. #define PMIC_MPP_AMUX_ROUTE_CH5 0
  60. #define PMIC_MPP_AMUX_ROUTE_CH6 1
  61. #define PMIC_MPP_AMUX_ROUTE_CH7 2
  62. #define PMIC_MPP_AMUX_ROUTE_CH8 3
  63. #define PMIC_MPP_AMUX_ROUTE_ABUS1 4
  64. #define PMIC_MPP_AMUX_ROUTE_ABUS2 5
  65. #define PMIC_MPP_AMUX_ROUTE_ABUS3 6
  66. #define PMIC_MPP_AMUX_ROUTE_ABUS4 7
  67. /* Analog Output: level */
  68. #define PMIC_MPP_AOUT_LVL_1V25 0
  69. #define PMIC_MPP_AOUT_LVL_1V25_2 1
  70. #define PMIC_MPP_AOUT_LVL_0V625 2
  71. #define PMIC_MPP_AOUT_LVL_0V3125 3
  72. #define PMIC_MPP_AOUT_LVL_MPP 4
  73. #define PMIC_MPP_AOUT_LVL_ABUS1 5
  74. #define PMIC_MPP_AOUT_LVL_ABUS2 6
  75. #define PMIC_MPP_AOUT_LVL_ABUS3 7
  76. /* To be used with "function" */
  77. #define PMIC_MPP_FUNC_NORMAL "normal"
  78. #define PMIC_MPP_FUNC_PAIRED "paired"
  79. #define PMIC_MPP_FUNC_DTEST1 "dtest1"
  80. #define PMIC_MPP_FUNC_DTEST2 "dtest2"
  81. #define PMIC_MPP_FUNC_DTEST3 "dtest3"
  82. #define PMIC_MPP_FUNC_DTEST4 "dtest4"
  83. #endif