* [PATCH 0/6] Add support for the WM8280 and WM8281 codecs
@ 2014-11-13 17:50 Richard Fitzgerald
2014-11-13 17:50 ` [PATCH 1/6] mfd: arizona: add support for WM8280/WM8281 Richard Fitzgerald
` (5 more replies)
0 siblings, 6 replies; 14+ messages in thread
From: Richard Fitzgerald @ 2014-11-13 17:50 UTC (permalink / raw)
To: lee.jones, lgirdwood, myungjoo.ham, cw00.choi, linus.walleij,
gnurou, broonie, tiwai
Cc: perex, sameo, robh+dt, pawel.moll, mark.rutland, ijc+devicetree,
galak, ckeepax, devicetree, linux-kernel, patches, linux-gpio,
alsa-devel
This set of patches adds support for the WM8280 and WM8281
codecs to the Wolfson Arizona drivers.
Richard Fitzgerald (6):
mfd: arizona: add support for WM8280/WM8281
Documentation: devicetree: arizona: Add bindings for WM8280
regulator: arizona-micsupp: Add support for WM8280/WM8281
gpio: arizona: Add support for WM8280/WM8281
extcon: arizona: Add support for WM8280/WM8281
ASoC: arizona: Add support for WM8280/WM8281
Documentation/devicetree/bindings/mfd/arizona.txt | 10 ++++++----
drivers/extcon/extcon-arizona.c | 1 +
drivers/gpio/gpio-arizona.c | 1 +
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 ++
drivers/regulator/arizona-micsupp.c | 1 +
include/linux/mfd/arizona/core.h | 1 +
sound/soc/codecs/arizona.c | 2 ++
11 files changed, 32 insertions(+), 8 deletions(-)
--
1.7.2.5
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH 1/6] mfd: arizona: add support for WM8280/WM8281
2014-11-13 17:50 [PATCH 0/6] Add support for the WM8280 and WM8281 codecs Richard Fitzgerald
@ 2014-11-13 17:50 ` Richard Fitzgerald
2014-11-18 15:41 ` Lee Jones
2014-11-13 17:50 ` [PATCH 2/6] Documentation: devicetree: arizona: Add bindings for WM8280 Richard Fitzgerald
` (4 subsequent siblings)
5 siblings, 1 reply; 14+ messages in thread
From: Richard Fitzgerald @ 2014-11-13 17:50 UTC (permalink / raw)
To: lee.jones, lgirdwood, myungjoo.ham, cw00.choi, linus.walleij,
gnurou, broonie, tiwai
Cc: perex, sameo, robh+dt, pawel.moll, mark.rutland, ijc+devicetree,
galak, ckeepax, devicetree, linux-kernel, patches, linux-gpio,
alsa-devel
This adds support for the Wolfson Microelectronics
WM8280 and WM8281 codecs.
Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
---
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(-)
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
--
1.7.2.5
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH 2/6] Documentation: devicetree: arizona: Add bindings for WM8280
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-13 17:50 ` Richard Fitzgerald
[not found] ` <1415901046-3391-3-git-send-email-rf-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
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
` (3 subsequent siblings)
5 siblings, 2 replies; 14+ messages in thread
From: Richard Fitzgerald @ 2014-11-13 17:50 UTC (permalink / raw)
To: lee.jones, lgirdwood, myungjoo.ham, cw00.choi, linus.walleij,
gnurou, broonie, tiwai
Cc: mark.rutland, devicetree, alsa-devel, sameo, pawel.moll,
ijc+devicetree, patches, linux-kernel, linux-gpio, robh+dt, galak,
ckeepax
Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
---
Documentation/devicetree/bindings/mfd/arizona.txt | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/Documentation/devicetree/bindings/mfd/arizona.txt b/Documentation/devicetree/bindings/mfd/arizona.txt
index 7bd1273..079badb 100644
--- a/Documentation/devicetree/bindings/mfd/arizona.txt
+++ b/Documentation/devicetree/bindings/mfd/arizona.txt
@@ -8,6 +8,7 @@ Required properties:
- compatible : One of the following chip-specific strings:
"wlf,wm5102"
"wlf,wm5110"
+ "wlf,wm8280"
"wlf,wm8997"
- reg : I2C slave address when connected using I2C, chip select number when
using SPI.
@@ -26,10 +27,11 @@ Required properties:
- #gpio-cells : Must be 2. The first cell is the pin number and the
second cell is used to specify optional parameters (currently unused).
- - AVDD-supply, DBVDD1-supply, DBVDD2-supply, DBVDD3-supply (wm5102, wm5110),
- CPVDD-supply, SPKVDDL-supply (wm5102, wm5110), SPKVDDR-supply (wm5102,
- wm5110), SPKVDD-supply (wm8997) : Power supplies for the device, as covered
- in Documentation/devicetree/bindings/regulator/regulator.txt
+ - AVDD-supply, DBVDD1-supply, DBVDD2-supply, DBVDD3-supply (wm5102, wm5110,
+ wm8280), CPVDD-supply, SPKVDDL-supply (wm5102, wm5110, wm8280),
+ SPKVDDR-supply (wm5102, wm5110, wm8280), SPKVDD-supply (wm8997)
+ : Power supplies for the device, as covered in
+ Documentation/devicetree/bindings/regulator/regulator.txt
Optional properties:
--
1.7.2.5
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH 3/6] regulator: arizona-micsupp: Add support for WM8280/WM8281
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-13 17:50 ` [PATCH 2/6] Documentation: devicetree: arizona: Add bindings for WM8280 Richard Fitzgerald
@ 2014-11-13 17:50 ` Richard Fitzgerald
2014-11-13 17:50 ` [PATCH 4/6] gpio: arizona: " Richard Fitzgerald
` (2 subsequent siblings)
5 siblings, 0 replies; 14+ messages in thread
From: Richard Fitzgerald @ 2014-11-13 17:50 UTC (permalink / raw)
To: lee.jones, lgirdwood, myungjoo.ham, cw00.choi, linus.walleij,
gnurou, broonie, tiwai
Cc: perex, sameo, robh+dt, pawel.moll, mark.rutland, ijc+devicetree,
galak, ckeepax, devicetree, linux-kernel, patches, linux-gpio,
alsa-devel
Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
---
drivers/regulator/arizona-micsupp.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/regulator/arizona-micsupp.c b/drivers/regulator/arizona-micsupp.c
index ce9aca5..4ff55e1 100644
--- a/drivers/regulator/arizona-micsupp.c
+++ b/drivers/regulator/arizona-micsupp.c
@@ -245,6 +245,7 @@ static int arizona_micsupp_probe(struct platform_device *pdev)
*/
switch (arizona->type) {
case WM5110:
+ case WM8280:
desc = &arizona_micsupp_ext;
micsupp->init_data = arizona_micsupp_ext_default;
break;
--
1.7.2.5
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH 4/6] gpio: arizona: Add support for WM8280/WM8281
2014-11-13 17:50 [PATCH 0/6] Add support for the WM8280 and WM8281 codecs Richard Fitzgerald
` (2 preceding siblings ...)
2014-11-13 17:50 ` [PATCH 3/6] regulator: arizona-micsupp: Add support for WM8280/WM8281 Richard Fitzgerald
@ 2014-11-13 17:50 ` Richard Fitzgerald
2014-11-14 10:17 ` Linus Walleij
2014-11-13 17:50 ` [PATCH 5/6] extcon: " Richard Fitzgerald
2014-11-13 17:50 ` [PATCH 6/6] ASoC: " Richard Fitzgerald
5 siblings, 1 reply; 14+ messages in thread
From: Richard Fitzgerald @ 2014-11-13 17:50 UTC (permalink / raw)
To: lee.jones, lgirdwood, myungjoo.ham, cw00.choi, linus.walleij,
gnurou, broonie, tiwai
Cc: perex, sameo, robh+dt, pawel.moll, mark.rutland, ijc+devicetree,
galak, ckeepax, devicetree, linux-kernel, patches, linux-gpio,
alsa-devel
Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
---
drivers/gpio/gpio-arizona.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/gpio/gpio-arizona.c b/drivers/gpio/gpio-arizona.c
index fe369f5..9665d0a 100644
--- a/drivers/gpio/gpio-arizona.c
+++ b/drivers/gpio/gpio-arizona.c
@@ -116,6 +116,7 @@ static int arizona_gpio_probe(struct platform_device *pdev)
switch (arizona->type) {
case WM5102:
case WM5110:
+ case WM8280:
case WM8997:
arizona_gpio->gpio_chip.ngpio = 5;
break;
--
1.7.2.5
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH 5/6] extcon: arizona: Add support for WM8280/WM8281
2014-11-13 17:50 [PATCH 0/6] Add support for the WM8280 and WM8281 codecs Richard Fitzgerald
` (3 preceding siblings ...)
2014-11-13 17:50 ` [PATCH 4/6] gpio: arizona: " Richard Fitzgerald
@ 2014-11-13 17:50 ` Richard Fitzgerald
2014-11-13 23:34 ` Chanwoo Choi
2014-11-13 17:50 ` [PATCH 6/6] ASoC: " Richard Fitzgerald
5 siblings, 1 reply; 14+ messages in thread
From: Richard Fitzgerald @ 2014-11-13 17:50 UTC (permalink / raw)
To: lee.jones, lgirdwood, myungjoo.ham, cw00.choi, linus.walleij,
gnurou, broonie, tiwai
Cc: perex, sameo, robh+dt, pawel.moll, mark.rutland, ijc+devicetree,
galak, ckeepax, devicetree, linux-kernel, patches, linux-gpio,
alsa-devel
Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
---
drivers/extcon/extcon-arizona.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/extcon/extcon-arizona.c b/drivers/extcon/extcon-arizona.c
index ba51588..3abe866 100644
--- a/drivers/extcon/extcon-arizona.c
+++ b/drivers/extcon/extcon-arizona.c
@@ -1149,6 +1149,7 @@ static int arizona_extcon_probe(struct platform_device *pdev)
}
break;
case WM5110:
+ case WM8280:
switch (arizona->rev) {
case 0 ... 2:
break;
--
1.7.2.5
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH 6/6] ASoC: arizona: Add support for WM8280/WM8281
2014-11-13 17:50 [PATCH 0/6] Add support for the WM8280 and WM8281 codecs Richard Fitzgerald
` (4 preceding siblings ...)
2014-11-13 17:50 ` [PATCH 5/6] extcon: " Richard Fitzgerald
@ 2014-11-13 17:50 ` Richard Fitzgerald
2014-11-18 14:29 ` Mark Brown
5 siblings, 1 reply; 14+ messages in thread
From: Richard Fitzgerald @ 2014-11-13 17:50 UTC (permalink / raw)
To: lee.jones, lgirdwood, myungjoo.ham, cw00.choi, linus.walleij,
gnurou, broonie, tiwai
Cc: perex, sameo, robh+dt, pawel.moll, mark.rutland, ijc+devicetree,
galak, ckeepax, devicetree, linux-kernel, patches, linux-gpio,
alsa-devel
Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
---
sound/soc/codecs/arizona.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/sound/soc/codecs/arizona.c b/sound/soc/codecs/arizona.c
index 9550d74..55b5e22 100644
--- a/sound/soc/codecs/arizona.c
+++ b/sound/soc/codecs/arizona.c
@@ -281,6 +281,7 @@ int arizona_init_gpio(struct snd_soc_codec *codec)
switch (arizona->type) {
case WM5110:
+ case WM8280:
snd_soc_dapm_disable_pin(&codec->dapm, "DRC2 Signal Activity");
break;
default:
@@ -1669,6 +1670,7 @@ static int arizona_calc_fratio(struct arizona_fll *fll,
switch (fll->arizona->type) {
case WM5110:
+ case WM8280:
if (fll->arizona->rev < 3 || sync)
return init_ratio;
break;
--
1.7.2.5
^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [PATCH 2/6] Documentation: devicetree: arizona: Add bindings for WM8280
[not found] ` <1415901046-3391-3-git-send-email-rf-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
@ 2014-11-13 18:06 ` Mark Brown
0 siblings, 0 replies; 14+ messages in thread
From: Mark Brown @ 2014-11-13 18:06 UTC (permalink / raw)
To: Richard Fitzgerald
Cc: lee.jones-QSEj5FYQhm4dnm+yROfE0A,
lgirdwood-Re5JQEeQqe8AvxtiuMwx3w,
myungjoo.ham-Sze3O3UU22JBDgjK7y7TUQ,
cw00.choi-Sze3O3UU22JBDgjK7y7TUQ,
linus.walleij-QSEj5FYQhm4dnm+yROfE0A,
gnurou-Re5JQEeQqe8AvxtiuMwx3w, tiwai-l3A5Bk7waGM,
perex-/Fr2/VpizcU, sameo-VuQAYsv1563Yd54FQh9/CA,
robh+dt-DgEjT+Ai2ygdnm+yROfE0A, pawel.moll-5wv7dgnIgG8,
mark.rutland-5wv7dgnIgG8, ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg,
galak-sgV2jX0FEOL9JmXXK+q4OQ,
ckeepax-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E,
devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
patches-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E,
linux-gpio-u79uwXL29TY76Z2rM5mHXA,
alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw
[-- Attachment #1: Type: text/plain, Size: 838 bytes --]
On Thu, Nov 13, 2014 at 05:50:42PM +0000, Richard Fitzgerald wrote:
> - - AVDD-supply, DBVDD1-supply, DBVDD2-supply, DBVDD3-supply (wm5102, wm5110),
> - CPVDD-supply, SPKVDDL-supply (wm5102, wm5110), SPKVDDR-supply (wm5102,
> - wm5110), SPKVDD-supply (wm8997) : Power supplies for the device, as covered
> - in Documentation/devicetree/bindings/regulator/regulator.txt
> + - AVDD-supply, DBVDD1-supply, DBVDD2-supply, DBVDD3-supply (wm5102, wm5110,
> + wm8280), CPVDD-supply, SPKVDDL-supply (wm5102, wm5110, wm8280),
> + SPKVDDR-supply (wm5102, wm5110, wm8280), SPKVDD-supply (wm8997)
> + : Power supplies for the device, as covered in
> + Documentation/devicetree/bindings/regulator/regulator.txt
This is getting pretty illegible, how about either a per device list or
breaking each supply onto a separate line?
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 5/6] extcon: arizona: Add support for WM8280/WM8281
2014-11-13 17:50 ` [PATCH 5/6] extcon: " Richard Fitzgerald
@ 2014-11-13 23:34 ` Chanwoo Choi
0 siblings, 0 replies; 14+ messages in thread
From: Chanwoo Choi @ 2014-11-13 23:34 UTC (permalink / raw)
To: Richard Fitzgerald
Cc: lee.jones, lgirdwood, myungjoo.ham, linus.walleij, gnurou,
broonie, tiwai, perex, sameo, robh+dt, pawel.moll, mark.rutland,
ijc+devicetree, galak, ckeepax, devicetree, linux-kernel, patches,
linux-gpio, alsa-devel
On 11/14/2014 02:50 AM, Richard Fitzgerald wrote:
> Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
> ---
> drivers/extcon/extcon-arizona.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/extcon/extcon-arizona.c b/drivers/extcon/extcon-arizona.c
> index ba51588..3abe866 100644
> --- a/drivers/extcon/extcon-arizona.c
> +++ b/drivers/extcon/extcon-arizona.c
> @@ -1149,6 +1149,7 @@ static int arizona_extcon_probe(struct platform_device *pdev)
> }
> break;
> case WM5110:
> + case WM8280:
> switch (arizona->rev) {
> case 0 ... 2:
> break;
>
This patch is simple.
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Best Regards,
Chanwoo Choi
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH 2/6 V2] Documentation: devicetree: arizona: Add bindings for WM8280
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-14 10:04 ` Richard Fitzgerald
1 sibling, 0 replies; 14+ messages in thread
From: Richard Fitzgerald @ 2014-11-14 10:04 UTC (permalink / raw)
To: lee.jones, lgirdwood, myungjoo.ham, cw00.choi, linus.walleij,
gnurou, broonie, tiwai
Cc: mark.rutland, devicetree, alsa-devel, sameo, pawel.moll,
ijc+devicetree, patches, linux-kernel, linux-gpio, robh+dt, galak,
ckeepax
Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
---
Documentation/devicetree/bindings/mfd/arizona.txt | 15 +++++++++++----
1 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/Documentation/devicetree/bindings/mfd/arizona.txt b/Documentation/devicetree/bindings/mfd/arizona.txt
index 7bd1273..dc81b71 100644
--- a/Documentation/devicetree/bindings/mfd/arizona.txt
+++ b/Documentation/devicetree/bindings/mfd/arizona.txt
@@ -8,6 +8,7 @@ Required properties:
- compatible : One of the following chip-specific strings:
"wlf,wm5102"
"wlf,wm5110"
+ "wlf,wm8280"
"wlf,wm8997"
- reg : I2C slave address when connected using I2C, chip select number when
using SPI.
@@ -26,10 +27,16 @@ Required properties:
- #gpio-cells : Must be 2. The first cell is the pin number and the
second cell is used to specify optional parameters (currently unused).
- - AVDD-supply, DBVDD1-supply, DBVDD2-supply, DBVDD3-supply (wm5102, wm5110),
- CPVDD-supply, SPKVDDL-supply (wm5102, wm5110), SPKVDDR-supply (wm5102,
- wm5110), SPKVDD-supply (wm8997) : Power supplies for the device, as covered
- in Documentation/devicetree/bindings/regulator/regulator.txt
+ - AVDD-supply, DBVDD1-supply, CPVDD-supply : Power supplies for the device,
+ as covered in Documentation/devicetree/bindings/regulator/regulator.txt
+
+ - DBVDD2-supply, DBVDD3-supply : Additional databus power supplies (wm5102,
+ wm5110, wm8280)
+
+ - SPKVDDL-supply, SPKVDDR-supply : Speaker driver power supplies (wm5102,
+ wm5110, wm8280)
+
+ - SPKVDD-supply : Speaker driver power supply (wm8997)
Optional properties:
--
1.7.2.5
^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [PATCH 4/6] gpio: arizona: Add support for WM8280/WM8281
2014-11-13 17:50 ` [PATCH 4/6] gpio: arizona: " Richard Fitzgerald
@ 2014-11-14 10:17 ` Linus Walleij
0 siblings, 0 replies; 14+ messages in thread
From: Linus Walleij @ 2014-11-14 10:17 UTC (permalink / raw)
To: Richard Fitzgerald
Cc: Lee Jones, Liam Girdwood, MyungJoo Ham, Chanwoo Choi,
Alexandre Courbot, Mark Brown, Takashi Iwai, perex@perex.cz,
Samuel Ortiz, Rob Herring, Pawel Moll, Mark Rutland,
ijc+devicetree@hellion.org.uk, Kumar Gala, Charles Keepax,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, patches,
linux-gpio@vger.kernel.org, alsa-devel@alsa-project.org
On Thu, Nov 13, 2014 at 6:50 PM, Richard Fitzgerald
<rf@opensource.wolfsonmicro.com> wrote:
> Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 6/6] ASoC: arizona: Add support for WM8280/WM8281
2014-11-13 17:50 ` [PATCH 6/6] ASoC: " Richard Fitzgerald
@ 2014-11-18 14:29 ` Mark Brown
0 siblings, 0 replies; 14+ messages in thread
From: Mark Brown @ 2014-11-18 14:29 UTC (permalink / raw)
To: Richard Fitzgerald
Cc: lee.jones, lgirdwood, myungjoo.ham, cw00.choi, linus.walleij,
gnurou, tiwai, perex, sameo, robh+dt, pawel.moll, mark.rutland,
ijc+devicetree, galak, ckeepax, devicetree, linux-kernel, patches,
linux-gpio, alsa-devel
[-- Attachment #1: Type: text/plain, Size: 180 bytes --]
On Thu, Nov 13, 2014 at 05:50:46PM +0000, Richard Fitzgerald wrote:
> Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Acked-by: Mark Brown <broonie@kernel.org>
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 1/6] mfd: arizona: add support for WM8280/WM8281
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
0 siblings, 1 reply; 14+ messages in thread
From: Lee Jones @ 2014-11-18 15:41 UTC (permalink / raw)
To: Richard Fitzgerald
Cc: lgirdwood, myungjoo.ham, cw00.choi, linus.walleij, gnurou,
broonie, tiwai, perex, sameo, robh+dt, pawel.moll, mark.rutland,
ijc+devicetree, galak, ckeepax, devicetree, linux-kernel, patches,
linux-gpio, alsa-devel
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@opensource.wolfsonmicro.com>
> ---
> 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?
> 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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 1/6] mfd: arizona: add support for WM8280/WM8281
2014-11-18 15:41 ` Lee Jones
@ 2014-11-18 15:56 ` Richard Fitzgerald
0 siblings, 0 replies; 14+ messages in thread
From: Richard Fitzgerald @ 2014-11-18 15:56 UTC (permalink / raw)
To: Lee Jones
Cc: lgirdwood-Re5JQEeQqe8AvxtiuMwx3w,
myungjoo.ham-Sze3O3UU22JBDgjK7y7TUQ,
cw00.choi-Sze3O3UU22JBDgjK7y7TUQ,
linus.walleij-QSEj5FYQhm4dnm+yROfE0A,
gnurou-Re5JQEeQqe8AvxtiuMwx3w, broonie-DgEjT+Ai2ygdnm+yROfE0A,
tiwai-l3A5Bk7waGM, perex-/Fr2/VpizcU,
sameo-VuQAYsv1563Yd54FQh9/CA, robh+dt-DgEjT+Ai2ygdnm+yROfE0A,
pawel.moll-5wv7dgnIgG8, mark.rutland-5wv7dgnIgG8,
ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg,
galak-sgV2jX0FEOL9JmXXK+q4OQ,
ckeepax-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E,
devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
patches-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E,
linux-gpio-u79uwXL29TY76Z2rM5mHXA,
alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw
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
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2014-11-18 15:56 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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
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).