[PATCH RFC 2/4] drivers: of: implement reserved-memory handling for dma

2014-01-22 Thread Josh Cartwright
Add support for handling 'shared-dma-pool' reserved-memory nodes. Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: Laura Abbott lau...@codeaurora.org Cc: Marek Szyprowski m.szyprow...@samsung.com Signed-off-by: Josh Cartwright jo...@codeaurora.org --- drivers/of/Kconfig

[PATCH RFC 0/4] reserved-memory regions/CMA in devicetree, again

2014-01-22 Thread Josh Cartwright
/g/20131030134702.19b57c40...@trevor.secretlab.ca Grant Likely (1): of: document bindings for reserved-memory nodes Josh Cartwright (1): drivers: of: implement reserved-memory handling for dma Marek Szyprowski (2): drivers: of: add initialization code for reserved memory ARM: init: add

[PATCH RFC 3/4] ARM: init: add support for reserved memory defined by device tree

2014-01-22 Thread Josh Cartwright
From: Marek Szyprowski m.szyprow...@samsung.com Enable reserved memory initialization from device tree. Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: Laura Abbott lau...@codeaurora.org Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com --- arch/arm/mm/init.c | 3 +++ 1 file

[PATCH RFC 4/4] of: document bindings for reserved-memory nodes

2014-01-22 Thread Josh Cartwright
/20131030134702.19b57c40...@trevor.secretlab.ca adapted to support #memory-region-cells] Cc: Marek Szyprowski m.szyprow...@samsung.com Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: Laura Abbott lau...@codeaurora.org Signed-off-by: Josh Cartwright jo...@codeaurora.org --- Hey Grant- Seeing as you

Re: [PATCH v2] usb: phy: msm: fix compilation errors when !CONFIG_PM_SLEEP

2014-01-17 Thread Josh Cartwright
On Fri, Jan 17, 2014 at 11:58:51AM -0600, Josh Cartwright wrote: > Both the PM_RUNTIME and PM_SLEEP callbacks call into the common > msm_otg_{suspend,resume} routines, however these routines are only being > built when CONFIG_PM_SLEEP. In addition, msm_otg_{suspend,resume} also

[PATCH v2] usb: phy: msm: fix compilation errors when !CONFIG_PM_SLEEP

2014-01-17 Thread Josh Cartwright
'msm_otg_resume' Cc: Ivan T. Ivanov Reported-by: Russell King Signed-off-by: Josh Cartwright --- v1->v2: Change conditional to simply CONFIG_PM (thanks ccov and khilman!) drivers/usb/phy/phy-msm-usb.c | 57 --- 1 file changed, 26 insertions(+),

[PATCH] usb: phy: msm: fix compilation errors when !CONFIG_PM_SLEEP

2014-01-17 Thread Josh Cartwright
'msm_otg_resume' Cc: Ivan T. Ivanov Reported-by: Russell King Signed-off-by: Josh Cartwright --- drivers/usb/phy/phy-msm-usb.c | 57 --- 1 file changed, 26 insertions(+), 31 deletions(-) diff --git a/drivers/usb/phy/phy-msm-usb.c b/drivers/usb/phy/phy

[PATCH] usb: phy: msm: fix compilation errors when !CONFIG_PM_SLEEP

2014-01-17 Thread Josh Cartwright
'msm_otg_resume' Cc: Ivan T. Ivanov iiva...@mm-sol.com Reported-by: Russell King rmk+ker...@arm.linux.org.uk Signed-off-by: Josh Cartwright jo...@codeaurora.org --- drivers/usb/phy/phy-msm-usb.c | 57 --- 1 file changed, 26 insertions(+), 31 deletions

[PATCH v2] usb: phy: msm: fix compilation errors when !CONFIG_PM_SLEEP

2014-01-17 Thread Josh Cartwright
'msm_otg_resume' Cc: Ivan T. Ivanov iiva...@mm-sol.com Reported-by: Russell King rmk+ker...@arm.linux.org.uk Signed-off-by: Josh Cartwright jo...@codeaurora.org --- v1-v2: Change conditional to simply CONFIG_PM (thanks ccov and khilman!) drivers/usb/phy/phy-msm-usb.c | 57

Re: [PATCH v2] usb: phy: msm: fix compilation errors when !CONFIG_PM_SLEEP

2014-01-17 Thread Josh Cartwright
On Fri, Jan 17, 2014 at 11:58:51AM -0600, Josh Cartwright wrote: Both the PM_RUNTIME and PM_SLEEP callbacks call into the common msm_otg_{suspend,resume} routines, however these routines are only being built when CONFIG_PM_SLEEP. In addition, msm_otg_{suspend,resume} also depends

Re: [PATCH 2/4] ARM: sun6i: dt: Add PLL6 and SPI module clocks

2014-01-16 Thread Josh Cartwright
On Thu, Jan 16, 2014 at 06:11:23PM +0100, Maxime Ripard wrote: > The module clocks in the A31 are still compatible with the A10 one. Add the > SPI > module clocks and the PLL6 in the device tree to allow their use by the SPI > controllers. > > Signed-off-by: Maxime Ripard > --- >

Re: [PATCH 2/4] ARM: sun6i: dt: Add PLL6 and SPI module clocks

2014-01-16 Thread Josh Cartwright
On Thu, Jan 16, 2014 at 06:11:23PM +0100, Maxime Ripard wrote: The module clocks in the A31 are still compatible with the A10 one. Add the SPI module clocks and the PLL6 in the device tree to allow their use by the SPI controllers. Signed-off-by: Maxime Ripard

Re: [PATCH v4 4/6] spmi: pmic_arb: add support for interrupt handling

