[PATCH V2 0/3] Add DT Binding for Power-Supply power-supplies property

2013-04-01 Thread Rhyland Klein
supply them. Rhyland Klein (3): power_supply: Define Binding for power-supplies power: power_supply: Add core support for supplied_from power: power_supply_core: Add support for supplied_from .../bindings/power_supply/power_supply.txt | 23 +++ drivers/power/power_supply_core.c

[PATCH V2 1/3] power_supply: Define Binding for power-supplies

2013-04-01 Thread Rhyland Klein
This property is meant to be used in device nodes which represent power_supply devices that wish to provide a list of supplies which provide them power, such as a battery listing its chargers. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- v2: - no changes v1: - changed from RFC v2 - patch

[PATCH V2 2/3] power: power_supply: Add core support for supplied_from

2013-04-01 Thread Rhyland Klein
-by: Rhyland Klein rkl...@nvidia.com --- v2: - changed __power_supply_is_supplied_by to a boolean function - fixed up return paths with correct return values - moved loop invariant checks outside of loops v1: - changed from RFC v2 - patch v1 - removed list logic and instead added supplied_from char

[PATCH V2 3/3] power: power_supply_core: Add support for supplied_from

2013-04-01 Thread Rhyland Klein
Adding support for supplied_from char * array. This is meant to store the list of suppliers for a given supply, i.e. chargers for a battery. This list can be populated through devicetree readily as well as passed directly from the driver. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- v2

Re: [REPOST Patch v1 2/3] power: power_supply: Add core support for supplied_from

2013-03-27 Thread Rhyland Klein
On 3/27/2013 12:30 PM, Stephen Warren wrote: On 03/25/2013 08:24 PM, Rhyland Klein wrote: This patch adds support for supplies to register a list of char *'s which represent the list of supplies which supply them. This is the opposite as the supplied_to list. This change maintains support

[REPOST Patch v1 0/3] Add DT Binding for Power-Supply power-supplies property

2013-03-25 Thread Rhyland Klein
) contain a list of the supplies (chargers) which supply them. Rhyland Klein (3): power_supply: Define Binding for power-supplies power: power_supply: Add core support for supplied_from power: power_supply_core: Add support for supplied_from .../bindings/power_supply/power_supply.txt

[REPOST Patch v1 1/3] power_supply: Define Binding for power-supplies

2013-03-25 Thread Rhyland Klein
This property is meant to be used in device nodes which represent power_supply devices that wish to provide a list of supplies which provide them power, such as a battery listing its chargers. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- v1: - changed from RFC v2 - patch v1 - made

[REPOST Patch v1 2/3] power: power_supply: Add core support for supplied_from

2013-03-25 Thread Rhyland Klein
-by: Rhyland Klein rkl...@nvidia.com --- v1: - changed from RFC v2 - patch v1 - removed list logic and instead added supplied_from char ** array and num_supplies field v2 (RFC): - changed from struct device_node * contained in suppliers to a list stored in the supplies. - changed logic

[REPOST Patch v1 3/3] power: power_supply_core: Add support for supplied_from

2013-03-25 Thread Rhyland Klein
Adding support for supplied_from char * array. This is meant to store the list of suppliers for a given supply, i.e. chargers for a battery. This list can be populated through devicetree readily as well as passed directly from the driver. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- v1

[PATCH 1/2] power_supply: tps65090: Update bindings for subnode

2013-03-21 Thread Rhyland Klein
This updates the DT documentation to reflect that the tps65090-charger should be represented as a child node of the tps65090 device itself. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- .../devicetree/bindings/power_supply/tps65090.txt | 18 ++ 1 file changed, 6

[PATCH 2/2] power_supply: tps65090: Setup compatible property for dt

2013-03-21 Thread Rhyland Klein
Setup the compatible property so that when this device is registered through device tree, it can match the expected compatiblity string used in the tps65090 driver. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- drivers/power/tps65090-charger.c | 10 -- 1 file changed, 8 insertions

Re: [PATCH 3/4] ARM: tegra: dalmore: add dt node for TPS65090's regulators

2013-03-20 Thread Rhyland Klein
On 3/20/2013 9:44 AM, Laxman Dewangan wrote: NVIDIA's Tegra114 platform, Dalmore, uses the TPS65090 as secondary PMICs which mainly act as voltage switch controlled by I2C communication. Add regulator node for this device. Signed-off-by: Laxman Dewangan ldewan...@nvidia.com ---

Re: [Patch v3 0/4] Add support for tps65090-charger

2013-03-19 Thread Rhyland Klein
On 3/18/2013 10:24 PM, Anton Vorontsov wrote: On Tue, Mar 12, 2013 at 06:08:05PM -0400, Rhyland Klein wrote: This patchset adds support for the TPS65090-charger. This charger is registered as a subdevice of the TPS65090 PMIC. This series includes a fix for the tps65090 header file where all

