All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] dt-bindings: input: touchscreen: elants_i2c: convert to YAML
@ 2020-04-23 17:32 David Heidelberg
  2020-04-23 17:32 ` [PATCH 1/1] " David Heidelberg
  0 siblings, 1 reply; 4+ messages in thread
From: David Heidelberg @ 2020-04-23 17:32 UTC (permalink / raw)
  To: Dmitry Torokhov, Dmitry Osipenko, Henrik Rydberg, James Chen,
	Johnny Chuang, Rob Herring, Scott Liu, Michał Mirosław
  Cc: David Heidelberg, linux-input, linux-kernel, devicetree

Depends elants_i2c series from Michal [1].

[1] https://patchwork.kernel.org/project/linux-input/list/?series=270071

David Heidelberg (1):
  dt-bindings: input: touchscreen: elants_i2c: convert to YAML

 .../devicetree/bindings/input/elants_i2c.txt  | 34 ---------
 .../input/touchscreen/elan,elants_i2c.yaml    | 69 +++++++++++++++++++
 2 files changed, 69 insertions(+), 34 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/input/elants_i2c.txt
 create mode 100644 Documentation/devicetree/bindings/input/touchscreen/elan,elants_i2c.yaml

-- 
2.26.2


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

* [PATCH 1/1] dt-bindings: input: touchscreen: elants_i2c: convert to YAML
  2020-04-23 17:32 [PATCH 0/1] dt-bindings: input: touchscreen: elants_i2c: convert to YAML David Heidelberg
@ 2020-04-23 17:32 ` David Heidelberg
  2020-05-11 20:37   ` Rob Herring
  0 siblings, 1 reply; 4+ messages in thread
From: David Heidelberg @ 2020-04-23 17:32 UTC (permalink / raw)
  To: Dmitry Torokhov, Dmitry Osipenko, Henrik Rydberg, James Chen,
	Johnny Chuang, Rob Herring, Scott Liu, Michał Mirosław
  Cc: David Heidelberg, linux-input, linux-kernel, devicetree

Convert elants_i2c.txt DT binding to YAML and put into correct directory.

Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: David Heidelberg <david@ixit.cz>
---
 .../devicetree/bindings/input/elants_i2c.txt  | 34 ---------
 .../input/touchscreen/elan,elants_i2c.yaml    | 69 +++++++++++++++++++
 2 files changed, 69 insertions(+), 34 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/input/elants_i2c.txt
 create mode 100644 Documentation/devicetree/bindings/input/touchscreen/elan,elants_i2c.yaml

diff --git a/Documentation/devicetree/bindings/input/elants_i2c.txt b/Documentation/devicetree/bindings/input/elants_i2c.txt
deleted file mode 100644
index 5edac8be0802..000000000000
--- a/Documentation/devicetree/bindings/input/elants_i2c.txt
+++ /dev/null
@@ -1,34 +0,0 @@
-Elantech I2C Touchscreen
-
-Required properties:
-- compatible: must be "elan,ekth3500".
-- reg: I2C address of the chip.
-- interrupts: interrupt to which the chip is connected (see interrupt
-  binding[0]).
-
-Optional properties:
-- wakeup-source: touchscreen can be used as a wakeup source.
-- pinctrl-names: should be "default" (see pinctrl binding [1]).
-- pinctrl-0: a phandle pointing to the pin settings for the device (see
-  pinctrl binding [1]).
-- reset-gpios: reset gpio the chip is connected to.
-- vcc33-supply: a phandle for the regulator supplying 3.3V power.
-- vccio-supply: a phandle for the regulator supplying IO power.
-
-[0]: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
-[1]: Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
-
-Example:
-	&i2c1 {
-		/* ... */
-
-		touchscreen@10 {
-			compatible = "elan,ekth3500";
-			reg = <0x10>;
-			interrupt-parent = <&gpio4>;
-			interrupts = <0x0 IRQ_TYPE_EDGE_FALLING>;
-			wakeup-source;
-		};
-
-		/* ... */
-	};
diff --git a/Documentation/devicetree/bindings/input/touchscreen/elan,elants_i2c.yaml b/Documentation/devicetree/bindings/input/touchscreen/elan,elants_i2c.yaml
new file mode 100644
index 000000000000..a792d6377b1d
--- /dev/null
+++ b/Documentation/devicetree/bindings/input/touchscreen/elan,elants_i2c.yaml
@@ -0,0 +1,69 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: "http://devicetree.org/schemas/input/touchscreen/elan,elants_i2c.yaml#"
+$schema: "http://devicetree.org/meta-schemas/core.yaml#"
+
+title: Elantech I2C Touchscreen
+
+maintainers:
+  - David Heidelberg <david@ixit.cz>
+
+allOf:
+  - $ref: touchscreen.yaml#
+
+properties:
+  compatible:
+    enum:
+      - elan,ektf3624
+      - elan,ekth3500
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  wakeup-source:
+    type: boolean
+    description: touchscreen can be used as a wakeup source.
+
+  reset-gpios:
+    description: reset gpio the chip is connected to.
+
+  vcc33-supply:
+    description: a phandle for the regulator supplying 3.3V power.
+
+  vccio-supply:
+    description: a phandle for the regulator supplying IO power.
+
+  touchscreen-inverted-x: true
+  touchscreen-inverted-y: true
+  touchscreen-size-x: true
+  touchscreen-size-y: true
+  touchscreen-swapped-x-y: true
+
+additionalProperties: false
+
+required:
+  - compatible
+  - reg
+  - interrupts
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/irq.h>
+
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        touchscreen@10 {
+            compatible = "elan,ekth3500";
+            reg = <0x10>;
+
+            interrupt-parent = <&gpio4>;
+            interrupts = <0x0 IRQ_TYPE_EDGE_FALLING>;
+            wakeup-source;
+        };
+    };
-- 
2.26.2


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

* Re: [PATCH 1/1] dt-bindings: input: touchscreen: elants_i2c: convert to YAML
  2020-04-23 17:32 ` [PATCH 1/1] " David Heidelberg
