linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] dt-bindings: Add vendor prefix for sensortek
@ 2019-07-03 18:05 Luca Weiss
  2019-07-03 18:05 ` [PATCH 2/3] dt-bindings: iio: light: add stk33xx Luca Weiss
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Luca Weiss @ 2019-07-03 18:05 UTC (permalink / raw)
  To: linux-iio
  Cc: Jonathan Cameron, Hartmut Knaack, Lars-Peter Clausen,
	Peter Meerwald-Stadler, Rob Herring, Mark Rutland, Luca Weiss,
	Maxime Ripard, Mauro Carvalho Chehab, Hans Verkuil,
	Fabrizio Castro, Angus Ainslie (Purism),
	Vivek Unune, Hannes Schmelzer, Greg Kroah-Hartman,
	Thomas Gleixner, Allison Randal, Martijn Braam, devicetree,
	linux-kernel, ~martijnbraam/pmos-upstream, Chris Paterson,
	Michael Tretter

Sensortek Technology Corp. produces Proximity Sensors with ALS and
Accelerometers.

Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
---
This patch series depends on "iio: light: stk3310: Add support for
stk3335", that's curerntly in linux-next.

 Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml
index 342bb23e0a73..d197c9609ea7 100644
--- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
+++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
@@ -813,6 +813,8 @@ patternProperties:
     description: Semtech Corporation
   "^sensirion,.*":
     description: Sensirion AG
+  "^sensortek,.*":
+    description: Sensortek Technology Corporation
   "^sff,.*":
     description: Small Form Factor Committee
   "^sgd,.*":
-- 
2.22.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 2/3] dt-bindings: iio: light: add stk33xx
  2019-07-03 18:05 [PATCH 1/3] dt-bindings: Add vendor prefix for sensortek Luca Weiss
@ 2019-07-03 18:05 ` Luca Weiss
  2019-07-05 16:23   ` Rob Herring
  2019-07-03 18:05 ` [PATCH 3/3] iio: light: stk3310: Add device tree support Luca Weiss
  2019-07-14 15:22 ` [PATCH 1/3] dt-bindings: Add vendor prefix for sensortek Jonathan Cameron
  2 siblings, 1 reply; 7+ messages in thread
From: Luca Weiss @ 2019-07-03 18:05 UTC (permalink / raw)
  To: linux-iio
  Cc: Jonathan Cameron, Hartmut Knaack, Lars-Peter Clausen,
	Peter Meerwald-Stadler, Rob Herring, Mark Rutland, Luca Weiss,
	Maxime Ripard, Mauro Carvalho Chehab, Hans Verkuil,
	Fabrizio Castro, Angus Ainslie (Purism),
	Vivek Unune, Hannes Schmelzer, Greg Kroah-Hartman,
	Thomas Gleixner, Allison Randal, Martijn Braam, devicetree,
	linux-kernel, ~martijnbraam/pmos-upstream

Add binding documentation for the stk33xx family of ambient light
sensors.

Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
---
 .../bindings/iio/light/stk33xx.yaml           | 49 +++++++++++++++++++
 1 file changed, 49 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/light/stk33xx.yaml

diff --git a/Documentation/devicetree/bindings/iio/light/stk33xx.yaml b/Documentation/devicetree/bindings/iio/light/stk33xx.yaml
new file mode 100644
index 000000000000..aae8a6d627c9
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/light/stk33xx.yaml
@@ -0,0 +1,49 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/light/stk33xx.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: |
+  Sensortek STK33xx I2C Ambient Light and Proximity sensor
+
+maintainers:
+  - Jonathan Cameron <jic23@kernel.org>
+
+description: |
+  Ambient light and proximity sensor over an i2c interface.
+
+properties:
+  compatible:
+    enum:
+      - sensortek,stk3310
+      - sensortek,stk3311
+      - sensortek,stk3335
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/irq.h>
+
+    i2c {
+
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        stk3310@48 {
+                compatible = "sensortek,stk3310";
+                reg = <0x48>;
+                interrupt-parent = <&gpio1>;
+                interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
+        };
+    };
+...
-- 
2.22.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 3/3] iio: light: stk3310: Add device tree support
  2019-07-03 18:05 [PATCH 1/3] dt-bindings: Add vendor prefix for sensortek Luca Weiss
  2019-07-03 18:05 ` [PATCH 2/3] dt-bindings: iio: light: add stk33xx Luca Weiss
