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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This adds device tree bindings for the touchscreen controller used on
the DFRobot DFR0550 touchscreen.

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

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@xxxxxxxxxxxxx>
+
+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>;
+      };
+    };
+
+...
-- 
2.17.1




[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux