]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
dt-bindings: HID: i2c-hid: elan: add Elan eKTH5015M
authorJohan Hovold <johan+linaro@kernel.org>
Tue, 7 May 2024 14:48:16 +0000 (16:48 +0200)
committerBenjamin Tissoires <bentiss@kernel.org>
Fri, 7 Jun 2024 09:16:55 +0000 (11:16 +0200)
Add a compatible string for the Elan eKTH5015M touch controller.

Judging from the current binding and commit bd3cba00dcc6 ("HID: i2c-hid:
elan: Add support for Elan eKTH6915 i2c-hid touchscreens"), eKTH5015M
appears to be compatible with eKTH6915. Notably the power-on sequence is
the same.

While at it, drop a redundant label from the example.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20240507144821.12275-3-johan+linaro@kernel.org
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Documentation/devicetree/bindings/input/elan,ekth6915.yaml

index c1fcf8c90c24dbdac617944f92779e70d877e204..be84f7ed0abc9d9800092e02296057105f92b856 100644 (file)
@@ -18,8 +18,12 @@ allOf:
 
 properties:
   compatible:
-    enum:
-      - elan,ekth6915
+    oneOf:
+      - items:
+          - enum:
+              - elan,ekth5015m
+          - const: elan,ekth6915
+      - const: elan,ekth6915
 
   reg:
     const: 0x10
@@ -57,8 +61,8 @@ examples:
       #address-cells = <1>;
       #size-cells = <0>;
 
-      ap_ts: touchscreen@10 {
-        compatible = "elan,ekth6915";
+      touchscreen@10 {
+        compatible = "elan,ekth5015m", "elan,ekth6915";
         reg = <0x10>;
 
         interrupt-parent = <&tlmm>;