* [PATCH v2 1/9] staging: iio: tsl2x7x: add of_match table for device tree support
[not found] <20170706225626.6716-1-masneyb@onstation.org>
@ 2017-07-06 22:56 ` Brian Masney
[not found] ` <20170706225626.6716-2-masneyb-1iNe0GrtECGEi8DpZVb4nw@public.gmane.org>
2017-07-06 22:56 ` [PATCH v2 2/9] staging: iio: tsl2x7x: add device tree documentation Brian Masney
1 sibling, 1 reply; 5+ messages in thread
From: Brian Masney @ 2017-07-06 22:56 UTC (permalink / raw)
To: jic23, linux-iio
Cc: devel, Mark Rutland, lars, devicetree, gregkh, linux-kernel,
Rob Herring, Jon.Brenner, pmeerw, knaack.h
Add device tree support for the tsl2x7x IIO driver with no custom
properties. The device tree documentation is in a separate commit so
that the changes to trivial-devices.txt can go in via the device
tree subsystem.
Signed-off-by: Brian Masney <masneyb@onstation.org>
CC: Rob Herring <robh+dt@kernel.org>
CC: Mark Rutland <mark.rutland@arm.com>
CC: devicetree@vger.kernel.org
---
drivers/staging/iio/light/tsl2x7x.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/drivers/staging/iio/light/tsl2x7x.c b/drivers/staging/iio/light/tsl2x7x.c
index 1467199..8148986 100644
--- a/drivers/staging/iio/light/tsl2x7x.c
+++ b/drivers/staging/iio/light/tsl2x7x.c
@@ -2026,6 +2026,21 @@ static struct i2c_device_id tsl2x7x_idtable[] = {
MODULE_DEVICE_TABLE(i2c, tsl2x7x_idtable);
+static const struct of_device_id tsl2x7x_of_match[] = {
+ { .compatible = "amstaos,tsl2571" },
+ { .compatible = "amstaos,tsl2671" },
+ { .compatible = "amstaos,tmd2671" },
+ { .compatible = "amstaos,tsl2771" },
+ { .compatible = "amstaos,tmd2771" },
+ { .compatible = "amstaos,tsl2572" },
+ { .compatible = "amstaos,tsl2672" },
+ { .compatible = "amstaos,tmd2672" },
+ { .compatible = "amstaos,tsl2772" },
+ { .compatible = "amstaos,tmd2772" },
+ {}
+};
+MODULE_DEVICE_TABLE(of, tsl2x7x_of_match);
+
static const struct dev_pm_ops tsl2x7x_pm_ops = {
.suspend = tsl2x7x_suspend,
.resume = tsl2x7x_resume,
@@ -2035,6 +2050,7 @@ static const struct dev_pm_ops tsl2x7x_pm_ops = {
static struct i2c_driver tsl2x7x_driver = {
.driver = {
.name = "tsl2x7x",
+ .of_match_table = tsl2x7x_of_match,
.pm = &tsl2x7x_pm_ops,
},
.id_table = tsl2x7x_idtable,
--
2.9.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH v2 2/9] staging: iio: tsl2x7x: add device tree documentation
[not found] <20170706225626.6716-1-masneyb@onstation.org>
2017-07-06 22:56 ` [PATCH v2 1/9] staging: iio: tsl2x7x: add of_match table for device tree support Brian Masney
@ 2017-07-06 22:56 ` Brian Masney
[not found] ` <20170706225626.6716-3-masneyb-1iNe0GrtECGEi8DpZVb4nw@public.gmane.org>
1 sibling, 1 reply; 5+ messages in thread
From: Brian Masney @ 2017-07-06 22:56 UTC (permalink / raw)
To: jic23, linux-iio
Cc: devel, Mark Rutland, lars, devicetree, gregkh, linux-kernel,
Rob Herring, Jon.Brenner, pmeerw, knaack.h
Add device tree documentation for the tsl2x7x IIO driver.
Signed-off-by: Brian Masney <masneyb@onstation.org>
CC: Rob Herring <robh+dt@kernel.org>
CC: Mark Rutland <mark.rutland@arm.com>
CC: devicetree@vger.kernel.org
---
Documentation/devicetree/bindings/trivial-devices.txt | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/Documentation/devicetree/bindings/trivial-devices.txt b/Documentation/devicetree/bindings/trivial-devices.txt
index 35f406d..0e6e953 100644
--- a/Documentation/devicetree/bindings/trivial-devices.txt
+++ b/Documentation/devicetree/bindings/trivial-devices.txt
@@ -21,6 +21,16 @@ adi,adt7490 +/-1C TDM Extended Temp Range I.C
adi,adxl345 Three-Axis Digital Accelerometer
adi,adxl346 Three-Axis Digital Accelerometer (backward-compatibility value "adi,adxl345" must be listed too)
ams,iaq-core AMS iAQ-Core VOC Sensor
+amstaos,tsl2571 AMS/TAOS ALS and proximity sensor
+amstaos,tsl2671 AMS/TAOS ALS and proximity sensor
+amstaos,tmd2671 AMS/TAOS ALS and proximity sensor
+amstaos,tsl2771 AMS/TAOS ALS and proximity sensor
+amstaos,tmd2771 AMS/TAOS ALS and proximity sensor
+amstaos,tsl2572 AMS/TAOS ALS and proximity sensor
+amstaos,tsl2672 AMS/TAOS ALS and proximity sensor
+amstaos,tmd2672 AMS/TAOS ALS and proximity sensor
+amstaos,tsl2772 AMS/TAOS ALS and proximity sensor
+amstaos,tmd2772 AMS/TAOS ALS and proximity sensor
at,24c08 i2c serial eeprom (24cxx)
atmel,at97sc3204t i2c trusted platform module (TPM)
capella,cm32181 CM32181: Ambient Light Sensor
--
2.9.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v2 1/9] staging: iio: tsl2x7x: add of_match table for device tree support
[not found] ` <20170706225626.6716-2-masneyb-1iNe0GrtECGEi8DpZVb4nw@public.gmane.org>
@ 2017-07-09 17:19 ` Jonathan Cameron
0 siblings, 0 replies; 5+ messages in thread
From: Jonathan Cameron @ 2017-07-09 17:19 UTC (permalink / raw)
To: Brian Masney
Cc: linux-iio-u79uwXL29TY76Z2rM5mHXA,
gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r,
devel-gWbeCf7V1WCQmaza687I9mD2FQJk+8+b, knaack.h-Mmb7MZpHnFY,
lars-Qo5EllUWu/uELgA04lAiVw, pmeerw-jW+XmwGofnusTnJN9+BGXg,
linux-kernel-u79uwXL29TY76Z2rM5mHXA, Jon.Brenner-QzQKeY2x7wg,
Rob Herring, Mark Rutland, devicetree-u79uwXL29TY76Z2rM5mHXA
On Thu, 6 Jul 2017 18:56:18 -0400
Brian Masney <masneyb-1iNe0GrtECGEi8DpZVb4nw@public.gmane.org> wrote:
> Add device tree support for the tsl2x7x IIO driver with no custom
> properties. The device tree documentation is in a separate commit so
> that the changes to trivial-devices.txt can go in via the device
> tree subsystem.
>
> Signed-off-by: Brian Masney <masneyb-1iNe0GrtECGEi8DpZVb4nw@public.gmane.org>
> CC: Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
> CC: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>
> CC: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Applied to the togreg branch of iio.git and pushed out as testing
for the autobuilders to play with it.
Thanks,
Jonathan
> ---
> drivers/staging/iio/light/tsl2x7x.c | 16 ++++++++++++++++
> 1 file changed, 16 insertions(+)
>
> diff --git a/drivers/staging/iio/light/tsl2x7x.c b/drivers/staging/iio/light/tsl2x7x.c
> index 1467199..8148986 100644
> --- a/drivers/staging/iio/light/tsl2x7x.c
> +++ b/drivers/staging/iio/light/tsl2x7x.c
> @@ -2026,6 +2026,21 @@ static struct i2c_device_id tsl2x7x_idtable[] = {
>
> MODULE_DEVICE_TABLE(i2c, tsl2x7x_idtable);
>
> +static const struct of_device_id tsl2x7x_of_match[] = {
> + { .compatible = "amstaos,tsl2571" },
> + { .compatible = "amstaos,tsl2671" },
> + { .compatible = "amstaos,tmd2671" },
> + { .compatible = "amstaos,tsl2771" },
> + { .compatible = "amstaos,tmd2771" },
> + { .compatible = "amstaos,tsl2572" },
> + { .compatible = "amstaos,tsl2672" },
> + { .compatible = "amstaos,tmd2672" },
> + { .compatible = "amstaos,tsl2772" },
> + { .compatible = "amstaos,tmd2772" },
> + {}
> +};
> +MODULE_DEVICE_TABLE(of, tsl2x7x_of_match);
> +
> static const struct dev_pm_ops tsl2x7x_pm_ops = {
> .suspend = tsl2x7x_suspend,
> .resume = tsl2x7x_resume,
> @@ -2035,6 +2050,7 @@ static const struct dev_pm_ops tsl2x7x_pm_ops = {
> static struct i2c_driver tsl2x7x_driver = {
> .driver = {
> .name = "tsl2x7x",
> + .of_match_table = tsl2x7x_of_match,
> .pm = &tsl2x7x_pm_ops,
> },
> .id_table = tsl2x7x_idtable,
--
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] 5+ messages in thread
* Re: [PATCH v2 2/9] staging: iio: tsl2x7x: add device tree documentation
[not found] ` <20170706225626.6716-3-masneyb-1iNe0GrtECGEi8DpZVb4nw@public.gmane.org>
@ 2017-07-09 17:20 ` Jonathan Cameron
2017-07-10 14:15 ` Rob Herring
1 sibling, 0 replies; 5+ messages in thread
From: Jonathan Cameron @ 2017-07-09 17:20 UTC (permalink / raw)
To: Brian Masney
Cc: linux-iio-u79uwXL29TY76Z2rM5mHXA,
gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r,
devel-gWbeCf7V1WCQmaza687I9mD2FQJk+8+b, knaack.h-Mmb7MZpHnFY,
lars-Qo5EllUWu/uELgA04lAiVw, pmeerw-jW+XmwGofnusTnJN9+BGXg,
linux-kernel-u79uwXL29TY76Z2rM5mHXA, Jon.Brenner-QzQKeY2x7wg,
Rob Herring, Mark Rutland, devicetree-u79uwXL29TY76Z2rM5mHXA
On Thu, 6 Jul 2017 18:56:19 -0400
Brian Masney <masneyb-1iNe0GrtECGEi8DpZVb4nw@public.gmane.org> wrote:
> Add device tree documentation for the tsl2x7x IIO driver.
>
> Signed-off-by: Brian Masney <masneyb-1iNe0GrtECGEi8DpZVb4nw@public.gmane.org>
> CC: Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
> CC: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>
> CC: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
For what it's worth given the simplicity of the patch
Acked-by: Jonathan Cameron <Jonathan.Cameron-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
> ---
> Documentation/devicetree/bindings/trivial-devices.txt | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/trivial-devices.txt b/Documentation/devicetree/bindings/trivial-devices.txt
> index 35f406d..0e6e953 100644
> --- a/Documentation/devicetree/bindings/trivial-devices.txt
> +++ b/Documentation/devicetree/bindings/trivial-devices.txt
> @@ -21,6 +21,16 @@ adi,adt7490 +/-1C TDM Extended Temp Range I.C
> adi,adxl345 Three-Axis Digital Accelerometer
> adi,adxl346 Three-Axis Digital Accelerometer (backward-compatibility value "adi,adxl345" must be listed too)
> ams,iaq-core AMS iAQ-Core VOC Sensor
> +amstaos,tsl2571 AMS/TAOS ALS and proximity sensor
> +amstaos,tsl2671 AMS/TAOS ALS and proximity sensor
> +amstaos,tmd2671 AMS/TAOS ALS and proximity sensor
> +amstaos,tsl2771 AMS/TAOS ALS and proximity sensor
> +amstaos,tmd2771 AMS/TAOS ALS and proximity sensor
> +amstaos,tsl2572 AMS/TAOS ALS and proximity sensor
> +amstaos,tsl2672 AMS/TAOS ALS and proximity sensor
> +amstaos,tmd2672 AMS/TAOS ALS and proximity sensor
> +amstaos,tsl2772 AMS/TAOS ALS and proximity sensor
> +amstaos,tmd2772 AMS/TAOS ALS and proximity sensor
> at,24c08 i2c serial eeprom (24cxx)
> atmel,at97sc3204t i2c trusted platform module (TPM)
> capella,cm32181 CM32181: Ambient Light Sensor
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 2/9] staging: iio: tsl2x7x: add device tree documentation
[not found] ` <20170706225626.6716-3-masneyb-1iNe0GrtECGEi8DpZVb4nw@public.gmane.org>
2017-07-09 17:20 ` Jonathan Cameron
@ 2017-07-10 14:15 ` Rob Herring
1 sibling, 0 replies; 5+ messages in thread
From: Rob Herring @ 2017-07-10 14:15 UTC (permalink / raw)
To: Brian Masney
Cc: jic23-DgEjT+Ai2ygdnm+yROfE0A, linux-iio-u79uwXL29TY76Z2rM5mHXA,
gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r,
devel-gWbeCf7V1WCQmaza687I9mD2FQJk+8+b, knaack.h-Mmb7MZpHnFY,
lars-Qo5EllUWu/uELgA04lAiVw, pmeerw-jW+XmwGofnusTnJN9+BGXg,
linux-kernel-u79uwXL29TY76Z2rM5mHXA, Jon.Brenner-QzQKeY2x7wg,
Mark Rutland, devicetree-u79uwXL29TY76Z2rM5mHXA
On Thu, Jul 06, 2017 at 06:56:19PM -0400, Brian Masney wrote:
> Add device tree documentation for the tsl2x7x IIO driver.
>
> Signed-off-by: Brian Masney <masneyb-1iNe0GrtECGEi8DpZVb4nw@public.gmane.org>
> CC: Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
> CC: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>
> CC: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> ---
> Documentation/devicetree/bindings/trivial-devices.txt | 10 ++++++++++
> 1 file changed, 10 insertions(+)
Applied.
Rob
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-07-10 14:15 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20170706225626.6716-1-masneyb@onstation.org>
2017-07-06 22:56 ` [PATCH v2 1/9] staging: iio: tsl2x7x: add of_match table for device tree support Brian Masney
[not found] ` <20170706225626.6716-2-masneyb-1iNe0GrtECGEi8DpZVb4nw@public.gmane.org>
2017-07-09 17:19 ` Jonathan Cameron
2017-07-06 22:56 ` [PATCH v2 2/9] staging: iio: tsl2x7x: add device tree documentation Brian Masney
[not found] ` <20170706225626.6716-3-masneyb-1iNe0GrtECGEi8DpZVb4nw@public.gmane.org>
2017-07-09 17:20 ` Jonathan Cameron
2017-07-10 14:15 ` Rob Herring
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).