linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] iio: light: bh1750: convert bindings to yaml
@ 2019-09-16 19:00 Tomasz Duszynski
  2019-09-16 19:00 ` [PATCH 1/2] dt-bindings: " Tomasz Duszynski
  2019-09-16 19:00 ` [PATCH 2/2] MAINTAINERS: add entry for ROHM BH1750 driver Tomasz Duszynski
  0 siblings, 2 replies; 7+ messages in thread
From: Tomasz Duszynski @ 2019-09-16 19:00 UTC (permalink / raw)
  To: linux-iio; +Cc: linux-kernel, devicetree, jic23, robh+dt, Tomasz Duszynski

Convert ROHM BH1750 ambient light sensor bindings to yaml
format and while at it add myself as a driver maintainer.

Tomasz Duszynski (2):
  dt-bindings: iio: light: bh1750: convert bindings to yaml
  MAINTAINERS: add entry for ROHM BH1750 driver

 .../devicetree/bindings/iio/light/bh1750.txt  | 18 --------
 .../devicetree/bindings/iio/light/bh1750.yaml | 43 +++++++++++++++++++
 MAINTAINERS                                   |  6 +++
 3 files changed, 49 insertions(+), 18 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/iio/light/bh1750.txt
 create mode 100644 Documentation/devicetree/bindings/iio/light/bh1750.yaml

--
2.23.0


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

* [PATCH 1/2] dt-bindings: iio: light: bh1750: convert bindings to yaml
  2019-09-16 19:00 [PATCH 0/2] iio: light: bh1750: convert bindings to yaml Tomasz Duszynski
@ 2019-09-16 19:00 ` Tomasz Duszynski
  2019-09-17 14:17   ` Rob Herring
  2019-09-16 19:00 ` [PATCH 2/2] MAINTAINERS: add entry for ROHM BH1750 driver Tomasz Duszynski
  1 sibling, 1 reply; 7+ messages in thread
From: Tomasz Duszynski @ 2019-09-16 19:00 UTC (permalink / raw)
  To: linux-iio; +Cc: linux-kernel, devicetree, jic23, robh+dt, Tomasz Duszynski

Convert existing device tree bindings to yaml.

Signed-off-by: Tomasz Duszynski <tduszyns@gmail.com>
---
 .../devicetree/bindings/iio/light/bh1750.txt  | 18 --------
 .../devicetree/bindings/iio/light/bh1750.yaml | 43 +++++++++++++++++++
 2 files changed, 43 insertions(+), 18 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/iio/light/bh1750.txt
 create mode 100644 Documentation/devicetree/bindings/iio/light/bh1750.yaml

diff --git a/Documentation/devicetree/bindings/iio/light/bh1750.txt b/Documentation/devicetree/bindings/iio/light/bh1750.txt
deleted file mode 100644
index 1e7685797d7a..000000000000
--- a/Documentation/devicetree/bindings/iio/light/bh1750.txt
+++ /dev/null
@@ -1,18 +0,0 @@
-ROHM BH1750 - ALS, Ambient light sensor
-
-Required properties:
-
-- compatible: Must be one of:
-    "rohm,bh1710"
-    "rohm,bh1715"
-    "rohm,bh1721"
-    "rohm,bh1750"
-    "rohm,bh1751"
-- reg: the I2C address of the sensor
-
-Example:
-
-light-sensor@23 {
-	compatible = "rohm,bh1750";
-	reg = <0x23>;
-};
diff --git a/Documentation/devicetree/bindings/iio/light/bh1750.yaml b/Documentation/devicetree/bindings/iio/light/bh1750.yaml
new file mode 100644
index 000000000000..1cc60d7ecfa0
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/light/bh1750.yaml
@@ -0,0 +1,43 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/light/bh1750.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: ROHM BH1750 ambient light sensor
+
+maintainers:
+  - Tomasz Duszynski <tduszyns@gmail.com>
+
+description: |
+  Ambient light sensor with an i2c interface.
+
+properties:
+  compatible:
+    enum:
+      - rohm,bh1710
+      - rohm,bh1715
+      - rohm,bh1721
+      - rohm,bh1750
+      - rohm,bh1751
+
+  reg:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+
+examples:
+  - |
+    i2c {
+      #address-cells = <1>;
+      #size-cells = <0>;
+
+      light-sensor@23 {
+        compatible = "rohm,bh1750";
+        reg = <0x23>;
+      };
+    };
+
+...
-- 
2.23.0


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

* [PATCH 2/2] MAINTAINERS: add entry for ROHM BH1750 driver
  2019-09-16 19:00 [PATCH 0/2] iio: light: bh1750: convert bindings to yaml Tomasz Duszynski
  2019-09-16 19:00 ` [PATCH 1/2] dt-bindings: " Tomasz Duszynski
