palmas-pmic.txt 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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-9],
  25. smps10_out2, smps10_out1, do[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. - ti,system-power-controller: Telling whether or not this pmic is controlling
  34. the system power.
  35. Example:
  36. #include <dt-bindings/interrupt-controller/irq.h>
  37. pmic {
  38. compatible = "ti,twl6035-pmic", "ti,palmas-pmic";
  39. interrupt-parent = <&palmas>;
  40. interrupts = <14 IRQ_TYPE_NONE>;
  41. interrupts-name = "short-irq";
  42. ti,ldo6-vibrator;
  43. ti,system-power-controller;
  44. regulators {
  45. smps12_reg : smps12 {
  46. regulator-name = "smps12";
  47. regulator-min-microvolt = < 600000>;
  48. regulator-max-microvolt = <1500000>;
  49. regulator-always-on;
  50. regulator-boot-on;
  51. ti,warm-reset;
  52. ti,roof-floor;
  53. ti,mode-sleep = <0>;
  54. ti,smps-range = <1>;
  55. };
  56. ldo1_reg: ldo1 {
  57. regulator-name = "ldo1";
  58. regulator-min-microvolt = <2800000>;
  59. regulator-max-microvolt = <2800000>;
  60. };
  61. };
  62. };