axp20x.txt 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. AXP family PMIC device tree bindings
  2. The axp20x family current members :
  3. axp152 (X-Powers)
  4. axp202 (X-Powers)
  5. axp209 (X-Powers)
  6. axp221 (X-Powers)
  7. Required properties:
  8. - compatible: "x-powers,axp152", "x-powers,axp202", "x-powers,axp209",
  9. "x-powers,axp221"
  10. - reg: The I2C slave address for the AXP chip
  11. - interrupt-parent: The parent interrupt controller
  12. - interrupts: SoC NMI / GPIO interrupt connected to the PMIC's IRQ pin
  13. - interrupt-controller: The PMIC has its own internal IRQs
  14. - #interrupt-cells: Should be set to 1
  15. Optional properties:
  16. - x-powers,dcdc-freq: defines the work frequency of DC-DC in KHz
  17. (range: 750-1875). Default: 1.5MHz
  18. - <input>-supply: a phandle to the regulator supply node. May be omitted if
  19. inputs are unregulated, such as using the IPSOUT output
  20. from the PMIC.
  21. - regulators: A node that houses a sub-node for each regulator. Regulators
  22. not used but preferred to be managed by the OS should be
  23. listed as well.
  24. See Documentation/devicetree/bindings/regulator/regulator.txt
  25. for more information on standard regulator bindings.
  26. Optional properties for DCDC regulators:
  27. - x-powers,dcdc-workmode: 1 for PWM mode, 0 for AUTO (PWM/PFM) mode
  28. Default: Current hardware setting
  29. The DCDC regulators work in a mixed PWM/PFM mode,
  30. using PFM under light loads and switching to PWM
  31. for heavier loads. Forcing PWM mode trades efficiency
  32. under light loads for lower output noise. This
  33. probably makes sense for HiFi audio related
  34. applications that aren't battery constrained.
  35. AXP202/AXP209 regulators, type, and corresponding input supply names:
  36. Regulator Type Supply Name Notes
  37. --------- ---- ----------- -----
  38. DCDC2 : DC-DC buck : vin2-supply
  39. DCDC3 : DC-DC buck : vin3-supply
  40. LDO1 : LDO : acin-supply : always on
  41. LDO2 : LDO : ldo24in-supply : shared supply
  42. LDO3 : LDO : ldo3in-supply
  43. LDO4 : LDO : ldo24in-supply : shared supply
  44. LDO5 : LDO : ldo5in-supply
  45. AXP221 regulators, type, and corresponding input supply names:
  46. Regulator Type Supply Name Notes
  47. --------- ---- ----------- -----
  48. DCDC1 : DC-DC buck : vin1-supply
  49. DCDC2 : DC-DC buck : vin2-supply
  50. DCDC3 : DC-DC buck : vin3-supply
  51. DCDC4 : DC-DC buck : vin4-supply
  52. DCDC5 : DC-DC buck : vin5-supply
  53. DC1SW : On/Off Switch : : DCDC1 secondary output
  54. DC5LDO : LDO : : input from DCDC5
  55. ALDO1 : LDO : aldoin-supply : shared supply
  56. ALDO2 : LDO : aldoin-supply : shared supply
  57. ALDO3 : LDO : aldoin-supply : shared supply
  58. DLDO1 : LDO : dldoin-supply : shared supply
  59. DLDO2 : LDO : dldoin-supply : shared supply
  60. DLDO3 : LDO : dldoin-supply : shared supply
  61. DLDO4 : LDO : dldoin-supply : shared supply
  62. ELDO1 : LDO : eldoin-supply : shared supply
  63. ELDO2 : LDO : eldoin-supply : shared supply
  64. ELDO3 : LDO : eldoin-supply : shared supply
  65. LDO_IO0 : LDO : ips-supply : GPIO 0
  66. LDO_IO1 : LDO : ips-supply : GPIO 1
  67. RTC_LDO : LDO : ips-supply : always on
  68. Example:
  69. axp209: pmic@34 {
  70. compatible = "x-powers,axp209";
  71. reg = <0x34>;
  72. interrupt-parent = <&nmi_intc>;
  73. interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
  74. interrupt-controller;
  75. #interrupt-cells = <1>;
  76. regulators {
  77. x-powers,dcdc-freq = <1500>;
  78. vdd_cpu: dcdc2 {
  79. regulator-always-on;
  80. regulator-min-microvolt = <1000000>;
  81. regulator-max-microvolt = <1450000>;
  82. regulator-name = "vdd-cpu";
  83. };
  84. vdd_int_dll: dcdc3 {
  85. regulator-always-on;
  86. regulator-min-microvolt = <1000000>;
  87. regulator-max-microvolt = <1400000>;
  88. regulator-name = "vdd-int-dll";
  89. };
  90. vdd_rtc: ldo1 {
  91. regulator-always-on;
  92. regulator-min-microvolt = <1200000>;
  93. regulator-max-microvolt = <1400000>;
  94. regulator-name = "vdd-rtc";
  95. };
  96. avcc: ldo2 {
  97. regulator-always-on;
  98. regulator-min-microvolt = <2700000>;
  99. regulator-max-microvolt = <3300000>;
  100. regulator-name = "avcc";
  101. };
  102. ldo3 {
  103. /* unused but preferred to be managed by OS */
  104. };
  105. };
  106. };