[PATCH] ASoC: core: init delayed_work for codec-codec links

2013-07-31 Thread Richard Fitzgerald
callback is cleaner than taking special cases in the code to bypass the flush_delayed_work_sync(). Signed-off-by: Richard Fitzgerald --- sound/soc/soc-core.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 4489c5b

Re: [PATCH] ASoC: core: init delayed_work for codec-codec links

2013-08-01 Thread Richard Fitzgerald
On Wed, Jul 31, 2013 at 02:25:22PM +0100, Mark Brown wrote: > On Wed, Jul 31, 2013 at 02:16:44PM +0100, Richard Fitzgerald wrote: > > > Pointing it to a dummy work callback is cleaner than taking > > special cases in the code to bypass the flush_delayed_work_sync(). > >

Re: [PATCH] ASoC: core: init delayed_work for codec-codec links

2013-08-01 Thread Richard Fitzgerald
On Thu, Aug 01, 2013 at 04:23:56PM +0100, Mark Brown wrote: > On Thu, Aug 01, 2013 at 04:13:52PM +0100, Richard Fitzgerald wrote: > > On Wed, Jul 31, 2013 at 02:25:22PM +0100, Mark Brown wrote: > > > > Why is this better than pointing at the normal work that you'd exp

[PATCH v2] ASoC: core: init delayed_work for codec-codec links

2013-08-02 Thread Richard Fitzgerald
We must init the delayed_work for codec-codec links otherwise shutting down the DAI chain will fault when calling flush_delayed_work_sync() on the linked DAI. Signed-off-by: Richard Fitzgerald --- sound/soc/soc-core.c | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff

Re: [alsa-devel] [PATCH v3] ASoC: core: init delayed_work for codec-codec links

2013-08-02 Thread Richard Fitzgerald
We must init the delayed_work for codec-codec links otherwise shutting down the DAI chain will fault when calling flush_delayed_work_sync() on the linked DAI. Signed-off-by: Richard Fitzgerald --- sound/soc/soc-core.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git

Re: [alsa-devel] [PATCH v4] ASoC: core: init delayed_work for codec-codec links

2013-08-05 Thread Richard Fitzgerald
We must init the delayed_work for codec-codec links otherwise shutting down the DAI chain will fault when calling flush_delayed_work_sync() on the linked DAI. Signed-off-by: Richard Fitzgerald --- sound/soc/soc-core.c | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff

Re: [PATCH 2/2] of: Add array read functions with min/max size limits

2016-09-08 Thread Richard Fitzgerald
On Thu, 2016-09-08 at 09:46 -0500, Rob Herring wrote: > On Tue, Sep 6, 2016 at 10:02 AM, Richard Fitzgerald > wrote: > > Add a new set of array reading functions that take a minimum and > > maximum size limit and will fail if the property size is not within > > the size li

Re: [PATCH 2/2] of: Add array read functions with min/max size limits

2016-09-08 Thread Richard Fitzgerald
On Thu, 2016-09-08 at 10:38 -0500, Rob Herring wrote: > On Thu, Sep 8, 2016 at 10:34 AM, Richard Fitzgerald > wrote: > > On Thu, 2016-09-08 at 09:46 -0500, Rob Herring wrote: > >> On Tue, Sep 6, 2016 at 10:02 AM, Richard Fitzgerald > >> wrote: > >> > Add

Re: [PATCH v3] mfd: arizona: Add DT options for max_channels_clocked and PDM speaker config

2016-09-13 Thread Richard Fitzgerald
On Mon, 2016-09-12 at 11:53 -0500, Rob Herring wrote: > On Mon, Sep 05, 2016 at 12:56:25PM +0100, Richard Fitzgerald wrote: > > This patch adds DT settings for the max_channels_clocked, spk_fmt and > > spk_mute pdata. > > > > Signed-off-by: Richard Fitzgerald

[PATCH v4] mfd: arizona: Add DT options for max_channels_clocked and PDM speaker config

2016-09-13 Thread Richard Fitzgerald
This patch adds DT settings for the max_channels_clocked, spk_fmt and spk_mute pdata. Signed-off-by: Richard Fitzgerald --- Documentation/devicetree/bindings/mfd/arizona.txt | 18 ++ drivers/mfd/arizona-core.c| 30 +++ 2 files changed, 48

[PATCH v2] mfd: arizona: Add DT options for max_channels_clocked and PDM speaker config

2016-08-31 Thread Richard Fitzgerald
This patch adds DT settings for the max_channels_clocked, spk_fmt and spk_mute pdata. Signed-off-by: Richard Fitzgerald --- Documentation/devicetree/bindings/mfd/arizona.txt | 11 drivers/mfd/arizona-core.c| 31 +++ 2 files changed, 42

Re: [PATCH v2] mfd: arizona: Add DT options for max_channels_clocked and PDM speaker config

2016-09-02 Thread Richard Fitzgerald
On Fri, 2016-09-02 at 10:34 -0500, Rob Herring wrote: > On Wed, Aug 31, 2016 at 10:25:43AM +0100, Richard Fitzgerald wrote: > > This patch adds DT settings for the max_channels_clocked, spk_fmt and > > spk_mute pdata. > > > > Signed-off-by: Richard Fitzgerald

[PATCH] mfd: arizona: Add DT options for max_channels_clocked and PDM speaker config

2016-08-25 Thread Richard Fitzgerald
This patch adds DT settings for the max_channels_clocked, spk_fmt and spk_mute pdata. Signed-off-by: Richard Fitzgerald --- Documentation/devicetree/bindings/mfd/arizona.txt | 11 drivers/mfd/arizona-core.c| 31 +++ 2 files changed, 42

