Re: BQ27xxx registers

2017-01-16 Thread Chris Lapa
On 17/1/17 4:43 am, Andrew F. Davis wrote: On 12/21/2016 05:37 PM, Chris Lapa wrote: On 21/12/16 11:46 pm, Pali Rohár wrote: On Wednesday 21 December 2016 03:49:10 Chris Lapa wrote: On 20/12/16 10:34 pm, Pali Rohár wrote: On Tuesday 20 December 2016 07:00:41 Chris Lapa wrote: I can generate

[PATCH v5 02/11] power: supply: bq27xxx: rename BQ27510 allow for deprecation in future.

2017-01-10 Thread Chris Lapa
From: Chris Lapa The BQ2751X definition exists only to satisfy backwards compatibility. Signed-off-by: Chris Lapa --- drivers/power/supply/bq27xxx_battery.c | 8 drivers/power/supply/bq27xxx_battery_i2c.c | 4 ++-- include/linux/power/bq27xxx_battery.h | 2 +- 3 files

[PATCH v5 03/11] power: supply: bq27xxx: adds specific support for bq27500/1 revision.

2017-01-10 Thread Chris Lapa
From: Chris Lapa This commit adds the BQ27500 chip definition to specifically match the bq27500/1 functionality as described in the datasheet. Signed-off-by: Chris Lapa Acked-by: Pali Rohár Reviewed-by: Andrew F. Davis --- drivers/power/supply/bq27xxx_battery.c | 42

[PATCH v5 07/11] power: supply: bq27xxx: adds specific support for bq27520-g1 revision.

2017-01-10 Thread Chris Lapa
From: Chris Lapa This commit adds the BQ27520G1 chip definition to specifically match the bq27520-G1 functionality as described in the datasheet. Signed-off-by: Chris Lapa Acked-by: Pali Rohár Reviewed-by: Andrew F. Davis --- drivers/power/supply/bq27xxx_battery.c | 42

[PATCH v5 11/11] power: supply: bq27xxx: adds device tree binding documentation.

2017-01-10 Thread Chris Lapa
From: Chris Lapa The bq27xxx binding is a standard i2c style binding, however the deprecated compatible fields and different revisions warrant its own documentation. Signed-off-by: Chris Lapa Acked-by: Pali Rohár Reviewed-by: Andrew F. Davis --- .../devicetree/bindings/power/supply

[PATCH v5 08/11] power: supply: bq27xxx: adds specific support for bq27520-g2 revision.

2017-01-10 Thread Chris Lapa
From: Chris Lapa This commit adds the BQ27520G2 chip definition to specifically match the bq27520-G2 functionality as described in the datasheet. Signed-off-by: Chris Lapa Acked-by: Pali Rohár Reviewed-by: Andrew F. Davis --- drivers/power/supply/bq27xxx_battery.c | 43

[PATCH v5 10/11] power: supply: bq27xxx: adds specific support for bq27520-g4 revision.

2017-01-10 Thread Chris Lapa
From: Chris Lapa This commit adds the BQ27520G4 chip definition to specifically match the bq27520-G4 functionality as described in the datasheet. Signed-off-by: Chris Lapa Acked-by: Pali Rohár Reviewed-by: Andrew F. Davis --- drivers/power/supply/bq27xxx_battery.c | 39

[PATCH v5 09/11] power: supply: bq27xxx: adds specific support for bq27520-g3 revision.

2017-01-10 Thread Chris Lapa
From: Chris Lapa This commit adds the BQ27520G3 chip definition to specifically match the bq27520-G3 functionality as described in the datasheet. Signed-off-by: Chris Lapa Acked-by: Pali Rohár Reviewed-by: Andrew F. Davis --- drivers/power/supply/bq27xxx_battery.c | 42

[PATCH v5 04/11] power: supply: bq27xxx: adds specific support for bq27510-g1 revision.

2017-01-10 Thread Chris Lapa
From: Chris Lapa This commit adds the BQ27510G1 chip definition to specifically match the bq27510-G1 functionality as described in the datasheet. Signed-off-by: Chris Lapa Acked-by: Pali Rohár Reviewed-by: Andrew F. Davis --- drivers/power/supply/bq27xxx_battery.c | 43

[PATCH v5 06/11] power: supply: bq27xxx: adds specific support for bq27510-g3 revision.

2017-01-10 Thread Chris Lapa
From: Chris Lapa This commit adds the BQ27510G3 chip definition to specifically match the bq27510-G3 functionality as described in the datasheet. Signed-off-by: Chris Lapa Acked-by: Pali Rohár Reviewed-by: Andrew F. Davis Tested-by: Chris Lapa --- drivers/power/supply/bq27xxx_battery.c

[PATCH v5 05/11] power: supply: bq27xxx: adds specific support for bq27510-g2 revision.

2017-01-10 Thread Chris Lapa
From: Chris Lapa This commit adds the BQ27510G2 chip definition to specifically match the bq27510-G2 functionality as described in the datasheet. Signed-off-by: Chris Lapa Acked-by: Pali Rohár Reviewed-by: Andrew F. Davis --- drivers/power/supply/bq27xxx_battery.c | 43

[PATCH v5 01/11] power: supply: bq27xxx: rename BQ27500 allow for deprecation in future.

