Re: [Patch v2 06/10] regulators: qcom-smd: Add PM8916 support

2015-09-23 Thread Bjorn Andersson
pm_pm8916_regulators }, pm8916 > pm8841 > { .compatible = "qcom,rpm-pm8841-regulators", .data = > &rpm_pm8841_regulators }, > { .compatible = "qcom,rpm-pm8941-regulators", .data = > &rpm_pm8941_regulators }, > {} With these nits: Acked-by: Bjorn Andersson Regards, Bjorn -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH v2 5/8] soc: qcom: smd: Remove use of VLAIS

2015-09-21 Thread Bjorn Andersson
On Wed 02 Sep 15:46 PDT 2015, Stephen Boyd wrote: > Usage of VLAIS prevents clang from compiling this file, and it > also opens us to the possibility of allocating a large structure > on the stack to the point that we blow past the limit of the > kernel stack. Remove the VLAIS and allocate a struc

[PATCH] soc: qcom: Introduce WCNSS_CTRL SMD client

2015-09-21 Thread Bjorn Andersson
The WCNSS_CTRL SMD client is used for among other things upload nv firmware to a newly booted WCNSS chip. Signed-off-by: Bjorn Andersson --- This driver probes on the WCNSS_CTRL SMD channel as it comes up upon loading the wcnss firmware, it currenly request version information from the wcnss and

Re: [PATCH v2 1/2] input: Add Qualcomm PM8941 power key driver

2015-09-20 Thread Bjorn Andersson
On Tue 15 Sep 04:36 PDT 2015, Ivan T. Ivanov wrote: > > On Fri, 2015-01-23 at 16:19 -0800, Bjorn Andersson wrote: > > From: Courtney Cavin ca...@sonymobile.com> > > > > Signed-off-by: Courtney Cavin ca...@sonymobile.com> > > Signed-off-by: Bjor

Re: [PATCH v2 0/2] Add initial support for RPM clocks

2015-09-20 Thread Bjorn Andersson
On Mon 03 Aug 09:48 PDT 2015, Georgi Djakov wrote: > This patchset adds initial support for the clocks controlled by > the RPM (Resource Power Manager) processor on Qualcomm platforms. > It depends on Bjorn's Qualcomm SMD & RPM patches, that are now in > linux-next: https://lkml.org/lkml/2015/7/27

Re: [PATCHv2 3/4] power: Add Qualcomm SMBB driver

2015-09-15 Thread Bjorn Andersson
On Tue 15 Sep 05:43 PDT 2015, Sebastian Reichel wrote: > Hi, > > On Thu, Jul 30, 2015 at 10:53:56AM -0700, Bjorn Andersson wrote: > > From: Courtney Cavin > > > > Add the Qualcomm Switch-Mode Battery Charger and Boost driver, found in > > pm8941. >

Re: [Patch v2] firmware: qcom: scm: Add function stubs for ARM64

2015-09-11 Thread Bjorn Andersson
ef_bool y > + depends on QCOM_SCM && ARM64 > + So if QCOM_SCM is selected by a consumer then the dependencies here will be met and the correct implementation will be chosen, as these aren't possible to deselect? I guess that's an okay approach, so: Acked-by: Bjorn Anderss

Re: [PATCH] soc: qcom: smem: Move RPM message ram out of smem DT node

2015-09-08 Thread Bjorn Andersson
On Tue 08 Sep 15:20 PDT 2015, Stephen Boyd wrote: > SMEM is a software construct built on top of a DDR carveout and > sometimes a device memory called RPM message ram. Having the RPM > message ram in the smem DT node's reg property leads to the smem > node being located in different places dependi

Re: [PATCH 10/11] regulator: qcom-smd: Add support for PMA8084

2015-09-08 Thread Bjorn Andersson
On Tue 08 Sep 14:35 PDT 2015, Andy Gross wrote: > This patch adds support and documentation for the PMA8084 regulators > found on APQ8084 platforms. > > Signed-off-by: Andy Gross > --- > .../bindings/soc/qcom/qcom,smd-rpm-regulator.txt | 35 > drivers/regulator/qcom_smd-regulator.c

Re: [PATCH 06/11] regulator: qcom-smd: Add PM8916 support

2015-09-08 Thread Bjorn Andersson
On Tue 08 Sep 14:35 PDT 2015, Andy Gross wrote: > This patch adds support and documentation for the PM8916 regulators > found on MSM8916 platforms. > > Signed-off-by: Andy Gross > --- > .../bindings/soc/qcom/qcom,smd-rpm-regulator.txt | 18 ++ > drivers/regulator/qcom_smd-regulator.c

Re: [PATCH 0/4] Qualcomm Shared Memory State Machines

2015-09-08 Thread Bjorn Andersson
On Tue 08 Sep 05:20 PDT 2015, Linus Walleij wrote: > On Thu, Aug 27, 2015 at 7:37 PM, Bjorn Andersson > wrote: > > Let's discuss this a bit, looping in Mark Brown. > > > As some of these states on some platforms are passed as physical signals > > instead, the

Re: [PATCH v2 1/2] clk: qcom: Add support for RPM Clocks

2015-09-03 Thread Bjorn Andersson
On Thu 03 Sep 08:40 PDT 2015, Georgi Djakov wrote: > Hi Stephen, > > On 09/02/2015 11:31 PM, Stephen Boyd wrote: > > On 08/03, Georgi Djakov wrote: > >> diff --git a/drivers/clk/qcom/clk-smd-rpm.c > >> b/drivers/clk/qcom/clk-smd-rpm.c > >> new file mode 100644 > >> index ..e564673ec3