[PATCH] ASoC: arizona: Wait for resume before enabling FLL

2016-08-25 Thread Richard Fitzgerald
When enabling an FLL use pm_runtime_get_sync() instead of pm_runtime_get() to ensure that all the register settings have been written out and the codec is powered-up before we write the enable bit. Signed-off-by: Richard Fitzgerald --- sound/soc/codecs/arizona.c | 2 +- 1 file changed, 1

[PATCH] ASoC: wm_adsp: Fix typo in algorithm list warning message

2017-05-26 Thread Richard Fitzgerald
The list terminator is 0xbedead but the message warning if it wasn't found was showing that 0xbeadead was expected. Signed-off-by: Richard Fitzgerald --- sound/soc/codecs/wm_adsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm_adsp.c b/sound/soc/c

[PATCH 2/3] gpio: arizona: Support Cirrus Logic CS47L24 and WM1831

2015-10-19 Thread Richard Fitzgerald
The CS47L24 and WM1831 codecs only have two GPIO lines, but are otherwise similar to the WM8280. Signed-off-by: Richard Fitzgerald --- drivers/gpio/gpio-arizona.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpio/gpio-arizona.c b/drivers/gpio/gpio-arizona.c index ca00273

[PATCH 3/3] ASoC: cs47l24: Add driver for Cirrus Logic CS47L24 and WM1831 codecs

2015-10-19 Thread Richard Fitzgerald
This patch adds support for the Cirrus Logic CS47L24 and WM1831 codecs. Signed-off-by: Richard Fitzgerald --- sound/soc/codecs/Kconfig |8 + sound/soc/codecs/Makefile |2 + sound/soc/codecs/cs47l24.c | 1148 sound/soc/codecs/cs47l24.h

[PATCH 1/3] mfd: arizona: Support Cirrus Logic CS47L24 and WM1831

2015-10-19 Thread Richard Fitzgerald
This patch adds the regmap configuration tables and core MFD handling for the CS47L24 and WM1831 codecs. Note that compared to the other Arizona codecs, these devices do not have an LDO1 or micsupp regulators, extcon driver, or the DCVDD isolation control. Signed-off-by: Richard Fitzgerald

[PATCH 0/3] Add support for Cirrus Logic CS47L24 and WM1831 codecs

2015-10-19 Thread Richard Fitzgerald
mfd patch based on Lee Jones's for-next gpio patch based on Linus Walleij's for-next ASoC patch based on Mark Brown's for-next Lee/Mark - can one of you take all three patches (with maintainer acks) so that the patch set is kept together? Richard Fitzgerald (3): mfd: arizona:

[PATCH v2 1/3] mfd: arizona: Support Cirrus Logic CS47L24 and WM1831

2015-10-19 Thread Richard Fitzgerald
This patch adds the regmap configuration tables and core MFD handling for the CS47L24 and WM1831 codecs. Note that compared to the other Arizona codecs, these devices do not have an LDO1 or micsupp regulators, extcon driver, or the DCVDD isolation control. Signed-off-by: Richard Fitzgerald

[PATCH v2 3/3] ASoC: cs47l24: Add driver for Cirrus Logic CS47L24 and WM1831 codecs

2015-10-19 Thread Richard Fitzgerald
This patch adds support for the Cirrus Logic CS47L24 and WM1831 codecs. Signed-off-by: Richard Fitzgerald --- sound/soc/codecs/Kconfig |8 + sound/soc/codecs/Makefile |2 + sound/soc/codecs/cs47l24.c | 1148 sound/soc/codecs/cs47l24.h

[PATCH v2 2/3] gpio: arizona: Support Cirrus Logic CS47L24 and WM1831

2015-10-19 Thread Richard Fitzgerald
The CS47L24 and WM1831 codecs only have two GPIO lines, but are otherwise similar to the WM8280. Signed-off-by: Richard Fitzgerald --- drivers/gpio/gpio-arizona.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpio/gpio-arizona.c b/drivers/gpio/gpio-arizona.c index ca00273

[PATCH v2 0/3] Add support for Cirrus Logic CS47L24 and WM1831 codecs

2015-10-19 Thread Richard Fitzgerald
mfd patch based on Lee Jones's for-next gpio patch based on Linus Walleij's for-next ASoC patch based on Mark Brown's for-next Lee/Mark - can one of you take all three patches (with maintainer acks) so that the patch set is kept together? Richard Fitzgerald (3): mfd: arizona:

Re: [alsa-devel] [PATCH v2 0/3] Add support for Cirrus Logic CS47L24 and WM1831 codecs

2015-10-19 Thread Richard Fitzgerald
you started a new thread that included in the email title the part number of the device you are interested in. It not reasonable to assume that someone who knows about the CS53L30 would expect to find a discussion of it under a thread about a different device. > On Mon, Oct 19, 2015 at 7:13 AM, Rich

[PATCH v8] irqchip: Add driver for Cirrus Logic Madera codecs

2018-08-06 Thread Richard Fitzgerald
tly of interest from the driver so only this subset is defined. Others can be added in future if needed. The KConfig options are not user-configurable because this driver is mandatory so is automatically included when the parent MFD driver is selected. Signed-off-by: Richard Fitzgerald Signed-off

[PATCH 2/2] mfd: madera: Don't use regmap_read_poll_timeout to poll for BOOT_DONE

2018-08-07 Thread Richard Fitzgerald
: Richard Fitzgerald --- drivers/mfd/madera-core.c | 38 -- 1 file changed, 24 insertions(+), 14 deletions(-) diff --git a/drivers/mfd/madera-core.c b/drivers/mfd/madera-core.c index 8cfea969b060..bc5545c53ee5 100644 --- a/drivers/mfd/madera-core.c +++ b/drivers/mfd