2017-01-10 Thread Chris Lapa
From: Chris Lapa The BQ2750X definition exists only to satisfy backwards compatibility. Signed-off-by: Chris Lapa --- drivers/power/supply/bq27xxx_battery.c | 8 drivers/power/supply/bq27xxx_battery_i2c.c | 2 +- include/linux/power/bq27xxx_battery.h | 2 +- 3 files changed

[PATCH v5 00/11] power: supply: bq27xxx: implement individual chip revision support

2017-01-10 Thread Chris Lapa
From: Chris Lapa This patch series correctly renames the patch subject prefix to 'power: supply: bq27xxx'. It also fixes up the deprecation of the BQ27500 and BQ27510 definitions. Otherwise the patch content is the same functionally as the v4 series. Chris Lapa (11): power: suppl

Re: [PATCH v4 01/10] power: supplies: bq27xxx: rename BQ27500 allow for deprecation in future.

2017-01-10 Thread Chris Lapa
On 10/1/17 7:58 pm, Pali Rohár wrote: On Tuesday 10 January 2017 16:25:29 Chris Lapa wrote: From: Chris Lapa The BQ275XX definition exists only to satisfy backwards compatibility. tested: yes Instead "tested: yes" we use: "Tested-by: name " line. Signed-off-by: Chris

[PATCH v4 09/10] power: supplies: bq27xxx: adds specific support for bq27520-g4 revision.

2017-01-09 Thread Chris Lapa
From: Chris Lapa This commit adds the BQ27520G4 chip definition to specifically match the bq27520-G4 functionality as described in the datasheet. tested: no Signed-off-by: Chris Lapa Acked-by: Pali Rohár Reviewed-by: Andrew F. Davis --- drivers/power/supply/bq27xxx_battery.c | 39

[PATCH v4 01/10] power: supplies: bq27xxx: rename BQ27500 allow for deprecation in future.

2017-01-09 Thread Chris Lapa
From: Chris Lapa The BQ275XX definition exists only to satisfy backwards compatibility. tested: yes Signed-off-by: Chris Lapa Acked-by: Pali Rohár Reviewed-by: Andrew F. Davis --- drivers/power/supply/bq27xxx_battery.c | 10 -- drivers/power/supply/bq27xxx_battery_i2c.c | 6

[PATCH v4 03/10] power: supplies: bq27xxx: adds specific support for bq27510-g1 revision.

2017-01-09 Thread Chris Lapa
From: Chris Lapa This commit adds the BQ27510G1 chip definition to specifically match the bq27510-G1 functionality as described in the datasheet. tested: no Signed-off-by: Chris Lapa Acked-by: Pali Rohár Reviewed-by: Andrew F. Davis --- drivers/power/supply/bq27xxx_battery.c | 43

[PATCH v4 06/10] power: supplies: bq27xxx: adds specific support for bq27520-g1 revision.

2017-01-09 Thread Chris Lapa
From: Chris Lapa This commit adds the BQ27520G1 chip definition to specifically match the bq27520-G1 functionality as described in the datasheet. tested: no Signed-off-by: Chris Lapa Acked-by: Pali Rohár Reviewed-by: Andrew F. Davis --- drivers/power/supply/bq27xxx_battery.c | 42

[PATCH v4 10/10] power: supplies: bq27xxx: adds device tree binding documentation.

2017-01-09 Thread Chris Lapa
From: Chris Lapa The bq27xxx binding is a standard i2c style binding, however the deprecated compatible fields and different revisions warrant its own documentation. Signed-off-by: Chris Lapa Acked-by: Pali Rohár Reviewed-by: Andrew F. Davis --- .../devicetree/bindings/power/supply

[PATCH v4 08/10] power: supplies: bq27xxx: adds specific support for bq27520-g3 revision.

2017-01-09 Thread Chris Lapa
From: Chris Lapa This commit adds the BQ27520G3 chip definition to specifically match the bq27520-G3 functionality as described in the datasheet. tested: no Signed-off-by: Chris Lapa Acked-by: Pali Rohár Reviewed-by: Andrew F. Davis --- drivers/power/supply/bq27xxx_battery.c | 42

[PATCH v4 05/10] power: supplies: bq27xxx: adds specific support for bq27510-g3 revision.

2017-01-09 Thread Chris Lapa
From: Chris Lapa This commit adds the BQ27510G3 chip definition to specifically match the bq27510-G3 functionality as described in the datasheet. tested: yes Signed-off-by: Chris Lapa Acked-by: Pali Rohár Reviewed-by: Andrew F. Davis --- drivers/power/supply/bq27xxx_battery.c | 39

[PATCH v4 07/10] power: supplies: bq27xxx: adds specific support for bq27520-g2 revision.

2017-01-09 Thread Chris Lapa
From: Chris Lapa This commit adds the BQ27520G2 chip definition to specifically match the bq27520-G2 functionality as described in the datasheet. tested: no Signed-off-by: Chris Lapa Acked-by: Pali Rohár Reviewed-by: Andrew F. Davis --- drivers/power/supply/bq27xxx_battery.c | 43

[PATCH v4 04/10] power: supplies: bq27xxx: adds specific support for bq27510-g2 revision.

