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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
:
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 +++---
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
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
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 - 100 of 103 matches
Mail list logo