@ 2019-09-16 19:00 ` Tomasz Duszynski
  2019-10-05 12:22   ` Jonathan Cameron
  1 sibling, 1 reply; 7+ messages in thread
From: Tomasz Duszynski @ 2019-09-16 19:00 UTC (permalink / raw)
  To: linux-iio; +Cc: linux-kernel, devicetree, jic23, robh+dt, Tomasz Duszynski

Add myself as a ROHM BH1750 ambient light sensor driver maintainer.

Signed-off-by: Tomasz Duszynski <tduszyns@gmail.com>
---
 MAINTAINERS | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/MAINTAINERS b/MAINTAINERS
index f0c03740b9fb..928059c5cd49 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -13792,6 +13792,12 @@ L:	linux-serial@vger.kernel.org
 S:	Odd Fixes
 F:	drivers/tty/serial/rp2.*
 
+ROHM BH1750 AMBIENT LIGHT SENSOR DRIVER
+M:	Tomasz Duszynski <tduszyns@gmail.com>
+S:	Maintained
+F:	drivers/iio/light/bh1750.c
+F:	Documentation/devicetree/bindings/iio/light/bh1750.yaml
+
 ROHM MULTIFUNCTION BD9571MWV-M PMIC DEVICE DRIVERS
 M:	Marek Vasut <marek.vasut+renesas@gmail.com>
 L:	linux-kernel@vger.kernel.org
-- 
2.23.0


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

* Re: [PATCH 1/2] dt-bindings: iio: light: bh1750: convert bindings to yaml
  2019-09-16 19:00 ` [PATCH 1/2] dt-bindings: " Tomasz Duszynski
@ 2019-09-17 14:17   ` Rob Herring
  2019-10-05 12:17     ` Jonathan Cameron
  2019-10-05 12:21     ` Jonathan Cameron
  0 siblings, 2 replies; 7+ messages in thread
From: Rob Herring @ 2019-09-17 14:17 UTC (permalink / raw)
  To: Tomasz Duszynski
  Cc: open list:IIO SUBSYSTEM AND DRIVERS, linux-kernel, devicetree,
	Jonathan Cameron

On Mon, Sep 16, 2019 at 2:01 PM Tomasz Duszynski <tduszyns@gmail.com> wrote:
>
> Convert existing device tree bindings to yaml.
>
> Signed-off-by: Tomasz Duszynski <tduszyns@gmail.com>
> ---
>  .../devicetree/bindings/iio/light/bh1750.txt  | 18 --------
>  .../devicetree/bindings/iio/light/bh1750.yaml | 43 +++++++++++++++++++
>  2 files changed, 43 insertions(+), 18 deletions(-)
>  delete mode 100644 Documentation/devicetree/bindings/iio/light/bh1750.txt
>  create mode 100644 Documentation/devicetree/bindings/iio/light/bh1750.yaml

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

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

* Re: [PATCH 1/2] dt-bindings: iio: light: bh1750: convert bindings to yaml
  2019-09-17 14:17   ` Rob Herring
@ 2019-10-05 12:17     ` Jonathan Cameron
  2019-10-05 12:21     ` Jonathan Cameron
  1 sibling, 0 replies; 7+ messages in thread
From: Jonathan Cameron @ 2019-10-05 12:17 UTC (permalink / raw)
  To: Rob Herring
  Cc: Tomasz Duszynski, open list:IIO SUBSYSTEM AND DRIVERS,
	linux-kernel, devicetree

On Tue, 17 Sep 2019 09:17:40 -0500
Rob Herring <robh+dt@kernel.org> wrote:

> On Mon, Sep 16, 2019 at 2:01 PM Tomasz Duszynski <tduszyns@gmail.com> wrote:
> >
> > Convert existing device tree bindings to yaml.
> >
> > Signed-off-by: Tomasz Duszynski <tduszyns@gmail.com>
> > ---
> >  .../devicetree/bindings/iio/light/bh1750.txt  | 18 --------
> >  .../devicetree/bindings/iio/light/bh1750.yaml | 43 +++++++++++++++++++
> >  2 files changed, 43 insertions(+), 18 deletions(-)
> >  delete mode 100644 Documentation/devicetree/bindings/iio/light/bh1750.txt
> >  create mode 100644 Documentation/devicetree/bindings/iio/light/bh1750.yaml  
> 
> Reviewed-by: Rob Herring <robh@kernel.org>
Applied to the togreg branch of iio.git and pushed out as testing.

Thanks,

Jonathan



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

* Re: [PATCH 1/2] dt-bindings: iio: light: bh1750: convert bindings to yaml
  2019-09-17 14:17   ` Rob Herring
  2019-10-05 12:17     ` Jonathan Cameron
@ 2019-10-05 12:21     ` Jonathan Cameron
  1 sibling, 0 replies; 7+ messages in thread