Re: [Patch v3 0/4] Add support for tps65090-charger

2013-03-19 Thread Rhyland Klein
On 3/19/2013 11:59 AM, Anton Vorontsov wrote: On Tue, Mar 19, 2013 at 11:55:33AM -0400, Rhyland Klein wrote: On 3/18/2013 10:24 PM, Anton Vorontsov wrote: On Tue, Mar 12, 2013 at 06:08:05PM -0400, Rhyland Klein wrote: This patchset adds support for the TPS65090-charger. This charger

Re: [Patch v3 2/4] mfd: tps65090: Add resources for charger

2013-03-19 Thread Rhyland Klein
On 3/12/2013 6:08 PM, Rhyland Klein wrote: Add irq resources to pass to the charger mfd sub dev so the charger can listen for interrupts. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- v3: - no changes since v2 v2: - no changes since v1 drivers/mfd/tps65090.c | 10

Re: [Patch v3 3/4] power_supply: tps65090-charger: Add binding doc

2013-03-13 Thread Rhyland Klein
On 3/12/2013 7:10 PM, Stephen Warren wrote: On 03/12/2013 04:08 PM, Rhyland Klein wrote: This change adds the binding documentation for the tps65090-charger. diff --git a/Documentation/devicetree/bindings/power_supply/tps65090.txt b/Documentation/devicetree/bindings/power_supply/tps65090.txt

Re: [Patch v3 3/4] power_supply: tps65090-charger: Add binding doc

2013-03-13 Thread Rhyland Klein
On 3/13/2013 4:41 PM, Stephen Warren wrote: On 03/13/2013 01:25 PM, Rhyland Klein wrote: On 3/12/2013 7:10 PM, Stephen Warren wrote: On 03/12/2013 04:08 PM, Rhyland Klein wrote: This change adds the binding documentation for the tps65090-charger. diff --git a/Documentation/devicetree/bindings

[Patch v3 0/4] Add support for tps65090-charger

2013-03-12 Thread Rhyland Klein
: - cleaned up tps65090 driver per comments (mostly var naming) - flushed out commit description for driver - reordered probe so irq is registered after power_supply and cleaned up 1st Rhyland Klein (4): mfd: tps65090: Fix enum in header file mfd: tps65090: Add resources for charger

[Patch v3 2/4] mfd: tps65090: Add resources for charger

2013-03-12 Thread Rhyland Klein
Add irq resources to pass to the charger mfd sub dev so the charger can listen for interrupts. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- v3: - no changes since v2 v2: - no changes since v1 drivers/mfd/tps65090.c | 10 ++ 1 file changed, 10 insertions(+) diff --git

[Patch v3 3/4] power_supply: tps65090-charger: Add binding doc

2013-03-12 Thread Rhyland Klein
This change adds the binding documentation for the tps65090-charger. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- v3: - no changes since v2 v2: - no changes since v1 .../devicetree/bindings/power_supply/tps65090.txt | 23 1 file changed, 23 insertions(+) create

[Patch v3 1/4] mfd: tps65090: Fix enum in header file

2013-03-12 Thread Rhyland Klein
The enum is missing the definition for the first bit, which makes all the rest off by one. Add definition for the TPS65090_IRQ_INTERRUPT bit which at 0. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- v3: - no changes since v2 v2: - no changes since v1 include/linux/mfd/tps65090.h |1

[Patch v3 4/4] power: tps65090: Add support for tps65090-charger

2013-03-12 Thread Rhyland Klein
above which are not yet supported. Based on work by: Syed Rafiuddin srafiud...@nvidia.com Laxman Dewangan ldewan...@nvidia.com Signed-off-by: Rhyland Klein rkl...@nvidia.com --- v3: - fixed build errors/warnings around devm_free_irq and unused irq label v2: - updated commit description with more

Re: [PATCH v2 3/4] power_supply: tps65090-charger: Add binding doc

2013-03-05 Thread Rhyland Klein
On 3/5/2013 1:15 PM, Stephen Warren wrote: On 03/04/2013 12:01 PM, Rhyland Klein wrote: This change adds the binding documentation for the tps65090-charger. diff --git a/Documentation/devicetree/bindings/power_supply/tps65090.txt b/Documentation/devicetree/bindings/power_supply/tps65090.txt

Re: [PATCH 4/4] power: tps65090: Add support for tps65090-charger

2013-03-04 Thread Rhyland Klein
On 3/2/2013 7:03 PM, Anton Vorontsov wrote: Hello Rhyland, Thanks for the driver! A few comments down below... On Wed, Feb 27, 2013 at 06:07:30PM -0500, Rhyland Klein wrote: This patch adds support for the tps65090 charger driver. Would be nice to get a few more words about the hardware

