diff mbox series

[RFC,2/3] dt-bindings: touchscreen: Add dfr0550 bindings

Message ID 20211216233557.9393-3-tharvey@gateworks.com (mailing list archive)
State New, archived
Headers show
Series input: add DFROBOT touchscreen controller | expand

Commit Message

Tim Harvey Dec. 16, 2021, 11:35 p.m. UTC
This adds device tree bindings for the touchscreen controller used on
the DFRobot DFR0550 touchscreen.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
---
 .../bindings/input/touchscreen/dfr0550.yaml   | 53 +++++++++++++++++++
 1 file changed, 53 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/input/touchscreen/dfr0550.yaml
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/input/touchscreen/dfr0550.yaml b/Documentation/devicetree/bindings/input/touchscreen/dfr0550.yaml
new file mode 100644
index 000000000000..77373211b4d8
--- /dev/null
+++ b/Documentation/devicetree/bindings/input/touchscreen/dfr0550.yaml
@@ -0,0 +1,53 @@ 
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/input/touchscreen/dfr0550.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: DFRobot DFR0550 Touch Controller Bindings
+
+maintainers:
+  - Tim Harvey <tharvey@gateworks.com>
+
+allOf:
+  - $ref: touchscreen.yaml#
+
+properties:
+  compatible:
+    const: dfr,dfr0550
+
+  reg:
+    maxItems: 1
+
+  poll-interval:
+    description: Poll interval time in milliseconds.
+    $ref: /schemas/types.yaml#/definitions/uint32
+
+  touchscreen-size-x: true
+  touchscreen-size-y: true
+  touchscreen-fuzz-x: true
+  touchscreen-fuzz-y: true
+  touchscreen-inverted-x: true
+  touchscreen-inverted-y: true
+  touchscreen-swapped-x-y: true
+
+additionalProperties: false
+
+required:
+  - compatible
+  - reg
+  - poll-interval
+
+examples:
+  - |
+    i2c {
+      #address-cells = <1>;
+      #size-cells = <0>;
+
+      touchscreen@38 {
+        compatible = "dfr,dfr0550";
+        reg = <0x38>;
+      };
+    };
+
+...