2017-01-09 Thread Chris Lapa
From: Chris Lapa This commit adds the BQ27510G2 chip definition to specifically match the bq27510-G2 functionality as described in the datasheet. tested: no Signed-off-by: Chris Lapa Acked-by: Pali Rohár Reviewed-by: Andrew F. Davis --- drivers/power/supply/bq27xxx_battery.c | 43

[PATCH v4 00/10] power: supply: bq27xxx: implement individual chip revision support

2017-01-09 Thread Chris Lapa
From: Chris Lapa This patch series renames the patch subject prefix to 'power: supply: bq27xxx' and also rebases onto sre/linux-power-supply/for-next. It also drops the overtemp cleanup patch from v3 as it has already been applied. Otherwise the patch content is the same functionally

[PATCH v4 02/10] power: supplies: bq27xxx: adds specific support for bq27500/1 revision.

2017-01-09 Thread Chris Lapa
From: Chris Lapa This commit adds the BQ27500 chip definition to specifically match the bq27500/1 functionality as described in the datasheet. tested: no Signed-off-by: Chris Lapa Acked-by: Pali Rohár Reviewed-by: Andrew F. Davis --- drivers/power/supply/bq27xxx_battery.c | 27

[PATCH v3 02/11] power: supplies: bq275xx: rename BQ27500 allow for deprecation in future.

2017-01-08 Thread Chris Lapa
From: Chris Lapa The BQ275XX definition exists only to satisfy backwards compatibility. tested: yes Signed-off-by: Chris Lapa --- drivers/power/supply/bq27xxx_battery.c | 8 drivers/power/supply/bq27xxx_battery_i2c.c | 6 +++--- include/linux/power/bq27xxx_battery.h | 2

[PATCH v3 06/11] power: supplies: bq275xx: adds specific support for bq27510-g3 revision.

2017-01-08 Thread Chris Lapa
From: Chris Lapa This commit adds the BQ27510G3 chip definition to specifically match the bq27510-G3 functionality as described in the datasheet. tested: yes Signed-off-by: Chris Lapa --- drivers/power/supply/bq27xxx_battery.c | 39 ++ drivers/power/supply

[PATCH v3 07/11] power: supplies: bq275xx: adds specific support for bq27520-g1 revision.

2017-01-08 Thread Chris Lapa
From: Chris Lapa This commit adds the BQ27520G1 chip definition to specifically match the bq27520-G1 functionality as described in the datasheet. tested: no Signed-off-by: Chris Lapa --- drivers/power/supply/bq27xxx_battery.c | 42 ++ drivers/power/supply

[PATCH v3 09/11] power: supplies: bq275xx: adds specific support for bq27520-g3 revision.

2017-01-08 Thread Chris Lapa
From: Chris Lapa This commit adds the BQ27520G3 chip definition to specifically match the bq27520-G3 functionality as described in the datasheet. tested: no Signed-off-by: Chris Lapa --- drivers/power/supply/bq27xxx_battery.c | 42 ++ drivers/power/supply

[PATCH v3 10/11] power: supplies: bq275xx: adds specific support for bq27520-g4 revision.

2017-01-08 Thread Chris Lapa
From: Chris Lapa This commit adds the BQ27520G4 chip definition to specifically match the bq27520-G4 functionality as described in the datasheet. tested: no Signed-off-by: Chris Lapa --- drivers/power/supply/bq27xxx_battery.c | 39 ++ drivers/power/supply

[PATCH v3 08/11] power: supplies: bq275xx: adds specific support for bq27520-g2 revision.

2017-01-08 Thread Chris Lapa
From: Chris Lapa This commit adds the BQ27520G2 chip definition to specifically match the bq27520-G2 functionality as described in the datasheet. tested: no Signed-off-by: Chris Lapa --- drivers/power/supply/bq27xxx_battery.c | 43 ++ drivers/power/supply

[PATCH v3 05/11] power: supplies: bq275xx: adds specific support for bq27510-g2 revision.

2017-01-08 Thread Chris Lapa
From: Chris Lapa This commit adds the BQ27510G2 chip definition to specifically match the bq27510-G2 functionality as described in the datasheet. tested: no Signed-off-by: Chris Lapa --- drivers/power/supply/bq27xxx_battery.c | 43 ++ drivers/power/supply

[PATCH v3 11/11] power: supplies: bq27xxx: adds device tree binding documentation.

2017-01-08 Thread Chris Lapa
From: Chris Lapa The bq27xxx binding is a standard i2c style binding, however the deprecated compatible fields and different revisions warrant its own documentation. Signed-off-by: Chris Lapa --- .../devicetree/bindings/power/supply/bq27xxx.txt | 36 ++ 1 file changed

[PATCH v3 00/11] power: supply: bq275xx: implement individual chip revision support

2017-01-08 Thread Chris Lapa
From: Chris Lapa This patch series separates out support for each revision chip in the bq27500, bq27510 and bq27520 family. Each revision has enough register address changes to justify individual register mappings. The series also cleans up the large overtemp if statement to improve readability

[PATCH v3 03/11] power: supplies: bq275xx: adds specific support for bq27500/1 revision.

2017-01-08 Thread Chris Lapa
From: Chris Lapa This commit adds the BQ27500 chip definition to specifically match the bq27500/1 functionality as described in the datasheet. tested: no Signed-off-by: Chris Lapa --- drivers/power/supply/bq27xxx_battery.c | 42 ++ drivers/power/supply

