palmas-gpadc.txt 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. * Palmas general purpose ADC IP block devicetree bindings
  2. Channels list:
  3. 0 battery type
  4. 1 battery temp NTC (optional current source)
  5. 2 GP
  6. 3 temp (with ext. diode, optional current source)
  7. 4 GP
  8. 5 GP
  9. 6 VBAT_SENSE
  10. 7 VCC_SENSE
  11. 8 Backup Battery voltage
  12. 9 external charger (VCHG)
  13. 10 VBUS
  14. 11 DC-DC current probe (how does this work?)
  15. 12 internal die temp
  16. 13 internal die temp
  17. 14 USB ID pin voltage
  18. 15 test network
  19. Required properties:
  20. - compatible : Must be "ti,palmas-gpadc".
  21. - #io-channel-cells: Should be set to <1>.
  22. Optional sub-nodes:
  23. ti,channel0-current-microamp: Channel 0 current in uA.
  24. Values are rounded to derive 0uA, 5uA, 15uA, 20uA.
  25. ti,channel3-current-microamp: Channel 3 current in uA.
  26. Values are rounded to derive 0uA, 10uA, 400uA, 800uA.
  27. ti,enable-extended-delay: Enable extended delay.
  28. Example:
  29. pmic {
  30. compatible = "ti,twl6035-pmic", "ti,palmas-pmic";
  31. ...
  32. gpadc {
  33. compatible = "ti,palmas-gpadc";
  34. interrupts = <18 0
  35. 16 0
  36. 17 0>;
  37. #io-channel-cells = <1>;
  38. ti,channel0-current-microamp = <5>;
  39. ti,channel3-current-microamp = <10>;
  40. };
  41. };
  42. ...
  43. };