Skip to content

Commit

Permalink
Merge branch 'topic/asoc' into topic/remove-irqf_disable
Browse files Browse the repository at this point in the history
  • Loading branch information
tiwai committed Sep 22, 2011
2 parents 5495ffb + f648de8 commit af1910a
Show file tree
Hide file tree
Showing 131 changed files with 6,667 additions and 1,205 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
* Freescale SGTL5000 Stereo Codec

Required properties:
- compatible : "fsl,sgtl5000".

Example:

codec: sgtl5000@0a {
compatible = "fsl,sgtl5000";
reg = <0x0a>;
};
18 changes: 18 additions & 0 deletions Documentation/devicetree/bindings/sound/wm8510.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
WM8510 audio CODEC

This device supports both I2C and SPI (configured with pin strapping
on the board).

Required properties:

- compatible : "wlf,wm8510"

- reg : the I2C address of the device for I2C, the chip select
number for SPI.

Example:

codec: wm8510@1a {
compatible = "wlf,wm8510";
reg = <0x1a>;
};
16 changes: 16 additions & 0 deletions Documentation/devicetree/bindings/sound/wm8523.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
WM8523 audio CODEC

This device supports I2C only.

Required properties:

- compatible : "wlf,wm8523"

- reg : the I2C address of the device.

Example:

codec: wm8523@1a {
compatible = "wlf,wm8523";
reg = <0x1a>;
};
16 changes: 16 additions & 0 deletions Documentation/devicetree/bindings/sound/wm8580.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
WM8580 audio CODEC

This device supports I2C only.

Required properties:

- compatible : "wlf,wm8580"

- reg : the I2C address of the device.

Example:

codec: wm8580@1a {
compatible = "wlf,wm8580";
reg = <0x1a>;
};
18 changes: 18 additions & 0 deletions Documentation/devicetree/bindings/sound/wm8711.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
WM8711 audio CODEC

This device supports both I2C and SPI (configured with pin strapping
on the board).

Required properties:

- compatible : "wlf,wm8711"

- reg : the I2C address of the device for I2C, the chip select
number for SPI.

Example:

codec: wm8711@1a {
compatible = "wlf,wm8711";
reg = <0x1a>;
};
18 changes: 18 additions & 0 deletions Documentation/devicetree/bindings/sound/wm8728.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
WM8728 audio CODEC

This device supports both I2C and SPI (configured with pin strapping
on the board).

Required properties:

- compatible : "wlf,wm8728"

- reg : the I2C address of the device for I2C, the chip select
number for SPI.

Example:

codec: wm8728@1a {
compatible = "wlf,wm8728";
reg = <0x1a>;
};
18 changes: 18 additions & 0 deletions Documentation/devicetree/bindings/sound/wm8731.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
WM8731 audio CODEC

This device supports both I2C and SPI (configured with pin strapping
on the board).

Required properties:

- compatible : "wlf,wm8731"

- reg : the I2C address of the device for I2C, the chip select
number for SPI.

Example:

codec: wm8731@1a {
compatible = "wlf,wm8731";
reg = <0x1a>;
};
18 changes: 18 additions & 0 deletions Documentation/devicetree/bindings/sound/wm8737.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
WM8737 audio CODEC

This device supports both I2C and SPI (configured with pin strapping
on the board).

Required properties:

- compatible : "wlf,wm8737"

- reg : the I2C address of the device for I2C, the chip select
number for SPI.

Example:

codec: wm8737@1a {
compatible = "wlf,wm8737";
reg = <0x1a>;
};
18 changes: 18 additions & 0 deletions Documentation/devicetree/bindings/sound/wm8741.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
WM8741 audio CODEC

This device supports both I2C and SPI (configured with pin strapping
on the board).

Required properties:

- compatible : "wlf,wm8741"

- reg : the I2C address of the device for I2C, the chip select
number for SPI.

Example:

codec: wm8741@1a {
compatible = "wlf,wm8741";
reg = <0x1a>;
};
18 changes: 18 additions & 0 deletions Documentation/devicetree/bindings/sound/wm8750.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
WM8750 and WM8987 audio CODECs

These devices support both I2C and SPI (configured with pin strapping
on the board).

Required properties:

- compatible : "wlf,wm8750" or "wlf,wm8987"

- reg : the I2C address of the device for I2C, the chip select
number for SPI.

Example:

codec: wm8750@1a {
compatible = "wlf,wm8750";
reg = <0x1a>;
};
18 changes: 18 additions & 0 deletions Documentation/devicetree/bindings/sound/wm8753.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
WM8753 audio CODEC

This device supports both I2C and SPI (configured with pin strapping
on the board).

Required properties:

- compatible : "wlf,wm8753"

- reg : the I2C address of the device for I2C, the chip select
number for SPI.

Example:

codec: wm8737@1a {
compatible = "wlf,wm8753";
reg = <0x1a>;
};
16 changes: 16 additions & 0 deletions Documentation/devicetree/bindings/sound/wm8770.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
WM8770 audio CODEC

This device supports SPI.

Required properties:

- compatible : "wlf,wm8770"

- reg : the chip select number.

Example:

codec: wm8770@1 {
compatible = "wlf,wm8770";
reg = <1>;
};
18 changes: 18 additions & 0 deletions Documentation/devicetree/bindings/sound/wm8776.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
WM8776 audio CODEC

This device supports both I2C and SPI (configured with pin strapping
on the board).

