blob: fd4dca7f4abab61523b2d5da8ed97ddd75537c5b [file] [log] [blame]
Adam Thomson97e4a7a2015-02-18 14:08:26 +00001Dialog Semiconductor DA9150 Combined Charger/Fuel-Gauge MFD bindings
2
3DA9150 consists of a group of sub-devices:
4
5Device Description
6------ -----------
7da9150-gpadc : General Purpose ADC
8da9150-charger : Battery Charger
Adam Thomsondaaab942015-10-07 14:54:12 +01009da9150-fg : Battery Fuel-Gauge
Adam Thomson97e4a7a2015-02-18 14:08:26 +000010
11======
12
13Required properties:
14- compatible : Should be "dlg,da9150"
15- reg: Specifies the I2C slave address
16- interrupt-parent: Specifies the phandle of the interrupt controller to which
17 the IRQs from da9150 are delivered to.
18- interrupts: IRQ line info for da9150 chip.
19- interrupt-controller: da9150 has internal IRQs (own IRQ domain).
Adam Thomson45b17372015-10-07 14:54:26 +010020 (See ../interrupt-controller/interrupts.txt for
Adam Thomson97e4a7a2015-02-18 14:08:26 +000021 further information relating to interrupt properties)
22
23Sub-devices:
Adam Thomson45b17372015-10-07 14:54:26 +010024- da9150-gpadc: See ../iio/adc/da9150-gpadc.txt
25- da9150-charger: See ../power/da9150-charger.txt
26- da9150-fg: See ../power/da9150-fg.txt
Adam Thomson97e4a7a2015-02-18 14:08:26 +000027
28Example:
29
30 charger_fg: da9150@58 {
31 compatible = "dlg,da9150";
32 reg = <0x58>;
33 interrupt-parent = <&gpio6>;
34 interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
35 interrupt-controller;
36
37 gpadc: da9150-gpadc {
Adam Thomsondaaab942015-10-07 14:54:12 +010038 compatible = "dlg,da9150-gpadc";
39 #io-channel-cells = <1>;
Adam Thomson97e4a7a2015-02-18 14:08:26 +000040 };
41
Adam Thomsondaaab942015-10-07 14:54:12 +010042 charger {
43 compatible = "dlg,da9150-charger";
44
45 io-channels = <&gpadc 0>,
46 <&gpadc 2>,
47 <&gpadc 8>,
48 <&gpadc 5>;
49 io-channel-names = "CHAN_IBUS",
50 "CHAN_VBUS",
51 "CHAN_TJUNC",
52 "CHAN_VBAT";
53 };
54
55 fuel-gauge {
56 compatible = "dlg,da9150-fuel-gauge";
57
58 dlg,update-interval = <10000>;
59 dlg,warn-soc-level = /bits/ 8 <15>;
60 dlg,crit-soc-level = /bits/ 8 <5>
Adam Thomson97e4a7a2015-02-18 14:08:26 +000061 };
62 };