max77802.txt 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. Binding for Maxim MAX77802 regulators
  2. This is a part of device tree bindings of MAX77802 multi-function device.
  3. More information can be found in bindings/mfd/max77802.txt file.
  4. The MAX77802 PMIC has 10 high-efficiency Buck and 32 Low-dropout (LDO)
  5. regulators that can be controlled over I2C.
  6. Following properties should be present in main device node of the MFD chip.
  7. Optional node:
  8. - regulators : The regulators of max77802 have to be instantiated
  9. under subnode named "regulators" using the following format.
  10. regulator-name {
  11. standard regulator constraints....
  12. };
  13. refer Documentation/devicetree/bindings/regulator/regulator.txt
  14. The regulator node name should be initialized with a string to get matched
  15. with their hardware counterparts as follow. The valid names are:
  16. -LDOn : for LDOs, where n can lie in ranges 1-15, 17-21, 23-30
  17. and 32-35.
  18. example: LDO1, LDO2, LDO35.
  19. -BUCKn : for BUCKs, where n can lie in range 1 to 10.
  20. example: BUCK1, BUCK5, BUCK10.
  21. The max77802 regulator supports two different operating modes: Normal and Low
  22. Power Mode. Some regulators support the modes to be changed at startup or by
  23. the consumers during normal operation while others only support to change the
  24. mode during system suspend. The standard regulator suspend states binding can
  25. be used to configure the regulator operating mode.
  26. The regulators that support the standard "regulator-initial-mode" property,
  27. changing their mode during normal operation are: LDOs 1, 3, 20 and 21.
  28. The possible values for "regulator-initial-mode" and "regulator-mode" are:
  29. 1: Normal regulator voltage output mode.
  30. 3: Low Power which reduces the quiescent current down to only 1uA
  31. The list of valid modes are defined in the dt-bindings/clock/maxim,max77802.h
  32. header and can be included by device tree source files.
  33. The standard "regulator-mode" property can only be used for regulators that
  34. support changing their mode to Low Power Mode during suspend. These regulators
  35. are: BUCKs 2-4 and LDOs 1-35. Also, it only takes effect if the regulator has
  36. been enabled for the given suspend state using "regulator-on-in-suspend" and
  37. has not been disabled for that state using "regulator-off-in-suspend".
  38. Example:
  39. max77802@09 {
  40. compatible = "maxim,max77802";
  41. interrupt-parent = <&wakeup_eint>;
  42. interrupts = <26 0>;
  43. reg = <0x09>;
  44. #address-cells = <1>;
  45. #size-cells = <0>;
  46. regulators {
  47. ldo1_reg: LDO1 {
  48. regulator-name = "vdd_1v0";
  49. regulator-min-microvolt = <1000000>;
  50. regulator-max-microvolt = <1000000>;
  51. regulator-always-on;
  52. regulator-initial-mode = <MAX77802_OPMODE_LP>;
  53. };
  54. ldo11_reg: LDO11 {
  55. regulator-name = "vdd_ldo11";
  56. regulator-min-microvolt = <1900000>;
  57. regulator-max-microvolt = <1900000>;
  58. regulator-always-on;
  59. regulator-state-mem {
  60. regulator-on-in-suspend;
  61. regulator-mode = <MAX77802_OPMODE_LP>;
  62. };
  63. };
  64. buck1_reg: BUCK1 {
  65. regulator-name = "vdd_mif";
  66. regulator-min-microvolt = <950000>;
  67. regulator-max-microvolt = <1300000>;
  68. regulator-always-on;
  69. regulator-boot-on;
  70. };
  71. };