Re: [PATCH v2 7/8] soc: qcom: smd_rpm: Handle big endian CPUs

2015-09-03 Thread Bjorn Andersson
On Wed 02 Sep 15:46 PDT 2015, Stephen Boyd wrote: > The smd rpm structures are always in little endian, but this > driver is not capable of being used on big endian CPUs. Annotate > the little endian data members and update the code to do the > proper byte swapping. > Rev

Re: [PATCH v2 5/8] soc: qcom: smd: Remove use of VLAIS

2015-09-03 Thread Bjorn Andersson
d allocate a structure on the > heap with kmalloc so that we're safer and more clang friendly. > Reviewed-by: Bjorn Andersson -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [PATCH v2 8/8] regulator: qcom_smd: Handle big endian CPUs

2015-09-03 Thread Bjorn Andersson
On Wed 02 Sep 15:46 PDT 2015, Stephen Boyd wrote: > The smd rpm structures are always in little endian, but this > driver is not capable of being used on big endian CPUs. Annotate > the little endian data members and update the code to do the > proper byte swapping. > Rev

Re: [PATCH v2 6/8] soc: qcom: smd: Handle big endian CPUs

2015-09-03 Thread Bjorn Andersson
On Wed 02 Sep 15:46 PDT 2015, Stephen Boyd wrote: > The smd structures are always in little endian, but the smd > driver is not capable of being used on big endian CPUs. Annotate > the little endian data members and update the code to do the > proper byte swapping. > Reviewed-by:

Re: [PATCH v2 2/8] soc: qcom: smem: Handle big endian CPUs

2015-09-03 Thread Bjorn Andersson
On Wed 02 Sep 15:46 PDT 2015, Stephen Boyd wrote: > The contents of smem are always in little endian, but the smem > driver is not capable of being used on big endian CPUs. Annotate > the little endian data members and update the code to do the > proper byte swapping. > Rev

Re: [PATCH v2 1/8] soc: qcom: Make qcom_smem_get() return a pointer

2015-09-03 Thread Bjorn Andersson
is frees the caller from having to > cast the pointer. > Reviewed-by: Bjorn Andersson -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 1/4] dt-binding: gpio: Add Qualcomm SMSM device tree documentation

2015-09-01 Thread Bjorn Andersson
On Tue 01 Sep 01:18 PDT 2015, Stanimir Varbanov wrote: > On 08/27/2015 08:37 PM, Bjorn Andersson wrote: > > This documents a device tree binding for exposing the Qualcomm Shared > > Memory State Machine as a set of gpio- and interrupt-controllers. > > > > Sig

Re: [PATCH 1/4] dt-binding: gpio: Add Qualcomm SMSM device tree documentation

2015-08-31 Thread Bjorn Andersson
On Mon 31 Aug 08:43 PDT 2015, Rob Herring wrote: > On Thu, Aug 27, 2015 at 12:37 PM, Bjorn Andersson > wrote: > > This documents a device tree binding for exposing the Qualcomm Shared > > Memory State Machine as a set of gpio- and interrupt-controllers. > > > >

Re: [PATCH 3/3] soc: qcom: smd: Handle big endian CPUs

2015-08-31 Thread Bjorn Andersson
On Mon 31 Aug 18:39 PDT 2015, Stephen Boyd wrote: > The smd structures are always in little endian, but the smd > driver is not capable of being used on big endian CPUs. Annotate > the little endian data members and update the code to do the > proper byte swapping. > I think this looks good, but

Re: [PATCH 2/3] soc: qcom: smd: Use __iowrite32_copy() instead of open-coding it

2015-08-31 Thread Bjorn Andersson
e up to do the same simplification in smd_copy_from_fifo()? Reviewed-by: Bjorn Andersson > Signed-off-by: Stephen Boyd Regards, Bjorn -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [PATCH 1/3] soc: qcom: smd: Represent channel layout in structures

2015-08-31 Thread Bjorn Andersson
er doesn't feel like worth the change, but representing the pair of info structs as one sounds like a reasonable cleanup. Reviewed-by: Bjorn Andersson > Signed-off-by: Stephen Boyd > --- > drivers/soc/qcom/smd.c | 61 > +++--- > 1

Re: [PATCH] soc: qcom: Make qcom_smem_get() return a pointer

2015-08-31 Thread Bjorn Andersson
rned -ENOENT, so I think it's just a matter of style. I did have the API to return the pointer earlier in development, but it didn't look good and uniform. But in the final piece, that was picked up, I think it makes more sense (and looks better) to do it this way. Reviewed-by: Bjorn A

Re: [PATCHv2 3/4] power: Add Qualcomm SMBB driver

2015-08-28 Thread Bjorn Andersson
On Thu 30 Jul 10:53 PDT 2015, Bjorn Andersson wrote: Ping? > From: Courtney Cavin > > Add the Qualcomm Switch-Mode Battery Charger and Boost driver, found in > pm8941. > > Signed-off-by: Courtney Cavin > Signed-off-by: Bjorn Andersson > --- > > Changes sinc

Re: [PATCH] gpio: msm: Remove unused driver

2015-08-28 Thread Bjorn Andersson
On Fri 28 Aug 14:48 PDT 2015, Stephen Boyd wrote: > Remove this driver now that Bjorn has introduced a pinctrl driver > for msm8660 and the dts files have been updated with the pinctrl > compatibles. > Reviewed-by: Bjorn Andersson > Cc: Andy Gross > Signed-off-by: Stephen Bo

Re: [PATCH] spmi: pmic-arb: Don't byte swap when reading/writing FIFO