Required properties:

- compatible : "wlf,wm8776"

- reg : the I2C address of the device for I2C, the chip select
number for SPI.

Example:

codec: wm8776@1a {
compatible = "wlf,wm8776";
reg = <0x1a>;
};
18 changes: 18 additions & 0 deletions Documentation/devicetree/bindings/sound/wm8804.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
WM8804 audio CODEC

This device supports both I2C and SPI (configured with pin strapping
on the board).

Required properties:

- compatible : "wlf,wm8804"

- reg : the I2C address of the device for I2C, the chip select
number for SPI.

Example:

codec: wm8804@1a {
compatible = "wlf,wm8804";
reg = <0x1a>;
};
6 changes: 6 additions & 0 deletions arch/arm/mach-ep93xx/edb93xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,11 @@ static void __init edb93xx_register_spi(void)
/*************************************************************************
* EDB93xx I2S
*************************************************************************/
static struct platform_device edb93xx_audio_device = {
.name = "edb93xx-audio",
.id = -1,
};

static int __init edb93xx_has_audio(void)
{
return (machine_is_edb9301() || machine_is_edb9302() ||
Expand All @@ -170,6 +175,7 @@ static void __init edb93xx_register_i2s(void)
{
if (edb93xx_has_audio()) {
ep93xx_register_i2s();
platform_device_register(&edb93xx_audio_device);
}
}

Expand Down
13 changes: 12 additions & 1 deletion arch/arm/mach-ep93xx/simone.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,17 @@ static struct i2c_board_info __initdata simone_i2c_board_info[] = {
},
};

static struct platform_device simone_audio_device = {
.name = "simone-audio",
.id = -1,
};

static void __init simone_register_audio(void)
{
ep93xx_register_ac97();
platform_device_register(&simone_audio_device);
}

static void __init simone_init_machine(void)
{
ep93xx_init_devices();
Expand All @@ -61,7 +72,7 @@ static void __init simone_init_machine(void)
ep93xx_register_fb(&simone_fb_info);
ep93xx_register_i2c(&simone_i2c_gpio_data, simone_i2c_board_info,
ARRAY_SIZE(simone_i2c_board_info));
ep93xx_register_ac97();
simone_register_audio();
}

MACHINE_START(SIM_ONE, "Simplemachines Sim.One Board")
Expand Down
13 changes: 12 additions & 1 deletion arch/arm/mach-ep93xx/snappercl15.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,25 @@ static struct ep93xxfb_mach_info __initdata snappercl15_fb_info = {
.bpp = 16,
};

static struct platform_device snappercl15_audio_device = {
.name = "snappercl15-audio",
.id = -1,
};

static void __init snappercl15_register_audio(void)
{
ep93xx_register_i2s();
platform_device_register(&snappercl15_audio_device);
}

static void __init snappercl15_init_machine(void)
{
ep93xx_init_devices();
ep93xx_register_eth(&snappercl15_eth_data, 1);
ep93xx_register_i2c(&snappercl15_i2c_gpio_data, snappercl15_i2c_data,
ARRAY_SIZE(snappercl15_i2c_data));
ep93xx_register_fb(&snappercl15_fb_info);
ep93xx_register_i2s();
snappercl15_register_audio();
platform_device_register(&snappercl15_nand_device);
}

Expand Down
16 changes: 16 additions & 0 deletions arch/mips/alchemy/devboards/db1200/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -422,26 +422,40 @@ static struct resource au1200_psc1_res[] = {
},
};

/* AC97 or I2S device */
static struct platform_device db1200_audio_dev = {
/* name assigned later based on switch setting */
.id = 1, /* PSC ID */
.num_resources = ARRAY_SIZE(au1200_psc1_res),
.resource = au1200_psc1_res,
};

/* DB1200 ASoC card device */
static struct platform_device db1200_sound_dev = {
/* name assigned later based on switch setting */
.id = 1, /* PSC ID */
};

static struct platform_device db1200_stac_dev = {
.name = "ac97-codec",
.id = 1, /* on PSC1 */
};

static struct platform_device db1200_audiodma_dev = {
.name = "au1xpsc-pcm",
.id = 1, /* PSC ID */
};

static struct platform_device *db1200_devs[] __initdata = {
NULL, /* PSC0, selected by S6.8 */
&db1200_ide_dev,
&db1200_eth_dev,
&db1200_rtc_dev,
&db1200_nand_dev,
&db1200_audiodma_dev,
&db1200_audio_dev,
&db1200_stac_dev,
&db1200_sound_dev,
};

static int __init db1200_dev_init(void)
Expand Down Expand Up @@ -501,10 +515,12 @@ static int __init db1200_dev_init(void)
if (sw == BCSR_SWITCHES_DIP_8) {
bcsr_mod(BCSR_RESETS, 0, BCSR_RESETS_PSC1MUX);
db1200_audio_dev.name = "au1xpsc_i2s";
db1200_sound_dev.name = "db1200-i2s";
printk(KERN_INFO " S6.7 ON : PSC1 mode I2S\n");
} else {
bcsr_mod(BCSR_RESETS, BCSR_RESETS_PSC1MUX, 0);
db1200_audio_dev.name = "au1xpsc_ac97";
db1200_sound_dev.name = "db1200-ac97";
printk(KERN_INFO " S6.7 OFF: PSC1 mode AC97\n");
}

Expand Down
Loading

0 comments on commit af1910a

Please sign in to comment.