[PATCH v2 0/4] max8903: Add device tree support and logic fixup

2016-06-10 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> This patch set adds device tree support for the MAX8903 battery charger and also cleans up the logic with the dc_valid, dok and dcm pins. I verified these patches work on a board I have here, which uses the DC power side (not the USB portition) of the M

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

2016-06-10 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 <ch...@lapa.com.au> --- drivers/power/max8903_charger.c | 288 +++-

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

2016-06-10 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 conf

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

2016-06-10 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> Signed-off-by: Chris Lapa <ch...@lapa.com.au> --- .../devicetree/bindings/power/max8903-charger.txt | 30 ++ 1 file changed, 30 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/max8903-charger.txt

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

2016-06-10 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> Signed-off-by: Chris Lapa <ch...@lapa.com.au> --- 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..d6

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

2016-06-09 Thread Chris Lapa
, Krzysztof Kozlowski wrote: Hi, Thanks for your contribution. Few comments below: On Thu, Jun 2, 2016 at 8:44 AM, <ch...@lapa.com.au> wrote: From: Chris Lapa <ch...@lapa.com.au> This commit also adds requesting gpio's via devm_gpio_request() to ensure the gpio is available for usage b

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 <ch...@lapa.com.au> Signed-off-by: Chris Lapa <ch...@lapa.com.au> --- .../devicetree/bindings/power/max8903-charger.txt | 30 ++ 1 file changed, 3

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 <ch...@lapa.com.au> 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 <ch...@lapa.com.au> --- drivers/power/max8903_cha

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 <ch...@lapa.com.au> This change ensures all gpios are available for the driver to use. Signed-off-by: Chris Lapa <ch...@lapa.com.au> --- drivers/power/max8903_ch

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 <ch...@lapa.com.au> 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

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 <ch...@lapa.com.au> 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. Sign

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

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

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

2016-06-20 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 <ch...@lapa.com.au> --- drivers/power/max8903_cha

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

2016-06-20 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 conf

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

2016-06-20 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 <ch...@lapa.com.au> --- drivers/power/max8903_ch

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

2016-06-20 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 <ch...@lapa.com.au> --- drivers/power/max8903_charger.c | 20 +--- 1 file

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

2016-06-20 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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

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

2016-06-20 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> Signed-off-by: Chris Lapa <ch...@lapa.com.au> --- .../devicetree/bindings/power/max8903-charger.txt | 25 ++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/max8903-charger.txt

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

2016-06-20 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 be

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

2016-06-16 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 <ch...@lapa.com.au> --- drivers/power/max8903_cha

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

2016-06-16 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 be

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

2016-06-16 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 <ch...@lapa.com.au> --- drivers/power/max8903_charger.c | 20 +--- 1 file

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

2016-06-16 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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

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

2016-06-16 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> Signed-off-by: Chris Lapa <ch...@lapa.com.au> --- .../devicetree/bindings/power/max8903-charger.txt | 25 ++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/max8903-charger.txt

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

2016-06-16 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> This change ensures all gpios are available for the driver to use. Signed-off-by: Chris Lapa <ch...@lapa.com.au> --- drivers/power/max8903_charger.c | 79 - 1 file changed, 70 insertions(+), 9 deletions(-)

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

2016-06-16 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 conf

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

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

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

2016-06-23 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 be

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

2016-06-23 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 conf

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

2016-06-23 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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

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

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

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

2016-06-23 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 <ch...@lapa.com.au> Reviewed-by: Krzysztof Kozlowski <k.kozlow...@samsung.com>

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

2016-06-23 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 <ch...@lapa.com.au> Reviewed-by: Krzysztof Kozlowski <k.kozlow...@samsung.co

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

2016-06-23 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 <ch...@lapa.com.au> --- drivers/power/max8903_ch

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

2016-06-23 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> Remove the 'out of memory' error message as it is printed by the core. Signed-off-by: Chris Lapa <ch...@lapa.com.au> Reviewed-by: Krzysztof Kozlowski <k.kozlow...@samsung.com> --- drivers/power/max8903_charger.c | 4 +--- 1 file changed,

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

2016-06-17 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 <ch...@lapa.com.au> 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

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

2016-06-16 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 <ch...@lapa.com.au> Signed-off-by: Chris Lapa <ch...@lapa.com.au> --- ..

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 supp

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 <ch...@lapa.com.au> Signed-off-by: Chris Lapa <ch...@lapa.com.au> --- .../devicetree/bindings/power/max8903-charger.txt | 25 ++ 1 file

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

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 <ch...@lapa.com.au> The BQ275XX definition exists only to satisfy backwards compatibility. tested: yes Instead "tested: yes" we use: "Tested-by: name " li

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