2014-01-15 Thread Josh Cartwright
On Tue, Jan 14, 2014 at 03:44:03PM -0800, Courtney Cavin wrote: > On Tue, Jan 14, 2014 at 07:41:38PM +0100, Josh Cartwright wrote: > > The Qualcomm PMIC Arbiter, in addition to being a basic SPMI controller, > > also implements interrupt handling for slave devices. Note, this

Re: [PATCH v4 5/6] spmi: document the PMIC arbiter SPMI bindings

2014-01-15 Thread Josh Cartwright
On Tue, Jan 14, 2014 at 04:13:45PM -0800, Courtney Cavin wrote: > On Tue, Jan 14, 2014 at 07:41:39PM +0100, Josh Cartwright wrote: > > Signed-off-by: Josh Cartwright > > --- > > .../bindings/spmi/qcom,spmi-pmic-arb.txt | 46 > > ++ > &g

Re: [PATCH v4 5/6] spmi: document the PMIC arbiter SPMI bindings

2014-01-15 Thread Josh Cartwright
On Tue, Jan 14, 2014 at 04:13:45PM -0800, Courtney Cavin wrote: On Tue, Jan 14, 2014 at 07:41:39PM +0100, Josh Cartwright wrote: Signed-off-by: Josh Cartwright jo...@codeaurora.org --- .../bindings/spmi/qcom,spmi-pmic-arb.txt | 46 ++ 1 file changed, 46

Re: [PATCH v4 4/6] spmi: pmic_arb: add support for interrupt handling

2014-01-15 Thread Josh Cartwright
On Tue, Jan 14, 2014 at 03:44:03PM -0800, Courtney Cavin wrote: On Tue, Jan 14, 2014 at 07:41:38PM +0100, Josh Cartwright wrote: The Qualcomm PMIC Arbiter, in addition to being a basic SPMI controller, also implements interrupt handling for slave devices. Note, this is outside the scope

[PATCH v4 5/6] spmi: document the PMIC arbiter SPMI bindings

2014-01-14 Thread Josh Cartwright
Signed-off-by: Josh Cartwright --- .../bindings/spmi/qcom,spmi-pmic-arb.txt | 46 ++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/spmi/qcom,spmi-pmic-arb.txt diff --git a/Documentation/devicetree/bindings/spmi/qcom,spmi

[PATCH v4 3/6] spmi: Add MSM PMIC Arbiter SPMI controller

2014-01-14 Thread Josh Cartwright
on the SPMI bus. The status register is read to determine when the command sequence has completed and whether or not it completed successfully. Signed-off-by: Kenneth Heitke Signed-off-by: Josh Cartwright --- drivers/spmi/Kconfig | 15 ++ drivers/spmi/Makefile| 2 + drivers/spmi

[PATCH v4 4/6] spmi: pmic_arb: add support for interrupt handling

2014-01-14 Thread Josh Cartwright
handling which allows for these interrupts to be used. Signed-off-by: Josh Cartwright --- drivers/spmi/spmi-pmic-arb.c | 393 ++- 1 file changed, 391 insertions(+), 2 deletions(-) diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c

[PATCH v4 0/6] Add support for the System Power Management Interface (SPMI)

2014-01-14 Thread Josh Cartwright
http://lkml.kernel.org/r/1389206270-3728-1-git-send-email-sb...@codeaurora.org [4]: http://lkml.kernel.org/r/cover.1377202730.git.jo...@codeaurora.org [5]: http://lkml.kernel.org/r/cover.1376596224.git.jo...@codeaurora.org Josh Cartwright (4): spmi: add generic SPMI controller binding documentation sp

[PATCH v4 2/6] spmi: add generic SPMI controller binding documentation

2014-01-14 Thread Josh Cartwright
Signed-off-by: Josh Cartwright --- Documentation/devicetree/bindings/spmi/spmi.txt | 41 + 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/spmi/spmi.txt diff --git a/Documentation/devicetree/bindings/spmi/spmi.txt b/Documentation

[PATCH v4 6/6] regmap: spmi: support base and extended register spaces

2014-01-14 Thread Josh Cartwright
-off-by: Josh Cartwright --- drivers/base/regmap/regmap-spmi.c | 228 -- include/linux/regmap.h| 12 +- 2 files changed, 205 insertions(+), 35 deletions(-) diff --git a/drivers/base/regmap/regmap-spmi.c b/drivers/base/regmap/regmap-spmi.c index

[PATCH v4 1/6] spmi: Linux driver framework for SPMI

2014-01-14 Thread Josh Cartwright
to 16 logical slaves. The framework supports message APIs, multiple busses (1 controller per bus) and multiple clients/slave devices per controller. Signed-off-by: Kenneth Heitke Signed-off-by: Michael Bohan Signed-off-by: Josh Cartwright --- drivers/Kconfig | 2 + drivers

[PATCH v4 1/6] spmi: Linux driver framework for SPMI

2014-01-14 Thread Josh Cartwright
master devices and up to 16 logical slaves. The framework supports message APIs, multiple busses (1 controller per bus) and multiple clients/slave devices per controller. Signed-off-by: Kenneth Heitke khei...@codeaurora.org Signed-off-by: Michael Bohan mbo...@codeaurora.org Signed-off-by: Josh

[PATCH v4 6/6] regmap: spmi: support base and extended register spaces

2014-01-14 Thread Josh Cartwright
-off-by: Josh Cartwright jo...@codeaurora.org --- drivers/base/regmap/regmap-spmi.c | 228 -- include/linux/regmap.h| 12 +- 2 files changed, 205 insertions(+), 35 deletions(-) diff --git a/drivers/base/regmap/regmap-spmi.c b/drivers/base/regmap