[PATCH v3 04/11] power: supplies: bq275xx: adds specific support for bq27510-g1 revision.

2017-01-08 Thread Chris Lapa
From: Chris Lapa This commit adds the BQ27510G1 chip definition to specifically match the bq27510-G1 functionality as described in the datasheet. tested: no Signed-off-by: Chris Lapa --- drivers/power/supply/bq27xxx_battery.c | 43 ++ drivers/power/supply

[PATCH v3 01/11] power: supplies: bq275xx: move overtemp tests to a switch statement.

2017-01-08 Thread Chris Lapa
From: Chris Lapa This is done for readability as the upcoming commits will add a lot of cases. tested: no Signed-off-by: Chris Lapa --- drivers/power/supply/bq27xxx_battery.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/power/supply

Re: [PATCH v2 11/11] power: supplies: bq275xx: adds device tree binding documentation.

2017-01-05 Thread Chris Lapa
On 6/1/17 11:06 am, Sebastian Reichel wrote: Hi, On Fri, Dec 23, 2016 at 11:05:07AM +1100, Chris Lapa wrote: From: Chris Lapa The bq275xx binding is a standard i2c style binding, however the deprecated compatible fields and different revisions warrant its own documentation. Please add the

Re: [PATCH v2 01/11] power: supplies: bq275xx: rename BQ27500 allow for deprecation in future.

2017-01-05 Thread Chris Lapa
On 6/1/17 10:59 am, Sebastian Reichel wrote: Hi Chris, On Fri, Dec 23, 2016 at 11:04:57AM +1100, Chris Lapa wrote: From: Chris Lapa The BQ275XX definition exists only to satisfy backwards compatibility. tested: yes Signed-off-by: Chris Lapa [...] static bool bq27xxx_battery_overtemp

[PATCH v2 08/11] power: supplies: bq275xx: adds specific support for bq27520-g3 revision.

2016-12-22 Thread Chris Lapa
From: Chris Lapa This commit adds the BQ27520G3 chip definition to specifically match the bq27520-G3 functionality as described in the datasheet. tested: no Signed-off-by: Chris Lapa --- drivers/power/supply/bq27xxx_battery.c | 44 +- drivers/power/supply

[PATCH v2 05/11] power: supplies: bq275xx: adds specific support for bq27510-g3 revision.

2016-12-22 Thread Chris Lapa
From: Chris Lapa This commit adds the BQ27510G3 chip definition to specifically match the bq27510-G3 functionality as described in the datasheet. tested: yes Signed-off-by: Chris Lapa --- drivers/power/supply/bq27xxx_battery.c | 41 +- drivers/power/supply

[PATCH v2 09/11] power: supplies: bq275xx: adds specific support for bq27520-g4 revision.

2016-12-22 Thread Chris Lapa
From: Chris Lapa This commit adds the BQ27520G4 chip definition to specifically match the bq27520-G4 functionality as described in the datasheet. tested: no Signed-off-by: Chris Lapa --- drivers/power/supply/bq27xxx_battery.c | 40 +- drivers/power/supply

[PATCH v2 07/11] power: supplies: bq275xx: adds specific support for bq27520-g2 revision.

2016-12-22 Thread Chris Lapa
From: Chris Lapa This commit adds the BQ27520G2 chip definition to specifically match the bq27520-G2 functionality as described in the datasheet. tested: no Signed-off-by: Chris Lapa --- drivers/power/supply/bq27xxx_battery.c | 44 +- drivers/power/supply

[PATCH v2 06/11] power: supplies: bq275xx: adds specific support for bq27520-g1 revision.

2016-12-22 Thread Chris Lapa
From: Chris Lapa This commit adds the BQ27520G1 chip definition to specifically match the bq27520-G1 functionality as described in the datasheet. tested: no Signed-off-by: Chris Lapa --- drivers/power/supply/bq27xxx_battery.c | 43 +- drivers/power/supply

[PATCH v2 04/11] power: supplies: bq275xx: adds specific support for bq27510-g2 revision.

2016-12-22 Thread Chris Lapa
From: Chris Lapa This commit adds the BQ27510G2 chip definition to specifically match the bq27510-G2 functionality as described in the datasheet. tested: no Signed-off-by: Chris Lapa --- drivers/power/supply/bq27xxx_battery.c | 44 +- drivers/power/supply

[PATCH v2 10/11] power: supply: bq275xx: cleanup over temperature flag check.

2016-12-22 Thread Chris Lapa
From: Chris Lapa Separated the check out into its own function to make its functionality easier to understand. Signed-off-by: Chris Lapa --- drivers/power/supply/bq27xxx_battery.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/drivers/power/supply

[PATCH v2 11/11] power: supplies: bq275xx: adds device tree binding documentation.

2016-12-22 Thread Chris Lapa
From: Chris Lapa The bq275xx binding is a standard i2c style binding, however the deprecated compatible fields and different revisions warrant its own documentation. Signed-off-by: Chris Lapa --- .../devicetree/bindings/power/supply/bq275xx.txt | 27 ++ 1 file changed

[PATCH v2 03/11] power: supplies: bq275xx: adds specific support for bq27510-g1 revision.

