palmas-pmic.txt 2.9 KB

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