summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-07-16 13:36:05 +0100
committerMark Brown <broonie@linaro.org>2013-07-16 13:42:30 +0100
commitf2c4fa655f7139a181a6d6db99a49cab96ed0337 (patch)
tree83fac998ce78b939f627728b54d999c71c33410e
parentad81f0545ef01ea651886dddac4bef6cec930092 (diff)
downloadop-kernel-dev-f2c4fa655f7139a181a6d6db99a49cab96ed0337.zip
op-kernel-dev-f2c4fa655f7139a181a6d6db99a49cab96ed0337.tar.gz
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 f47c3f5..26f65f9 100644
--- a/Documentation/devicetree/bindings/sound/tlv320aic3x.txt
+++ b/Documentation/devicetree/bindings/sound/tlv320aic3x.txt
@@ -3,7 +3,13 @@ Texas Instruments - tlv320aic3x Codec module
The tlv320aic3x serial control bus communicates through I2C protocols
Required properties:
-- compatible - "string" - "ti,tlv320aic3x"
+
+- compatible - "string" - One of:
+ "ti,tlv320aic3x" - Generic TLV320AIC3x device
+ "ti,tlv320aic33" - TLV320AIC33
+ "ti,tlv320aic3007" - TLV320AIC3007
+
+
- reg - <int> - I2C slave address
diff --git a/sound/soc/codecs/tlv320aic3x.c b/sound/soc/codecs/tlv320aic3x.c
index e5b9268..c9bb760 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)
#if defined(CONFIG_OF)
static const struct of_device_id tlv320aic3x_of_match[] = {
{ .compatible = "ti,tlv320aic3x", },
+ { .compatible = "ti,tlv320aic33" },
+ { .compatible = "ti,tlv320aic3007" },
{},
};
MODULE_DEVICE_TABLE(of, tlv320aic3x_of_match);
OpenPOWER on IntegriCloud