sandbox.txt 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. Sandbox, PMIC regulators
  2. This device uses two drivers:
  3. - drivers/power/pmic/sandbox.c (as parent I/O device)
  4. - drivers/power/regulator/sandbox.c (for child regulators)
  5. This file describes the binding info for the REGULATOR driver.
  6. First, please read the binding info for the PMIC:
  7. - doc/device-tree-bindings/pmic/sandbox.txt
  8. Required subnodes:
  9. - ldoN { };
  10. - buckN { };
  11. The sandbox PMIC can support: ldo1, ldo2, buck1, buck2.
  12. For each PMIC's regulator subnode, there is one required property:
  13. - regulator-name: used for regulator uclass platform data '.name'
  14. Optional:
  15. - regulator-min-microvolt: minimum allowed Voltage to set
  16. - regulator-max-microvolt: minimum allowed Voltage to set
  17. - regulator-min-microamps: minimum allowed Current limit to set (LDO1/BUCK1)
  18. - regulator-max-microamps: minimum allowed Current limit to set (LDO1/BUCK1)
  19. - regulator-always-on: regulator should be never disabled
  20. - regulator-boot-on: regulator should be enabled by the bootloader
  21. Example PMIC's regulator subnodes:
  22. ldo1 {
  23. regulator-name = "VDD_1.0V";
  24. regulator-min-microvolt = <1000000>;
  25. regulator-max-microvolt = <1200000>;
  26. regulator-min-microamps = <100000>;
  27. regulator-max-microamps = <400000>;
  28. regulator-always-on;
  29. };
  30. buck2 {
  31. regulator-name = "VDD_1.8V";
  32. regulator-min-microvolt = <1800000>;
  33. regulator-max-microvolt = <1800000>;
  34. regulator-boot-on;
  35. };