[PATCH 1/2] mfd: madera: Add register definitions for accessory detect

2018-08-07 Thread Richard Fitzgerald
Add some register definitions for accessory detection, used by the extcon driver. Signed-off-by: Richard Fitzgerald --- include/linux/mfd/madera/registers.h | 51 1 file changed, 51 insertions(+) diff --git a/include/linux/mfd/madera/registers.h b/include

[PATCH 2/3] pinctrl: madera: Return ENOTSUPP for unsupported pin attributes

2018-08-07 Thread Richard Fitzgerald
The pin_config_[get|set] functions should return ENOTSUPP if the requested attribute isn't supported. Signed-off-by: Richard Fitzgerald --- drivers/pinctrl/cirrus/pinctrl-madera-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/cirrus/pinctrl-m

[PATCH 1/3] pinctrl: madera: Set is_generic

2018-08-07 Thread Richard Fitzgerald
We are using the generic pin configuration interface so we can set is_generic. Signed-off-by: Richard Fitzgerald --- drivers/pinctrl/cirrus/pinctrl-madera-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/cirrus/pinctrl-madera-core.c b/drivers/pinctrl

[PATCH 3/3] pinctrl: madera: Fix missing space in debugfs output

2018-08-07 Thread Richard Fitzgerald
The SCHMITT tag was being dumped without a separating space. Signed-off-by: Richard Fitzgerald --- drivers/pinctrl/cirrus/pinctrl-madera-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/cirrus/pinctrl-madera-core.c b/drivers/pinctrl/cirrus/pinctrl

[PATCH v2] mfd: madera: Don't use regmap_read_poll_timeout to poll for BOOT_DONE

2018-08-27 Thread Richard Fitzgerald
: Richard Fitzgerald --- drivers/mfd/madera-core.c | 33 - 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/drivers/mfd/madera-core.c b/drivers/mfd/madera-core.c index 8cfea969b060..440030cecbbd 100644 --- a/drivers/mfd/madera-core.c +++ b/drivers/mfd

[PATCH v9 1/2] mfd: madera: Add irqchip data pointer into struct madera

2018-08-27 Thread Richard Fitzgerald
. This also means that the irqchip driver does not need a double-indirection from its local struct to get at the parent struct madera. Signed-off-by: Richard Fitzgerald --- include/linux/mfd/madera/core.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/mfd/madera/core.h b/include

[PATCH v9 2/2] irqchip: Add driver for Cirrus Logic Madera codecs

2018-08-27 Thread Richard Fitzgerald
tly of interest from the driver so only this subset is defined. Others can be added in future if needed. The KConfig options are not user-configurable because this driver is mandatory so is automatically included when the parent MFD driver is selected. Signed-off-by: Richard Fitzgerald Signed-off

[PATCH] mfd: madera: Remove unused forward reference

2018-08-28 Thread Richard Fitzgerald
The madera_irqchip_pdata struct was replaced by the irq_flags member of struct madera_pdata so the forward reference is obsolete. Signed-off-by: Richard Fitzgerald --- include/linux/mfd/madera/pdata.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/mfd/madera/pdata.h b/include

[PATCH] pinctrl: madera: Fix possible NULL pointer with pdata config

2018-08-28 Thread Richard Fitzgerald
If we are being configured via pdata we don't necessarily have any gpio mappings being configured that way so pdata->gpio_config could be NULL. Signed-off-by: Richard Fitzgerald --- drivers/pinctrl/cirrus/pinctrl-madera-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [PATCH v9 2/2] irqchip: Add driver for Cirrus Logic Madera codecs

2018-08-28 Thread Richard Fitzgerald
On 27/08/18 17:26, Richard Fitzgerald wrote: The Cirrus Logic Madera codecs (Cirrus Logic CS47L35/85/90/91 and WM1840) are highly complex devices containing up to 7 programmable DSPs and many other internal sources of interrupts plus a number of GPIOs that can be used as interrupt inputs. The

[PATCH v10 1/2] mfd: madera: Add irqchip data pointer into struct madera

2018-08-28 Thread Richard Fitzgerald
. This also means that the irqchip driver does not need a double-indirection from its local struct to get at the parent struct madera. Signed-off-by: Richard Fitzgerald --- include/linux/mfd/madera/core.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/mfd/madera/core.h b/include

[PATCH v10 2/2] irqchip: Add driver for Cirrus Logic Madera codecs

2018-08-28 Thread Richard Fitzgerald
tly of interest from the driver so only this subset is defined. Others can be added in future if needed. The KConfig options are not user-configurable because this driver is mandatory so is automatically included when the parent MFD driver is selected. Signed-off-by: Richard Fitzgerald Signed-off

Re: [PATCH] MAINTAINERS: Move entry for Cirrus Logic Madera codecs

2018-08-28 Thread Richard Fitzgerald
GIC MADERA CODEC DRIVERS +M: Charles Keepax +M: Richard Fitzgerald +L: alsa-de...@alsa-project.org (moderated for non-subscribers) +L: patc...@opensource.cirrus.com +T: git https://github.com/CirrusLogic/linux-drivers.git +W: https://github.com/CirrusLogic/linux-drive

Re: [PATCH v10 2/2] irqchip: Add driver for Cirrus Logic Madera codecs

2018-08-30 Thread Richard Fitzgerald
On 30/08/18 11:31, Thomas Gleixner wrote: On Tue, 28 Aug 2018, Richard Fitzgerald wrote: @@ -0,0 +1,244 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Interrupt support for Cirrus Logic Madera codecs + * + * Copyright (C) 2015-2018 Cirrus Logic + * + * This program is free software; you can

