aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-07-16 08:36:05 -0400
committerMark Brown <broonie@linaro.org>2013-07-16 08:42:30 -0400
commitf2c4fa655f7139a181a6d6db99a49cab96ed0337 (patch)
tree83fac998ce78b939f627728b54d999c71c33410e
parentad81f0545ef01ea651886dddac4bef6cec930092 (diff)
ASoC: tlv320aic3x: Add compatible strings for specific devices
The driver supports a range of devices but currently doesn't allow those device names to be used for enumeration on DT. Add the currently listed I2C IDs as compatible strings. Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r--Documentation/devicetree/bindings/sound/tlv320aic3x.txt8
-rw-r--r--sound/soc/codecs/tlv320aic3x.c2
2 files changed, 9 insertions, 1 deletions
diff --git a/Documentation/devicetree/bindings/sound/tlv320aic3x.txt b/Documentation/devicetree/bindings/sound/tlv320aic3x.txt
index f47c3f589fd0..26f65f92f42d 100644
--- a/Documentation/devicetree/bindings/sound/tlv320aic3x.txt
+++ b/Documentation/devicetree/bindings/sound/tlv320aic3x.txt
@@ -3,7 +3,13 @@ Texas Instruments - tlv320aic3x Codec module
3The tlv320aic3x serial control bus communicates through I2C protocols 3The tlv320aic3x serial control bus communicates through I2C protocols
4 4
5Required properties: 5Required properties:
6- compatible - "string" - "ti,tlv320aic3x" 6
7- compatible - "string" - One of:
8 "ti,tlv320aic3x" - Generic TLV320AIC3x device
9 "ti,tlv320aic33" - TLV320AIC33
10 "ti,tlv320aic3007" - TLV320AIC3007
11
12
7- reg - <int> - I2C slave address 13- reg - <int> - I2C slave address
8 14
9 15
diff --git a/sound/soc/codecs/tlv320aic3x.c b/sound/soc/codecs/tlv320aic3x.c
index e5b926883131..c9bb760f405f 100644
--- a/sound/soc/codecs/tlv320aic3x.c
+++ b/sound/soc/codecs/tlv320aic3x.c
@@ -1582,6 +1582,8 @@ static int aic3x_i2c_remove(struct i2c_client *client)
1582#if defined(CONFIG_OF) 1582#if defined(CONFIG_OF)
1583static const struct of_device_id tlv320aic3x_of_match[] = { 1583static const struct of_device_id tlv320aic3x_of_match[] = {
1584 { .compatible = "ti,tlv320aic3x", }, 1584 { .compatible = "ti,tlv320aic3x", },
1585 { .compatible = "ti,tlv320aic33" },
1586 { .compatible = "ti,tlv320aic3007" },
1585 {}, 1587 {},
1586}; 1588};
1587MODULE_DEVICE_TABLE(of, tlv320aic3x_of_match); 1589MODULE_DEVICE_TABLE(of, tlv320aic3x_of_match);