2017-01-10 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> This commit adds the BQ27510G3 chip definition to specifically match the bq27510-G3 functionality as described in the datasheet. Signed-off-by: Chris Lapa <ch...@lapa.com.au> Acked-by: Pali Rohár <pali.ro...@gmail.com> Reviewed-b

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

2017-01-10 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> This commit adds the BQ27510G2 chip definition to specifically match the bq27510-G2 functionality as described in the datasheet. Signed-off-by: Chris Lapa <ch...@lapa.com.au> Acked-by: Pali Rohár <pali.ro...@gmail.com> Reviewed-b

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

2017-01-10 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> The BQ2750X definition exists only to satisfy backwards compatibility. Signed-off-by: Chris Lapa <ch...@lapa.com.au> --- drivers/power/supply/bq27xxx_battery.c | 8 drivers/power/supply/bq27xxx_battery_i2c.c | 2 +- include

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

2017-01-10 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 La

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

2017-01-10 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> This commit adds the BQ27510G1 chip definition to specifically match the bq27510-G1 functionality as described in the datasheet. Signed-off-by: Chris Lapa <ch...@lapa.com.au> Acked-by: Pali Rohár <pali.ro...@gmail.com> Reviewed-b

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

2017-01-10 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> This commit adds the BQ27520G2 chip definition to specifically match the bq27520-G2 functionality as described in the datasheet. Signed-off-by: Chris Lapa <ch...@lapa.com.au> Acked-by: Pali Rohár <pali.ro...@gmail.com> Reviewed-b

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

2017-01-10 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> This commit adds the BQ27520G4 chip definition to specifically match the bq27520-G4 functionality as described in the datasheet. Signed-off-by: Chris Lapa <ch...@lapa.com.au> Acked-by: Pali Rohár <pali.ro...@gmail.com> Reviewed-b

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

2017-01-10 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> This commit adds the BQ27520G3 chip definition to specifically match the bq27520-G3 functionality as described in the datasheet. Signed-off-by: Chris Lapa <ch...@lapa.com.au> Acked-by: Pali Rohár <pali.ro...@gmail.com> Reviewed-b

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

2017-01-10 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> This commit adds the BQ27520G1 chip definition to specifically match the bq27520-G1 functionality as described in the datasheet. Signed-off-by: Chris Lapa <ch...@lapa.com.au> Acked-by: Pali Rohár <pali.ro...@gmail.com> Reviewed-b

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

2017-01-10 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 <ch...@lapa.com.au> Acked-by: Pali Rohár <pali.ro...@gmail.com> R

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

2017-01-10 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> This commit adds the BQ27500 chip definition to specifically match the bq27500/1 functionality as described in the datasheet. Signed-off-by: Chris Lapa <ch...@lapa.com.au> Acked-by: Pali Rohár <pali.ro...@gmail.com> Reviewed-by: Andrew F.

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

2017-01-10 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> The BQ2751X definition exists only to satisfy backwards compatibility. Signed-off-by: Chris Lapa <ch...@lapa.com.au> --- drivers/power/supply/bq27xxx_battery.c | 8 drivers/power/supply/bq27xxx_battery_i2c.c | 4 ++-- include

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

2017-01-09 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 <ch...@lapa.com.au> Acked-by: Pali Rohár <pali.ro...@gmail.com> Reviewed-b

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

2017-01-09 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 th

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

2017-01-09 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> The BQ275XX definition exists only to satisfy backwards compatibility. tested: yes Signed-off-by: Chris Lapa <ch...@lapa.com.au> Acked-by: Pali Rohár <pali.ro...@gmail.com> Reviewed-by: Andrew F. Davis <a...@ti.com> -

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

2017-01-09 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 <ch...@lapa.com.au> Acked-by: Pali Rohár <pali.ro...@gmail.com> Reviewed-b

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

2017-01-09 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 <ch...@lapa.com.au> Acked-by: Pali Rohár <pali.ro...@gmail.com> Rev

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

2017-01-09 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 <ch...@lapa.com.au> Acked-by: Pali Rohár <pali.ro...@gmail.com> Reviewed-b

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

2017-01-09 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 <ch...@lapa.com.au> Acked-by: Pali Rohár <pali.ro...@gmail.com> R

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

2017-01-09 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 <ch...@lapa.com.au> Acked-by: Pali Rohár <pali.ro...@gmail.com> Reviewed-b

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

2017-01-09 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 <ch...@lapa.com.au> Acked-by: Pali Rohár <pali.ro...@gmail.com> Reviewed-b

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