2015-08-28 Thread Bjorn Andersson
because the bytes are all mixed up. Use the raw IO > accessors for these API instead, and collapse pmic_arb_base_read() > into the byte reading API so that we aren't tempted to read non-FIFO > data like commands with that function. > > Cc: Andy Gross Acked-by: Bjorn Andersso

Re: [PATCH] spmi: pmic-arb: u8 <= 0xff is always true

2015-08-28 Thread Bjorn Andersson
On Fri 28 Aug 12:31 PDT 2015, Stephen Boyd wrote: > Silences this static checker warning: > > drivers/spmi/spmi-pmic-arb.c:363 > pmic_arb_write_cmd() warn: always true condition > '(opc <= 255) => (0-255 <= 255)' > > Cc: Andy Gross Reviewed-by

Re: [PATCH] soc: qcom: smem: Avoid NULL pointer exception on remove

2015-08-28 Thread Bjorn Andersson
On Fri 28 Aug 11:18 PDT 2015, Stephen Boyd wrote: > Don't set a pointer to NULL and then dereference it in the next > line. > Sorry about that. Reviewed-by: Bjorn Andersson Regards, Bjorn -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in

Re: [PATCH] soc: qcom: Reorder SMEM/SMD configs

2015-08-28 Thread Bjorn Andersson
dency chain. > > Cc: Bjorn Andersson Reviewed-by: Bjorn Andersson Regards, Bjorn -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH] soc: qcom: smd: Implement id_table driver matching

2015-08-28 Thread Bjorn Andersson
Implement a id_table based driver maching mechanism for drivers that binds to fixed channels and doesn't need any additional configuration, e.g. IPCRTR and DIAG. Signed-off-by: Bjorn Andersson --- drivers/soc/qcom/smd.c | 25 ++--- include/linux/soc/qcom/smd.h

Re: [GIT PULL] qcom SoC changes for 4.3-rc2

2015-08-27 Thread Bjorn Andersson
On Thu 27 Aug 14:28 PDT 2015, Andy Gross wrote: > The following changes since commit 72af1ff60d08a57e223b9753f9c52396fb4c3897: > > Merge tag 'qcom-soc-for-4.3' into for-soc-new (2015-08-27 12:14:29 -0500) > > are available in the git repository at: > > > git://codeaurora.org/quic/kernel/ag

[PATCH 1/4] dt-binding: gpio: Add Qualcomm SMSM device tree documentation

2015-08-27 Thread Bjorn Andersson
This documents a device tree binding for exposing the Qualcomm Shared Memory State Machine as a set of gpio- and interrupt-controllers. Signed-off-by: Bjorn Andersson --- .../devicetree/bindings/gpio/qcom,smsm.txt | 114 + drivers/gpio/Kconfig

[PATCH 4/4] gpio: qcom-smp2p: Qualcomm Shared Memory Point to Point

2015-08-27 Thread Bjorn Andersson
Introduce the Qualcomm Shard Memory Point to Point driver, exposing bits from the SMP2P protocol as gpio and interrupt controllers. Signed-off-by: Bjorn Andersson --- drivers/gpio/Kconfig | 7 + drivers/gpio/Makefile | 1 + drivers/gpio/gpio-qcom-smp2p.c | 601

[PATCH 2/4] gpio: qcom-smsm: Add driver for Qualcomm SMSM

2015-08-27 Thread Bjorn Andersson
This driver exposed the Qualcomm Shared Memory State Machine bits as GPIOs to the system. Signed-off-by: Bjorn Andersson --- drivers/gpio/gpio-qcom-smsm.c | 631 ++ 1 file changed, 631 insertions(+) create mode 100644 drivers/gpio/gpio-qcom-smsm.c diff

[PATCH 3/4] dt-binding: gpio: Introduce qcom,smp2p binding documentation

2015-08-27 Thread Bjorn Andersson
Introduce binding documentation for the Qualcomm Shared Memory Point 2 Point protocol implemented as gpio and interrupt controllers. Signed-off-by: Bjorn Andersson --- .../devicetree/bindings/gpio/qcom,smp2p.txt| 112 + 1 file changed, 112 insertions(+) create mode

[PATCH 0/4] Qualcomm Shared Memory State Machines

2015-08-27 Thread Bjorn Andersson
- and interrupt-controllers - providing a nice abstraction both in device tree sense and Linux implementation sense. Bjorn Andersson (4): dt-binding: gpio: Add Qualcomm SMSM device tree documentation gpio: qcom-smsm: Add driver for Qualcomm SMSM dt-binding: gpio: Introduce qcom,smp2p binding

Re: [PATCH v2] soc: qcom: smd: Use correct remote processor ID

2015-08-26 Thread Bjorn Andersson
On Wed 26 Aug 12:42 PDT 2015, Andy Gross wrote: > This patch fixes SMEM addressing issues when remote processors need to use > secure SMEM partitions. > Reviewed-by: Bjorn Andersson Regards, Bjorn -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm&quo

Re: [PATCH] soc: qcom: smd: Use correct remote processor ID

2015-08-25 Thread Bjorn Andersson
On Tue 25 Aug 13:36 PDT 2015, Andy Gross wrote: > This patch fixes SMEM addressing issues when remote processors need to use > secure SMEM partitions. > Right, sorry for missing that remote_pid and edge_pid isn't in sync... > Signed-off-by: Andy Gross > --- > .../devicetree/bindings/soc/qcom/

[PATCH] soc: qcom: smd: Correct fBLOCKREADINTR handling

