Re: [PATCH v3 3/6] Documentation: DT: Document twl4030-madc-battery bindings

2015-03-17 Thread Dr. H. Nikolaus Schaller
Hi Pavel, Am 17.03.2015 um 14:59 schrieb Pavel Machek : > Hi! > >>> to introduce coefficients for temperature and discharge rate? >> What do you mean? Nothing like that is used in current driver why do >> we need to add it? > > Well, conversion between Li-ion's voltage and s

Re: [PATCH v3 3/6] Documentation: DT: Document twl4030-madc-battery bindings

2015-03-17 Thread Pavel Machek
Hi! > > to introduce coefficients for temperature and discharge rate? > What do you mean? Nothing like that is used in current driver why do > we need to add it? > >>> > >>> Well, conversion between Li-ion's voltage and state of charge at 0 > >>> current is well known: > >> > >> We

Re: [PATCH v3 3/6] Documentation: DT: Document twl4030-madc-battery bindings

2015-03-17 Thread Dr. H. Nikolaus Schaller
Hi Pavel, Am 17.03.2015 um 11:37 schrieb Pavel Machek : > Hi! > > to introduce coefficients for temperature and discharge rate? What do you mean? Nothing like that is used in current driver why do we need to add it? >>> >>> Well, conversion between Li-ion's voltage and state of ch

Re: [PATCH v3 3/6] Documentation: DT: Document twl4030-madc-battery bindings

2015-03-17 Thread Pavel Machek
Hi! > >>> to introduce coefficients for temperature and discharge rate? > >> What do you mean? Nothing like that is used in current driver why do > >> we need to add it? > > > > Well, conversion between Li-ion's voltage and state of charge at 0 > > current is well known: > > We can’t measure at

Re: [PATCH v3 3/6] Documentation: DT: Document twl4030-madc-battery bindings

2015-03-17 Thread Pavel Machek
On Tue 2015-03-17 10:07:12, Dr. H. Nikolaus Schaller wrote: > > Am 17.03.2015 um 09:47 schrieb Pavel Machek : > > > Hi! > > > diff --git > a/Documentation/devicetree/bindings/power_supply/twl4030_madc_battery.txt > > b/Documentation/devicetree/bindings/power_supply/twl4030

Re: [PATCH v3 3/6] Documentation: DT: Document twl4030-madc-battery bindings

2015-03-17 Thread Dr. H. Nikolaus Schaller
Am 17.03.2015 um 09:47 schrieb Pavel Machek : > Hi! > diff --git a/Documentation/devicetree/bindings/power_supply/twl4030_madc_battery.txt b/Documentation/devicetree/bindings/power_supply/twl4030_madc_battery.txt new file mode 100644 index 000..bb3580c --- /de

Re: [PATCH v3 3/6] Documentation: DT: Document twl4030-madc-battery bindings

2015-03-17 Thread Dr. H. Nikolaus Schaller
Am 17.03.2015 um 09:48 schrieb Pavel Machek : >> >> Temperature calibration should have already been done in the underlaying >> twl4030 iio driver. >> >> Discharge rate is the real current flow reported in uA. Also >> reported by iio. > > Ack, but there's rather severe temperature dependency

Re: [PATCH v3 3/6] Documentation: DT: Document twl4030-madc-battery bindings

2015-03-17 Thread Dr. H. Nikolaus Schaller
Hi, Am 17.03.2015 um 09:47 schrieb Pavel Machek : > Hi! > diff --git a/Documentation/devicetree/bindings/power_supply/twl4030_madc_battery.txt b/Documentation/devicetree/bindings/power_supply/twl4030_madc_battery.txt new file mode 100644 index 000..bb3580c ---

Re: [PATCH v3 3/6] Documentation: DT: Document twl4030-madc-battery bindings

2015-03-17 Thread Pavel Machek
> > Temperature calibration should have already been done in the underlaying > twl4030 iio driver. > > Discharge rate is the real current flow reported in uA. Also > reported by iio. Ack, but there's rather severe temperature dependency of the lithium battery, which you should take into account

Re: [PATCH v3 3/6] Documentation: DT: Document twl4030-madc-battery bindings

2015-03-17 Thread Pavel Machek
Hi! > >> diff --git > >> a/Documentation/devicetree/bindings/power_supply/twl4030_madc_battery.txt > >> b/Documentation/devicetree/bindings/power_supply/twl4030_madc_battery.txt > >> new file mode 100644 > >> index 000..bb3580c > >> --- /dev/null > >> +++ > >> b/Documentation/devicetree/bin

Re: [PATCH v3 3/6] Documentation: DT: Document twl4030-madc-battery bindings

2015-03-16 Thread Dr. H. Nikolaus Schaller
Am 16.03.2015 um 22:20 schrieb Belisko Marek : > On Mon, Mar 16, 2015 at 10:05 PM, Pavel Machek wrote: >> On Wed 2015-02-04 23:14:32, Marek Belisko wrote: >>> Signed-off-by: Marek Belisko >>> --- >>> .../bindings/power_supply/twl4030_madc_battery.txt | 43 >>> ++ >>> 1 file

Re: [PATCH v3 3/6] Documentation: DT: Document twl4030-madc-battery bindings

2015-03-16 Thread Belisko Marek
On Mon, Mar 16, 2015 at 10:05 PM, Pavel Machek wrote: > On Wed 2015-02-04 23:14:32, Marek Belisko wrote: >> Signed-off-by: Marek Belisko >> --- >> .../bindings/power_supply/twl4030_madc_battery.txt | 43 >> ++ >> 1 file changed, 43 insertions(+) >> create mode 100644 >> Do

Re: [PATCH v3 3/6] Documentation: DT: Document twl4030-madc-battery bindings

2015-03-16 Thread Pavel Machek
On Wed 2015-02-04 23:14:32, Marek Belisko wrote: > Signed-off-by: Marek Belisko > --- > .../bindings/power_supply/twl4030_madc_battery.txt | 43 > ++ > 1 file changed, 43 insertions(+) > create mode 100644 > Documentation/devicetree/bindings/power_supply/twl4030_madc_batter

Re: [PATCH v3 3/6] Documentation: DT: Document twl4030-madc-battery bindings

2015-03-04 Thread Sebastian Reichel
Hi, On Wed, Feb 04, 2015 at 11:14:32PM +0100, Marek Belisko wrote: > + - volt-to-capacity-charging-map : list of voltage(mV):level(%) values > + for charging calibration (see example) > + - volt-to-capacity-discharging-map : list of voltage(mV):level(%) values > + for discharging calibrati

[PATCH v3 3/6] Documentation: DT: Document twl4030-madc-battery bindings

2015-02-04 Thread Marek Belisko
Signed-off-by: Marek Belisko --- .../bindings/power_supply/twl4030_madc_battery.txt | 43 ++ 1 file changed, 43 insertions(+) create mode 100644 Documentation/devicetree/bindings/power_supply/twl4030_madc_battery.txt diff --git a/Documentation/devicetree/bindings/power_sup