ASoC: bt-sco: Add devicetree support for bt-sco codec
authorMarek Belisko <marek@goldelico.com>
Fri, 8 May 2015 19:02:34 +0000 (21:02 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 12 May 2015 18:43:41 +0000 (19:43 +0100)
Add devicetree support for bluetooth SCO link codec.

Signed-off-by: Marek Belisko <marek@goldelico.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/sound/bt-sco.txt [new file with mode: 0644]
Documentation/devicetree/bindings/vendor-prefixes.txt
sound/soc/codecs/bt-sco.c

diff --git a/Documentation/devicetree/bindings/sound/bt-sco.txt b/Documentation/devicetree/bindings/sound/bt-sco.txt
new file mode 100644 (file)
index 0000000..29b8e5d
--- /dev/null
@@ -0,0 +1,13 @@
+Bluetooth-SCO audio CODEC
+
+This device support generic Bluetooth SCO link.
+
+Required properties:
+
+  - compatible : "delta,dfbmcs320"
+
+Example:
+
+codec: bt_sco {
+       compatible = "delta,dfbmcs320";
+};
index 80339192c93e2626f81eed30fe97ff147c86d746..b6969e477bf37e1a93fd9bb0e7f1e92247ab3dd1 100644 (file)
@@ -54,6 +54,7 @@ cosmic        Cosmic Circuits
 crystalfontz   Crystalfontz America, Inc.
 dallas Maxim Integrated Products (formerly Dallas Semiconductor)
 davicom        DAVICOM Semiconductor, Inc.
+delta  Delta Electronics, Inc.
 denx   Denx Software Engineering
 digi   Digi International Inc.
 digilent       Diglent, Inc.
index 9d0b794d3005649a3ff9866569068e80fdcebc20..b084ad113e967824a6809dd3e3394f18990e3a72 100644 (file)
@@ -74,9 +74,18 @@ static const struct platform_device_id bt_sco_driver_ids[] = {
 };
 MODULE_DEVICE_TABLE(platform, bt_sco_driver_ids);
 
+#if defined(CONFIG_OF)
+static const struct of_device_id bt_sco_codec_of_match[] = {
+       { .compatible = "delta,dfbmcs320", },
+       {},
+};
+MODULE_DEVICE_TABLE(of, bt_sco_codec_of_match);
+#endif
+
 static struct platform_driver bt_sco_driver = {
        .driver = {
                .name = "bt-sco",
+               .of_match_table = of_match_ptr(bt_sco_codec_of_match),
        },
        .probe = bt_sco_probe,
        .remove = bt_sco_remove,
This page took 0.02971 seconds and 5 git commands to generate.