Re: [RFC v2 2/3] power: power_supply: Add core support for supplied_nodes

2013-03-04 Thread Rhyland Klein
On 3/2/2013 5:48 PM, Anton Vorontsov wrote: On Thu, Feb 28, 2013 at 02:48:03PM -0500, Rhyland Klein wrote: [...] Anton, David, would you be adverse to the changing of supplied_to from being a list of batteries stored in a charger to being a list of chargers stored in batteries? I wonder if we

[PATCH v2 1/4] mfd: tps65090: Fix enum in header file

2013-03-04 Thread Rhyland Klein
The enum is missing the definition for the first bit, which makes all the rest off by one. Add definition for the TPS65090_IRQ_INTERRUPT bit which at 0. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- v2: - no changes since v1 include/linux/mfd/tps65090.h |1 + 1 file changed, 1

[PATCH v2 4/4] power: tps65090: Add support for tps65090-charger

2013-03-04 Thread Rhyland Klein
above which are not yet supported. Based on work by: Syed Rafiuddin srafiud...@nvidia.com Laxman Dewangan ldewan...@nvidia.com Signed-off-by: Rhyland Klein rkl...@nvidia.com --- v2: - updated commit description with more info - cleaned up misc comments (var names, spacing, etc) - reordered probe

[Patch v1 0/3] Add DT Binding for Power-Supply power-supplies property

2013-03-04 Thread Rhyland Klein
) contain a list of the supplies (chargers) which supply them. Rhyland Klein (3): power_supply: Define Binding for power-supplies power: power_supply: Add core support for supplied_from power: power_supply_core: Add support for supplied_from .../bindings/power_supply/power_supply.txt

[Patch v1 1/3] power_supply: Define Binding for power-supplies

2013-03-04 Thread Rhyland Klein
This property is meant to be used in device nodes which represent power_supply devices that wish to provide a list of supplies which provide them power, such as a battery listing its chargers. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- v1: - changed from RFC v2 - patch v1 - made

[Patch v1 2/3] power: power_supply: Add core support for supplied_from

2013-03-04 Thread Rhyland Klein
-by: Rhyland Klein rkl...@nvidia.com --- v1: - changed from RFC v2 - patch v1 - removed list logic and instead added supplied_from char ** array and num_supplies field v2 (RFC): - changed from struct device_node * contained in suppliers to a list stored in the supplies. - changed logic

[Patch v1 3/3] power: power_supply_core: Add support for supplied_from

2013-03-04 Thread Rhyland Klein
Adding support for supplied_from char * array. This is meant to store the list of suppliers for a given supply, i.e. chargers for a battery. This list can be populated through devicetree readily as well as passed directly from the driver. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- v1

Re: [RFC v2 2/3] power: power_supply: Add core support for supplied_nodes

2013-02-28 Thread Rhyland Klein
On 2/22/2013 4:58 PM, Rhyland Klein wrote: On 2/22/2013 3:09 PM, Stephen Warren wrote: On 02/21/2013 04:11 PM, Rhyland Klein wrote: With the growing support for dt, it make sense to try to make use of dt features to make the general code cleaner. This patch is an attempt to commonize how

Re: [RFC v2 2/3] power: power_supply: Add core support for supplied_nodes

2013-02-28 Thread Rhyland Klein
On 2/22/2013 6:01 PM, Stephen Warren wrote: On 02/22/2013 02:55 PM, Rhyland Klein wrote: On 2/22/2013 2:49 PM, Stephen Warren wrote: On 02/21/2013 04:11 PM, Rhyland Klein wrote: With the growing support for dt, it make sense to try to make use of dt features to make the general code cleaner

[PATCH 0/4] Add support for tps65090-charger

2013-02-27 Thread Rhyland Klein
This patchset adds support for the TPS65090-charger. This charger is registered as a subdevice of the TPS65090 PMIC. This series includes a fix for the tps65090 header file where all the interrupts were shifted by 1. Rhyland Klein (4): mfd: tps65090: Fix enum in header file mfd: tps65090

[PATCH 2/4] mfd: tps65090: Add resources for charger

2013-02-27 Thread Rhyland Klein
Add irq resources to pass to the charger mfd sub dev so the charger can listen for interrupts. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- drivers/mfd/tps65090.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/mfd/tps65090.c b/drivers/mfd/tps65090.c index

[PATCH 3/4] power_supply: tps65090-charger: Add binding doc

2013-02-27 Thread Rhyland Klein
This change adds the binding documentation for the tps65090-charger. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- .../devicetree/bindings/power_supply/tps65090.txt | 23 1 file changed, 23 insertions(+) create mode 100644 Documentation/devicetree/bindings

