da9150.txt 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. Dialog Semiconductor DA9150 Combined Charger/Fuel-Gauge MFD bindings
  2. DA9150 consists of a group of sub-devices:
  3. Device Description
  4. ------ -----------
  5. da9150-gpadc : General Purpose ADC
  6. da9150-charger : Battery Charger
  7. da9150-fg : Battery Fuel-Gauge
  8. ======
  9. Required properties:
  10. - compatible : Should be "dlg,da9150"
  11. - reg: Specifies the I2C slave address
  12. - interrupt-parent: Specifies the phandle of the interrupt controller to which
  13. the IRQs from da9150 are delivered to.
  14. - interrupts: IRQ line info for da9150 chip.
  15. - interrupt-controller: da9150 has internal IRQs (own IRQ domain).
  16. (See ../interrupt-controller/interrupts.txt for
  17. further information relating to interrupt properties)
  18. Sub-devices:
  19. - da9150-gpadc: See ../iio/adc/da9150-gpadc.txt
  20. - da9150-charger: See ../power/da9150-charger.txt
  21. - da9150-fg: See ../power/da9150-fg.txt
  22. Example:
  23. charger_fg: da9150@58 {
  24. compatible = "dlg,da9150";
  25. reg = <0x58>;
  26. interrupt-parent = <&gpio6>;
  27. interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
  28. interrupt-controller;
  29. gpadc: da9150-gpadc {
  30. compatible = "dlg,da9150-gpadc";
  31. #io-channel-cells = <1>;
  32. };
  33. charger {
  34. compatible = "dlg,da9150-charger";
  35. io-channels = <&gpadc 0>,
  36. <&gpadc 2>,
  37. <&gpadc 8>,
  38. <&gpadc 5>;
  39. io-channel-names = "CHAN_IBUS",
  40. "CHAN_VBUS",
  41. "CHAN_TJUNC",
  42. "CHAN_VBAT";
  43. };
  44. fuel-gauge {
  45. compatible = "dlg,da9150-fuel-gauge";
  46. dlg,update-interval = <10000>;
  47. dlg,warn-soc-level = /bits/ 8 <15>;
  48. dlg,crit-soc-level = /bits/ 8 <5>
  49. };
  50. };