onsemi-ncp6335d.txt 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. ON Semiconductor NCP6335d regulator
  2. NCP6335d is able to deliver up to 5.0 A, with programmable output voltage from
  3. 0.6 V to 1.87 V in 10mV steps, with synchronous rectification and automatic PWM/
  4. PFM transitions, enable pins and power good/fail signaling.
  5. The NCP6335d interface is via I2C bus.
  6. Required Properties:
  7. - compatible: Must be "onnn,ncp6335d-regulator".
  8. - reg: The device 8-bit I2C address.
  9. - regulator-min-microvolt: Minimum voltage in microvolts supported by this
  10. regulator.
  11. - regulator-max-microvolt: Maximum voltage in microvolts supported by this
  12. regulator.
  13. - onnn,min-setpoint: Minimum setpoint voltage in microvolts supported
  14. by this regulator.
  15. - onnn,step-size: The step size of the regulator, in uV.
  16. - onnn,min-slew-ns: Minimum time in ns needed to change voltage by
  17. one step size. This value corresponds to DVS
  18. mode bit of 00b in command register.
  19. - onnn,max-slew-ns: Maximum time in ns needed to change voltage by
  20. one step size. This value corresponds to DVS
  21. mode bit of 11b in command register.
  22. - onnn,vsel: Working vsel register. Supported value are 0
  23. or 1.
  24. - onnn,slew-ns: Time in ns needed to change voltage by one step
  25. size. Supported value are 333, 666, 1333, 2666.
  26. Optional Properties:
  27. - onnn,discharge-enable: Present: discharge enabled.
  28. Not Present: discharge disabled.
  29. - onnn,restore-reg: Present: Restore vsel register from backup register.
  30. Not Present: No restore.
  31. - onnn,vsel-gpio: Present: GPIO connects to the VSEL pin and set the
  32. VSEL pin according to device tree flag.
  33. Not Present: No GPIO is connected to vsel pin.
  34. - onnn,sleep-enable: Present: Forced in sleep mode when EN and VSEL
  35. pins are low.
  36. Not Present: Low quiescent current mode when EN and VSEL
  37. pins are low.
  38. - onnn,tlmm-config: Array of 2 elements to indicate the mask value and the value
  39. to write in the masked bits.
  40. This property is used to allow the VSEL GPIO to toggle on certain
  41. Qualcomm processors. If it is not specified, then no register write is required.
  42. The 2 elements with index[0..1] are:
  43. [0] => the mask value;
  44. [1] => the value to write into the masked bits.
  45. - onnn,mode: A string which specifies the initial mode to use for the regulator.
  46. Supported values are "pwm" and "auto". PWM mode is more
  47. robust, but draws more current than auto mode. If this propery
  48. is not specified, then the regulator will be in the hardware default mode.
  49. Example:
  50. i2c_0 {
  51. ncp6335d-regulator@1c {
  52. compatible = "onnn,ncp6335d-regulator";
  53. reg = <0x1c>;
  54. onnn,vsel = <0>;
  55. onnn,slew-rate-ns = <2666>;
  56. onnn,discharge-enable;
  57. onnn,step-size = <10000>;
  58. onnn,min-slew-ns = <333>;
  59. onnn,max-slew-ns = <2666>;
  60. regulator-min-microvolt = <1050000>;
  61. regulator-max-microvolt = <1350000>;
  62. onnn,min-setpoint = <600000>;
  63. onnn,vsel-gpio = <&msmgpio 2 1>;
  64. };
  65. };