Adam Thomson | 97e4a7a | 2015-02-18 14:08:26 +0000 | [diff] [blame] | 1 | Dialog Semiconductor DA9150 Combined Charger/Fuel-Gauge MFD bindings |
| 2 | |
| 3 | DA9150 consists of a group of sub-devices: |
| 4 | |
| 5 | Device Description |
| 6 | ------ ----------- |
| 7 | da9150-gpadc : General Purpose ADC |
| 8 | da9150-charger : Battery Charger |
Adam Thomson | daaab94 | 2015-10-07 14:54:12 +0100 | [diff] [blame] | 9 | da9150-fg : Battery Fuel-Gauge |
Adam Thomson | 97e4a7a | 2015-02-18 14:08:26 +0000 | [diff] [blame] | 10 | |
| 11 | ====== |
| 12 | |
| 13 | Required 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). |
Adam Thomson | 45b1737 | 2015-10-07 14:54:26 +0100 | [diff] [blame] | 20 | (See ../interrupt-controller/interrupts.txt for |
Adam Thomson | 97e4a7a | 2015-02-18 14:08:26 +0000 | [diff] [blame] | 21 | further information relating to interrupt properties) |
| 22 | |
| 23 | Sub-devices: |
Adam Thomson | 45b1737 | 2015-10-07 14:54:26 +0100 | [diff] [blame] | 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 |
Adam Thomson | 97e4a7a | 2015-02-18 14:08:26 +0000 | [diff] [blame] | 27 | |
| 28 | Example: |
| 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 { |
Adam Thomson | daaab94 | 2015-10-07 14:54:12 +0100 | [diff] [blame] | 38 | compatible = "dlg,da9150-gpadc"; |
| 39 | #io-channel-cells = <1>; |
Adam Thomson | 97e4a7a | 2015-02-18 14:08:26 +0000 | [diff] [blame] | 40 | }; |
| 41 | |
Adam Thomson | daaab94 | 2015-10-07 14:54:12 +0100 | [diff] [blame] | 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"; |
| 53 | }; |
| 54 | |
| 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> |
Adam Thomson | 97e4a7a | 2015-02-18 14:08:26 +0000 | [diff] [blame] | 61 | }; |
| 62 | }; |