Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux
[deliverable/linux.git] / Documentation / devicetree / bindings / mfd / da9150.txt
1 Dialog Semiconductor DA9150 Combined Charger/Fuel-Gauge MFD bindings
2
3 DA9150 consists of a group of sub-devices:
4
5 Device Description
6 ------ -----------
7 da9150-gpadc : General Purpose ADC
8 da9150-charger : Battery Charger
9 da9150-fg : Battery Fuel-Gauge
10
11 ======
12
13 Required 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).
20 (See ../interrupt-controller/interrupts.txt for
21 further information relating to interrupt properties)
22
23 Sub-devices:
24 - da9150-gpadc: See ../iio/adc/da9150-gpadc.txt
25 - da9150-charger: See ../power/da9150-charger.txt
26 - da9150-fg: See ../power/da9150-fg.txt
27
28 Example:
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 {
38 compatible = "dlg,da9150-gpadc";
39 #io-channel-cells = <1>;
40 };
41
42 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>
61 };
62 };
This page took 0.035987 seconds and 5 git commands to generate.