@ 2020-05-11 20:37   ` Rob Herring
  2020-05-11 21:51     ` Dmitry Torokhov
  0 siblings, 1 reply; 4+ messages in thread
From: Rob Herring @ 2020-05-11 20:37 UTC (permalink / raw)
  To: David Heidelberg
  Cc: Scott Liu, Johnny Chuang, Michał Mirosław, linux-input,
	linux-kernel, Henrik Rydberg, Dmitry Osipenko, Rob Herring,
	James Chen, Dmitry Torokhov, devicetree

On Thu, 23 Apr 2020 19:32:53 +0200, David Heidelberg wrote:
> Convert elants_i2c.txt DT binding to YAML and put into correct directory.
> 
> Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
> Signed-off-by: David Heidelberg <david@ixit.cz>
> ---
>  .../devicetree/bindings/input/elants_i2c.txt  | 34 ---------
>  .../input/touchscreen/elan,elants_i2c.yaml    | 69 +++++++++++++++++++
>  2 files changed, 69 insertions(+), 34 deletions(-)
>  delete mode 100644 Documentation/devicetree/bindings/input/elants_i2c.txt
>  create mode 100644 Documentation/devicetree/bindings/input/touchscreen/elan,elants_i2c.yaml
> 

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

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

* Re: [PATCH 1/1] dt-bindings: input: touchscreen: elants_i2c: convert to YAML
  2020-05-11 20:37   ` Rob Herring
@ 2020-05-11 21:51     ` Dmitry Torokhov
  0 siblings, 0 replies; 4+ messages in thread
From: Dmitry Torokhov @ 2020-05-11 21:51 UTC (permalink / raw)
  To: Rob Herring
  Cc: David Heidelberg, Scott Liu, Johnny Chuang,
	Michał Mirosław, linux-input, linux-kernel,
	Henrik Rydberg, Dmitry Osipenko, Rob Herring, James Chen,
	devicetree

On Mon, May 11, 2020 at 03:37:09PM -0500, Rob Herring wrote:
> On Thu, 23 Apr 2020 19:32:53 +0200, David Heidelberg wrote:
> > Convert elants_i2c.txt DT binding to YAML and put into correct directory.
> > 
> > Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
> > Signed-off-by: David Heidelberg <david@ixit.cz>
> > ---
> >  .../devicetree/bindings/input/elants_i2c.txt  | 34 ---------
> >  .../input/touchscreen/elan,elants_i2c.yaml    | 69 +++++++++++++++++++
> >  2 files changed, 69 insertions(+), 34 deletions(-)
> >  delete mode 100644 Documentation/devicetree/bindings/input/elants_i2c.txt
> >  create mode 100644 Documentation/devicetree/bindings/input/touchscreen/elan,elants_i2c.yaml
> > 
> 
> Reviewed-by: Rob Herring <robh@kernel.org>

Applied, thank you.

-- 
Dmitry

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

end of thread, other threads:[~2020-05-11 21:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-23 17:32 [PATCH 0/1] dt-bindings: input: touchscreen: elants_i2c: convert to YAML David Heidelberg
2020-04-23 17:32 ` [PATCH 1/1] " David Heidelberg
2020-05-11 20:37   ` Rob Herring
2020-05-11 21:51     ` Dmitry Torokhov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.