[PATCH v11 2/2] irqchip: Add driver for Cirrus Logic Madera codecs

2018-08-30 Thread Richard Fitzgerald
tly of interest from the driver so only this subset is defined. Others can be added in future if needed. The KConfig options are not user-configurable because this driver is mandatory so is automatically included when the parent MFD driver is selected. Signed-off-by: Richard Fitzgerald Signed-off

[PATCH v11 1/2] mfd: madera: Add irqchip data pointer into struct madera

2018-08-30 Thread Richard Fitzgerald
. This also means that the irqchip driver does not need a double-indirection from its local struct to get at the parent struct madera. Signed-off-by: Richard Fitzgerald --- include/linux/mfd/madera/core.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/mfd/madera/core.h b/include

Re: [PATCH v8] irqchip: Add driver for Cirrus Logic Madera codecs

2018-08-08 Thread Richard Fitzgerald
On 08/08/18 11:27, Marc Zyngier wrote: On 06/08/18 17:04, Richard Fitzgerald wrote: The Cirrus Logic Madera codecs (Cirrus Logic CS47L35/85/90/91 and WM1840) are highly complex devices containing up to 7 programmable DSPs and many other internal sources of interrupts plus a number of GPIOs that

[PATCH 1/2] ASoC: wm_adsp: Declare firmware controls from codec driver

2018-08-08 Thread Richard Fitzgerald
To allow for more flexibility in naming of DSP-type cores move the creation of the firmware controls to the codec drivers instead of having a hardcoded list in wm_adsp. Signed-off-by: Richard Fitzgerald --- sound/soc/codecs/cs47l24.c | 3 +++ sound/soc/codecs/wm2200.c | 10 -- sound

[PATCH 2/2] ASoC: wm_adsp: Make DSP name configurable by codec driver

2018-08-08 Thread Richard Fitzgerald
he default DSPn name is used. Signed-off-by: Richard Fitzgerald --- sound/soc/codecs/wm_adsp.c | 69 -- sound/soc/codecs/wm_adsp.h | 2 ++ 2 files changed, 50 insertions(+), 21 deletions(-) diff --git a/sound/soc/codecs/wm_adsp.c b/sound/soc/codecs

[PATCH v7 09/17] irqchip: Add driver for Cirrus Logic Madera codecs

2018-01-15 Thread Richard Fitzgerald
tly of interest from the driver so only this subset is defined. Others can be added in future if needed. The KConfig options are not user-configurable because this driver is mandatory so is automatically included when the parent MFD driver is selected. Signed-off-by: Richard Fitzgerald Signed-off

[PATCH v7 04/17] mfd: madera: Register map tables for Cirrus Logic CS47L35

2018-01-15 Thread Richard Fitzgerald
Regmap configuration tables for Cirrus Logic CS47L35 codecs. Signed-off-by: Piotr Stankiewicz Signed-off-by: Richard Fitzgerald Signed-off-by: Charles Keepax Acked-for-MFD-by: Lee Jones --- drivers/mfd/Kconfig |7 + drivers/mfd/Makefile |3 + drivers/mfd/cs47l35

[PATCH v7 00/17] Add support for Cirrus Logic CS47L35/L85/L90/L91 codecs

2018-01-15 Thread Richard Fitzgerald
eview/ack: #7-8 regulator #9 irqchip #14-17 ASoC Richard Fitzgerald (17): mfd: madera: Add register definitions for Cirrus Logic Madera codecs mfd: madera: Add DT bindings for Cirrus Logic Madera codecs mfd: madera: Add common support for Cirrus Logic Madera codecs mfd: madera: Register map ta

[PATCH v7 03/17] mfd: madera: Add common support for Cirrus Logic Madera codecs

2018-01-15 Thread Richard Fitzgerald
by a core of common code (with a few minor device-to-device variations). Signed-off-by: Charles Keepax Signed-off-by: Nikesh Oswal Signed-off-by: Richard Fitzgerald Acked-for-MFD-by: Lee Jones --- MAINTAINERS | 3 + drivers/mfd/Kconfig | 27 ++ drivers/mf

[PATCH v7 02/17] mfd: madera: Add DT bindings for Cirrus Logic Madera codecs

2018-01-15 Thread Richard Fitzgerald
-off-by: Richard Fitzgerald Acked-by: Rob Herring Acked-for-MFD-by: Lee Jones --- Documentation/devicetree/bindings/mfd/madera.txt | 102 +++ 1 file changed, 102 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/madera.txt diff --git a/Documentation

[PATCH v7 17/17] ASoC: cs47l90: Add codec driver for Cirrus Logic CS47L90

2018-01-15 Thread Richard Fitzgerald
Adds the codec driver for the CS47L90 SmartCodec. This is a multi-functional codec based on the Cirrus Logic Madera platform. Signed-off-by: Nikesh Oswal Signed-off-by: Charles Keepax Signed-off-by: Richard Fitzgerald --- sound/soc/codecs/Kconfig |6 + sound/soc/codecs/Makefile |2

[PATCH v7 14/17] ASoC: madera: Add common support for Cirrus Logic Madera codecs

2018-01-15 Thread Richard Fitzgerald
Poushin Signed-off-by: Nikesh Oswal Signed-off-by: Piotr Stankiewicz Signed-off-by: Ajit Pandey Signed-off-by: Richard Fitzgerald --- MAINTAINERS |4 + include/sound/madera-pdata.h | 61 + sound/soc/codecs/Kconfig |5 + sound/soc/codecs/Makefile|2 + sound/soc

