palmas-pmic.txt 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. * palmas regulator IP block devicetree bindings
  2. Required properties:
  3. - compatible : Should be from the list
  4. ti,twl6035-pmic
  5. ti,twl6036-pmic
  6. ti,twl6037-pmic
  7. ti,tps65913-pmic
  8. ti,tps65914-pmic
  9. and also the generic series names
  10. ti,palmas-pmic
  11. - interrupt-parent : The parent interrupt controller which is palmas.
  12. - interrupts : The interrupt number and the type which can be looked up here:
  13. arch/arm/boot/dts/include/dt-bindings/interrupt-controller/irq.h
  14. - interrupts-name: The names of the individual interrupts.
  15. Optional properties:
  16. - ti,ldo6-vibrator : ldo6 is in vibrator mode
  17. Optional nodes:
  18. - regulators : Must contain a sub-node per regulator from the list below.
  19. Each sub-node should contain the constraints and initialization
  20. information for that regulator. See regulator.txt for a
  21. description of standard properties for these sub-nodes.
  22. Additional custom properties are listed below.
  23. For ti,palmas-pmic - smps12, smps123, smps3 depending on OTP,
  24. smps45, smps457, smps7 depending on variant, smps6, smps[8-10],
  25. ldo[1-9], ldoln, ldousb.
  26. Optional sub-node properties:
  27. ti,warm-reset - maintain voltage during warm reset(boolean)
  28. ti,roof-floor - control voltage selection by pin(boolean)
  29. ti,mode-sleep - mode to adopt in pmic sleep 0 - off, 1 - auto,
  30. 2 - eco, 3 - forced pwm
  31. ti,smps-range - OTP has the wrong range set for the hardware so override
  32. 0 - low range, 1 - high range.
  33. Example:
  34. #include <dt-bindings/interrupt-controller/irq.h>
  35. pmic {
  36. compatible = "ti,twl6035-pmic", "ti,palmas-pmic";
  37. interrupt-parent = <&palmas>;
  38. interrupts = <14 IRQ_TYPE_NONE>;
  39. interrupts-name = "short-irq";
  40. ti,ldo6-vibrator;
  41. regulators {
  42. smps12_reg : smps12 {
  43. regulator-name = "smps12";
  44. regulator-min-microvolt = < 600000>;
  45. regulator-max-microvolt = <1500000>;
  46. regulator-always-on;
  47. regulator-boot-on;
  48. ti,warm-reset;
  49. ti,roof-floor;
  50. ti,mode-sleep = <0>;
  51. ti,smps-range = <1>;
  52. };
  53. ldo1_reg: ldo1 {
  54. regulator-name = "ldo1";
  55. regulator-min-microvolt = <2800000>;
  56. regulator-max-microvolt = <2800000>;
  57. };
  58. };
  59. };