2015-02-18 21:08:26 +07:00
|
|
|
Dialog Semiconductor DA9150 Combined Charger/Fuel-Gauge MFD bindings
|
|
|
|
|
|
|
|
DA9150 consists of a group of sub-devices:
|
|
|
|
|
|
|
|
Device Description
|
|
|
|
------ -----------
|
|
|
|
da9150-gpadc : General Purpose ADC
|
|
|
|
da9150-charger : Battery Charger
|
2015-10-07 20:54:12 +07:00
|
|
|
da9150-fg : Battery Fuel-Gauge
|
2015-02-18 21:08:26 +07:00
|
|
|
|
|
|
|
======
|
|
|
|
|
|
|
|
Required properties:
|
|
|
|
- compatible : Should be "dlg,da9150"
|
|
|
|
- reg: Specifies the I2C slave address
|
|
|
|
- interrupts: IRQ line info for da9150 chip.
|
|
|
|
- interrupt-controller: da9150 has internal IRQs (own IRQ domain).
|
2015-10-07 20:54:26 +07:00
|
|
|
(See ../interrupt-controller/interrupts.txt for
|
2015-02-18 21:08:26 +07:00
|
|
|
further information relating to interrupt properties)
|
|
|
|
|
|
|
|
Sub-devices:
|
2015-10-07 20:54:26 +07:00
|
|
|
- da9150-gpadc: See ../iio/adc/da9150-gpadc.txt
|
|
|
|
- da9150-charger: See ../power/da9150-charger.txt
|
|
|
|
- da9150-fg: See ../power/da9150-fg.txt
|
2015-02-18 21:08:26 +07:00
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
charger_fg: da9150@58 {
|
|
|
|
compatible = "dlg,da9150";
|
|
|
|
reg = <0x58>;
|
|
|
|
interrupt-parent = <&gpio6>;
|
|
|
|
interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
|
|
|
|
interrupt-controller;
|
|
|
|
|
|
|
|
gpadc: da9150-gpadc {
|
2015-10-07 20:54:12 +07:00
|
|
|
compatible = "dlg,da9150-gpadc";
|
|
|
|
#io-channel-cells = <1>;
|
|
|
|
};
|
|
|
|
|
|
|
|
charger {
|
|
|
|
compatible = "dlg,da9150-charger";
|
|
|
|
|
|
|
|
io-channels = <&gpadc 0>,
|
|
|
|
<&gpadc 2>,
|
|
|
|
<&gpadc 8>,
|
|
|
|
<&gpadc 5>;
|
|
|
|
io-channel-names = "CHAN_IBUS",
|
|
|
|
"CHAN_VBUS",
|
|
|
|
"CHAN_TJUNC",
|
|
|
|
"CHAN_VBAT";
|
2015-02-18 21:08:26 +07:00
|
|
|
};
|
|
|
|
|
2015-10-07 20:54:12 +07:00
|
|
|
fuel-gauge {
|
|
|
|
compatible = "dlg,da9150-fuel-gauge";
|
|
|
|
|
|
|
|
dlg,update-interval = <10000>;
|
|
|
|
dlg,warn-soc-level = /bits/ 8 <15>;
|
|
|
|
dlg,crit-soc-level = /bits/ 8 <5>
|
2015-02-18 21:08:26 +07:00
|
|
|
};
|
|
|
|
};
|