From: Jonathan Cameron @ 2019-10-05 12:21 UTC (permalink / raw)
  To: Rob Herring
  Cc: Tomasz Duszynski, open list:IIO SUBSYSTEM AND DRIVERS,
	linux-kernel, devicetree

On Tue, 17 Sep 2019 09:17:40 -0500
Rob Herring <robh+dt@kernel.org> wrote:

> On Mon, Sep 16, 2019 at 2:01 PM Tomasz Duszynski <tduszyns@gmail.com> wrote:
> >
> > Convert existing device tree bindings to yaml.
> >
> > Signed-off-by: Tomasz Duszynski <tduszyns@gmail.com>
> > ---
> >  .../devicetree/bindings/iio/light/bh1750.txt  | 18 --------
> >  .../devicetree/bindings/iio/light/bh1750.yaml | 43 +++++++++++++++++++
> >  2 files changed, 43 insertions(+), 18 deletions(-)
> >  delete mode 100644 Documentation/devicetree/bindings/iio/light/bh1750.txt
> >  create mode 100644 Documentation/devicetree/bindings/iio/light/bh1750.yaml  
> 
> Reviewed-by: Rob Herring <robh@kernel.org>

Applied to the togreg branch of iio.git and pushed out as testing.

Thanks,

Jonathan

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

* Re: [PATCH 2/2] MAINTAINERS: add entry for ROHM BH1750 driver
  2019-09-16 19:00 ` [PATCH 2/2] MAINTAINERS: add entry for ROHM BH1750 driver Tomasz Duszynski
@ 2019-10-05 12:22   ` Jonathan Cameron
  0 siblings, 0 replies; 7+ messages in thread
From: Jonathan Cameron @ 2019-10-05 12:22 UTC (permalink / raw)
  To: Tomasz Duszynski; +Cc: linux-iio, linux-kernel, devicetree, robh+dt

On Mon, 16 Sep 2019 21:00:24 +0200
Tomasz Duszynski <tduszyns@gmail.com> wrote:

> Add myself as a ROHM BH1750 ambient light sensor driver maintainer.
> 
> Signed-off-by: Tomasz Duszynski <tduszyns@gmail.com>
Applied.

Thanks,

Jonathan

> ---
>  MAINTAINERS | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/MAINTAINERS b/MAINTAINERS
> index f0c03740b9fb..928059c5cd49 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -13792,6 +13792,12 @@ L:	linux-serial@vger.kernel.org
>  S:	Odd Fixes
>  F:	drivers/tty/serial/rp2.*
>  
> +ROHM BH1750 AMBIENT LIGHT SENSOR DRIVER
> +M:	Tomasz Duszynski <tduszyns@gmail.com>
> +S:	Maintained
> +F:	drivers/iio/light/bh1750.c
> +F:	Documentation/devicetree/bindings/iio/light/bh1750.yaml
> +
>  ROHM MULTIFUNCTION BD9571MWV-M PMIC DEVICE DRIVERS
>  M:	Marek Vasut <marek.vasut+renesas@gmail.com>
>  L:	linux-kernel@vger.kernel.org


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

end of thread, other threads:[~2019-10-05 12:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-16 19:00 [PATCH 0/2] iio: light: bh1750: convert bindings to yaml Tomasz Duszynski
2019-09-16 19:00 ` [PATCH 1/2] dt-bindings: " Tomasz Duszynski
2019-09-17 14:17   ` Rob Herring
2019-10-05 12:17     ` Jonathan Cameron
2019-10-05 12:21     ` Jonathan Cameron
2019-09-16 19:00 ` [PATCH 2/2] MAINTAINERS: add entry for ROHM BH1750 driver Tomasz Duszynski
2019-10-05 12:22   ` 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).