palmas-pmic.txt 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. ti,tps65917-pmic
  10. and also the generic series names
  11. ti,palmas-pmic
  12. - interrupt-parent : The parent interrupt controller which is palmas.
  13. - interrupts : The interrupt number and the type which can be looked up here:
  14. arch/arm/boot/dts/include/dt-bindings/interrupt-controller/irq.h
  15. - interrupts-name: The names of the individual interrupts.
  16. Optional properties:
  17. - ti,ldo6-vibrator : ldo6 is in vibrator mode
  18. Optional nodes:
  19. - regulators : Must contain a sub-node per regulator from the list below.
  20. Each sub-node should contain the constraints and initialization
  21. information for that regulator. See regulator.txt for a
  22. description of standard properties for these sub-nodes.
  23. Additional custom properties are listed below.
  24. For ti,palmas-pmic - smps12, smps123, smps3 depending on OTP,
  25. smps45, smps457, smps7 depending on variant, smps6, smps[8-9],
  26. smps10_out2, smps10_out1, ldo[1-9], ldoln, ldousb.
  27. Optional sub-node properties:
  28. ti,warm-reset - maintain voltage during warm reset(boolean)
  29. ti,roof-floor - This takes as optional argument on platform supporting
  30. the rail from desired external control. If there is no argument then
  31. it will be assume that it is controlled by NSLEEP pin.
  32. The valid value for external pins are:
  33. ENABLE1 then 1,
  34. ENABLE2 then 2 or
  35. NSLEEP then 3.
  36. ti,mode-sleep - mode to adopt in pmic sleep 0 - off, 1 - auto,
  37. 2 - eco, 3 - forced pwm
  38. ti,smps-range - OTP has the wrong range set for the hardware so override
  39. 0 - low range, 1 - high range.
  40. - ti,system-power-controller: Telling whether or not this pmic is controlling
  41. the system power.
  42. Example:
  43. #include <dt-bindings/interrupt-controller/irq.h>
  44. pmic {
  45. compatible = "ti,twl6035-pmic", "ti,palmas-pmic";
  46. interrupt-parent = <&palmas>;
  47. interrupts = <14 IRQ_TYPE_NONE>;
  48. interrupts-name = "short-irq";
  49. ti,ldo6-vibrator;
  50. ti,system-power-controller;
  51. regulators {
  52. smps12_reg : smps12 {
  53. regulator-name = "smps12";
  54. regulator-min-microvolt = < 600000>;
  55. regulator-max-microvolt = <1500000>;
  56. regulator-always-on;
  57. regulator-boot-on;
  58. ti,warm-reset;
  59. ti,roof-floor = <1>; /* ENABLE1 control */
  60. ti,mode-sleep = <0>;
  61. ti,smps-range = <1>;
  62. };
  63. ldo1_reg: ldo1 {
  64. regulator-name = "ldo1";
  65. regulator-min-microvolt = <2800000>;
  66. regulator-max-microvolt = <2800000>;
  67. };
  68. };
  69. };