axp20x.txt 3.8 KB

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