[PATCH v7 16/17] ASoC: cs47l85: Add codec driver for Cirrus Logic CS47L85

2018-01-15 Thread Richard Fitzgerald
Adds the codec driver for the CS47L85 SmartCodec. This is a multi-functional codec based on the Cirrus Logic Madera platform. Signed-off-by: Nariman Poushin Signed-off-by: Charles Keepax Signed-off-by: Richard Fitzgerald --- sound/soc/codecs/Kconfig |6 + sound/soc/codecs/Makefile

[PATCH v7 06/17] mfd: madera: Register map tables for Cirrus Logic CS47L90/91

2018-01-15 Thread Richard Fitzgerald
Regmap configuration tables for Cirrus Logic CS47L90 and CS47L91 codecs. Signed-off-by: Nikesh Oswal Signed-off-by: Richard Fitzgerald Signed-off-by: Charles Keepax Acked-for-MFD-by: Lee Jones --- drivers/mfd/Kconfig |7 + drivers/mfd/Makefile |3 + drivers/mfd

[PATCH v7 08/17] regulator: arizona-ldo1: Add support for Cirrus Logic Madera codecs

2018-01-15 Thread Richard Fitzgerald
This adds a new driver identity "madera-ldo1" and probe function so that this driver can be used to control the LDO1 regulator on some Cirrus Logic Madera codecs. Signed-off-by: Richard Fitzgerald --- drivers/regulator/Kconfig| 8 ++-- drivers/regulator/arizona-l

[PATCH v7 15/17] ASoC: cs47l35: Add codec driver for Cirrus Logic CS47L35

2018-01-15 Thread Richard Fitzgerald
Adds the codec driver for the CS47L35 SmartCodec. This is a multi-functional codec based on the Cirrus Logic Madera platform. Signed-off-by: Piotr Stankiewicz Signed-off-by: Richard Fitzgerald Signed-off-by: Charles Keepax --- sound/soc/codecs/Kconfig |6 + sound/soc/codecs/Makefile

[PATCH v7 10/17] pinctrl: madera: Add DT bindings for Cirrus Logic Madera codecs

2018-01-15 Thread Richard Fitzgerald
This is the binding description of the pinctrl driver for Cirru Logic Madera codecs. The binding uses the generic pinctrl binding so the main purpose here is to describe the device-specific names for groups and functions. Signed-off-by: Richard Fitzgerald Acked-by: Rob Herring

[PATCH v7 13/17] ASoC: madera: Add DT bindings for Cirrus Logic Madera codecs

2018-01-15 Thread Richard Fitzgerald
The Cirrus Logic Madera codecs are a family of related codecs with extensive digital and analogue I/O, digital mixing and routing, signal processing and programmable DSPs. Signed-off-by: Richard Fitzgerald Acked-by: Rob Herring --- Documentation/devicetree/bindings/sound/madera.txt | 67

[PATCH v7 11/17] pinctrl: madera: Add driver for Cirrus Logic Madera codecs

2018-01-15 Thread Richard Fitzgerald
trl into the pinctrl Kconfig where they logically belong instead of accumulating under the parent MFD Kconfig. Signed-off-by: Richard Fitzgerald Reviewed-by: Linus Walleij --- MAINTAINERS |2 + drivers/pinctrl/Kconfig |1 + driv

[PATCH v7 07/17] regulator: arizona-micsupp: Add support for Cirrus Logic Madera codecs

2018-01-15 Thread Richard Fitzgerald
This adds a new driver identity "madera-micsupp" and probe function so that this driver can be used to control the micsupp regulator on Cirrus Logic Madera codecs. Signed-off-by: Richard Fitzgerald Acked-by: Rob Herring --- .../bindings/regulator/arizona-regulator.txt | 3 +

[PATCH v7 12/17] gpio: madera: Support Cirrus Logic Madera class codecs

2018-01-15 Thread Richard Fitzgerald
: Richard Fitzgerald Signed-off-by: Charles Keepax Acked-by: Linus Walleij --- MAINTAINERS| 1 + drivers/gpio/Kconfig | 6 ++ drivers/gpio/Makefile | 1 + drivers/gpio/gpio-madera.c | 196 + 4 files changed, 204 insertions

Re: [REGRESSION][BISECTED] i.MX6 pinctrl hogs stopped working

2018-04-10 Thread Richard Fitzgerald
On 04/04/18 06:33, Mika Penttilä wrote: Hi! Reverting this made the hogs on a i.MX6 board work again. : commit b89405b6102fcc3746f43697b826028caa94c823 Author: Richard Fitzgerald Date: Wed Feb 28 15:53:06 2018 + pinctrl: devicetree: Fix dt_to_map_one_config handling of hogs

[PATCH v9 7/9] pinctrl: madera: Add DT bindings for Cirrus Logic Madera codecs

2018-03-13 Thread Richard Fitzgerald
This is the binding description of the pinctrl driver for Cirrus Logic Madera codecs. The binding uses the generic pinctrl binding so the main purpose here is to describe the device-specific names for groups and functions. Signed-off-by: Richard Fitzgerald Acked-by: Rob Herring

[PATCH v9 4/9] mfd: madera: Register map tables for Cirrus Logic CS47L35

2018-03-13 Thread Richard Fitzgerald
Regmap configuration tables for Cirrus Logic CS47L35 codecs. Signed-off-by: Piotr Stankiewicz Signed-off-by: Richard Fitzgerald Signed-off-by: Charles Keepax Acked-for-MFD-by: Lee Jones --- drivers/mfd/Kconfig |7 + drivers/mfd/Makefile |3 + drivers/mfd/cs47l35