@ 2019-07-03 18:05 ` Luca Weiss
  2019-07-14 15:23   ` Jonathan Cameron
  2019-07-14 15:22 ` [PATCH 1/3] dt-bindings: Add vendor prefix for sensortek Jonathan Cameron
  2 siblings, 1 reply; 7+ messages in thread
From: Luca Weiss @ 2019-07-03 18:05 UTC (permalink / raw)
  To: linux-iio
  Cc: Jonathan Cameron, Hartmut Knaack, Lars-Peter Clausen,
	Peter Meerwald-Stadler, Rob Herring, Mark Rutland, Luca Weiss,
	Maxime Ripard, Mauro Carvalho Chehab, Hans Verkuil,
	Fabrizio Castro, Angus Ainslie (Purism),
	Vivek Unune, Hannes Schmelzer, Greg Kroah-Hartman,
	Thomas Gleixner, Allison Randal, Martijn Braam, devicetree,
	linux-kernel, ~martijnbraam/pmos-upstream, Kate Stewart

Add device tree support for the stk33xx family of ambient light sensors.

Tested-by: Martijn Braam <martijn@brixit.nl>
Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
---
 drivers/iio/light/stk3310.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/drivers/iio/light/stk3310.c b/drivers/iio/light/stk3310.c
index b955183edfe8..185c24a75ae6 100644
--- a/drivers/iio/light/stk3310.c
+++ b/drivers/iio/light/stk3310.c
@@ -679,9 +679,18 @@ static const struct acpi_device_id stk3310_acpi_id[] = {
 
 MODULE_DEVICE_TABLE(acpi, stk3310_acpi_id);
 
+static const struct of_device_id stk3310_of_match[] = {
+	{ .compatible = "sensortek,stk3310", },
+	{ .compatible = "sensortek,stk3311", },
+	{ .compatible = "sensortek,stk3335", },
+	{}
+};
+MODULE_DEVICE_TABLE(of, stk3310_of_match);
+
 static struct i2c_driver stk3310_driver = {
 	.driver = {
 		.name = "stk3310",
+		.of_match_table = stk3310_of_match,
 		.pm = STK3310_PM_OPS,
 		.acpi_match_table = ACPI_PTR(stk3310_acpi_id),
 	},
-- 
2.22.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH 2/3] dt-bindings: iio: light: add stk33xx
  2019-07-03 18:05 ` [PATCH 2/3] dt-bindings: iio: light: add stk33xx Luca Weiss
@ 2019-07-05 16:23   ` Rob Herring
  2019-07-14 15:21     ` Jonathan Cameron
  0 siblings, 1 reply; 7+ messages in thread
From: Rob Herring @ 2019-07-05 16:23 UTC (permalink / raw)
  To: Luca Weiss
  Cc: open list:IIO SUBSYSTEM AND DRIVERS, Jonathan Cameron,
	Hartmut Knaack, Lars-Peter Clausen, Peter Meerwald-Stadler,
	Mark Rutland, Maxime Ripard, Mauro Carvalho Chehab, Hans Verkuil,
	Fabrizio Castro, Angus Ainslie (Purism),
	Vivek Unune, Hannes Schmelzer, Greg Kroah-Hartman,
	Thomas Gleixner, Allison Randal, Martijn Braam, devicetree,
	linux-kernel, ~martijnbraam/pmos-upstream

