Skip to content

Commit fde0543

Browse files
Dan Murphybroonie
authored andcommitted
ASoC: tlv320aic32x4: Add support for tlv320aic32x6
Add support for the tlv320aic32x6 family of devices. These devices share the same register set as the tlv320aic32x4 and this driver can be re-used. TLV320aic32x6 data sheets are here: tlv320aic3256 - http://www.ti.com/lit/gpn/tlv320aic3256 tlv320aic3206 - http://www.ti.com/lit/gpn/tlv320aic3206 Signed-off-by: Dan Murphy <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 5771a8c commit fde0543

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

Documentation/devicetree/bindings/sound/tlv320aic32x4.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ Texas Instruments - tlv320aic32x4 Codec module
33
The tlv320aic32x4 serial control bus communicates through I2C protocols
44

55
Required properties:
6-
- compatible: Should be "ti,tlv320aic32x4"
6+
- compatible - "string" - One of:
7+
"ti,tlv320aic32x4" TLV320AIC3204
8+
"ti,tlv320aic32x6" TLV320AIC3206, TLV320AIC3256
79
- reg: I2C slave address
810
- supply-*: Required supply regulators are:
911
"iov" - digital IO power supply

sound/soc/codecs/tlv320aic32x4-i2c.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,14 @@ static int aic32x4_i2c_remove(struct i2c_client *i2c)
4747

4848
static const struct i2c_device_id aic32x4_i2c_id[] = {
4949
{ "tlv320aic32x4", 0 },
50+
{ "tlv320aic32x6", 1 },
5051
{ /* sentinel */ }
5152
};
5253
MODULE_DEVICE_TABLE(i2c, aic32x4_i2c_id);
5354

5455
static const struct of_device_id aic32x4_of_id[] = {
5556
{ .compatible = "ti,tlv320aic32x4", },
57+
{ .compatible = "ti,tlv320aic32x6", },
5658
{ /* senitel */ }
5759
};
5860
MODULE_DEVICE_TABLE(of, aic32x4_of_id);

sound/soc/codecs/tlv320aic32x4-spi.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,14 @@ static int aic32x4_spi_remove(struct spi_device *spi)
4848

4949
static const struct spi_device_id aic32x4_spi_id[] = {
5050
{ "tlv320aic32x4", 0 },
51+
{ "tlv320aic32x6", 1 },
5152
{ /* sentinel */ }
5253
};
5354
MODULE_DEVICE_TABLE(spi, aic32x4_spi_id);
5455

5556
static const struct of_device_id aic32x4_of_id[] = {
5657
{ .compatible = "ti,tlv320aic32x4", },
58+
{ .compatible = "ti,tlv320aic32x6", },
5759
{ /* senitel */ }
5860
};
5961
MODULE_DEVICE_TABLE(of, aic32x4_of_id);

0 commit comments

Comments
 (0)