[PATCH v4 2/6] spmi: add generic SPMI controller binding documentation

2014-01-14 Thread Josh Cartwright
Signed-off-by: Josh Cartwright jo...@codeaurora.org --- Documentation/devicetree/bindings/spmi/spmi.txt | 41 + 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/spmi/spmi.txt diff --git a/Documentation/devicetree/bindings/spmi

[PATCH v4 0/6] Add support for the System Power Management Interface (SPMI)

2014-01-14 Thread Josh Cartwright
-3728-1-git-send-email-sb...@codeaurora.org [4]: http://lkml.kernel.org/r/cover.1377202730.git.jo...@codeaurora.org [5]: http://lkml.kernel.org/r/cover.1376596224.git.jo...@codeaurora.org Josh Cartwright (4): spmi: add generic SPMI controller binding documentation spmi: pmic_arb: add support

[PATCH v4 4/6] spmi: pmic_arb: add support for interrupt handling

2014-01-14 Thread Josh Cartwright
handling which allows for these interrupts to be used. Signed-off-by: Josh Cartwright jo...@codeaurora.org --- drivers/spmi/spmi-pmic-arb.c | 393 ++- 1 file changed, 391 insertions(+), 2 deletions(-) diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers

[PATCH v4 5/6] spmi: document the PMIC arbiter SPMI bindings

2014-01-14 Thread Josh Cartwright
Signed-off-by: Josh Cartwright jo...@codeaurora.org --- .../bindings/spmi/qcom,spmi-pmic-arb.txt | 46 ++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/spmi/qcom,spmi-pmic-arb.txt diff --git a/Documentation/devicetree

[PATCH v4 3/6] spmi: Add MSM PMIC Arbiter SPMI controller

2014-01-14 Thread Josh Cartwright
command sequences on the SPMI bus. The status register is read to determine when the command sequence has completed and whether or not it completed successfully. Signed-off-by: Kenneth Heitke khei...@codeaurora.org Signed-off-by: Josh Cartwright jo...@codeaurora.org --- drivers/spmi/Kconfig

Re: [PATCH 05/11] ARM: Introduce CPU_METHOD_OF_DECLARE() for cpu hotplug/smp

2013-11-06 Thread Josh Cartwright
Hey Stephen- Nit/suggestion below: On Fri, Nov 01, 2013 at 03:08:53PM -0700, Stephen Boyd wrote: [..] > diff --git a/arch/arm/include/asm/smp.h b/arch/arm/include/asm/smp.h > index a8cae71c..c27ec55 100644 > --- a/arch/arm/include/asm/smp.h > +++ b/arch/arm/include/asm/smp.h > @@ -112,6 +112,15

Re: [PATCH 05/11] ARM: Introduce CPU_METHOD_OF_DECLARE() for cpu hotplug/smp

2013-11-06 Thread Josh Cartwright
Hey Stephen- Nit/suggestion below: On Fri, Nov 01, 2013 at 03:08:53PM -0700, Stephen Boyd wrote: [..] diff --git a/arch/arm/include/asm/smp.h b/arch/arm/include/asm/smp.h index a8cae71c..c27ec55 100644 --- a/arch/arm/include/asm/smp.h +++ b/arch/arm/include/asm/smp.h @@ -112,6 +112,15 @@

Re: [PATCH v3 02/10] spmi: Linux driver framework for SPMI

2013-10-30 Thread Josh Cartwright
On Tue, Oct 29, 2013 at 09:52:15AM -0700, Stephen Boyd wrote: > On 10/28/13 11:12, Josh Cartwright wrote: > > diff --git a/drivers/spmi/Kconfig b/drivers/spmi/Kconfig > > new file mode 100644 > > index 000..a03835f > > --- /dev/null > > +++ b/driv

Re: [PATCH v3 04/10] spmi: Add MSM PMIC Arbiter SPMI controller

