From: Richard Fitzgerald <rf-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
To: Lee Jones <lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Cc: lgirdwood-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
myungjoo.ham-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org,
cw00.choi-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org,
linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org,
gnurou-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
tiwai-l3A5Bk7waGM@public.gmane.org,
perex-/Fr2/VpizcU@public.gmane.org,
sameo-VuQAYsv1563Yd54FQh9/CA@public.gmane.org,
robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
pawel.moll-5wv7dgnIgG8@public.gmane.org,
mark.rutland-5wv7dgnIgG8@public.gmane.org,
ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org,
galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org,
ckeepax-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
patches-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org,
linux-gpio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org
Subject: Re: [PATCH 1/6] mfd: arizona: add support for WM8280/WM8281
Date: Tue, 18 Nov 2014 15:56:23 +0000 [thread overview]
Message-ID: <20141118155623.GA25604@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <20141118154102.GA13959@x1>
On Tue, Nov 18, 2014 at 03:41:02PM +0000, Lee Jones wrote:
> On Thu, 13 Nov 2014, Richard Fitzgerald wrote:
>
> > This adds support for the Wolfson Microelectronics
> > WM8280 and WM8281 codecs.
> >
> > Signed-off-by: Richard Fitzgerald <rf-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
> > ---
> > drivers/mfd/Kconfig | 5 +++--
> > drivers/mfd/arizona-core.c | 14 ++++++++++++--
> > drivers/mfd/arizona-i2c.c | 2 ++
> > drivers/mfd/arizona-irq.c | 1 +
> > drivers/mfd/arizona-spi.c | 2 ++
> > include/linux/mfd/arizona/core.h | 1 +
> > 6 files changed, 21 insertions(+), 4 deletions(-)
>
> Patch looks fine. Can I just take it?
The other patches depends on the #define instroduce here, so they
need to be kept together. If you could take them through the mfd tree
that would be great. We still need ack of the regulator patch and my
re-worked devicetree binding patch.
>
> > diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
> > index abef204..e00a90f 100644
> > --- a/drivers/mfd/Kconfig
> > +++ b/drivers/mfd/Kconfig
> > @@ -1236,10 +1236,11 @@ config MFD_WM5102
> > Support for Wolfson Microelectronics WM5102 low power audio SoC
> >
> > config MFD_WM5110
> > - bool "Wolfson Microelectronics WM5110"
> > + bool "Wolfson Microelectronics WM5110 and WM8280/WM8281"
> > depends on MFD_ARIZONA
> > help
> > - Support for Wolfson Microelectronics WM5110 low power audio SoC
> > + Support for Wolfson Microelectronics WM5110 and WM8280/WM8281
> > + low power audio SoC
> >
> > config MFD_WM8997
> > bool "Wolfson Microelectronics WM8997"
> > diff --git a/drivers/mfd/arizona-core.c b/drivers/mfd/arizona-core.c
> > index bce7c07..6e6b732 100644
> > --- a/drivers/mfd/arizona-core.c
> > +++ b/drivers/mfd/arizona-core.c
> > @@ -567,6 +567,7 @@ static int arizona_of_get_core_pdata(struct arizona *arizona)
> > const struct of_device_id arizona_of_match[] = {
> > { .compatible = "wlf,wm5102", .data = (void *)WM5102 },
> > { .compatible = "wlf,wm5110", .data = (void *)WM5110 },
> > + { .compatible = "wlf,wm8280", .data = (void *)WM8280 },
> > { .compatible = "wlf,wm8997", .data = (void *)WM8997 },
> > {},
> > };
> > @@ -671,6 +672,7 @@ int arizona_dev_init(struct arizona *arizona)
> > switch (arizona->type) {
> > case WM5102:
> > case WM5110:
> > + case WM8280:
> > case WM8997:
> > for (i = 0; i < ARRAY_SIZE(wm5102_core_supplies); i++)
> > arizona->core_supplies[i].supply
> > @@ -834,11 +836,18 @@ int arizona_dev_init(struct arizona *arizona)
> > #endif
> > #ifdef CONFIG_MFD_WM5110
> > case 0x5110:
> > - type_name = "WM5110";
> > - if (arizona->type != WM5110) {
> > + switch (arizona->type) {
> > + case WM5110:
> > + type_name = "WM5110";
> > + break;
> > + case WM8280:
> > + type_name = "WM8280";
> > + break;
> > + default:
> > dev_err(arizona->dev, "WM5110 registered as %d\n",
> > arizona->type);
> > arizona->type = WM5110;
> > + break;
> > }
> > apply_patch = wm5110_patch;
> > break;
> > @@ -1010,6 +1019,7 @@ int arizona_dev_init(struct arizona *arizona)
> > ARRAY_SIZE(wm5102_devs), NULL, 0, NULL);
> > break;
> > case WM5110:
> > + case WM8280:
> > ret = mfd_add_devices(arizona->dev, -1, wm5110_devs,
> > ARRAY_SIZE(wm5110_devs), NULL, 0, NULL);
> > break;
> > diff --git a/drivers/mfd/arizona-i2c.c b/drivers/mfd/arizona-i2c.c
> > index 9d4156f..ff782a5 100644
> > --- a/drivers/mfd/arizona-i2c.c
> > +++ b/drivers/mfd/arizona-i2c.c
> > @@ -44,6 +44,7 @@ static int arizona_i2c_probe(struct i2c_client *i2c,
> > #endif
> > #ifdef CONFIG_MFD_WM5110
> > case WM5110:
> > + case WM8280:
> > regmap_config = &wm5110_i2c_regmap;
> > break;
> > #endif
> > @@ -87,6 +88,7 @@ static int arizona_i2c_remove(struct i2c_client *i2c)
> > static const struct i2c_device_id arizona_i2c_id[] = {
> > { "wm5102", WM5102 },
> > { "wm5110", WM5110 },
> > + { "wm8280", WM8280 },
> > { "wm8997", WM8997 },
> > { }
> > };
> > diff --git a/drivers/mfd/arizona-irq.c b/drivers/mfd/arizona-irq.c
> > index 3a3fe7c..d063b94 100644
> > --- a/drivers/mfd/arizona-irq.c
> > +++ b/drivers/mfd/arizona-irq.c
> > @@ -211,6 +211,7 @@ int arizona_irq_init(struct arizona *arizona)
> > #endif
> > #ifdef CONFIG_MFD_WM5110
> > case WM5110:
> > + case WM8280:
> > aod = &wm5110_aod;
> >
> > switch (arizona->rev) {
> > diff --git a/drivers/mfd/arizona-spi.c b/drivers/mfd/arizona-spi.c
> > index 5145d78..721b93f 100644
> > --- a/drivers/mfd/arizona-spi.c
> > +++ b/drivers/mfd/arizona-spi.c
> > @@ -44,6 +44,7 @@ static int arizona_spi_probe(struct spi_device *spi)
> > #endif
> > #ifdef CONFIG_MFD_WM5110
> > case WM5110:
> > + case WM8280:
> > regmap_config = &wm5110_spi_regmap;
> > break;
> > #endif
> > @@ -82,6 +83,7 @@ static int arizona_spi_remove(struct spi_device *spi)
> > static const struct spi_device_id arizona_spi_ids[] = {
> > { "wm5102", WM5102 },
> > { "wm5110", WM5110 },
> > + { "wm8280", WM8280 },
> > { },
> > };
> > MODULE_DEVICE_TABLE(spi, arizona_spi_ids);
> > diff --git a/include/linux/mfd/arizona/core.h b/include/linux/mfd/arizona/core.h
> > index 910e3aa..f970105 100644
> > --- a/include/linux/mfd/arizona/core.h
> > +++ b/include/linux/mfd/arizona/core.h
> > @@ -24,6 +24,7 @@ enum arizona_type {
> > WM5102 = 1,
> > WM5110 = 2,
> > WM8997 = 3,
> > + WM8280 = 4,
> > };
> >
> > #define ARIZONA_IRQ_GP1 0
>
> --
> Lee Jones
> Linaro STMicroelectronics Landing Team Lead
> Linaro.org │ Open source software for ARM SoCs
> Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2014-11-18 15:56 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-13 17:50 [PATCH 0/6] Add support for the WM8280 and WM8281 codecs Richard Fitzgerald
2014-11-13 17:50 ` [PATCH 1/6] mfd: arizona: add support for WM8280/WM8281 Richard Fitzgerald
2014-11-18 15:41 ` Lee Jones
2014-11-18 15:56 ` Richard Fitzgerald [this message]
2014-11-13 17:50 ` [PATCH 2/6] Documentation: devicetree: arizona: Add bindings for WM8280 Richard Fitzgerald
[not found] ` <1415901046-3391-3-git-send-email-rf-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
2014-11-13 18:06 ` Mark Brown
2014-11-14 10:04 ` [PATCH 2/6 V2] " Richard Fitzgerald
2014-11-13 17:50 ` [PATCH 3/6] regulator: arizona-micsupp: Add support for WM8280/WM8281 Richard Fitzgerald
2014-11-13 17:50 ` [PATCH 4/6] gpio: arizona: " Richard Fitzgerald
2014-11-14 10:17 ` Linus Walleij
2014-11-13 17:50 ` [PATCH 5/6] extcon: " Richard Fitzgerald
2014-11-13 23:34 ` Chanwoo Choi
2014-11-13 17:50 ` [PATCH 6/6] ASoC: " Richard Fitzgerald
2014-11-18 14:29 ` Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141118155623.GA25604@opensource.wolfsonmicro.com \
--to=rf-yzvpicuk2aatku/dhu1wvuem+bqzidxxqq4iyu8u01e@public.gmane.org \
--cc=alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org \
--cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=ckeepax-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org \
--cc=cw00.choi-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org \
--cc=gnurou-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org \
--cc=lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
--cc=lgirdwood-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
--cc=linux-gpio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mark.rutland-5wv7dgnIgG8@public.gmane.org \
--cc=myungjoo.ham-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org \
--cc=patches-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org \
--cc=pawel.moll-5wv7dgnIgG8@public.gmane.org \
--cc=perex-/Fr2/VpizcU@public.gmane.org \
--cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=sameo-VuQAYsv1563Yd54FQh9/CA@public.gmane.org \
--cc=tiwai-l3A5Bk7waGM@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).