Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux
[deliverable/linux.git] / Documentation / devicetree / bindings / mfd / da9150.txt
CommitLineData
97e4a7a2
AT
1Dialog 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
daaab943 9da9150-fg : Battery Fuel-Gauge
97e4a7a2
AT
10
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).
45b17379 20 (See ../interrupt-controller/interrupts.txt for
97e4a7a2
AT
21 further information relating to interrupt properties)
22
23Sub-devices:
45b17379
AT
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
97e4a7a2
AT
27
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 {
daaab943
AT
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";
97e4a7a2
AT
53 };
54
daaab943
AT
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>
97e4a7a2
AT
61 };
62 };
This page took 0.076306 seconds and 5 git commands to generate.