[PATCH v9 3/9] mfd: madera: Add common support for Cirrus Logic Madera codecs

2018-03-13 Thread Richard Fitzgerald
by a core of common code (with a few minor device-to-device variations). Signed-off-by: Charles Keepax Signed-off-by: Nikesh Oswal Signed-off-by: Richard Fitzgerald --- There have been various smallish changes since Lee acked this patch so I have decided to err on the side of caution and remo

[PATCH v9 2/9] mfd: madera: Add DT bindings for Cirrus Logic Madera codecs

2018-03-13 Thread Richard Fitzgerald
-off-by: Richard Fitzgerald Acked-by: Rob Herring Acked-for-MFD-by: Lee Jones --- Documentation/devicetree/bindings/mfd/madera.txt | 102 +++ 1 file changed, 102 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/madera.txt diff --git a/Documentation

[PATCH v9 6/9] mfd: madera: Register map tables for Cirrus Logic CS47L90/91

2018-03-13 Thread Richard Fitzgerald
Regmap configuration tables for Cirrus Logic CS47L90 and CS47L91 codecs. Signed-off-by: Nikesh Oswal Signed-off-by: Richard Fitzgerald Signed-off-by: Charles Keepax Acked-for-MFD-by: Lee Jones --- drivers/mfd/Kconfig |7 + drivers/mfd/Makefile |3 + drivers/mfd

[PATCH v9 8/9] pinctrl: madera: Add driver for Cirrus Logic Madera codecs

2018-03-13 Thread Richard Fitzgerald
alternate functions and GPIO pins varies between codecs depending on the number of alternate functions and available pins. Signed-off-by: Richard Fitzgerald Reviewed-by: Linus Walleij --- There are some minor changes since LinusW last reviewed this patch but as they are trivial I have carried forwa

[PATCH v9 9/9] gpio: madera: Support Cirrus Logic Madera class codecs

2018-03-13 Thread Richard Fitzgerald
codecs and can only be used with the corresponding MFD and other child drivers on those silicon. The GPIO block on these codecs does not exist indepedently of the rest of the MFD. Signed-off-by: Nariman Poushin Signed-off-by: Richard Fitzgerald Signed-off-by: Charles Keepax Acked-by: Linus

[PATCH v9 0/9] Add support for Cirrus Logic CS47L35/L85/L90/L91 codecs

2018-03-13 Thread Richard Fitzgerald
onboard GPIO, regulators, DSPs and interrupt controller and a large register map space accessed over SPI or I2C. This family of codecs is based around common IP blocks and they are managed by a set of common drivers referred to as "Madera". Richard Fitzgerald (9): mfd: madera: Ad

Re: Applied "regulator: wm8994: Pass descriptor instead of GPIO number" to the regulator tree

2018-11-20 Thread Richard Fitzgerald
On 20/11/18 15:56, Marek Szyprowski wrote: Hi Charles, On 2018-11-20 16:36, Charles Keepax wrote: On Tue, Nov 20, 2018 at 03:32:15PM +, Charles Keepax wrote: On Tue, Nov 20, 2018 at 03:58:59PM +0100, Marek Szyprowski wrote: On 2018-11-20 15:47, Charles Keepax wrote: On Tue, Nov 20, 2018

Re: Applied "regulator: wm8994: Pass descriptor instead of GPIO number" to the regulator tree

2018-11-20 Thread Richard Fitzgerald
On 20/11/18 16:34, Marek Szyprowski wrote: Hi Richard, On 2018-11-20 17:16, Richard Fitzgerald wrote: On 20/11/18 15:56, Marek Szyprowski wrote: Hi Charles, On 2018-11-20 16:36, Charles Keepax wrote: On Tue, Nov 20, 2018 at 03:32:15PM +, Charles Keepax wrote: On Tue, Nov 20, 2018 at 03

Re: Applied "regulator: wm8994: Pass descriptor instead of GPIO number" to the regulator tree

2018-11-20 Thread Richard Fitzgerald
On 20/11/18 17:01, Mark Brown wrote: On Tue, Nov 20, 2018 at 04:57:16PM +, Richard Fitzgerald wrote: On 20/11/18 16:34, Marek Szyprowski wrote: Deferred probe was there already. This patch however introduced the warning from gpiolib and I would like to have it fixed somehow. In both I

[PATCH 2/2] ASoC: wm_adsp: Factor out common init code

2018-11-12 Thread Richard Fitzgerald
(which might change in the future) and also make clear the difference between an ADSP1 entry point and common code. Signed-off-by: Richard Fitzgerald --- sound/soc/codecs/wm_adsp.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/sound/soc/codecs/wm_adsp.c b/sound/soc

[PATCH 1/2] ASoC: wm_adsp: Fix dma-unsafe read of scratch registers

2018-11-12 Thread Richard Fitzgerald
d it isn't time-critical. A simple regmap_read for each register is sufficient. Signed-off-by: Richard Fitzgerald --- sound/soc/codecs/wm_adsp.c | 37 - 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/sound/soc/codecs/wm_adsp.c b/sound/soc/co

[PATCH v13 RESEND2] irqchip: Add driver for Cirrus Logic Madera codecs

2018-11-12 Thread Richard Fitzgerald
tly of interest from the driver so only this subset is defined. Others can be added in future if needed. The KConfig options are not user-configurable because this driver is mandatory so is automatically included when the parent MFD driver is selected. Signed-off-by: Richard Fitzgerald Signed-off

[PATCH] mfd: madera: Add shared data for accessory detection

