diff options
author | Adam Thomson <Adam.Thomson.Opensource@diasemi.com> | 2015-10-07 14:54:12 +0100 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2015-10-13 11:28:01 +0100 |
commit | daaab943260fbfce27b0e86d44a2826cea60a4fd (patch) | |
tree | 1befc76d5d31ba7f62b14958b214a6c7a2e26355 /Documentation/devicetree/bindings/mfd/da9150.txt | |
parent | 1ac710e08a86e4723286873db73edb2a6e99f591 (diff) | |
download | talos-obmc-linux-daaab943260fbfce27b0e86d44a2826cea60a4fd.tar.gz talos-obmc-linux-daaab943260fbfce27b0e86d44a2826cea60a4fd.zip |
mfd: da9150: Update DT bindings for Fuel-Gauge support
Signed-off-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'Documentation/devicetree/bindings/mfd/da9150.txt')
-rw-r--r-- | Documentation/devicetree/bindings/mfd/da9150.txt | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/Documentation/devicetree/bindings/mfd/da9150.txt b/Documentation/devicetree/bindings/mfd/da9150.txt index d0588eaa0d71..970801d0a1e9 100644 --- a/Documentation/devicetree/bindings/mfd/da9150.txt +++ b/Documentation/devicetree/bindings/mfd/da9150.txt @@ -6,6 +6,7 @@ Device Description ------ ----------- da9150-gpadc : General Purpose ADC da9150-charger : Battery Charger +da9150-fg : Battery Fuel-Gauge ====== @@ -22,7 +23,7 @@ Required properties: Sub-devices: - da9150-gpadc: See Documentation/devicetree/bindings/iio/adc/da9150-gpadc.txt - da9150-charger: See Documentation/devicetree/bindings/power/da9150-charger.txt - +- da9150-fg: See Documentation/devicetree/bindings/power/da9150-fg.txt Example: @@ -34,10 +35,28 @@ Example: interrupt-controller; gpadc: da9150-gpadc { - ... + 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"; }; - da9150-charger { - ... + 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> }; }; |