* [PATCH 0/2] ASoC: ads117x: Add device tree support for TI ADS117x
@ 2016-01-18 16:04 Florian Vaussard
[not found] ` <1453133092-29521-1-git-send-email-florian.vaussard-EWQkb/GNqlFyDzI6CaY1VQ@public.gmane.org>
2016-01-18 16:04 ` [PATCH 2/2] ASoC: ads117x: Add device tree compatible string Florian Vaussard
0 siblings, 2 replies; 4+ messages in thread
From: Florian Vaussard @ 2016-01-18 16:04 UTC (permalink / raw)
To: devicetree-u79uwXL29TY76Z2rM5mHXA, Liam Girdwood, Mark Brown,
Jaroslav Kysela, Takashi Iwai
Cc: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
Timur Tabi, Janusz Krzysztofik, Lars-Peter Clausen,
alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw,
linux-kernel-u79uwXL29TY76Z2rM5mHXA, Florian Vaussard
Hello,
This series adds device tree support for the Texas Instruments ADS117x
ADC chip. The first patch adds the binding documentation, while the second
patch adds the compatible string into the driver.
Best regards,
Florian
Florian Vaussard (2):
dt/bindings: Add bindings documentation for TI ADS117x ADC
ASoC: ads117x: Add device tree compatible string
Documentation/devicetree/bindings/sound/ti,ads117x.txt | 11 +++++++++++
sound/soc/codecs/ads117x.c | 11 +++++++++++
2 files changed, 22 insertions(+)
create mode 100644 Documentation/devicetree/bindings/sound/ti,ads117x.txt
--
2.1.0
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <1453133092-29521-1-git-send-email-florian.vaussard-EWQkb/GNqlFyDzI6CaY1VQ@public.gmane.org>]
* [PATCH 1/2] dt/bindings: Add bindings documentation for TI ADS117x ADC
[not found] ` <1453133092-29521-1-git-send-email-florian.vaussard-EWQkb/GNqlFyDzI6CaY1VQ@public.gmane.org>
@ 2016-01-18 16:04 ` Florian Vaussard
[not found] ` <1453133092-29521-2-git-send-email-florian.vaussard-EWQkb/GNqlFyDzI6CaY1VQ@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Florian Vaussard @ 2016-01-18 16:04 UTC (permalink / raw)
To: devicetree-u79uwXL29TY76Z2rM5mHXA, Liam Girdwood, Mark Brown,
Jaroslav Kysela, Takashi Iwai
Cc: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
Timur Tabi, Janusz Krzysztofik, Lars-Peter Clausen,
alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw,
linux-kernel-u79uwXL29TY76Z2rM5mHXA, Florian Vaussard
Currently the binding is only made of the compatible string.
Signed-off-by: Florian Vaussard <florian.vaussard-EWQkb/GNqlFyDzI6CaY1VQ@public.gmane.org>
---
Documentation/devicetree/bindings/sound/ti,ads117x.txt | 11 +++++++++++
1 file changed, 11 insertions(+)
create mode 100644 Documentation/devicetree/bindings/sound/ti,ads117x.txt
diff --git a/Documentation/devicetree/bindings/sound/ti,ads117x.txt b/Documentation/devicetree/bindings/sound/ti,ads117x.txt
new file mode 100644
index 0000000..c1c2741
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/ti,ads117x.txt
@@ -0,0 +1,11 @@
+Texas Intstruments ADS117x ADC
+
+Required properties:
+
+ - compatible : "ti,ads117x"
+
+Example:
+
+ads1178 {
+ compatible = "ti,ads117x";
+};
--
2.1.0
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] ASoC: ads117x: Add device tree compatible string
2016-01-18 16:04 [PATCH 0/2] ASoC: ads117x: Add device tree support for TI ADS117x Florian Vaussard
[not found] ` <1453133092-29521-1-git-send-email-florian.vaussard-EWQkb/GNqlFyDzI6CaY1VQ@public.gmane.org>
@ 2016-01-18 16:04 ` Florian Vaussard
1 sibling, 0 replies; 4+ messages in thread
From: Florian Vaussard @ 2016-01-18 16:04 UTC (permalink / raw)
To: devicetree, Liam Girdwood, Mark Brown, Jaroslav Kysela,
Takashi Iwai
Cc: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
Timur Tabi, Janusz Krzysztofik, Lars-Peter Clausen, alsa-devel,
linux-kernel, Florian Vaussard
This patch adds the necessary device tree compatible string to allow
DT probing.
Signed-off-by: Florian Vaussard <florian.vaussard@heig-vd.ch>
---
sound/soc/codecs/ads117x.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/sound/soc/codecs/ads117x.c b/sound/soc/codecs/ads117x.c
index 1222282..b3f6618 100644
--- a/sound/soc/codecs/ads117x.c
+++ b/sound/soc/codecs/ads117x.c
@@ -20,6 +20,8 @@
#include <sound/initval.h>
#include <sound/soc.h>
+#include <linux/of.h>
+
#define ADS117X_RATES (SNDRV_PCM_RATE_8000_48000)
#define ADS117X_FORMATS (SNDRV_PCM_FMTBIT_S16_LE)
@@ -75,9 +77,18 @@ static int ads117x_remove(struct platform_device *pdev)
return 0;
}
+#if defined(CONFIG_OF)
+static const struct of_device_id ads117x_dt_ids[] = {
+ { .compatible = "ti,ads117x" },
+ { },
+};
+MODULE_DEVICE_TABLE(of, ads117x_dt_ids);
+#endif
+
static struct platform_driver ads117x_codec_driver = {
.driver = {
.name = "ads117x-codec",
+ .of_match_table = of_match_ptr(ads117x_dt_ids),
},
.probe = ads117x_probe,
--
2.1.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-01-18 16:34 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-18 16:04 [PATCH 0/2] ASoC: ads117x: Add device tree support for TI ADS117x Florian Vaussard
[not found] ` <1453133092-29521-1-git-send-email-florian.vaussard-EWQkb/GNqlFyDzI6CaY1VQ@public.gmane.org>
2016-01-18 16:04 ` [PATCH 1/2] dt/bindings: Add bindings documentation for TI ADS117x ADC Florian Vaussard
[not found] ` <1453133092-29521-2-git-send-email-florian.vaussard-EWQkb/GNqlFyDzI6CaY1VQ@public.gmane.org>
2016-01-18 16:34 ` Mark Brown
2016-01-18 16:04 ` [PATCH 2/2] ASoC: ads117x: Add device tree compatible string Florian Vaussard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).