2016-12-22 Thread Chris Lapa
From: Chris Lapa This commit adds the BQ27510G1 chip definition to specifically match the bq27510-G1 functionality as described in the datasheet. tested: no Signed-off-by: Chris Lapa --- drivers/power/supply/bq27xxx_battery.c | 46 -- drivers/power/supply

[PATCH v2 00/11] power: supply: bq275xx: implement individual chip revision support

2016-12-22 Thread Chris Lapa
From: Chris Lapa This patch series separates out support for each revision chip in the bq27500, bq27510 and bq27520 family. Each revision has enough register address changes to justify individual register mappings. It also cleans up the large if statement checking the overtemp flags. I had a

[PATCH v2 01/11] power: supplies: bq275xx: rename BQ27500 allow for deprecation in future.

2016-12-22 Thread Chris Lapa
From: Chris Lapa The BQ275XX definition exists only to satisfy backwards compatibility. tested: yes Signed-off-by: Chris Lapa --- drivers/power/supply/bq27xxx_battery.c | 8 drivers/power/supply/bq27xxx_battery_i2c.c | 6 +++--- include/linux/power/bq27xxx_battery.h | 2

[PATCH v2 02/11] power: supplies: bq275xx: adds specific support for bq27500/1 revision.

2016-12-22 Thread Chris Lapa
From: Chris Lapa This commit adds the BQ27500 chip definition to specifically match the bq27500/1 functionality as described in the datasheet. tested: no Signed-off-by: Chris Lapa --- drivers/power/supply/bq27xxx_battery.c | 44 +- drivers/power/supply

[PATCH 01/10] power: supplies: bq275xx: rename BQ27500 allow for deprecation in future.

2016-12-21 Thread Chris Lapa
From: Chris Lapa The BQ275XX definition exists only to satisfy backwards compatibility. tested: no Signed-off-by: Chris Lapa --- drivers/power/supply/bq27xxx_battery.c | 8 drivers/power/supply/bq27xxx_battery_i2c.c | 6 +++--- include/linux/power/bq27xxx_battery.h | 2

[PATCH 00/10] power: supply: bq275xx: implement individual chip revision support

2016-12-21 Thread Chris Lapa
From: Chris Lapa This patch series separates out support for each revision chip in the bq27500, bq27510 and bq27520 family. Each revision has enough register address changes to justify individual register mappings. Chris Lapa (10): power: supplies: bq275xx: rename BQ27500 allow for

[PATCH 02/10] power: supplies: bq275xx: adds specific support for bq27500/1 revision.

2016-12-21 Thread Chris Lapa
From: Chris Lapa This commit adds the BQ27500 chip definition to specifically match the bq27500/1 functionality as described in the datasheet. tested: no Signed-off-by: Chris Lapa --- drivers/power/supply/bq27xxx_battery.c | 44 +- drivers/power/supply

[PATCH 09/10] power: supplies: bq275xx: adds specific support for bq27520-g4 revision.

2016-12-21 Thread Chris Lapa
From: Chris Lapa This commit adds the BQ27520G4 chip definition to specifically match the bq27520-G4 functionality as described in the datasheet. tested: no Signed-off-by: Chris Lapa --- drivers/power/supply/bq27xxx_battery.c | 40 +- drivers/power/supply

[PATCH 05/10] power: supplies: bq275xx: adds specific support for bq27510-g3 revision.

2016-12-21 Thread Chris Lapa
From: Chris Lapa This commit adds the BQ27510G3 chip definition to specifically match the bq27510-G3 functionality as described in the datasheet. tested: no Signed-off-by: Chris Lapa --- drivers/power/supply/bq27xxx_battery.c | 41 +- drivers/power/supply

[PATCH 03/10] power: supplies: bq275xx: adds specific support for bq27510-g1 revision.

2016-12-21 Thread Chris Lapa
From: Chris Lapa This commit adds the BQ27510G1 chip definition to specifically match the bq27510-G1 functionality as described in the datasheet. tested: no Signed-off-by: Chris Lapa --- drivers/power/supply/bq27xxx_battery.c | 46 -- drivers/power/supply

[PATCH 07/10] power: supplies: bq275xx: adds specific support for bq27520-g2 revision.

2016-12-21 Thread Chris Lapa
From: Chris Lapa This commit adds the BQ27520G2 chip definition to specifically match the bq27520-G2 functionality as described in the datasheet. tested: no Signed-off-by: Chris Lapa --- drivers/power/supply/bq27xxx_battery.c | 44 +- drivers/power/supply

[PATCH 08/10] power: supplies: bq275xx: adds specific support for bq27520-g3 revision.

2016-12-21 Thread Chris Lapa
From: Chris Lapa This commit adds the BQ27520G3 chip definition to specifically match the bq27520-G3 functionality as described in the datasheet. tested: no Signed-off-by: Chris Lapa --- drivers/power/supply/bq27xxx_battery.c | 44 +- drivers/power/supply

[PATCH 06/10] power: supplies: bq275xx: adds specific support for bq27520-g1 revision.

2016-12-21 Thread Chris Lapa
From: Chris Lapa This commit adds the BQ27520G1 chip definition to specifically match the bq27520-G1 functionality as described in the datasheet. tested: no Signed-off-by: Chris Lapa --- drivers/power/supply/bq27xxx_battery.c | 43 +- drivers/power/supply

[PATCH 04/10] power: supplies: bq275xx: adds specific support for bq27510-g2 revision.