[PATCH 4/4] power: tps65090: Add support for tps65090-charger

2013-02-27 Thread Rhyland Klein
This patch adds support for the tps65090 charger driver. Based on work by: Syed Rafiuddin srafiud...@nvidia.com Laxman Dewangan ldewan...@nvidia.com Signed-off-by: Rhyland Klein rkl...@nvidia.com --- drivers/power/Kconfig|7 + drivers/power/Makefile |1 + drivers

Re: [RFC v2 2/3] power: power_supply: Add core support for supplied_nodes

2013-02-22 Thread Rhyland Klein
On 2/22/2013 2:49 PM, Stephen Warren wrote: On 02/21/2013 04:11 PM, Rhyland Klein wrote: With the growing support for dt, it make sense to try to make use of dt features to make the general code cleaner. This patch is an attempt to commonize how chargers and their supplies are linked

Re: [RFC v2 2/3] power: power_supply: Add core support for supplied_nodes

2013-02-22 Thread Rhyland Klein
On 2/22/2013 3:09 PM, Stephen Warren wrote: On 02/21/2013 04:11 PM, Rhyland Klein wrote: With the growing support for dt, it make sense to try to make use of dt features to make the general code cleaner. This patch is an attempt to commonize how chargers and their supplies are linked

Re: [RFC v2 1/3] power_supply: Define Binding for supplied-nodes

2013-02-22 Thread Rhyland Klein
On 2/22/2013 2:46 PM, Stephen Warren wrote: On 02/21/2013 04:11 PM, Rhyland Klein wrote: This property is meant to be used in device nodes which represent power_supply devices that wish to provide a list of supplies to which they provide power. A common case is a AC Charger with the batteries

[RFC v2 1/3] power_supply: Define Binding for supplied-nodes

2013-02-21 Thread Rhyland Klein
This property is meant to be used in device nodes which represent power_supply devices that wish to provide a list of supplies to which they provide power. A common case is a AC Charger with the batteries it powers. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- v2: - Changed property

[RFC v2 0/3] Add DT Binding for Power-Supply power-supply property

2013-02-21 Thread Rhyland Klein
and define a common function which can retrieve them automatically. Changes: - v2: Inverted the logic so that supplies (batteries) contain a list of the supplies (chargers) which supply them. Rhyland Klein (3): power_supply: Define Binding for supplied-nodes power: power_supply: Add core

[RFC v2 2/3] power: power_supply: Add core support for supplied_nodes

2013-02-21 Thread Rhyland Klein
in the supplies of their chargers, however this seems to be the only way to support this. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- v2: - Changed from struct device_node* contained in suppliers to a list stored in the supplies. - changed logic for the is_supplied_by check to handle

[RFC v2 3/3] power: power_supply: add support for getting supplied-nodes from dt

2013-02-21 Thread Rhyland Klein
of supplies and store it in the power_supply structure. In this way, it shouldn't break existing drivers, but allow for transition cleanly. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- v2: - Simplified and renamed the logic to parse dt for the charger list. - Tied the dt parsing directly

Re: [RFC 1/3] power_supply: Define Binding for supplied-nodes

2013-02-19 Thread Rhyland Klein
On 2/16/2013 5:38 PM, Anton Vorontsov wrote: On Fri, Feb 15, 2013 at 06:36:54PM -0500, Rhyland Klein wrote: This property is meant to be used in device nodes which represent power_supply devices that wish to provide a list of supplies to which they provide power. A common case is a AC Charger

[RFC 0/3] Add DT Binding for Power-Supply supplied-nodes property

2013-02-15 Thread Rhyland Klein
and define a common function which can retrieve them automatically. Rhyland Klein (3): power_supply: Define Binding for supplied-nodes power: power_supply: Add core support for supplied_nodes power: power_supply: add support for getting supplied-nodes from dt .../bindings/power_supply

[RFC 1/3] power_supply: Define Binding for supplied-nodes

2013-02-15 Thread Rhyland Klein
This property is meant to be used in device nodes which represent power_supply devices that wish to provide a list of supplies to which they provide power. A common case is a AC Charger with the batteries it powers. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- .../bindings/power_supply

[RFC 2/3] power: power_supply: Add core support for supplied_nodes

2013-02-15 Thread Rhyland Klein
reference without having to hard code in names. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- drivers/power/power_supply_core.c | 25 +++-- include/linux/power_supply.h |4 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/drivers/power

[RFC 3/3] power: power_supply: add support for getting supplied-nodes from dt

2013-02-15 Thread Rhyland Klein
With the addition of the device_nodes to use similar to how supplied_to works, add a helper function which will parse out the phandles for the supplied-nodes directly from the node. This implmentation requires the property name to be supplied-nodes. Signed-off-by: Rhyland Klein rkl...@nvidia.com