2015-08-24 Thread Bjorn Andersson
fBLOCKREADINTR is masking the notification from the remote and should hence be cleared while we're waiting the tx fifo to drain. Also change the reset state to mask the notification, as send is the only use case where we're interested in it. Signed-off-by: Bjorn Andersson --- driver

Re: [PATCH v2] qcom: ipq40xx: Add basic board/dts support for IPQ40XX SoC

2015-08-21 Thread Bjorn Andersson
On Fri 21 Aug 03:32 PDT 2015, Varadarajan Narayanan wrote: > Add initial dts files and SoC support for IPQ40XX > > Signed-off-by: Varadarajan Narayanan > --- > Changes in v2: > - Added devicetree bindings documentation > > .../devicetree/bindings/clock/qca,gcnt.txt | 14 > Docum

[PATCH RESEND v3] regulator: Regulator driver for the Qualcomm RPM

2015-08-17 Thread Bjorn Andersson
Driver for regulators exposed by the Resource Power Manager (RPM) found in devices based on Qualcomm 8974 and newer platforms. Reviewed-by: Mark Brown Acked-by: Andy Gross Tested-by: Tim Bird Signed-off-by: Bjorn Andersson --- All other patches from the original series have been picked up by

Re: [PATCH] drm/panel: auo novatek 1080p video mode panel

2015-08-17 Thread Bjorn Andersson
On Tue 21 Jul 12:36 PDT 2015, Rob Clark wrote: [..] > +++ b/Documentation/devicetree/bindings/panel/auo,novatek-1080p.txt > @@ -0,0 +1,25 @@ > +AU Optronics Corporation 1080x1920 DSI panel > + > +This panel supports both video and command mode (although currently only > video > +mode is implement

Re: [Patch v2] soc: qcom: smem: Fix errant private access

2015-08-14 Thread Bjorn Andersson
off-by: Andy Gross Thanks for finding this issue. Reviewed-by: Bjorn Andersson Regards, Bjorn -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH v3 5/5] regulator: Regulator driver for the Qualcomm RPM

2015-08-14 Thread Bjorn Andersson
On Fri 14 Aug 19:14 PDT 2015, Mark Brown wrote: > On Fri, Aug 14, 2015 at 11:58:35AM -0500, Andy Gross wrote: > > On Mon, Jul 27, 2015 at 08:20:33PM -0700, Bjorn Andersson wrote: > > > Driver for regulators exposed by the Resource Power Manager (RPM) found > > > in dev

Re: [PATCH] soc: qcom: smem: Fix errant private access

2015-08-14 Thread Bjorn Andersson
On Fri 14 Aug 20:56 PDT 2015, Andy Gross wrote: > This patch corrects private partition item access. Instead of falling back to > global for instances where we have an actual host and remote partition > existing, > return the results of the private lookup. > > Signed-off-by: Andy Gross > --- >

Re: [PATCH RFC 08/10] hwspinlock: qcom: Lock #7 is special lock, uses dynamic proc_id

2015-08-12 Thread Bjorn Andersson
On Wed 05 Aug 09:32 PDT 2015, Lina Iyer wrote: > Hwspinlocks are widely used between processors in an SoC, and also > between elevation levels within in the same processor. QCOM SoC's use > hwspinlock to serialize entry into a low power mode when the context > switches from Linux to secure monito

Re: [PATCH 5/9] clk: qcom: gcc-msm8960: add child devices support.

2015-08-12 Thread Bjorn Andersson
On Wed 12 Aug 14:57 PDT 2015, Stephen Boyd wrote: > On 08/12/2015 01:18 PM, Bjorn Andersson wrote: > > On Tue 11 Aug 15:49 PDT 2015, Stephen Boyd wrote: > > > >> On 07/08, Rajendra Nayak wrote: > >>> diff --git a/drivers/clk/qcom/gcc-msm8960.c > >>&

Re: [PATCH 5/9] clk: qcom: gcc-msm8960: add child devices support.

2015-08-12 Thread Bjorn Andersson
On Tue 11 Aug 15:49 PDT 2015, Stephen Boyd wrote: > On 07/08, Rajendra Nayak wrote: > > diff --git a/drivers/clk/qcom/gcc-msm8960.c b/drivers/clk/qcom/gcc-msm8960.c > > index eb6a4f9..2c80d03 100644 > > --- a/drivers/clk/qcom/gcc-msm8960.c > > +++ b/drivers/clk/qcom/gcc-msm8960.c > > @@ -15,6 +15,

Re: [PATCH v1 7/7] ARM: dts: ifc6410: add inforce LVDS panel support

2015-08-10 Thread Bjorn Andersson
On Tue 28 Jul 05:54 PDT 2015, Srinivas Kandagatla wrote: > This patch adds LVDS panel for IFC6410. > My ifc6410 doesn't have a LVDS display, so I don't think these nodes belong in this dts file. I was thinking we could have a variant including this dts file adding the panel, but I assume that y

Re: [PATCH RFC 1/5] drm/msm/hdmi: deprecate non standard gpio properties.

2015-08-10 Thread Bjorn Andersson
On Mon 10 Aug 15:07 PDT 2015, Rob Herring wrote: [..] > >> -- qcom,hdmi-tx-ddc-clk-gpio: ddc clk pin > >> -- qcom,hdmi-tx-ddc-data-gpio: ddc data pin > >> -- qcom,hdmi-tx-hpd-gpio: hpd pin > >> +- qcom,hdmi-tx-ddc-clk-gpios: ddc clk pin > >> +- qcom,hdmi-tx-ddc-data-gpios: ddc data pin > > The dr

[PATCH v2] backlight: pm8941-wled: Add default-brightness property