2018-11-12 Thread Richard Fitzgerald
Add variables to struct madera that will be shared by the extcon and audio codec drivers to synchronize output state during accessory detection. Also add a mutex to protect the DAPM pointer. Signed-off-by: Richard Fitzgerald --- drivers/mfd/madera-core.c | 3 +++ include/linux/mfd/madera

Re: [PATCH] gpiolib: Defer on non-DT find_chip_by_name() failure

2018-07-06 Thread Richard Fitzgerald
On 05/07/18 21:56, Janusz Krzysztofik wrote: On Thursday, July 5, 2018 7:50:37 AM CEST Lee Jones wrote: On Wed, 04 Jul 2018, Janusz Krzysztofik wrote: On Tuesday, July 3, 2018 7:31:41 PM CEST Boris Brezillon wrote: Hi Janusz, On Tue, 3 Jul 2018 19:26:35 +0200 Janusz Krzysztofik wrote: Avo

[PATCH] mfd: madera: Remove spurious semicolon in while loop

2018-12-14 Thread Richard Fitzgerald
Coccinelle warning of a spurious semicolon on the closing brace of a while loop. Signed-off-by: Richard Fitzgerald --- drivers/mfd/madera-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/madera-core.c b/drivers/mfd/madera-core.c index 5b58a8aea902

[PATCH v13 RESEND2] irqchip: Add driver for Cirrus Logic Madera codecs

2018-12-14 Thread Richard Fitzgerald
tly of interest from the driver so only this subset is defined. Others can be added in future if needed. The KConfig options are not user-configurable because this driver is mandatory so is automatically included when the parent MFD driver is selected. Signed-off-by: Richard Fitzgerald Signed-off

Re: [PATCH] irqchip: madera: Drop GPIO includes

2019-01-04 Thread Richard Fitzgerald
On 03/01/19 10:26, Linus Walleij wrote: This irqchip does not use anything GPIO-related so drop the GPIO includes. An older version did some stuff with GPIOs but when that code was removed this include obviously was forgotten. Cc: Richard Fitzgerald Signed-off-by: Linus Walleij

Re: [PATCH v2 2/5] mfd: lochnagar: Add support for the Cirrus Logic Lochnagar

2018-10-29 Thread Richard Fitzgerald
On 29/10/18 11:04, Lee Jones wrote: On Fri, 26 Oct 2018, Mark Brown wrote: On Fri, Oct 26, 2018 at 09:00:51AM +0100, Lee Jones wrote: On Thu, 25 Oct 2018, Richard Fitzgerald wrote: Largely the point. How long do you think it would take to populate the cache if you had to read thousands of

Re: [PATCH v2 2/5] mfd: lochnagar: Add support for the Cirrus Logic Lochnagar

2018-10-29 Thread Richard Fitzgerald
On 29/10/18 11:04, Lee Jones wrote: On Fri, 26 Oct 2018, Mark Brown wrote: On Fri, Oct 26, 2018 at 09:00:51AM +0100, Lee Jones wrote: On Thu, 25 Oct 2018, Richard Fitzgerald wrote: Largely the point. How long do you think it would take to populate the cache if you had to read thousands of

[PATCH v13 RESEND 0/2] irqchip support for Cirrus Logic Madera codecs

2018-10-16 Thread Richard Fitzgerald
o the irqchip tree breaks that tree. Richard Fitzgerald (2): mfd: madera: Add irqchip data pointer into struct madera irqchip: Add driver for Cirrus Logic Madera codecs MAINTAINERS| 2 + drivers/irqchip/Kconfig| 3 + drivers/irqchip/Makefile

[PATCH v13 RESEND 2/2] irqchip: Add driver for Cirrus Logic Madera codecs

2018-10-16 Thread Richard Fitzgerald
tly of interest from the driver so only this subset is defined. Others can be added in future if needed. The KConfig options are not user-configurable because this driver is mandatory so is automatically included when the parent MFD driver is selected. Signed-off-by: Richard Fitzgerald Signed-off

[PATCH v13 RESEND 1/2] mfd: madera: Add irqchip data pointer into struct madera

2018-10-16 Thread Richard Fitzgerald
. This also means that the irqchip driver does not need a double-indirection from its local struct to get at the parent struct madera. Signed-off-by: Richard Fitzgerald --- include/linux/mfd/madera/core.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/mfd/madera/core.h b/include

Re: [PATCH v2 2/5] mfd: lochnagar: Add support for the Cirrus Logic Lochnagar

2018-11-01 Thread Richard Fitzgerald
On 01/11/18 10:28, Charles Keepax wrote: On Mon, Oct 29, 2018 at 11:04:39AM +, Lee Jones wrote: On Fri, 26 Oct 2018, Mark Brown wrote: On Fri, Oct 26, 2018 at 09:00:51AM +0100, Lee Jones wrote: On Thu, 25 Oct 2018, Richard Fitzgerald wrote: I have re-ordered some of the quotes here for

Re: [PATCH v2 2/5] mfd: lochnagar: Add support for the Cirrus Logic Lochnagar

2018-11-01 Thread Richard Fitzgerald
On 01/11/18 10:28, Charles Keepax wrote: On Mon, Oct 29, 2018 at 11:04:39AM +, Lee Jones wrote: On Fri, 26 Oct 2018, Mark Brown wrote: On Fri, Oct 26, 2018 at 09:00:51AM +0100, Lee Jones wrote: On Thu, 25 Oct 2018, Richard Fitzgerald wrote: Precisely my point. Lochnagar is a small

Re: [PATCH v2 2/5] mfd: lochnagar: Add support for the Cirrus Logic Lochnagar