2017-01-09 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 <ch...@lapa.com.au> Acked-by: Pali Rohár <pali.ro...@gmail.com> Reviewed-b

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

2017-01-09 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 <ch...@lapa.com.au> Acked-by: Pali Rohár <pali.ro...@gmail.com> Reviewed-b

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 <ch...@lapa.com.au> The bq275xx binding is a standard i2c style binding, however the deprecated compatible fields and different revisions warrant its own documen

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 <ch...@lapa.com.au> The BQ275XX definition exists only to satisfy backwards compatibility. tested: yes Signed-off-by: Chris Lapa <ch...@la

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

2017-01-08 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 <ch...@lapa.com.au> --- drivers/power/supply/bq27xxx_batter

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

2017-01-08 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 <ch...@lapa.com.au> --- drivers/power/supply/bq27xxx_batter

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

2017-01-08 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 <ch...@lapa.com.au> --- drivers/power/supply/bq27xxx_batter

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

2017-01-08 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 <ch...@lapa.com.au> --- drivers/power/supply/bq27xxx_batter

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

2017-01-08 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 <ch...@lapa.com.au> --- drivers/power/supply/bq27xxx_batter

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

2017-01-08 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 <ch...@lapa.com.au> --- drivers/power/supply/bq27xxx_batter

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

2017-01-08 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 <ch...@lapa.com.au> --- .../devicetree/bindings/power/supply/bq27xx

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

2017-01-08 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 <ch...@lapa.com.au> --- drivers/power/supply/bq27xxx_batter

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

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

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

2017-01-08 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 sta

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

2017-01-08 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 <ch...@lapa.com.au> --- drivers/power/supply/bq27xxx_batter

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

2017-01-08 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> The BQ275XX definition exists only to satisfy backwards compatibility. tested: yes Signed-off-by: Chris Lapa <ch...@lapa.com.au> --- drivers/power/supply/bq27xxx_battery.c | 8 drivers/power/supply/bq27xxx_battery_i2c.c | 6 +++

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

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

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

2016-12-21 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 <ch...@lapa.com.au> --- drivers/power/supply/bq27xxx_batter

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

2016-12-21 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 <ch...@lapa.com.au> --- drivers/power/supply/bq27xxx_batter

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

2016-12-21 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 <ch...@lapa.com.au> --- drivers/power/supply/bq27xxx_batter

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

2016-12-21 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 <ch...@lapa.com.au> --- drivers/power/supply/bq27xxx_batter

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

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

2016-12-21 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 B

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

2016-12-21 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> The BQ275XX definition exists only to satisfy backwards compatibility. tested: no Signed-off-by: Chris Lapa <ch...@lapa.com.au> --- drivers/power/supply/bq27xxx_battery.c | 8 drivers/power/supply/bq27xxx_battery_i2c.c | 6 +++--- i

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

2016-12-21 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 <ch...@lapa.com.au> --- drivers/power/supply/bq27xxx_batter

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

2016-12-21 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 <ch...@lapa.com.au> --- drivers/power/supply/bq27xxx_batter

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

2016-12-21 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 <ch...@lapa.com.au> --- drivers/power/supply/bq27xxx_batter

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

2016-12-21 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 <ch...@lapa.com.au> --- drivers/power/supply/bq27xxx_batter

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

2016-12-22 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 <ch...@lapa.com.au> --- drivers/power/supply/bq27xxx_batter

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

2016-12-22 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 ch

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

2016-12-22 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> The BQ275XX definition exists only to satisfy backwards compatibility. tested: yes Signed-off-by: Chris Lapa <ch...@lapa.com.au> --- drivers/power/supply/bq27xxx_battery.c | 8 drivers/power/supply/bq27xxx_battery_i2c.c | 6 +++

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

2016-12-22 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 <ch...@lapa.com.au> --- drivers/power/supply/bq27xxx_batter

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

2016-12-22 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 <ch...@lapa.com.au> --- drivers/power/supply/bq27xxx_batter

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

2016-12-22 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> Separated the check out into its own function to make its functionality easier to understand. Signed-off-by: Chris Lapa <ch...@lapa.com.au> --- drivers/power/supply/bq27xxx_battery.c | 16 1 file changed, 12 insertions(+),

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

2016-12-22 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 <ch...@lapa.com.au> --- .../devicetree/bindings/power/supply/bq275x

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

2016-12-22 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 <ch...@lapa.com.au> --- drivers/power/supply/bq27xxx_batter

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

2016-12-22 Thread Chris Lapa
From: Chris Lapa <ch...@lapa.com.au> 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 <ch...@lapa.com.au> --- drivers/power/supply/bq27xxx_batter

  1   2   3   >