On Wed, Jul 3, 2019 at 12:06 PM Luca Weiss <luca@z3ntu.xyz> wrote:
>
> Add binding documentation for the stk33xx family of ambient light
> sensors.
>
> Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
> ---
>  .../bindings/iio/light/stk33xx.yaml           | 49 +++++++++++++++++++
>  1 file changed, 49 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/iio/light/stk33xx.yaml

Reviewed-by: Rob Herring <robh@kernel.org>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 2/3] dt-bindings: iio: light: add stk33xx
  2019-07-05 16:23   ` Rob Herring
@ 2019-07-14 15:21     ` Jonathan Cameron
  0 siblings, 0 replies; 7+ messages in thread
From: Jonathan Cameron @ 2019-07-14 15:21 UTC (permalink / raw)
  To: Rob Herring
  Cc: Luca Weiss, open list:IIO SUBSYSTEM AND DRIVERS, Hartmut Knaack,
	Lars-Peter Clausen, Peter Meerwald-Stadler, Mark Rutland,
	Maxime Ripard, Mauro Carvalho Chehab, Hans Verkuil,
	Fabrizio Castro, Angus Ainslie (Purism),
	Vivek Unune, Hannes Schmelzer, Greg Kroah-Hartman,
	Thomas Gleixner, Allison Randal, Martijn Braam, devicetree,
	linux-kernel, ~martijnbraam/pmos-upstream

On Fri, 5 Jul 2019 10:23:11 -0600
Rob Herring <robh+dt@kernel.org> wrote:

> On Wed, Jul 3, 2019 at 12:06 PM Luca Weiss <luca@z3ntu.xyz> wrote:
> >
> > Add binding documentation for the stk33xx family of ambient light
> > sensors.
> >
> > Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
> > ---
> >  .../bindings/iio/light/stk33xx.yaml           | 49 +++++++++++++++++++
> >  1 file changed, 49 insertions(+)
> >  create mode 100644 Documentation/devicetree/bindings/iio/light/stk33xx.yaml  
> 
> Reviewed-by: Rob Herring <robh@kernel.org>

Hmm. Not totally sure it makes sense to list me as the maintainer,
but I don't suppose it really matters as I think the author has moved
onto other things and it'll fall back on me.

Anyone who wants to pick up this one is most welcome!

Applied to the togreg branch of iio.git and pushed out as testing for the
autobuilders to play with it.

Thanks,

Jonathan

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/3] dt-bindings: Add vendor prefix for sensortek
  2019-07-03 18:05 [PATCH 1/3] dt-bindings: Add vendor prefix for sensortek Luca Weiss
  2019-07-03 18:05 ` [PATCH 2/3] dt-bindings: iio: light: add stk33xx Luca Weiss
  2019-07-03 18:05 ` [PATCH 3/3] iio: light: stk3310: Add device tree support Luca Weiss
@ 2019-07-14 15:22 ` Jonathan Cameron
  2 siblings, 0 replies; 7+ messages in thread
From: Jonathan Cameron @ 2019-07-14 15:22 UTC (permalink / raw)
  To: Luca Weiss
  Cc: linux-iio, Hartmut Knaack, Lars-Peter Clausen,
	Peter Meerwald-Stadler, Rob Herring, Mark Rutland, Maxime Ripard,
	Mauro Carvalho Chehab, Hans Verkuil, Fabrizio Castro,
	Angus Ainslie (Purism),
	Vivek Unune, Hannes Schmelzer, Greg Kroah-Hartman,
	Thomas Gleixner, Allison Randal, Martijn Braam, devicetree,
	linux-kernel, ~martijnbraam/pmos-upstream, Chris Paterson,
	Michael Tretter

On Wed,  3 Jul 2019 20:05:57 +0200
Luca Weiss <luca@z3ntu.xyz> wrote:

> Sensortek Technology Corp. produces Proximity Sensors with ALS and
> Accelerometers.
> 
> Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Applied to the togreg branch of iio.git and pushed out as testing
for the autobuilders to play with it.

Thanks,

Jonathan

> ---
> This patch series depends on "iio: light: stk3310: Add support for
> stk3335", that's curerntly in linux-next.
> 
>  Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml
> index 342bb23e0a73..d197c9609ea7 100644
> --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
> +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
> @@ -813,6 +813,8 @@ patternProperties:
>      description: Semtech Corporation
>    "^sensirion,.*":
>      description: Sensirion AG
> +  "^sensortek,.*":
> +    description: Sensortek Technology Corporation
>    "^sff,.*":
>      description: Small Form Factor Committee
>    "^sgd,.*":


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 3/3] iio: light: stk3310: Add device tree support
  2019-07-03 18:05 ` [PATCH 3/3] iio: light: stk3310: Add device tree support Luca Weiss