2018-10-25 Thread Richard Fitzgerald
On 25/10/18 09:26, Charles Keepax wrote: On Thu, Oct 25, 2018 at 08:44:59AM +0100, Lee Jones wrote: On Mon, 08 Oct 2018, Charles Keepax wrote: From: Charles Keepax +static const struct reg_default lochnagar1_reg_defaults[] = { + { LOCHNAGAR1_CDC_AIF1_SEL,0x00 }, + { LOCHNAGAR1_

Re: [PATCH v2 2/5] mfd: lochnagar: Add support for the Cirrus Logic Lochnagar

2018-10-25 Thread Richard Fitzgerald
On 25/10/18 12:42, Lee Jones wrote: On Thu, 25 Oct 2018, Richard Fitzgerald wrote: On 25/10/18 09:26, Charles Keepax wrote: On Thu, Oct 25, 2018 at 08:44:59AM +0100, Lee Jones wrote: On Mon, 08 Oct 2018, Charles Keepax wrote: From: Charles Keepax +static const struct reg_default

Re: [PATCH v2 2/5] mfd: lochnagar: Add support for the Cirrus Logic Lochnagar

2018-10-25 Thread Richard Fitzgerald
On 25/10/18 14:20, Charles Keepax wrote: On Thu, Oct 25, 2018 at 01:49:05PM +0100, Charles Keepax wrote: On Thu, Oct 25, 2018 at 12:42:05PM +0100, Lee Jones wrote: On Thu, 25 Oct 2018, Richard Fitzgerald wrote: On 25/10/18 09:26, Charles Keepax wrote: On Thu, Oct 25, 2018 at 08:44:59AM +0100

Re: [PATCH v3 4/5] regulator: lochnagar: Add support for the Cirrus Logic Lochnagar

2018-10-19 Thread Richard Fitzgerald
On 19/10/18 12:26, Mark Brown wrote: On Fri, Oct 19, 2018 at 10:50:02AM +0100, Charles Keepax wrote: Please do not submit new versions of already applied patches, please submit incremental updates to the existing code. Modifying existing commits creates problems for other users building on top

[PATCH 1/2] ASoC: wm_adsp: Rename memory fields in wm_adsp_buffer

2018-10-19 Thread Richard Fitzgerald
patch updates the wm_adsp driver to the new field names. Signed-off-by: Richard Fitzgerald --- sound/soc/codecs/wm_adsp.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/sound/soc/codecs/wm_adsp.c b/sound/soc/codecs/wm_adsp.c index f61656070225

[PATCH 2/2] ASoC: wm_adsp: Log addresses as 8 digits in wm_adsp_buffer_populate

2018-10-19 Thread Richard Fitzgerald
Increase the address value width in the debug log from 4 digits to 8 digits to allow for DSP cores with larger memory address ranges. Signed-off-by: Richard Fitzgerald --- sound/soc/codecs/wm_adsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm_adsp.c b

Re: [PATCH 6/8] extcon: arizona: Add support for WM8998 and WM1814

2015-04-22 Thread Richard Fitzgerald
On Wed, Apr 22, 2015 at 02:53:42PM +0900, Chanwoo Choi wrote: > Hi Richard, > > > @@ -1176,6 +1182,11 @@ static int arizona_extcon_probe(struct > > platform_device *pdev) > > break; > > } > > break; > > + case WM8998: > > + case WM1814: > > +

Re: [alsa-devel] [PATCH 6/8] extcon: arizona: Add support for WM8998 and WM1814

2015-04-23 Thread Richard Fitzgerald
On Wed, Apr 22, 2015 at 07:20:09PM +0900, Chanwoo Choi wrote: > On 04/22/2015 06:19 PM, Richard Fitzgerald wrote: > > On Wed, Apr 22, 2015 at 02:53:42PM +0900, Chanwoo Choi wrote: > >> Hi Richard, > >> > >>> @@ -1176,6 +1182,11 @@ static int arizona_extcon_pr

Re: [PATCH 7/8] ASoC: wm8998: Initial WM8998 codec driver

2015-04-23 Thread Richard Fitzgerald
On Wed, Apr 22, 2015 at 12:00:30PM +0100, Mark Brown wrote: > On Tue, Apr 21, 2015 at 01:33:55PM +0100, Richard Fitzgerald wrote: > > > +static int wm8998_in1mux_ev(struct snd_soc_dapm_widget *w, > > + struct snd_kcontrol *kcontrol, > > +

Re: [alsa-devel] [PATCH 8/8] Documentation: Add WM8998/WM1814 device tree bindings

2015-04-23 Thread Richard Fitzgerald
On Thu, Apr 23, 2015 at 02:05:18AM +, Austin, Brian wrote: > > > > On Apr 21, 2015, at 07:38, Richard Fitzgerald > > wrote: > > > > Signed-off-by: Richard Fitzgerald > > --- > > Documentation/devicetree/bindings/mfd/arizona.txt |3 +++ > &g

Re: [PATCH 3/8] mfd: arizona: Add support for WM8998 and WM1814

2015-04-27 Thread Richard Fitzgerald
On Wed, Apr 22, 2015 at 12:08:08PM +0100, Mark Brown wrote: > On Tue, Apr 21, 2015 at 01:33:51PM +0100, Richard Fitzgerald wrote: > > > + switch (arizona->type) { > > + case WM8998: > > + case WM1814: > > + /* Some bits are shifted on WM8998, >

[PATCH 1/1] extcon: arizona: Rename hpdet_ip to make its purpose clearer

2015-04-28 Thread Richard Fitzgerald
Renamed to hpdet_ip_version to make it clearer what it does and that the value in it is simply a version number. Signed-off-by: Richard Fitzgerald --- drivers/extcon/extcon-arizona.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/extcon/extcon

  1   2   3   4   5   6   7   >