2016-12-21 Thread Chris Lapa
From: Chris Lapa This commit adds the BQ27510G2 chip definition to specifically match the bq27510-G2 functionality as described in the datasheet. tested: no Signed-off-by: Chris Lapa --- drivers/power/supply/bq27xxx_battery.c | 44 +- drivers/power/supply

Re: BQ27xxx registers

2016-12-21 Thread Chris Lapa
On 21/12/16 11:46 pm, Pali Rohár wrote: On Wednesday 21 December 2016 03:49:10 Chris Lapa wrote: On 20/12/16 10:34 pm, Pali Rohár wrote: On Tuesday 20 December 2016 07:00:41 Chris Lapa wrote: I can generate a patch to fix this issue, however the bigger problem exists as to which revision fuel

Re: BQ27xxx registers

2016-12-20 Thread Chris Lapa
On 20/12/16 10:34 pm, Pali Rohár wrote: On Tuesday 20 December 2016 07:00:41 Chris Lapa wrote: I can generate a patch to fix this issue, however the bigger problem exists as to which revision fuel gauge the bq27xxx_battery.c driver is intended to support for each family. Hi! I think driver

BQ27xxx registers

2016-12-19 Thread Chris Lapa
Hi, I'm testing out the 4.9 kernel on a AM3359 board fitted with a BQ27510-G3 fuel gauge. The board previously worked on the 4.1 kernel, however on the 4.9 kernel the bq27xxx_battery.c driver is spitting out this error continuously: power_supply bq27510-0: driver failed to report `charge_ful

Re: [PATCH v5 0/7] max8903: Add device tree support and misc fixes