2015-08-10 Thread Bjorn Andersson
Default the brightness to 2048 and add possibility to override this in device tree. Suggested-by: Rob Clark Signed-off-by: Bjorn Andersson --- After going back and forth on this one I decided that the best unit of this property (which could become a common backlight property) would be to use

Re: [PATCH] drm/panel: auo novatek 1080p video mode panel

2015-08-10 Thread Bjorn Andersson
On Fri 07 Aug 09:11 PDT 2015, Rob Clark wrote: > On Fri, Aug 7, 2015 at 9:19 AM, Thierry Reding > wrote: > > On Tue, Jul 21, 2015 at 03:36:02PM -0400, Rob Clark wrote: [..] > >> +- compatible: should be "auo,novatek-1080p-vid" > > > > This looks a little generic for a compatible string. Can't we

Re: [PATCH v7 01/13] clk: qcom: Add support for GDSCs

2015-07-31 Thread Bjorn Andersson
On Tue 28 Jul 02:33 PDT 2015, Rajendra Nayak wrote: [..] > diff --git a/drivers/clk/qcom/Kconfig b/drivers/clk/qcom/Kconfig [..] > +static int gdsc_init(struct gdsc *sc) > +{ > + u32 mask, val; > + int on, ret; > + > + /* > + * Disable HW trigger: collapse/restore occur based on r

[PATCHv2 1/4] spmi: pmic-arb: add support for irq_get_irqchip_state

2015-07-30 Thread Bjorn Andersson
From: Courtney Cavin Reviewed-by: Andy Gross Signed-off-by: Courtney Cavin Signed-off-by: Bjorn Andersson --- Changes since v1: - Corrected authorship drivers/spmi/spmi-pmic-arb.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers

[PATCHv2 0/4] Qualcomm Switch-Mode Battery Charger and Boost

2015-07-30 Thread Bjorn Andersson
This series adds bindings and a device driver for the Qualcomm Switch-Mode Battery Charger and Boost block found in pm8941. Changes since v1: - Corrected authorship of the patches - Gave dt properties qcom vendor prefix - Updated names of dt properties - Dropped MODULE_ALIAS Courtney Cavin (4):

[PATCHv2 3/4] power: Add Qualcomm SMBB driver

2015-07-30 Thread Bjorn Andersson
From: Courtney Cavin Add the Qualcomm Switch-Mode Battery Charger and Boost driver, found in pm8941. Signed-off-by: Courtney Cavin Signed-off-by: Bjorn Andersson --- Changes since v1: - Corrected authorship - Dropped MODULE_ALIAS drivers/power/Kconfig | 12 + drivers/power/Makefile

[PATCHv2 4/4] ARM: dts: qcom-pm8941: Add charger node

2015-07-30 Thread Bjorn Andersson
From: Courtney Cavin Signed-off-by: Courtney Cavin Signed-off-by: Bjorn Andersson --- Changes since v1: - Corrected authorship arch/arm/boot/dts/qcom-pm8941.dtsi | 21 + 1 file changed, 21 insertions(+) diff --git a/arch/arm/boot/dts/qcom-pm8941.dtsi b/arch/arm/boot

[PATCHv2 2/4] dt-binding: power: Add Qualcomm SMBB binding

2015-07-30 Thread Bjorn Andersson
From: Courtney Cavin Add the Qualcomm Switch-Mode Battery Charger and Boost device tree binding. Signed-off-by: Courtney Cavin Signed-off-by: Bjorn Andersson --- Changes since v1: - Corrected authorship .../devicetree/bindings/power_supply/qcom_smbb.txt | 131 + 1 file

Re: [PATCH 3/4] power: Add Qualcomm SMBB driver

2015-07-30 Thread Bjorn Andersson
On Mon 27 Jul 07:06 PDT 2015, Sebastian Reichel wrote: > Hi, > > On Sat, Jul 25, 2015 at 06:04:14PM -0700, Bjorn Andersson wrote: > > On Sat 25 Jul 08:42 PDT 2015, Sebastian Reichel wrote: > > > * battery-charge-control-limit > > > > > > It's

Re: [PATCH] backlight: pm8941-wled: Add default-brightness property

2015-07-30 Thread Bjorn Andersson
On Thu 30 Jul 08:26 PDT 2015, Rob Herring wrote: > On Wed, Jul 29, 2015 at 6:51 PM, Bjorn Andersson > wrote: > > On Fri 24 Jul 08:29 PDT 2015, Rob Herring wrote: [..] > > As we're trying to specify a default brightness within the range [0, > > max_brightness) the l

Re: [PATCH v1 1/7] ARM: dts: ifc6410: Add pwrseq support for WLAN

2015-07-29 Thread Bjorn Andersson
On Tue 28 Jul 05:53 PDT 2015, Srinivas Kandagatla wrote: > This patch adds pwrseq for WLAN which resets the WLAN just before the > SDIO bus is up. > Does this mean that we have the !power-of-2 patch in mmc on the way? > Signed-off-by: Srinivas Kandagatla > --- > arch/arm/boot/dts/qcom-apq8064

Re: [PATCH] backlight: pm8941-wled: Add default-brightness property

2015-07-29 Thread Bjorn Andersson
On Fri 24 Jul 08:29 PDT 2015, Rob Herring wrote: > On Thu, Jul 23, 2015 at 2:52 PM, Bjorn Andersson > wrote: > > Add the possibility of specifying the default brightness in DT. > > > > Signed-off-by: Bjorn Andersson > > --- > > > > This depends on th

Re: [PATCH] backlight: pm8941-wled: Add default-brightness property

2015-07-29 Thread Bjorn Andersson
On Fri 24 Jul 10:41 PDT 2015, Rob Clark wrote: > On Fri, Jul 24, 2015 at 11:39 AM, Rob Herring wrote: > > On Fri, Jul 24, 2015 at 8:10 AM, Rob Clark wrote: > >> On Thu, Jul 23, 2015 at 3:52 PM, Bjorn Andersson > >> wrote: > >>> Add the possibility of

[PATCH 2/2] drm/panel: Add Sharp LS043T1LE01 MIPI DSI panel

2015-07-28 Thread Bjorn Andersson
From: Werner Johansson This adds support for the Sharp panel found on the Qualcomm Snapdragon 800 Dragonboard (APQ8074) Signed-off-by: Werner Johansson Signed-off-by: Bjorn Andersson --- drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile

[PATCH 1/2] drm/panel: Add Sharp LS043T1LE01 panel binding documentation

2015-07-28 Thread Bjorn Andersson
From: Werner Johansson Signed-off-by: Werner Johansson Signed-off-by: Bjorn Andersson --- .../bindings/panel/sharp,ls043t1le01.txt | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/panel/sharp,ls043t1le01.txt diff

Re: [PATCH 2/5] drm/i2c: adv7511: Initial support for adv7533

2015-07-27 Thread Bjorn Andersson
On Sun 26 Jul 23:16 PDT 2015, Archit Taneja wrote: > From: Lars-Peter Clausen > [..] > diff --git a/drivers/gpu/drm/i2c/adv7511.c b/drivers/gpu/drm/i2c/adv7511.c [..] > > +static const struct of_device_id adv7511_of_ids[] = { > + { .compatible = "adi,adv7511", .data = (void *) ADV7511 },

[PATCH v3 4/5] soc: qcom: Driver for the Qualcomm RPM over SMD

2015-07-27 Thread Bjorn Andersson
Driver for the Resource Power Manager (RPM) found in Qualcomm 8974 based devices. The driver exposes resources that child drivers can operate on; to implementing regulator, clock and bus frequency drivers. Signed-off-by: Bjorn Andersson --- Changes since v2: - Updated error handling path in RPM

[PATCH v3 1/5] soc: qcom: Add device tree binding for Shared Memory Device

2015-07-27 Thread Bjorn Andersson
Add device tree binding documentation for the Qualcomm Shared Memory Device, used for communication between the various CPUs in the Qualcomm SoCs. Signed-off-by: Bjorn Andersson --- No changes since v2 .../devicetree/bindings/soc/qcom/qcom,smd.txt | 79 ++ 1 file

[PATCH v3 2/5] soc: qcom: Add Shared Memory Driver

2015-07-27 Thread Bjorn Andersson
This adds the Qualcomm Shared Memory Driver (SMD) providing communication channels to remote processors, ontop of SMEM. Signed-off-by: Bjorn Andersson --- Changes since v2: - Made smd copy functions work on words for the word access channels - Corrected access of smem items from secure heap

[PATCH v3 3/5] devicetree: soc: Add Qualcomm SMD based RPM DT binding

2015-07-27 Thread Bjorn Andersson
Add binding documentation for the Qualcomm Resource Power Manager (RPM) using shared memory (Qualcomm SMD) as transport mechanism. This is found in 8974 and newer based devices. The binding currently describes the rpm itself and the regulator subnodes. Signed-off-by: Bjorn Andersson

[PATCH v3 5/5] regulator: Regulator driver for the Qualcomm RPM

2015-07-27 Thread Bjorn Andersson
Driver for regulators exposed by the Resource Power Manager (RPM) found in devices based on Qualcomm 8974 and newer platforms. Reviewed-by: Mark Brown Signed-off-by: Bjorn Andersson --- Changes since v2: - Updated Kconfig dependency to follow smd's move from mfd drivers/regulator/Kc

[PATCH v3 0/5] Qualcomm Shared Memory & RPM drivers

2015-07-27 Thread Bjorn Andersson
smem items from secure heap - Updated error handling path in RPM driver - Moved init of smd to postcore and rpm to arch - Minor nits from Georgi on the SMD code - Moved rpm driver from mfd to soc Bjorn Andersson (5): soc: qcom: Add device tree binding for Shared Memory Device soc: qcom: Add

Re: [PATCH 3/4] power: Add Qualcomm SMBB driver

2015-07-25 Thread Bjorn Andersson
On Sat 25 Jul 08:42 PDT 2015, Sebastian Reichel wrote: > Hi, > > On Thu, Jun 18, 2015 at 02:13:44PM -0700, Bjorn Andersson wrote: > > Add the Qualcomm Switch-Mode Battery Charger and Boost driver, found in > > pm8941. > > The driver's sourcecode looks fine to m

[PATCH] backlight: pm8941-wled: Add default-brightness property

2015-07-23 Thread Bjorn Andersson
Add the possibility of specifying the default brightness in DT. Signed-off-by: Bjorn Andersson --- This depends on the patch moving pm8941-wled to backlight [1]. The dt property is used by several other backlight drivers, so I considered this to be a "common" property and it&#

Re: [PATCH v2 06/11] mfd: qcom-smd-rpm: Driver for the Qualcomm RPM over SMD

2015-07-23 Thread Bjorn Andersson
On Thu 23 Jul 06:22 PDT 2015, Lee Jones wrote: > On Mon, 13 Jul 2015, Bjorn Andersson wrote: > > > On Tue 07 Jul 05:37 PDT 2015, Lee Jones wrote: > > > > > On Fri, 26 Jun 2015, bj...@kryo.se wrote: > > > > > > > From: Bjorn Andersson > >

Re: [PATCH v2 05/11] mfd: devicetree: bindings: Add Qualcomm SMD based RPM DT binding

2015-07-23 Thread Bjorn Andersson
On Thu 23 Jul 06:31 PDT 2015, Lee Jones wrote: > On Mon, 13 Jul 2015, Bjorn Andersson wrote: > > > On Tue 07 Jul 05:16 PDT 2015, Lee Jones wrote: > > > > > FAO Mark and DT chaps, > > > > > > > From: Bjorn Andersson > > > > >

Re: [PATCH v2] backlight: pm8941-wled: Move PM8941 WLED driver to backlight

2015-07-21 Thread Bjorn Andersson
On Tue 21 Jul 17:44 PDT 2015, Bjorn Andersson wrote: > The Qualcomm PM8941 WLED block is used for backlight and should therefor > be in the backlight framework and not in the LED framework. This moves > the driver and adapts to the backlight api instead. > > Acked-by: Jacek Anasz

[PATCH v2] backlight: pm8941-wled: Move PM8941 WLED driver to backlight

2015-07-21 Thread Bjorn Andersson
The Qualcomm PM8941 WLED block is used for backlight and should therefor be in the backlight framework and not in the LED framework. This moves the driver and adapts to the backlight api instead. Acked-by: Jacek Anaszewski Tested-by: Rob Clark Signed-off-by: Bjorn Andersson --- .../backlight

Re: [PATCH] backlight: pm8941-wled: Move PM8941 WLED driver to backlight

2015-07-20 Thread Bjorn Andersson
On Mon 20 Jul 07:22 PDT 2015, Jingoo Han wrote: > On Thursday, July 16, 2015 5:02 AM, Bjorn Andersson wrote: > > > > The Qualcomm PM8941 WLED block is used for backlight and should therefor > > be in the backlight framework and not in the LED framework. This moves > &g

Re: [PATCH v2] firmware: qcom: scm: Peripheral Authentication Service

2015-07-15 Thread Bjorn Andersson
On Wed 15 Jul 17:55 PDT 2015, Stephen Boyd wrote: > On 07/15/2015 05:35 PM, Bjorn Andersson wrote: > >On Wed 15 Jul 16:43 PDT 2015, Stephen Boyd wrote: > > > >>On 07/15, Bjorn Andersson wrote: [..] > >>Also, dma_alloc_coherent() doesn't do enough to pre

Re: [PATCH 1/3] ARM: dts: qcom: Add binding for the qcom coincell charger

2015-07-15 Thread Bjorn Andersson
On Wed 15 Jul 15:27 PDT 2015, Tim Bird wrote: > > > On 07/15/2015 02:22 PM, Rob Herring wrote: > > On Wed, Jul 15, 2015 at 1:24 PM, Tim Bird wrote: > >> On 07/14/2015 06:07 PM, Rob Herring wrote: > >>> On Tue, Jul 14, 2015 at 4:41 PM, Tim Bird wrote: > On 07/13/2015 08:59 PM, Rob Herring

Re: [PATCH v2] firmware: qcom: scm: Peripheral Authentication Service

2015-07-15 Thread Bjorn Andersson
On Wed 15 Jul 14:33 PDT 2015, Andy Gross wrote: > On Wed, Jul 15, 2015 at 11:58:06AM -0700, Bjorn Andersson wrote: > > > > > +int __qcom_scm_pas_init_image(u32 peripheral, const void *metadata, size_t > > size) > > +{ > > + dma_addr_t mdata_phys; >

Re: [PATCH v2] firmware: qcom: scm: Peripheral Authentication Service

2015-07-15 Thread Bjorn Andersson
On Wed 15 Jul 16:43 PDT 2015, Stephen Boyd wrote: > On 07/15, Bjorn Andersson wrote: > > This adds the Peripheral Authentication Service (PAS) interface to the > > Qualcomm SCM interface. The API is used to authenticate and boot a range > > of external processors in vario

[PATCH] backlight: pm8941-wled: Move PM8941 WLED driver to backlight

2015-07-15 Thread Bjorn Andersson
The Qualcomm PM8941 WLED block is used for backlight and should therefor be in the backlight framework and not in the LED framework. This moves the driver and adapts to the backlight api instead. Signed-off-by: Bjorn Andersson --- .../devicetree/bindings/leds/leds-pm8941-wled.txt | 5

[PATCH v2] firmware: qcom: scm: Peripheral Authentication Service

2015-07-15 Thread Bjorn Andersson
This adds the Peripheral Authentication Service (PAS) interface to the Qualcomm SCM interface. The API is used to authenticate and boot a range of external processors in various Qualcomm platforms. Signed-off-by: Bjorn Andersson --- Changes since v1: - Big endian compatibility drivers

Re: [PATCH] [v2] pinctrl: add support for Qualcomm Technologies QDF2xxx ARM64 SoCs

2015-07-15 Thread Bjorn Andersson
is intended to be used only an ACPI-enabled system. As such, > UEFI will handle all pin control configuration, so this driver does not > provide pin control functions. It is effectively a GPIO-only driver. > > Signed-off-by: Timur Tabi > --- Reviewed-by: Bjorn Andersson Regards

[PATCH v2 5/8] pinctrl: qcom: spmi-mpp: Add support for setting analog output level

2015-07-14 Thread Bjorn Andersson
When the MPP is configured for analog output the output level is selected by the AOUT_CTL register, this patch makes it possible to control this. Signed-off-by: Bjorn Andersson --- Changes since v1: - Assign aout_level in pmic_mpp_populate() .../devicetree/bindings/pinctrl/qcom,pmic-mpp.txt

[PATCH v2 8/8] pinctrl: qcom: ssbi: Family A gpio & mpp drivers

2015-07-14 Thread Bjorn Andersson
This introduces pinctrl drivers for gpio and mpp blocks found in family A PMICs. Tested-by: Srinivas Kandagatla Signed-off-by: Bjorn Andersson

[PATCH v2 7/8] mfd: pm8921: Implement irq_get_irqchip_state

2015-07-14 Thread Bjorn Andersson
Implement irq_chip->irq_get_irqchip_state to make it possible for PMIC block drivers to access the IRQ real time status bits. The status bits are used for various kinds of input signals, e.g. GPIO. Signed-off-by: Bjorn Andersson --- Changes since v1: - Drop extra check for !chip - Simpl

Re: [PATCH] pinctrl: add support for Qualcomm Technologies QDF2xxx ARM64 SoCs

2015-07-14 Thread Bjorn Andersson
On Tue 14 Jul 16:29 PDT 2015, Timur Tabi wrote: [..] > diff --git a/drivers/pinctrl/qcom/pinctrl-qdf2xxx.c > b/drivers/pinctrl/qcom/pinctrl-qdf2xxx.c [..] > + * > + * GPIO and pin control functions on this SOC are handled by the "TLMM" > + * device. The driver which controls this device is pi

Re: [PATCH] clk: qcom: Set CLK_SET_RATE_PARENT on ce1 clocks

2015-07-14 Thread Bjorn Andersson
On Tue 14 Jul 17:09 PDT 2015, Stephen Boyd wrote: > The other ce clocks have the flag set, but ce1 doesn't, so > clk_set_rate() doesn't propagate up the tree to the ce1_src_clk. > Set the flag as this is supported. > > Reported-by: Bjorn Andersson > Fixes: 028246532

Re: [PATCH v3] Input: pmic8xxx-pwrkey - Support shutdown

2015-07-14 Thread Bjorn Andersson
wer sequence for shutdown > or restart depending on the system state. > > Cc: Bjorn Andersson > Signed-off-by: Stephen Boyd > --- > > Changes since v2: > * s/ret/error/ > * Use of_device_get_match_data() and don't move match table > * Fix whitespace errors &g

Re: [PATCH v2] Input: pmic8xxx-pwrkey - Support shutdown

2015-07-13 Thread Bjorn Andersson
wer sequence for shutdown > or restart depending on the system state. > > Cc: Bjorn Andersson > Signed-off-by: Stephen Boyd > --- > drivers/input/misc/pmic8xxx-pwrkey.c | 284 > ++- > 1 file changed, 277 insertions(+), 7 deletions(-) >

Re: [PATCH] Input: pmic8xxx-pwrkey - Support shutdown

2015-07-13 Thread Bjorn Andersson
On Mon 06 Jul 18:08 PDT 2015, Stephen Boyd wrote: > On pm8xxx PMICs, shutdown and restart are signaled to the PMIC > via a pin called PS_HOLD. When this pin goes low, the PMIC > performs a configurable power sequence. Add a .shutdown hook so > that we can properly configure this power sequence for

Re: [PATCH] pinctrl: qcom: Hook pm_power_down for shutdown support

2015-07-13 Thread Bjorn Andersson
eton here because pm_power_off() doesn't > take any arguments. Fortunately there's only one instance of the > pinctrl device on a running system so this isn't a problem. > > Cc: Bjorn Andersson > Cc: Pramod Gurav > Signed-off-by: Stephen Boyd I do find it odd that

Re: [PATCH 1/2] clk: qcom: Add support for RPM Clocks

2015-07-13 Thread Bjorn Andersson
On Thu 09 Jul 08:22 PDT 2015, Georgi Djakov wrote: > Hi Srini, > > On 07/09/2015 03:27 PM, Srinivas Kandagatla wrote: > > > > On 09/07/15 13:18, Georgi Djakov wrote: > >> This patch adds initial support for clocks controlled by the RPM > >> (Resource Power Manager) processor found on some Qualco

Re: [PATCH v2 01/11] soc: qcom: Add device tree binding for SMEM

2015-07-13 Thread Bjorn Andersson
On Wed 08 Jul 16:56 PDT 2015, Stephen Boyd wrote: > On 06/26/2015 02:50 PM, bj...@kryo.se wrote: > > += EXAMPLE > > +The following example shows the SMEM setup for MSM8974, with a main SMEM > > region > > +at 0xfa0 and an auxiliary region at 0xfc428000: > > + > > + reserved-memory { > > +

Re: [PATCH v2 04/11] soc: qcom: Add Shared Memory Driver

2015-07-13 Thread Bjorn Andersson
On Tue 07 Jul 06:45 PDT 2015, Georgi Djakov wrote: > Hi Bjorn, > Thank you for this patchset! Some nits and a question below. > Thank you! > On 06/27/2015 12:50 AM, bj...@kryo.se wrote: > > From: Bjorn Andersson > > > > This adds the Qualcomm Shared

Re: [PATCH v2 06/11] mfd: qcom-smd-rpm: Driver for the Qualcomm RPM over SMD

2015-07-13 Thread Bjorn Andersson
On Tue 07 Jul 05:37 PDT 2015, Lee Jones wrote: > On Fri, 26 Jun 2015, bj...@kryo.se wrote: > > > From: Bjorn Andersson [..] > > diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig [..] > > +config MFD_QCOM_SMD_RPM > > + tristate "Qualcomm Re

<    1   2   3   4   5   6   7   >