Re: [PATCH 1/2] dt-bindings: touchscreen: convert elan,ektf2127 to json-schema

From: Krzysztof Kozlowski
Date: Fri May 03 2024 - 03:07:49 EST


On 02/05/2024 20:58, Andreas Kemnade wrote:
> Convert EKTF2127 infrared touchscreen controller binding to DT schema
> and add ektf2232 compatible.

This should be two commits.

>
> Signed-off-by: Andreas Kemnade <andreas@xxxxxxxxxxxx>
> ---
> .../bindings/input/touchscreen/ektf2127.txt | 25 --------
> .../input/touchscreen/elan,ektf2127.yaml | 59 +++++++++++++++++++
> 2 files changed, 59 insertions(+), 25 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/input/touchscreen/ektf2127.txt
> create mode 100644 Documentation/devicetree/bindings/input/touchscreen/elan,ektf2127.yaml
>

..

> +allOf:
> + - $ref: touchscreen.yaml#
> +
> +properties:
> + compatible:
> + enum:
> + - elan,ektf2127
> + - elan,ektf2132
> + - elan,ektf2232
> +
> + reg:
> + maxItems: 1
> +
> + interrupts:
> + maxItems: 1
> +
> + power-gpios:
> + maxItems: 1
> +
> +required:
> + - compatible
> + - reg
> + - interrupts
> + - power-gpios
> +
> +unevaluatedProperties: false
> +
> +

Just one blank line.

> +examples:
> + - |
> + #include <dt-bindings/gpio/gpio.h>
> + #include <dt-bindings/interrupt-controller/irq.h>
> +


Best regards,
Krzysztof