2016-06-28 Thread Chris Lapa
Hi Sebastian, Sorry about the extra dtsi file, I accidentally included it in the v5 patch set (wasn't in <= v4). Thanks, Chris On 29/06/2016 4:16 AM, Sebastian Reichel wrote: Hi Chris, On Fri, Jun 24, 2016 at 12:26:05PM +1000, Chris Lapa wrote: This patch set adds device tree sup

[PATCH v5 2/7] max8903: store pointer to pdata instead of copying it.

2016-06-23 Thread Chris Lapa
From: Chris Lapa Stores pointer to pdata because it easily allows pdata to reference either platform data or in the future device tree data. Signed-off-by: Chris Lapa Reviewed-by: Krzysztof Kozlowski --- drivers/power/max8903_charger.c | 20 +--- 1 file changed, 13

[PATCH v5 4/7] max8903: adds requesting of gpios.

2016-06-23 Thread Chris Lapa
From: Chris Lapa This change ensures all gpios are available for the driver to use and also splits off gpio setup into its own function for readability. Signed-off-by: Chris Lapa Reviewed-by: Krzysztof Kozlowski --- drivers/power/max8903_charger.c | 136

[PATCH v5 5/7] max8903: removes non zero validity checks on gpios.

2016-06-23 Thread Chris Lapa
From: Chris Lapa Prior to this commit a zero gpio was treated as invalid. Whereas gpio_is_valid() will treat a zero gpio as valid. This commit removes the confusion and explicitly uses gpio_is_valid() throughout. Which in turn results in several of the error messages becoming redundant and thus

[PATCH v5 7/7] max8903: adds support for initiation via device tree

2016-06-23 Thread Chris Lapa
From: Chris Lapa Adds support for device tree to setup a max8903 battery charger. DC and USB validity are determined by looking the presence of the dok and uok gpios. Signed-off-by: Chris Lapa --- drivers/power/max8903_charger.c | 78 + 1 file changed

[PATCH v5 6/7] max8903: remove unnecessary 'out of memory' error message.

2016-06-23 Thread Chris Lapa
From: Chris Lapa Remove the 'out of memory' error message as it is printed by the core. Signed-off-by: Chris Lapa Reviewed-by: Krzysztof Kozlowski --- drivers/power/max8903_charger.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/power/max8903_c

[PATCH v5 3/7] max8903: cleans up confusing relationship between dc_valid, dok and dcm.

2016-06-23 Thread Chris Lapa
From: Chris Lapa The max8903_charger.h file indicated that dcm and dok were not optional when dc_valid is set. It makes sense to have dok as a compulsory pin when dc_valid is given. However dcm can be optionally wired to a fixed level especially when the circuit is configured for dc power

[PATCH v5 1/7] max8903: adds documentation for device tree bindings.

2016-06-23 Thread Chris Lapa
From: Chris Lapa Signed-off-by: Chris Lapa --- .../devicetree/bindings/power/max8903-charger.txt | 25 +++ arch/arm/boot/dts/dairytest-servo.dtsi | 36 ++ 2 files changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/power

[PATCH v5 0/7] max8903: Add device tree support and misc fixes

2016-06-23 Thread Chris Lapa
From: Chris Lapa This patch set adds device tree support for the MAX8903 battery charger. It also cleans up logic with dc_valid, dok and dcm pins as well as fixing up validity checking of gpios. I verified these patches work on a board I have here, which uses the DC power side (not the USB

Re: [PATCH v3 1/7] max8903: adds documentation for device tree bindings.

2016-06-20 Thread Chris Lapa
On 20/06/2016 11:22 PM, Rob Herring wrote: On Fri, Jun 17, 2016 at 03:00:20PM +1000, Chris Lapa wrote: From: Chris Lapa Signed-off-by: Chris Lapa --- .../devicetree/bindings/power/max8903-charger.txt | 25 ++ 1 file changed, 25 insertions(+) create mode 100644

[PATCH v4 5/7] max8903: removes non zero validity checks on gpios.

2016-06-20 Thread Chris Lapa
From: Chris Lapa Prior to this commit a zero gpio was treated as invalid. Whereas gpio_is_valid() will treat a zero gpio as valid. This commit removes the confusion and explicitly uses gpio_is_valid() throughout. Which in turn results in several of the error messages becoming redundant and thus

[PATCH v4 3/7] max8903: cleans up confusing relationship between dc_valid, dok and dcm.

2016-06-20 Thread Chris Lapa
From: Chris Lapa The max8903_charger.h file indicated that dcm and dok were not optional when dc_valid is set. It makes sense to have dok as a compulsory pin when dc_valid is given. However dcm can be optionally wired to a fixed level especially when the circuit is configured for dc power

[PATCH v4 1/7] max8903: adds documentation for device tree bindings.

2016-06-20 Thread Chris Lapa
From: Chris Lapa Signed-off-by: Chris Lapa --- .../devicetree/bindings/power/max8903-charger.txt | 25 ++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/max8903-charger.txt diff --git a/Documentation/devicetree/bindings/power

[PATCH v4 0/7] max8903: Add device tree support and misc fixes

2016-06-20 Thread Chris Lapa
From: Chris Lapa This patch set adds device tree support for the MAX8903 battery charger. It also cleans up logic with dc_valid, dok and dcm pins as well as fixing up validity checking of gpios. I verified these patches work on a board I have here, which uses the DC power side (not the USB

[PATCH v4 4/7] max8903: adds requesting of gpios.

2016-06-20 Thread Chris Lapa
From: Chris Lapa This change ensures all gpios are available for the driver to use and also splits off gpio setup into its own function for readability. Signed-off-by: Chris Lapa --- drivers/power/max8903_charger.c | 136 ++-- 1 file changed, 102 insertions

[PATCH v4 6/7] max8903: remove unnecessary 'out of memory' error message.

2016-06-20 Thread Chris Lapa
From: Chris Lapa Remove the 'out of memory' error message as it is printed by the core. Signed-off-by: Chris Lapa --- drivers/power/max8903_charger.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/power/max8903_charger.c b/drivers/power/max8903_charg

[PATCH v4 2/7] max8903: store pointer to pdata instead of copying it.

2016-06-20 Thread Chris Lapa
From: Chris Lapa Stores pointer to pdata because it easily allows pdata to reference either platform data or in the future device tree data. Signed-off-by: Chris Lapa --- drivers/power/max8903_charger.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a

[PATCH v4 7/7] max8903: adds support for initiation via device tree

2016-06-20 Thread Chris Lapa
From: Chris Lapa Adds support for device tree to setup a max8903 battery charger. DC and USB validity are determined by looking the presence of the dok and uok gpios. Signed-off-by: Chris Lapa --- drivers/power/max8903_charger.c | 78 + 1 file changed

Re: [PATCH v3 7/7] max8903: adds support for initiation via device tree.

2016-06-19 Thread Chris Lapa
On 17/06/2016 4:41 PM, Krzysztof Kozlowski wrote: On 06/17/2016 07:00 AM, Chris Lapa wrote: From: Chris Lapa Adds support for device tree to setup a max8903 battery charger. DC and USB validity are determined by looking the presence of the dok and uok gpios. Signed-off-by: Chris Lapa

Re: [PATCH v3 4/7] max8903: adds requesting of gpios.

2016-06-19 Thread Chris Lapa
On 17/06/2016 4:30 PM, Krzysztof Kozlowski wrote: On 06/17/2016 07:00 AM, Chris Lapa wrote: From: Chris Lapa This change ensures all gpios are available for the driver to use. Signed-off-by: Chris Lapa --- drivers/power/max8903_charger.c | 79 - 1

Re: [PATCH v3 3/7] max8903: cleans up confusing relationship between dc_valid, dok and dcm.

2016-06-19 Thread Chris Lapa
On 17/06/2016 4:26 PM, Krzysztof Kozlowski wrote: On 06/17/2016 07:00 AM, Chris Lapa wrote: From: Chris Lapa The max8903_charger.h file indicated that dcm and dok were not optional when dc_valid is set. It makes sense to have dok as a compulsory pin when dc_valid is given. However dcm can be

Re: [PATCH v3 3/7] max8903: cleans up confusing relationship between dc_valid, dok and dcm.

2016-06-16 Thread Chris Lapa
On 17/06/2016 4:26 PM, Krzysztof Kozlowski wrote: On 06/17/2016 07:00 AM, Chris Lapa wrote: From: Chris Lapa The max8903_charger.h file indicated that dcm and dok were not optional when dc_valid is set. It makes sense to have dok as a compulsory pin when dc_valid is given. However dcm can be

[PATCH v3 0/7] max8903: Add device tree support and misc fixes

2016-06-16 Thread Chris Lapa
From: Chris Lapa This patch set adds device tree support for the MAX8903 battery charger. It also cleans up logic with dc_valid, dok and dcm pins as well as fixing up validity checking of gpios. I verified these patches work on a board I have here, which uses the DC power side (not the USB

[PATCH v3 1/7] max8903: adds documentation for device tree bindings.

2016-06-16 Thread Chris Lapa
From: Chris Lapa Signed-off-by: Chris Lapa --- .../devicetree/bindings/power/max8903-charger.txt | 25 ++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/max8903-charger.txt diff --git a/Documentation/devicetree/bindings/power

[PATCH v3 3/7] max8903: cleans up confusing relationship between dc_valid, dok and dcm.

2016-06-16 Thread Chris Lapa
From: Chris Lapa The max8903_charger.h file indicated that dcm and dok were not optional when dc_valid is set. It makes sense to have dok as a compulsory pin when dc_valid is given. However dcm can be optionally wired to a fixed level especially when the circuit is configured for dc power

[PATCH v3 7/7] max8903: adds support for initiation via device tree.

2016-06-16 Thread Chris Lapa
From: Chris Lapa Adds support for device tree to setup a max8903 battery charger. DC and USB validity are determined by looking the presence of the dok and uok gpios. Signed-off-by: Chris Lapa --- drivers/power/max8903_charger.c | 217 +++- 1 file changed

[PATCH v3 5/7] max8903: removes non zero validity checks on gpios.

2016-06-16 Thread Chris Lapa
From: Chris Lapa Prior to this commit a zero gpio was treated as invalid. Whereas gpio_is_valid() will treat a zero gpio as valid. This commit removes the confusion and explicity uses gpio_is_valid() throughout. Which in turn results in several of the error messages becoming redundant and thus

[PATCH v3 2/7] max8903: store pointer to pdata instead of copying it.

2016-06-16 Thread Chris Lapa
From: Chris Lapa Stores pointer to pdata because it easily allows pdata to reference either platform data or in the future device tree data. Signed-off-by: Chris Lapa --- drivers/power/max8903_charger.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a

[PATCH v3 4/7] max8903: adds requesting of gpios.

2016-06-16 Thread Chris Lapa
From: Chris Lapa This change ensures all gpios are available for the driver to use. Signed-off-by: Chris Lapa --- drivers/power/max8903_charger.c | 79 - 1 file changed, 70 insertions(+), 9 deletions(-) diff --git a/drivers/power/max8903_charger.c b

[PATCH v3 6/7] max8903: remove unnecessary 'out of memory' error message.

2016-06-16 Thread Chris Lapa
From: Chris Lapa Remove the 'out of memory' error message as it is printed by the core. Signed-off-by: Chris Lapa --- drivers/power/max8903_charger.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/power/max8903_charger.c b/drivers/power/max8903_charg

Re: [PATCH v2 1/4] max8903: adds documentation for device tree bindings.

2016-06-15 Thread Chris Lapa
On 16/06/2016 4:35 PM, Krzysztof Kozlowski wrote: On 06/14/2016 03:54 AM, Chris Lapa wrote: On 10/06/2016 11:51 PM, Krzysztof Kozlowski wrote: On 06/10/2016 02:32 PM, Chris Lapa wrote: From: Chris Lapa Signed-off-by: Chris Lapa --- .../devicetree/bindings/power/max8903-charger.txt | 30

Re: [PATCH v2 1/4] max8903: adds documentation for device tree bindings.

2016-06-13 Thread Chris Lapa
On 10/06/2016 11:51 PM, Krzysztof Kozlowski wrote: On 06/10/2016 02:32 PM, Chris Lapa wrote: From: Chris Lapa Signed-off-by: Chris Lapa --- .../devicetree/bindings/power/max8903-charger.txt | 30 ++ 1 file changed, 30 insertions(+) create mode 100644 Documentation

Re: [PATCH v2 2/4] max8903: adds support for initiation via device tree.

2016-06-13 Thread Chris Lapa
: On 06/10/2016 02:32 PM, Chris Lapa wrote: From: Chris Lapa This commit also adds requesting gpio's via devm_gpio_request() to ensure the gpio is available for usage by the driver. Signed-off-by: Chris Lapa --- drivers/power/max8903_charger.c | 288 +++---

[PATCH v2 4/4] max8903: remove unnecessary malloc failed message print out.

2016-06-10 Thread Chris Lapa
From: Chris Lapa Signed-off-by: Chris Lapa --- drivers/power/max8903_charger.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/power/max8903_charger.c b/drivers/power/max8903_charger.c index 20d4b55..d60f9b2 100644 --- a/drivers/power/max8903_charger.c +++ b

[PATCH v2 3/4] max8903: cleans up confusing relationship between dc_valid, dok and dcm.

2016-06-10 Thread Chris Lapa
From: Chris Lapa The max8903_charger.h file indicated that dcm and dok were not optional when dc_valid is set. It makes sense to have dok as a compulsory pin when dc_valid is given. However dcm can be optionally wired to a fixed level especially when the circuit is configured for dc power

[PATCH v2 1/4] max8903: adds documentation for device tree bindings.

2016-06-10 Thread Chris Lapa
From: Chris Lapa Signed-off-by: Chris Lapa --- .../devicetree/bindings/power/max8903-charger.txt | 30 ++ 1 file changed, 30 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/max8903-charger.txt diff --git a/Documentation/devicetree/bindings/power

  1   2   >