2013-10-30 Thread Josh Cartwright
On Wed, Oct 30, 2013 at 11:05:36AM -0700, Stephen Boyd wrote: > On 10/28, Josh Cartwright wrote: > > + > > +/** > > + * pa_write_data: write 1..4 bytes from buf to pmic-arb's register > > + * @bc byte-count -1. range: 0..3 > > + * @reg register's address > >

Re: [PATCH v3 05/10] spmi: pmic_arb: add support for interrupt handling

2013-10-30 Thread Josh Cartwright
Stephen- Thanks for all the comments. On Wed, Oct 30, 2013 at 11:17:55AM -0700, Stephen Boyd wrote: > On 10/28, Josh Cartwright wrote: > > @@ -108,12 +111,17 @@ struct spmi_pmic_arb_dev { > > void __iomem*base; > > void __iomem*intr;

Re: [PATCH v3 05/10] spmi: pmic_arb: add support for interrupt handling

2013-10-30 Thread Josh Cartwright
Stephen- Thanks for all the comments. On Wed, Oct 30, 2013 at 11:17:55AM -0700, Stephen Boyd wrote: On 10/28, Josh Cartwright wrote: @@ -108,12 +111,17 @@ struct spmi_pmic_arb_dev { void __iomem*base; void __iomem*intr; void __iomem*cnfg

Re: [PATCH v3 04/10] spmi: Add MSM PMIC Arbiter SPMI controller

2013-10-30 Thread Josh Cartwright
On Wed, Oct 30, 2013 at 11:05:36AM -0700, Stephen Boyd wrote: On 10/28, Josh Cartwright wrote: + +/** + * pa_write_data: write 1..4 bytes from buf to pmic-arb's register + * @bc byte-count -1. range: 0..3 + * @reg register's address + * @buf buffer to write. length must be bc+1

Re: [PATCH v3 02/10] spmi: Linux driver framework for SPMI

2013-10-30 Thread Josh Cartwright
On Tue, Oct 29, 2013 at 09:52:15AM -0700, Stephen Boyd wrote: On 10/28/13 11:12, Josh Cartwright wrote: diff --git a/drivers/spmi/Kconfig b/drivers/spmi/Kconfig new file mode 100644 index 000..a03835f --- /dev/null +++ b/drivers/spmi/Kconfig @@ -0,0 +1,9 @@ +# +# SPMI driver

Re: [PATCH v3 02/10] spmi: Linux driver framework for SPMI

2013-10-29 Thread Josh Cartwright
On Tue, Oct 29, 2013 at 05:02:03PM +0200, Ivan T. Ivanov wrote: > On Mon, 2013-10-28 at 13:12 -0500, Josh Cartwright wrote: > > From: Kenneth Heitke > > > > System Power Management Interface (SPMI) is a specification > > developed by the MIPI (Mobile Industry

Re: [PATCH v3 08/10] mfd: pm8x41: add support for Qualcomm 8x41 PMICs

2013-10-29 Thread Josh Cartwright
On Tue, Oct 29, 2013 at 08:56:05AM -0700, Lee Jones wrote: > On Mon, 28 Oct 2013, Josh Cartwright wrote: > > > The Qualcomm 8941 and 8841 PMICs are components used with the Snapdragon > > 800 series SoC family. This driver exists largely as a glue mfd component, > >

Re: [PATCH v3 02/10] spmi: Linux driver framework for SPMI

2013-10-29 Thread Josh Cartwright
Hey Lars- Thanks for the feedback. CC'ing Ivan, since he had the same feedback regarding the PM callbacks. On Tue, Oct 29, 2013 at 04:21:28PM +0100, Lars-Peter Clausen wrote: > Couple of high-level comments on the in-kernel API. > > On 10/28/2013 07:12 PM, Josh Cartwright wrote: &g

Re: [PATCH v3 06/10] spmi: document the PMIC arbiter SPMI bindings

2013-10-29 Thread Josh Cartwright
On Tue, Oct 29, 2013 at 04:08:29PM +0200, Ivan T. Ivanov wrote: > On Mon, 2013-10-28 at 13:12 -0500, Josh Cartwright wrote: > > Signed-off-by: Josh Cartwright > > --- > > .../bindings/spmi/qcom,spmi-pmic-arb.txt | 42 > > ++ > &g

Re: [PATCH v3 09/10] mfd: pm8x41: document device tree bindings

2013-10-29 Thread Josh Cartwright
On Tue, Oct 29, 2013 at 04:18:35PM +0200, Ivan T. Ivanov wrote: > On Mon, 2013-10-28 at 13:12 -0500, Josh Cartwright wrote: > > Document the bindings used to describe the Qualcomm 8x41 PMICs. > > > > Signed-off-by: Josh Cartwright > > --- > > Documentation/d

Re: [PATCH v3 09/10] mfd: pm8x41: document device tree bindings

2013-10-29 Thread Josh Cartwright
On Tue, Oct 29, 2013 at 04:18:35PM +0200, Ivan T. Ivanov wrote: On Mon, 2013-10-28 at 13:12 -0500, Josh Cartwright wrote: Document the bindings used to describe the Qualcomm 8x41 PMICs. Signed-off-by: Josh Cartwright jo...@codeaurora.org --- Documentation/devicetree/bindings/mfd

Re: [PATCH v3 06/10] spmi: document the PMIC arbiter SPMI bindings

2013-10-29 Thread Josh Cartwright
On Tue, Oct 29, 2013 at 04:08:29PM +0200, Ivan T. Ivanov wrote: On Mon, 2013-10-28 at 13:12 -0500, Josh Cartwright wrote: Signed-off-by: Josh Cartwright jo...@codeaurora.org --- .../bindings/spmi/qcom,spmi-pmic-arb.txt | 42 ++ 1 file changed, 42

Re: [PATCH v3 02/10] spmi: Linux driver framework for SPMI

2013-10-29 Thread Josh Cartwright
Hey Lars- Thanks for the feedback. CC'ing Ivan, since he had the same feedback regarding the PM callbacks. On Tue, Oct 29, 2013 at 04:21:28PM +0100, Lars-Peter Clausen wrote: Couple of high-level comments on the in-kernel API. On 10/28/2013 07:12 PM, Josh Cartwright wrote: +#ifdef

Re: [PATCH v3 08/10] mfd: pm8x41: add support for Qualcomm 8x41 PMICs

2013-10-29 Thread Josh Cartwright
On Tue, Oct 29, 2013 at 08:56:05AM -0700, Lee Jones wrote: On Mon, 28 Oct 2013, Josh Cartwright wrote: The Qualcomm 8941 and 8841 PMICs are components used with the Snapdragon 800 series SoC family. This driver exists largely as a glue mfd component, it exists to be an owner of an SPMI

Re: [PATCH v3 02/10] spmi: Linux driver framework for SPMI

2013-10-29 Thread Josh Cartwright
On Tue, Oct 29, 2013 at 05:02:03PM +0200, Ivan T. Ivanov wrote: On Mon, 2013-10-28 at 13:12 -0500, Josh Cartwright wrote: From: Kenneth Heitke khei...@codeaurora.org System Power Management Interface (SPMI) is a specification developed by the MIPI (Mobile Industry Process Interface

[PATCH v3 00/10] Add support for the System Power Management Interface (SPMI)

2013-10-28 Thread Josh Cartwright
management-interface [2]: http://marc.info/?l=linux-arm-kernel=137721241427533=2 [3]: http://thread.gmane.org/gmane.linux.ports.arm.msm/4886 Josh Cartwright (7): spmi: add generic SPMI controller binding documentation spmi: pmic_arb: add support for interrupt handling spmi: document the PMIC

[PATCH v3 05/10] spmi: pmic_arb: add support for interrupt handling

2013-10-28 Thread Josh Cartwright
handling which allows for these interrupts to be used. Signed-off-by: Josh Cartwright --- drivers/spmi/spmi-pmic-arb.c | 359 ++- 1 file changed, 357 insertions(+), 2 deletions(-) diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c

[PATCH v3 03/10] spmi: add generic SPMI controller binding documentation

2013-10-28 Thread Josh Cartwright
Signed-off-by: Josh Cartwright --- Documentation/devicetree/bindings/spmi/spmi.txt | 41 + 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/spmi/spmi.txt diff --git a/Documentation/devicetree/bindings/spmi/spmi.txt b/Documentation

[PATCH v3 10/10] rtc: pm8xxx: add support for pm8941

2013-10-28 Thread Josh Cartwright
a chip-specific initialization function. Signed-off-by: Josh Cartwright --- drivers/rtc/Kconfig | 1 - drivers/rtc/rtc-pm8xxx.c | 229 +-- 2 files changed, 143 insertions(+), 87 deletions(-) diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig

[PATCH v3 02/10] spmi: Linux driver framework for SPMI

2013-10-28 Thread Josh Cartwright
to 16 logical slaves. The framework supports message APIs, multiple busses (1 controller per bus) and multiple clients/slave devices per controller. Signed-off-by: Kenneth Heitke Signed-off-by: Michael Bohan Signed-off-by: Josh Cartwright --- drivers/Kconfig | 2 + drivers

[PATCH v3 04/10] spmi: Add MSM PMIC Arbiter SPMI controller

2013-10-28 Thread Josh Cartwright
on the SPMI bus. The status register is read to determine when the command sequence has completed and whether or not it completed successfully. Signed-off-by: Kenneth Heitke Signed-off-by: Josh Cartwright --- drivers/spmi/Kconfig | 15 ++ drivers/spmi/Makefile| 2 + drivers/spmi

[PATCH v3 07/10] regmap: add SPMI support

2013-10-28 Thread Josh Cartwright
Add basic support for the System Power Management Interface (SPMI) bus. This is a simple implementation which only implements register accesses via the Extended Register Read/Write Long commands. Signed-off-by: Josh Cartwright --- drivers/base/regmap/Kconfig | 5 ++- drivers/base/regmap

[PATCH v3 01/10] of: Add empty for_each_available_child_of_node() macro definition

2013-10-28 Thread Josh Cartwright
From: Sylwester Nawrocki Add this empty macro definition so users can be compiled without excluding this macro call with preprocessor directives when CONFIG_OF is disabled. Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park --- include/linux/of.h | 3 +++ 1 file changed, 3

[PATCH v3 08/10] mfd: pm8x41: add support for Qualcomm 8x41 PMICs

2013-10-28 Thread Josh Cartwright
The Qualcomm 8941 and 8841 PMICs are components used with the Snapdragon 800 series SoC family. This driver exists largely as a glue mfd component, it exists to be an owner of an SPMI regmap for children devices described in device tree. Signed-off-by: Josh Cartwright --- drivers/mfd/Kconfig

[PATCH v3 06/10] spmi: document the PMIC arbiter SPMI bindings

2013-10-28 Thread Josh Cartwright
Signed-off-by: Josh Cartwright --- .../bindings/spmi/qcom,spmi-pmic-arb.txt | 42 ++ 1 file changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings/spmi/qcom,spmi-pmic-arb.txt diff --git a/Documentation/devicetree/bindings/spmi/qcom,spmi

[PATCH v3 09/10] mfd: pm8x41: document device tree bindings

2013-10-28 Thread Josh Cartwright
Document the bindings used to describe the Qualcomm 8x41 PMICs. Signed-off-by: Josh Cartwright --- Documentation/devicetree/bindings/mfd/pm8x41.txt | 33 1 file changed, 33 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/pm8x41.txt diff --git

[PATCH v3 09/10] mfd: pm8x41: document device tree bindings

2013-10-28 Thread Josh Cartwright
Document the bindings used to describe the Qualcomm 8x41 PMICs. Signed-off-by: Josh Cartwright jo...@codeaurora.org --- Documentation/devicetree/bindings/mfd/pm8x41.txt | 33 1 file changed, 33 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd

[PATCH v3 06/10] spmi: document the PMIC arbiter SPMI bindings

2013-10-28 Thread Josh Cartwright
Signed-off-by: Josh Cartwright jo...@codeaurora.org --- .../bindings/spmi/qcom,spmi-pmic-arb.txt | 42 ++ 1 file changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings/spmi/qcom,spmi-pmic-arb.txt diff --git a/Documentation/devicetree

[PATCH v3 08/10] mfd: pm8x41: add support for Qualcomm 8x41 PMICs

2013-10-28 Thread Josh Cartwright
The Qualcomm 8941 and 8841 PMICs are components used with the Snapdragon 800 series SoC family. This driver exists largely as a glue mfd component, it exists to be an owner of an SPMI regmap for children devices described in device tree. Signed-off-by: Josh Cartwright jo...@codeaurora.org

[PATCH v3 07/10] regmap: add SPMI support

2013-10-28 Thread Josh Cartwright
Add basic support for the System Power Management Interface (SPMI) bus. This is a simple implementation which only implements register accesses via the Extended Register Read/Write Long commands. Signed-off-by: Josh Cartwright jo...@codeaurora.org --- drivers/base/regmap/Kconfig | 5

[PATCH v3 01/10] of: Add empty for_each_available_child_of_node() macro definition

2013-10-28 Thread Josh Cartwright
From: Sylwester Nawrocki s.nawro...@samsung.com Add this empty macro definition so users can be compiled without excluding this macro call with preprocessor directives when CONFIG_OF is disabled. Signed-off-by: Sylwester Nawrocki s.nawro...@samsung.com Signed-off-by: Kyungmin Park

[PATCH v3 04/10] spmi: Add MSM PMIC Arbiter SPMI controller

2013-10-28 Thread Josh Cartwright
command sequences on the SPMI bus. The status register is read to determine when the command sequence has completed and whether or not it completed successfully. Signed-off-by: Kenneth Heitke khei...@codeaurora.org Signed-off-by: Josh Cartwright jo...@codeaurora.org --- drivers/spmi/Kconfig

[PATCH v3 10/10] rtc: pm8xxx: add support for pm8941

2013-10-28 Thread Josh Cartwright
a chip-specific initialization function. Signed-off-by: Josh Cartwright jo...@codeaurora.org --- drivers/rtc/Kconfig | 1 - drivers/rtc/rtc-pm8xxx.c | 229 +-- 2 files changed, 143 insertions(+), 87 deletions(-) diff --git a/drivers/rtc/Kconfig b

[PATCH v3 02/10] spmi: Linux driver framework for SPMI

2013-10-28 Thread Josh Cartwright
master devices and up to 16 logical slaves. The framework supports message APIs, multiple busses (1 controller per bus) and multiple clients/slave devices per controller. Signed-off-by: Kenneth Heitke khei...@codeaurora.org Signed-off-by: Michael Bohan mbo...@codeaurora.org Signed-off-by: Josh

[PATCH v3 00/10] Add support for the System Power Management Interface (SPMI)

2013-10-28 Thread Josh Cartwright
://marc.info/?l=linux-arm-kernelm=137721241427533w=2 [3]: http://thread.gmane.org/gmane.linux.ports.arm.msm/4886 Josh Cartwright (7): spmi: add generic SPMI controller binding documentation spmi: pmic_arb: add support for interrupt handling spmi: document the PMIC arbiter SPMI bindings regmap

[PATCH v3 05/10] spmi: pmic_arb: add support for interrupt handling

2013-10-28 Thread Josh Cartwright
handling which allows for these interrupts to be used. Signed-off-by: Josh Cartwright jo...@codeaurora.org --- drivers/spmi/spmi-pmic-arb.c | 359 ++- 1 file changed, 357 insertions(+), 2 deletions(-) diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers

[PATCH v3 03/10] spmi: add generic SPMI controller binding documentation

2013-10-28 Thread Josh Cartwright
Signed-off-by: Josh Cartwright jo...@codeaurora.org --- Documentation/devicetree/bindings/spmi/spmi.txt | 41 + 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/spmi/spmi.txt diff --git a/Documentation/devicetree/bindings/spmi

Re: [PATCHv6 2/4] ARM: msm: Add support for APQ8074 Dragonboard

2013-10-25 Thread Josh Cartwright
Hey Rohit- On Thu, Oct 17, 2013 at 11:25:10AM -0700, Rohit Vaswani wrote: > This patch adds basic board support for APQ8074 Dragonboard > which belongs to the Snapdragon 800 family. > For now, just support a basic machine with device tree. > > Signed-off-by: Rohit Vaswani > --- >

Re: [PATCHv6 2/4] ARM: msm: Add support for APQ8074 Dragonboard

2013-10-25 Thread Josh Cartwright
Hey Rohit- On Thu, Oct 17, 2013 at 11:25:10AM -0700, Rohit Vaswani wrote: This patch adds basic board support for APQ8074 Dragonboard which belongs to the Snapdragon 800 family. For now, just support a basic machine with device tree. Signed-off-by: Rohit Vaswani rvasw...@codeaurora.org ---

Re: [PATCH RFC v2 3/5] spmi: add generic SPMI controller binding documentation

2013-10-07 Thread Josh Cartwright
Hey Bjorn- On Sat, Oct 05, 2013 at 11:11:36PM -0700, Bjorn Andersson wrote: > On Tue, Aug 27, 2013 at 2:55 PM, Stephen Warren wrote: > > On 08/27/2013 11:01 AM, Josh Cartwright wrote: > > ... > > cell 0 - address type (0: master, 1: unique ID, 2: group ID, ...) > >

Re: [PATCH RFC v2 3/5] spmi: add generic SPMI controller binding documentation

2013-10-07 Thread Josh Cartwright
Hey Bjorn- On Sat, Oct 05, 2013 at 11:11:36PM -0700, Bjorn Andersson wrote: On Tue, Aug 27, 2013 at 2:55 PM, Stephen Warren swar...@wwwdotorg.org wrote: On 08/27/2013 11:01 AM, Josh Cartwright wrote: ... cell 0 - address type (0: master, 1: unique ID, 2: group ID, ...) I think it would

Re: [PATCH 1/2] ARM: msm: Add support for MSM8974 Dragonboard

2013-09-11 Thread Josh Cartwright
Hey Ivan- On Tue, Aug 06, 2013 at 12:14:46PM +0300, Ivan T. Ivanov wrote: [..] > Enable low-level debug print routines to direct their > output to the serial port on MSM 8974 devices. > > Signed-off-by: Ivan T. Ivanov > --- > arch/arm/Kconfig.debug |8 >

Re: [PATCH 1/2] ARM: msm: Add support for MSM8974 Dragonboard

2013-09-11 Thread Josh Cartwright
Hey Ivan- On Tue, Aug 06, 2013 at 12:14:46PM +0300, Ivan T. Ivanov wrote: [..] Enable low-level debug print routines to direct their output to the serial port on MSM 8974 devices. Signed-off-by: Ivan T. Ivanov iiva...@mm-sol.com --- arch/arm/Kconfig.debug |8

Re: [PATCH 1/2] i2c: qup: Add device tree bindings information

2013-09-10 Thread Josh Cartwright
[Hmm. Fixing b0rked LKML address; that might explain why I am not seeing Kumar's replies.] On Tue, Sep 10, 2013 at 03:08:57PM +0300, Ivan T. Ivanov wrote: > Hi Kumar, > > On Fri, 2013-08-30 at 10:21 -0500, Kumar Gala wrote: > > On Aug 29, 2013, at 12:26 PM, Ivan T. Ivanov wrote: > > >>> + > >

Re: [PATCH 1/2] i2c: qup: Add device tree bindings information

2013-09-10 Thread Josh Cartwright
[Hmm. Fixing b0rked LKML address; that might explain why I am not seeing Kumar's replies.] On Tue, Sep 10, 2013 at 03:08:57PM +0300, Ivan T. Ivanov wrote: Hi Kumar, On Fri, 2013-08-30 at 10:21 -0500, Kumar Gala wrote: On Aug 29, 2013, at 12:26 PM, Ivan T. Ivanov wrote: + +Optional

[PATCH 2/2] ARM: msm: trout: fix uninit var warning

2013-09-09 Thread Josh Cartwright
-off-by: Josh Cartwright --- arch/arm/mach-msm/board-trout.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-msm/board-trout.c b/arch/arm/mach-msm/board-trout.c index ccf6621..015d544 100644 --- a/arch/arm/mach-msm/board-trout.c +++ b/arch/arm/mach-msm

[PATCH 1/2] ARM: msm: trout: fix 'pointer from integer' warnings

2013-09-09 Thread Josh Cartwright
); ^ Signed-off-by: Josh Cartwright --- arch/arm/mach-msm/board-trout-gpio.c | 8 arch/arm/mach-msm/board-trout.h | 8 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/arm/mach-msm/board-trout-gpio.c b/arch/arm/mach-msm/board-trout-gpio.c index 87e1d01

Re: [PATCH RFC v2 2/5] spmi: Linux driver framework for SPMI

2013-09-09 Thread Josh Cartwright
Hey Mark- Thanks for the comments. On Mon, Sep 09, 2013 at 04:52:24PM +0100, Mark Brown wrote: > On Fri, Aug 23, 2013 at 11:06:25AM -0500, Josh Cartwright wrote: > > On Thu, Aug 22, 2013 at 04:10:54PM -0700, Greg Kroah-Hartman wrote: > > > On Fri, Aug 09, 2013 at 01:3

Re: [PATCH RFC v2 2/5] spmi: Linux driver framework for SPMI

2013-09-09 Thread Josh Cartwright
Hey Mark- Thanks for the comments. On Mon, Sep 09, 2013 at 04:52:24PM +0100, Mark Brown wrote: On Fri, Aug 23, 2013 at 11:06:25AM -0500, Josh Cartwright wrote: On Thu, Aug 22, 2013 at 04:10:54PM -0700, Greg Kroah-Hartman wrote: On Fri, Aug 09, 2013 at 01:37:09PM -0700, Josh Cartwright

[PATCH 1/2] ARM: msm: trout: fix 'pointer from integer' warnings

2013-09-09 Thread Josh Cartwright
); ^ Signed-off-by: Josh Cartwright jo...@codeaurora.org --- arch/arm/mach-msm/board-trout-gpio.c | 8 arch/arm/mach-msm/board-trout.h | 8 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/arm/mach-msm/board-trout-gpio.c b/arch/arm/mach-msm/board-trout-gpio.c

[PATCH 2/2] ARM: msm: trout: fix uninit var warning

2013-09-09 Thread Josh Cartwright
-off-by: Josh Cartwright jo...@codeaurora.org --- arch/arm/mach-msm/board-trout.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-msm/board-trout.c b/arch/arm/mach-msm/board-trout.c index ccf6621..015d544 100644 --- a/arch/arm/mach-msm/board-trout.c +++ b

Re: [PATCH] ARM: msm: Remove irqs-*.h files for DT based targets

2013-09-06 Thread Josh Cartwright
--- > > On 09/06, Josh Cartwright wrote: > > > > Selecting _only_ ARCH_MSM8974 with these changes breaks the build with: > > I've been meaning to fix this. Perhaps you can use this patch as a base > and then push the SPARSE_IRQ selection into the DT config? Sounds sane

Re: [PATCHv3 1/2] ARM: msm: Add support for APQ8074 Dragonboard

2013-09-06 Thread Josh Cartwright
On Fri, Sep 06, 2013 at 12:32:22PM -0700, Rohit Vaswani wrote: > This patch adds basic board support for APQ8074 Dragonboard > which belongs to the Snapdragon 800 family. > For now, just support a basic machine with device tree. > > Signed-off-by: Rohit Vaswani > --- [..] > index

Re: [PATCHv3 1/2] ARM: msm: Add support for APQ8074 Dragonboard

2013-09-06 Thread Josh Cartwright
On Fri, Sep 06, 2013 at 12:32:22PM -0700, Rohit Vaswani wrote: This patch adds basic board support for APQ8074 Dragonboard which belongs to the Snapdragon 800 family. For now, just support a basic machine with device tree. Signed-off-by: Rohit Vaswani rvasw...@codeaurora.org --- [..] index

Re: [PATCH] ARM: msm: Remove irqs-*.h files for DT based targets

2013-09-06 Thread Josh Cartwright
--- On 09/06, Josh Cartwright wrote: Selecting _only_ ARCH_MSM8974 with these changes breaks the build with: I've been meaning to fix this. Perhaps you can use this patch as a base and then push the SPARSE_IRQ selection into the DT config? Sounds sane to me. AFAICT, we didn't yet have any

Re: [PATCH RFC v2 3/5] spmi: add generic SPMI controller binding documentation

2013-08-28 Thread Josh Cartwright
On Tue, Aug 27, 2013 at 03:55:19PM -0600, Stephen Warren wrote: > On 08/27/2013 11:01 AM, Josh Cartwright wrote: > ... > > If we want to ensure for the generic bindings that we are fulling > > characterizing/describing the SPMI bus, then we'll additionally need to > &

Re: [PATCH RFC v2 3/5] spmi: add generic SPMI controller binding documentation

2013-08-28 Thread Josh Cartwright
On Tue, Aug 27, 2013 at 03:55:19PM -0600, Stephen Warren wrote: On 08/27/2013 11:01 AM, Josh Cartwright wrote: ... If we want to ensure for the generic bindings that we are fulling characterizing/describing the SPMI bus, then we'll additionally need to tackle an additional identified

Re: [PATCH RFC v2 3/5] spmi: add generic SPMI controller binding documentation

2013-08-27 Thread Josh Cartwright
Hey Stephen- Thanks for the comments. On Fri, Aug 23, 2013 at 03:58:36PM -0600, Stephen Warren wrote: > On 08/22/2013 01:59 PM, Josh Cartwright wrote: > > Signed-off-by: Josh Cartwright > > --- > > I'm introducing this as an RFC, because there are set of assumptions >

Re: [PATCH RFC v2 3/5] spmi: add generic SPMI controller binding documentation

2013-08-27 Thread Josh Cartwright
Hey Stephen- Thanks for the comments. On Fri, Aug 23, 2013 at 03:58:36PM -0600, Stephen Warren wrote: On 08/22/2013 01:59 PM, Josh Cartwright wrote: Signed-off-by: Josh Cartwright jo...@codeaurora.org --- I'm introducing this as an RFC, because there are set of assumptions made

Re: [PATCH RFC v2 2/5] spmi: Linux driver framework for SPMI

2013-08-23 Thread Josh Cartwright
On Thu, Aug 22, 2013 at 04:10:54PM -0700, Greg Kroah-Hartman wrote: > On Fri, Aug 09, 2013 at 01:37:09PM -0700, Josh Cartwright wrote: > > +static char dbgfs_help[] = > > + "SPMI Debug-FS support\n" > > + "\n" > > + "Hi

Re: [PATCH RFC v2 2/5] spmi: Linux driver framework for SPMI

2013-08-23 Thread Josh Cartwright
On Thu, Aug 22, 2013 at 04:10:54PM -0700, Greg Kroah-Hartman wrote: On Fri, Aug 09, 2013 at 01:37:09PM -0700, Josh Cartwright wrote: +static char dbgfs_help[] = + SPMI Debug-FS support\n + \n + Hierarchy schema:\n + /sys/kernel/debug/spmi\n + /help

[PATCH RFC v2 2/5] spmi: Linux driver framework for SPMI

2013-08-22 Thread Josh Cartwright
to 16 logical slaves. The framework supports message APIs, multiple busses (1 controller per bus) and multiple clients/slave devices per controller. Signed-off-by: Kenneth Heitke Signed-off-by: Michael Bohan Signed-off-by: Josh Cartwright --- drivers/Kconfig | 2 + drivers

[PATCH RFC v2 5/5] spmi: document the PMIC arbiter SPMI bindings

2013-08-22 Thread Josh Cartwright
Signed-off-by: Josh Cartwright --- .../bindings/spmi/qcom,spmi-pmic-arb.txt | 36 ++ 1 file changed, 36 insertions(+) create mode 100644 Documentation/devicetree/bindings/spmi/qcom,spmi-pmic-arb.txt diff --git a/Documentation/devicetree/bindings/spmi/qcom,spmi

[PATCH RFC v2 0/3] Add support for the System Power Management Interface (SPMI)

2013-08-22 Thread Josh Cartwright
SPMI device tree bindings [1]: http://www.mipi.org/specifications/system-power-management-interface [2]: http://thread.gmane.org/gmane.linux.ports.arm.msm/4886 Josh Cartwright (2): spmi: add generic SPMI controller binding documentation spmi: document the PMIC arbiter SPMI bindings Kenneth He

[PATCH RFC v2 4/5] spmi: Add MSM PMIC Arbiter SPMI controller

2013-08-22 Thread Josh Cartwright
on the SPMI bus. The status register is read to determine when the command sequence has completed and whether or not it completed successfully. Signed-off-by: Kenneth Heitke Signed-off-by: Josh Cartwright --- drivers/spmi/Kconfig | 15 ++ drivers/spmi/Makefile| 2 + drivers/spmi

[PATCH RFC v2 1/5] of: Add empty for_each_available_child_of_node() macro definition

2013-08-22 Thread Josh Cartwright
From: Sylwester Nawrocki Add this empty macro definition so users can be compiled without excluding this macro call with preprocessor directives when CONFIG_OF is disabled. Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park --- This patch was first introduced in December @

[PATCH RFC v2 3/5] spmi: add generic SPMI controller binding documentation

2013-08-22 Thread Josh Cartwright
Signed-off-by: Josh Cartwright --- I'm introducing this as an RFC, because there are set of assumptions made in this binding spec, that currently hold true for the supported controller/addressing scheme for the Snapdragon 800 series, but don't necessarily hold true for SPMI in general. 1

<    1   2   3   4   5   6   7   8   9   >