palmas-pmic.txt 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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,sleep-mode - mode to adopt in pmic sleep 0 - off, 1 - auto,
  30. 2 - eco, 3 - forced pwm
  31. ti,tstep - slope control 0 - Jump, 1 10mV/us, 2 5mV/us, 3 2.5mV/us
  32. ti,smps-range - OTP has the wrong range set for the hardware so override
  33. 0 - low range, 1 - high range.
  34. Example:
  35. #include <dt-bindings/interrupt-controller/irq.h>
  36. pmic {
  37. compatible = "ti,twl6035-pmic", "ti,palmas-pmic";
  38. interrupt-parent = <&palmas>;
  39. interrupts = <14 IRQ_TYPE_NONE>;
  40. interrupts-name = "short-irq";
  41. ti,ldo6-vibrator;
  42. regulators {
  43. smps12_reg : smps12 {
  44. regulator-name = "smps12";
  45. regulator-min-microvolt = < 600000>;
  46. regulator-max-microvolt = <1500000>;
  47. regulator-always-on;
  48. regulator-boot-on;
  49. ti,warm-reset;
  50. ti,roof-floor;
  51. ti,mode-sleep = <0>;
  52. ti,tstep = <0>;
  53. ti,smps-range = <1>;
  54. };
  55. ldo1_reg: ldo1 {
  56. regulator-name = "ldo1";
  57. regulator-min-microvolt = <2800000>;
  58. regulator-max-microvolt = <2800000>;
  59. };
  60. };
  61. };