Re: [PATCH v5 04/10] clk: tegra: Add new fields and PLL types for Tegra114

2013-02-01 Thread Rhyland Klein
On 2/1/2013 5:18 AM, Peter De Schrijver wrote: Tegra114 introduces new PLL types. This requires new clocktypes as well as some new fields in the pll structure. Signed-off-by: Peter De Schrijver pdeschrij...@nvidia.com --- drivers/clk/tegra/clk-pll.c | 719

[PATCH 0/6 v3] Update TPS65910 to boot using devicetree

2012-05-08 Thread Rhyland Klein
This patch set updates the tps65910 driver to boot using devicetree. This patch set now uses the new addition to the of_regulator code, of_regulator_match to find all the regulator init data for the device. Rhyland Klein (6): mfd: tps65910: Commonize regmap access through header regulator

[PATCH 1/6 v3] mfd: tps65910: Commonize regmap access through header

2012-05-08 Thread Rhyland Klein
This change removes the read/write callback functions in favor of common regmap accessors inside the header file. This change also makes use of regmap_read/write for single register access which maps better onto what this driver actually needs. Signed-off-by: Rhyland Klein rkl...@nvidia.com

[PATCH 3/6 v3] mfd: tps65910: Add device-tree support

2012-05-08 Thread Rhyland Klein
Add device tree based initialization support for TI's tps65910 pmic. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- v3: no change since v2. v2: split mfd portion into single change to add dt support added of_node to config before calling regulator_register removed passing pdata

[PATCH 2/6 v3] regulator: tps65910: Add device tree bindings

2012-05-08 Thread Rhyland Klein
Add device tree bindings for TI's tps65910 pmic. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- v3: No change since v2. v2: Moved ext-sleep-control into regulator nodes Documentation/devicetree/bindings/mfd/tps65910.txt | 133 1 files changed, 133 insertions(+), 0

[PATCH 4/6 v3] regulator: tps65910 regulator: add device tree support

2012-05-08 Thread Rhyland Klein
Add devicetree based initialization support for TI tps65910 regulators. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- v3: Modified to use new api of_regulator_match to fetch all regulator init data from device node. v2: split off regulator specific dt initialization drivers

[PATCH 6/6 v3] ARM: Tegra: Add support for TPS65910 PMIC

2012-05-08 Thread Rhyland Klein
Add support for the tps65910 pmic on cardhu. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- v3: no change from v2. v2: updated to move ext-sleep-control into the regulator nodes arch/arm/boot/dts/tegra-cardhu.dts | 91 1 files changed, 91 insertions

Re: [PATCH 5/6 v3] mfd: tps65910-irq: Add devicetree init support

