Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Adam Thomson and committed by
Lee Jones
daaab943 1ac710e0

+23 -4
+23 -4
Documentation/devicetree/bindings/mfd/da9150.txt
··· 6 6 ------ ----------- 7 7 da9150-gpadc : General Purpose ADC 8 8 da9150-charger : Battery Charger 9 + da9150-fg : Battery Fuel-Gauge 9 10 10 11 ====== 11 12 ··· 23 22 Sub-devices: 24 23 - da9150-gpadc: See Documentation/devicetree/bindings/iio/adc/da9150-gpadc.txt 25 24 - da9150-charger: See Documentation/devicetree/bindings/power/da9150-charger.txt 26 - 25 + - da9150-fg: See Documentation/devicetree/bindings/power/da9150-fg.txt 27 26 28 27 Example: 29 28 ··· 35 34 interrupt-controller; 36 35 37 36 gpadc: da9150-gpadc { 38 - ... 37 + compatible = "dlg,da9150-gpadc"; 38 + #io-channel-cells = <1>; 39 39 }; 40 40 41 - da9150-charger { 42 - ... 41 + charger { 42 + compatible = "dlg,da9150-charger"; 43 + 44 + io-channels = <&gpadc 0>, 45 + <&gpadc 2>, 46 + <&gpadc 8>, 47 + <&gpadc 5>; 48 + io-channel-names = "CHAN_IBUS", 49 + "CHAN_VBUS", 50 + "CHAN_TJUNC", 51 + "CHAN_VBAT"; 52 + }; 53 + 54 + fuel-gauge { 55 + compatible = "dlg,da9150-fuel-gauge"; 56 + 57 + dlg,update-interval = <10000>; 58 + dlg,warn-soc-level = /bits/ 8 <15>; 59 + dlg,crit-soc-level = /bits/ 8 <5> 43 60 }; 44 61 };