diff options
-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 | |||
6 | ------ ----------- | 6 | ------ ----------- |
7 | da9150-gpadc : General Purpose ADC | 7 | da9150-gpadc : General Purpose ADC |
8 | da9150-charger : Battery Charger | 8 | da9150-charger : Battery Charger |
9 | da9150-fg : Battery Fuel-Gauge | ||
9 | 10 | ||
10 | ====== | 11 | ====== |
11 | 12 | ||
@@ -22,7 +23,7 @@ Required properties: | |||
22 | Sub-devices: | 23 | Sub-devices: |
23 | - da9150-gpadc: See Documentation/devicetree/bindings/iio/adc/da9150-gpadc.txt | 24 | - da9150-gpadc: See Documentation/devicetree/bindings/iio/adc/da9150-gpadc.txt |
24 | - da9150-charger: See Documentation/devicetree/bindings/power/da9150-charger.txt | 25 | - da9150-charger: See Documentation/devicetree/bindings/power/da9150-charger.txt |
25 | 26 | - da9150-fg: See Documentation/devicetree/bindings/power/da9150-fg.txt | |
26 | 27 | ||
27 | Example: | 28 | Example: |
28 | 29 | ||
@@ -34,10 +35,28 @@ Example: | |||
34 | interrupt-controller; | 35 | interrupt-controller; |
35 | 36 | ||
36 | gpadc: da9150-gpadc { | 37 | gpadc: da9150-gpadc { |
37 | ... | 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"; | ||
38 | }; | 53 | }; |
39 | 54 | ||
40 | da9150-charger { | 55 | fuel-gauge { |
41 | ... | 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> | ||
42 | }; | 61 | }; |
43 | }; | 62 | }; |