@ 2019-07-14 15:23   ` Jonathan Cameron
  0 siblings, 0 replies; 7+ messages in thread
From: Jonathan Cameron @ 2019-07-14 15:23 UTC (permalink / raw)
  To: Luca Weiss
  Cc: linux-iio, Hartmut Knaack, Lars-Peter Clausen,
	Peter Meerwald-Stadler, Rob Herring, Mark Rutland, Maxime Ripard,
	Mauro Carvalho Chehab, Hans Verkuil, Fabrizio Castro,
	Angus Ainslie (Purism),
	Vivek Unune, Hannes Schmelzer, Greg Kroah-Hartman,
	Thomas Gleixner, Allison Randal, Martijn Braam, devicetree,
	linux-kernel, ~martijnbraam/pmos-upstream, Kate Stewart

On Wed,  3 Jul 2019 20:05:59 +0200
Luca Weiss <luca@z3ntu.xyz> wrote:

> Add device tree support for the stk33xx family of ambient light sensors.
> 
> Tested-by: Martijn Braam <martijn@brixit.nl>
> Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Applied,

Thanks,

Jonathan

> ---
>  drivers/iio/light/stk3310.c | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/drivers/iio/light/stk3310.c b/drivers/iio/light/stk3310.c
> index b955183edfe8..185c24a75ae6 100644
> --- a/drivers/iio/light/stk3310.c
> +++ b/drivers/iio/light/stk3310.c
> @@ -679,9 +679,18 @@ static const struct acpi_device_id stk3310_acpi_id[] = {
>  
>  MODULE_DEVICE_TABLE(acpi, stk3310_acpi_id);
>  
> +static const struct of_device_id stk3310_of_match[] = {
> +	{ .compatible = "sensortek,stk3310", },
> +	{ .compatible = "sensortek,stk3311", },
> +	{ .compatible = "sensortek,stk3335", },
> +	{}
> +};
> +MODULE_DEVICE_TABLE(of, stk3310_of_match);
> +
>  static struct i2c_driver stk3310_driver = {
>  	.driver = {
>  		.name = "stk3310",
> +		.of_match_table = stk3310_of_match,
>  		.pm = STK3310_PM_OPS,
>  		.acpi_match_table = ACPI_PTR(stk3310_acpi_id),
>  	},


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-07-14 15:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-03 18:05 [PATCH 1/3] dt-bindings: Add vendor prefix for sensortek Luca Weiss
2019-07-03 18:05 ` [PATCH 2/3] dt-bindings: iio: light: add stk33xx Luca Weiss
2019-07-05 16:23   ` Rob Herring
2019-07-14 15:21     ` Jonathan Cameron
2019-07-03 18:05 ` [PATCH 3/3] iio: light: stk3310: Add device tree support Luca Weiss
2019-07-14 15:23   ` Jonathan Cameron
2019-07-14 15:22 ` [PATCH 1/3] dt-bindings: Add vendor prefix for sensortek Jonathan Cameron

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).