palmas-pmic.txt 2.4 KB

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