2012-05-08 Thread Rhyland Klein
On Tue, 2012-05-08 at 08:48 -0700, Mark Brown wrote: * PGP Signed by an unknown key On Tue, May 08, 2012 at 11:42:42AM -0700, Rhyland Klein wrote: + if (pdata-irq_base = 0) + pdata-irq_base = irq_alloc_descs(-1, 0, tps65910-irq_num, -1); + + if (pdata-irq_base = 0

Re: [PATCH 5/6 v3] mfd: tps65910-irq: Add devicetree init support

2012-05-08 Thread Rhyland Klein
On Tue, 2012-05-08 at 09:29 -0700, Mark Brown wrote: * PGP Signed by an unknown key On Tue, May 08, 2012 at 12:11:31PM -0700, Rhyland Klein wrote: Is this more what you would expect? If the dt code initialized the irq_base to 0 instead of -1 then this should also work. pdata-irq_base

RE: [PATCH v2 1/2] regulator: Add generic DT parsing for regulators

2012-05-03 Thread Rhyland Klein
introduced by this patch looks up the children of a given node by names specified in a match table and fills that match table with information parsed from the DT. This is based on work by Rhyland Klein rkl...@nvidia.com. Rhyland, does this new interface work for you? I believe Rhyland is OOTO

[PATCH 0/8 v2] Update TPS65910 to boot using devicetree

2012-04-24 Thread Rhyland Klein
the pointers to the regulator_init_data structures. Rhyland Klein (8): regulator: add generic of node parsing for regulators regulator: add node validation checks mfd: tps65910: Commonize regmap access through header regulator: tps65910: Add device tree bindings mfd: tps65910: Add device-tree

[PATCH 1/8 v2] regulator: add generic of node parsing for regulators

2012-04-24 Thread Rhyland Klein
-by: Rhyland Klein rkl...@nvidia.com --- v2: split off from tps65910 particular code to a more generic form based on initial reviews. drivers/regulator/of_regulator.c | 42 include/linux/regulator/of_regulator.h |9 +++ 2 files changed, 51 insertions

[PATCH 2/8 v2] regulator: add node validation checks

2012-04-24 Thread Rhyland Klein
This change adds some validation logic to the logic for parsing nodes for regulator init data. The idea is to catch nodes that are defined but not used which likely means invalid nodes. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- v2: split off some node validation checks from original

[PATCH 3/8 v2] mfd: tps65910: Commonize regmap access through header

2012-04-24 Thread Rhyland Klein
This change removes the read/write callback functions in favor of common regmap accessors inside the header file. This change also makes use of regmap_read/write for single register access which maps better onto what this driver actually needs. Signed-off-by: Rhyland Klein rkl...@nvidia.com

[PATCH 4/8 v2] regulator: tps65910: Add device tree bindings

2012-04-24 Thread Rhyland Klein
Add device tree bindings for TI's tps65910 pmic. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- v2: Moved ext-sleep-control into regulator nodes Documentation/devicetree/bindings/mfd/tps65910.txt | 133 1 files changed, 133 insertions(+), 0 deletions(-) create mode

[PATCH 6/8 v2] regulator: tps65910 regulator: add device tree support

2012-04-24 Thread Rhyland Klein
Add devicetree based initialization support for TI tps65910 regulators. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- v2: split off regulator specific dt initialization made use of new function to match regulator nodes to names to fill in init_data drivers/regulator/tps65910

[PATCH 7/8 v2] mfd: tps65910-irq: Add devicetree init support

2012-04-24 Thread Rhyland Klein
Add support for initializing when boot using devicetree. The main difference is that the irq_base will not be setup, so it needs to be manually handled. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- v2: split off irq specific changes based on previous review comments drivers/mfd/tps65910

[PATCH 8/8 v2] ARM: Tegra: Add support for TPS65910 PMIC

2012-04-24 Thread Rhyland Klein
Add support for the tps65910 pmic on cardhu. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- v2: updated to move the ext-sleep-control into the regulator nodes arch/arm/boot/dts/tegra-cardhu.dts | 91 1 files changed, 91 insertions(+), 0 deletions

Re: [PATCH 1/4] regulator: tps65910: update type for regmap

2012-04-18 Thread Rhyland Klein
On Wed, 2012-04-18 at 02:25 -0700, Mark Brown wrote: * PGP Signed by an unknown key On Tue, Apr 17, 2012 at 06:00:26PM -0700, Rhyland Klein wrote: When accessing the regmap via the read/write functions, we need to use a unsigned int * instead of a u8 * otherwise corruption will occur

Re: [PATCH 1/4] regulator: tps65910: update type for regmap

2012-04-18 Thread Rhyland Klein
On Wed, 2012-04-18 at 13:03 -0700, Rhyland Klein wrote: On Wed, 2012-04-18 at 02:25 -0700, Mark Brown wrote: * PGP Signed by an unknown key On Tue, Apr 17, 2012 at 06:00:26PM -0700, Rhyland Klein wrote: When accessing the regmap via the read/write functions, we need to use a unsigned

Re: adding devicetree support for an interrupt controller

2012-04-17 Thread Rhyland Klein
On Thu, 2012-04-12 at 18:38 -0700, Rhyland Klein wrote: So I am working on adding DT support for the tps65910 pmic. It (amongst other things) is an interrupt controller. I am looking to convert that code as well, and I am curious if there is a good example to work off. The driver's irq_base

[PATCH 0/4] Update TPS65910 to boot using devicetree

2012-04-17 Thread Rhyland Klein
was to maintain the list of regulator names solely inside the tps65910-regulator code as it already was. Rhyland Klein (4): regulator: tps65910: update type for regmap regulator: tps65910: Add device tree bindings mfd: tps65910: Add device-tree support ARM: Tegra: Add support for TPS65910 PMIC

[PATCH 4/4] ARM: Tegra: Add support for TPS65910 PMIC

2012-04-17 Thread Rhyland Klein
Add support for the tps65910 pmic on cardhu. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- arch/arm/boot/dts/tegra-cardhu.dts | 92 1 files changed, 92 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/tegra-cardhu.dts b/arch/arm/boot/dts

[PATCH 2/4] regulator: tps65910: Add device tree bindings

2012-04-17 Thread Rhyland Klein
Add device tree bindings for TI's tps65910 pmic. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- Documentation/devicetree/bindings/mfd/tps65910.txt | 132 1 files changed, 132 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/mfd

[PATCH 1/4] regulator: tps65910: update type for regmap

2012-04-17 Thread Rhyland Klein
When accessing the regmap via the read/write functions, we need to use a unsigned int * instead of a u8 * otherwise corruption will occur. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- drivers/regulator/tps65910-regulator.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff

[PATCH 3/4] mfd: tps65910: Add device-tree support

2012-04-17 Thread Rhyland Klein
Add device tree based initialization support for TI's tps65910 pmic. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- drivers/gpio/gpio-tps65910.c | 39 ++- drivers/mfd/tps65910-irq.c | 21 ++-- drivers/mfd/tps65910.c | 78

adding devicetree support for an interrupt controller

2012-04-12 Thread Rhyland Klein
So I am working on adding DT support for the tps65910 pmic. It (amongst other things) is an interrupt controller. I am looking to convert that code as well, and I am curious if there is a good example to work off. The driver's irq_base is not set, so it needs to use a dynamic domain. The examples

[PATCH 1/2] power: sbs-battery: Rename bq20z75 to sbs-battery

2012-01-12 Thread Rhyland Klein
: Ibdfae134c7af9dc1b730d01b36f010f9a1923968 Signed-off-by: Rhyland Klein rkl...@nvidia.com --- drivers/power/Kconfig |8 +- drivers/power/Makefile|2 +- drivers/power/bq20z75.c | 792 - drivers/power/sbs-battery.c | 775

[PATCH 1/5] drivers: power: Rename bq20z75 to sbs-battery

2012-01-12 Thread Rhyland Klein
This driver for the bq20z75 implemented the register spec defined by the SBS standard. As this is not unique to this the TI part this was originally written for, we can generalize this driver to show its support for any SBS compliant battery. Signed-off-by: Rhyland Klein rkl...@nvidia.com

[PATCH 1/5 v2] drivers: power: Rename bq20z75 to sbs-battery

2012-01-12 Thread Rhyland Klein
This driver for the bq20z75 implemented the register spec defined by the SBS standard. As this is not unique to this the TI part this was originally written for, we can generalize this driver to show its support for any SBS compliant battery. Signed-off-by: Rhyland Klein rkl...@nvidia.com

Re: [PATCH 1/5] drivers: power: Rename bq20z75 to sbs-battery

2011-12-14 Thread Rhyland Klein
On Tue, 2011-12-06 at 09:41 -0800, Matthew Garrett wrote: On Mon, Dec 05, 2011 at 03:58:03PM -0800, Rhyland Klein wrote: +config BATTERY_SBS +tristate SBS Compliant gas gauge This could potentially be confusing with the ACPI SBS code - I guess the long term ideal would

[PATCH 2/2] Added parameter for selection power supply name from pdata

2011-12-05 Thread Rhyland Klein
Change-Id: Ib0a41ff9ac8c1fc97aa7a87320f8d95be7988d71 Signed-off-by: Rhyland Klein rkl...@nvidia.com --- drivers/power/sbs-battery.c |2 +- include/linux/power/sbs-battery.h |2 ++ 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/power/sbs-battery.c b/drivers

Re: [PATCH 2/2] Added parameter for selection power supply name from pdata

2011-12-05 Thread Rhyland Klein
On Mon, 2011-12-05 at 15:57 -0800, Rhyland Klein wrote: Change-Id: Ib0a41ff9ac8c1fc97aa7a87320f8d95be7988d71 Signed-off-by: Rhyland Klein rkl...@nvidia.com --- drivers/power/sbs-battery.c |2 +- include/linux/power/sbs-battery.h |2 ++ 2 files changed, 3 insertions(+), 1

[PATCH 2/5] power: sbs-battery: rename internals to new name

2011-12-05 Thread Rhyland Klein
Now that this driver is named more generally, this change updates the internal variables, defines and functions to use this new name. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- drivers/power/sbs-battery.c | 425 ++--- include/linux/power/sbs

[PATCH 4/5] Rename propgated to dt binding documentation

2011-12-05 Thread Rhyland Klein
Signed-off-by: Rhyland Klein rkl...@nvidia.com --- .../bindings/power_supply/sbs_sbs-battery.txt | 23 .../bindings/power_supply/ti_bq20z75.txt | 23 2 files changed, 23 insertions(+), 23 deletions(-) create mode 100644 Documentation

[PATCH 3/5] Adding entry for Smart Battery Systems

2011-12-05 Thread Rhyland Klein
Signed-off-by: Rhyland Klein rkl...@nvidia.com --- .../devicetree/bindings/vendor-prefixes.txt|1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index

[PATCH 5/5] power: sbs-battery: Change power supply name

2011-12-05 Thread Rhyland Klein
The power supply name used to be fixed as battery. This change allows for multiple batteries by generating the name rather than using a fixed value. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- drivers/power/sbs-battery.c | 21 ++--- 1 files changed, 18 insertions(+), 3

Re: [PATCH 2/5] power: sbs-battery: rename internals to new name

2011-12-05 Thread Rhyland Klein
On Mon, 2011-12-05 at 17:20 -0800, Anton Vorontsov wrote: On Mon, Dec 05, 2011 at 03:58:04PM -0800, Rhyland Klein wrote: [...] -static const struct i2c_device_id bq20z75_id[] = { - { bq20z75, 0 }, +static const struct i2c_device_id sbs_id[] = { + { sbs-battery, 0 }, You have

[PATCH 2/5 v2] power: sbs-battery: rename internals to new name

2011-12-05 Thread Rhyland Klein
Now that this driver is named more generally, this change updates the internal variables, defines and functions to use this new name. v2: Added back in ids for bq20z75 to maintain compatibility. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- drivers/power/sbs-battery.c | 423

[PATCH 3/5 v2] Adding entry for Smart Battery Systems

2011-12-05 Thread Rhyland Klein
Signed-off-by: Rhyland Klein rkl...@nvidia.com --- .../devicetree/bindings/vendor-prefixes.txt|1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index

[PATCH 4/5 v2] Rename propgated to dt binding documentation

2011-12-05 Thread Rhyland Klein
Signed-off-by: Rhyland Klein rkl...@nvidia.com --- .../bindings/power_supply/sbs_sbs-battery.txt | 23 .../bindings/power_supply/ti_bq20z75.txt | 23 2 files changed, 23 insertions(+), 23 deletions(-) create mode 100644 Documentation

[PATCH 5/5 v2] power: sbs-battery: Change power supply name

2011-12-05 Thread Rhyland Klein
The power supply name used to be fixed as battery. This change allows for multiple batteries by generating the name rather than using a fixed value. v2: simplified kasprintf and cleaned up unneeded member of sbs_info. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- drivers/power/sbs

Re: [PATCH v5] power: bq20z75: devicetree init support

2011-11-28 Thread Rhyland Klein
only once for each function it appears in drivers/power/bq20z75.c:630:21: warning: unused variable ‘gpio_flags’ [-Wunused-variable] drivers/power/bq20z75.c:627:29: warning: unused variable ‘dtid’ [-Wunused-variable] I fixed this by... On Wed, Sep 14, 2011 at 01:19:07PM -0700, Rhyland

Re: [PATCH v5] power: bq20z75: devicetree init support

2011-10-14 Thread Rhyland Klein
On Wed, 2011-09-14 at 13:19 -0700, Rhyland Klein wrote: Adding support to generate platform data when kernel is configured through device tree. Also adding the binding for the TI bq20z75 fuel gadge and the bq20z75 driver. v2: Fixed typo in binding description. v3: Changed to use ti

[PATCH v4] power: bq20z75: devicetree init support

2011-09-14 Thread Rhyland Klein
Adding support to generate platform data when kernel is configured through device tree. Also adding the binding for the TI bq20z75 fuel gadge and the bq20z75 driver. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- v2: Fixed typo in binding description v3: Changed to use ti

[PATCH 1/2 v3] power: bq20z75: devicetree init support

2011-09-13 Thread Rhyland Klein
Adding support to generate platform data when kernel is configured through device tree. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- v3: Changed to use ti, properties Changed to use gpio property with flag for polarity Removed unnecessary call

[PATCH 2/2 v3] power: bq20z75: Add Device Tree Binding

2011-09-13 Thread Rhyland Klein
Adding the binding for the TI bq20z75 fuel gadge and the bq20z75 driver. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- v2: Fixed typo in binding description v3: Changed unique properties to be use ti, Changed to use single gpio entry for gpio info .../bindings

[PATCH 1/2 v2] power: bq20z75: devicetree init support

2011-09-09 Thread Rhyland Klein
Adding support to generate platform data when kernel is configured through device tree. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- v2: Fixed typo in binding description drivers/power/bq20z75.c | 73 +++ 1 files changed, 73 insertions

[PATCH 2/2 v2] power: bq20z75: Add Device Tree Binding

2011-09-09 Thread Rhyland Klein
Adding the binding for the TI bq20z75 fuel gadge and the bq20z75 driver. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- .../bindings/power_supply/ti_bq20z75.txt | 25 1 files changed, 25 insertions(+), 0 deletions(-) create mode 100644 Documentation

[PATCH 1/2] power: bq20z75: devicetree init support

2011-09-01 Thread Rhyland Klein
Adding support to generate platform data when kernel is configured through device tree. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- drivers/power/bq20z75.c | 73 +++ 1 files changed, 73 insertions(+), 0 deletions(-) diff --git a/drivers/power

[PATCH 2/2] power: bq20z75: Add Device Tree Binding

2011-09-01 Thread Rhyland Klein
Adding the binding for the TI bq20z75 fuel gadge and the bq20z75 driver. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- .../bindings/power_supply/ti_bq20z75.txt | 25 1 files changed, 25 insertions(+), 0 deletions(-) create mode 100644 Documentation

  1   2   >