Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3650840ybf; Tue, 3 Mar 2020 09:48:09 -0800 (PST) X-Google-Smtp-Source: ADFU+vu+4V61uF473Bwl96swyfxPFhbu/Qb+EA4C/h5ybzWD/7V97AJBSKxcNzxShVmNu/jJX1Ij X-Received: by 2002:aca:5f87:: with SMTP id t129mr3289622oib.36.1583257689471; Tue, 03 Mar 2020 09:48:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583257689; cv=none; d=google.com; s=arc-20160816; b=HWoNhCaz74f0iQYeqY8Fi40oDvotmBZGm0VOSbyxLM2xPRqMnr7drPb6y19lJ7klZf bpyhISehyWGm5aAO1soEbmQzwtNu0RT7b3TKfOVgCOWaDkC2OGYbZzvL7SPFGNjbNy+2 qAaDQ/+LEyY0pbtKbI1xg1EADLpDhiDRCiKZdnz/4/Bh9XIbF2mQfhyFZGYpocDb7Orc bWG2A5TyhKjpm1ICL5CsoJrG7OlPqCt16DZI9J2lOqYV2l6nCu3eM3zisAtktb8FwCbY NJBO1ALvBkJg5YFlkL7BmncDEeqZiQcsDQcMct4YLV0FL4C1U+rWpiFr7mmVnxhJZsOF eVuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=uC91yshJFHfF6+U4yGWyeJzyN5zGzpL7qAfmfIh11z8=; b=HHmtP0ftsdEmugq9DJrkG+onHSm3uGtPyv2KYbmjDt25Rk52BSYm62Q8Rjz7ngsZD3 bwITttLCMQRdCmmQv24P6mcSVOAdiGFJeNUmXuDJUyonVu+JKGz5mE/dDs93ON6w+7It T+JtWuwviQzpNckKLbuhoxn/heCa0aTkUxIXgetttQOlpFC11np0QqPHtzPDDFYiLr/O hmH44MwIK7TRf+XmQr2cV6+oaWG1F9MlT0Zkdh4iczymHNuqJOwEUZmATz3wW5LrjjUe Z+wOj9wnn4C8mj8y4UAUAGK6lZ/lndsQX2zw0WMP6pYd8ltRE3KJX0iW56bzts1mN215 BUYQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q11si6798163oti.270.2020.03.03.09.47.56; Tue, 03 Mar 2020 09:48:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730344AbgCCRZx (ORCPT + 99 others); Tue, 3 Mar 2020 12:25:53 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:59942 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728242AbgCCRZx (ORCPT ); Tue, 3 Mar 2020 12:25:53 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: dafna) with ESMTPSA id C35B928E664 From: Dafna Hirschfeld To: devicetree@vger.kernel.org Cc: nick@shmanahar.org, dmitry.torokhov@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, nicolas.ferre@microchip.com, alexandre.belloni@bootlin.com, ludovic.desroches@microchip.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, enric.balletbo@collabora.com, dafna.hirschfeld@collabora.com, helen.koike@collabora.com, ezequiel@collabora.com, kernel@collabora.com, dafna3@gmail.com Subject: [PATCH] dt-bindings: input: atmel_mxt_ts: convert atmel,maxtouch.txt to yaml Date: Tue, 3 Mar 2020 19:25:33 +0200 Message-Id: <20200303172533.30602-1-dafna.hirschfeld@collabora.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert the binding file atmel,maxtouch.txt to yaml format. Also change the file name in the MAINTAINERS file. This was tested and verified on ARM and ARM64 with: make dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/input/atmel,maxtouch.yaml make dtbs_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/input/atmel,maxtouch.yaml Signed-off-by: Dafna Hirschfeld --- .../bindings/input/atmel,maxtouch.txt | 41 ------------ .../bindings/input/atmel,maxtouch.yaml | 64 +++++++++++++++++++ MAINTAINERS | 2 +- 3 files changed, 65 insertions(+), 42 deletions(-) delete mode 100644 Documentation/devicetree/bindings/input/atmel,maxtouch.txt create mode 100644 Documentation/devicetree/bindings/input/atmel,maxtouch.yaml diff --git a/Documentation/devicetree/bindings/input/atmel,maxtouch.txt b/Documentation/devicetree/bindings/input/atmel,maxtouch.txt deleted file mode 100644 index c88919480d37..000000000000 --- a/Documentation/devicetree/bindings/input/atmel,maxtouch.txt +++ /dev/null @@ -1,41 +0,0 @@ -Atmel maXTouch touchscreen/touchpad - -Required properties: -- compatible: - atmel,maxtouch - - The following compatibles have been used in various products but are - deprecated: - atmel,qt602240_ts - atmel,atmel_mxt_ts - atmel,atmel_mxt_tp - atmel,mXT224 - -- reg: The I2C address of the device - -- interrupts: The sink for the touchpad's IRQ output - See ../interrupt-controller/interrupts.txt - -Optional properties for main touchpad device: - -- linux,gpio-keymap: When enabled, the SPT_GPIOPWN_T19 object sends messages - on GPIO bit changes. An array of up to 8 entries can be provided - indicating the Linux keycode mapped to each bit of the status byte, - starting at the LSB. Linux keycodes are defined in - . - - Note: the numbering of the GPIOs and the bit they start at varies between - maXTouch devices. You must either refer to the documentation, or - experiment to determine which bit corresponds to which input. Use - KEY_RESERVED for unused padding values. - -- reset-gpios: GPIO specifier for the touchscreen's reset pin (active low) - -Example: - - touch@4b { - compatible = "atmel,maxtouch"; - reg = <0x4b>; - interrupt-parent = <&gpio>; - interrupts = ; - }; diff --git a/Documentation/devicetree/bindings/input/atmel,maxtouch.yaml b/Documentation/devicetree/bindings/input/atmel,maxtouch.yaml new file mode 100644 index 000000000000..024dc4ded4f3 --- /dev/null +++ b/Documentation/devicetree/bindings/input/atmel,maxtouch.yaml @@ -0,0 +1,64 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/atmel,maxtouch.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Atmel maXTouch touchscreen/touchpad + +maintainers: + - Nick Dyer + +description: | + Atmel maXTouch touchscreen/touchpad + +properties: + compatible: + const: atmel,maxtouch + + reg: + description: The I2C address of the device + maxItems: 1 + + interrupts: + description: The sink for the touchpad's IRQ output + + linux,gpio-keymap: + description: + When enabled, the SPT_GPIOPWN_T19 object sends messages + on GPIO bit changes. An array of up to 8 entries can be provided + indicating the Linux keycode mapped to each bit of the status byte, + starting at the LSB. Linux keycodes are defined in + . + Note, the numbering of the GPIOs and the bit they start at varies between + maXTouch devices. You must either refer to the documentation, or + experiment to determine which bit corresponds to which input. Use + KEY_RESERVED for unused padding values. + $ref: /schemas/types.yaml#/definitions/uint32-array + maxItems: 8 + + reset-gpios: + description: GPIO specifier for the touchscreen's reset pin (active low) + maxItems: 1 + +required: + - compatible + - reg + - interrupts + +additionalProperties: true + +examples: + - | + #include + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + touch@4b { + compatible = "atmel,maxtouch"; + reg = <0x4b>; + interrupt-parent = <&gpio>; + interrupts = ; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 46fdb834d1fb..d553aa315734 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2877,7 +2877,7 @@ ATMEL MAXTOUCH DRIVER M: Nick Dyer T: git git://github.com/ndyer/linux.git S: Maintained -F: Documentation/devicetree/bindings/input/atmel,maxtouch.txt +F: Documentation/devicetree/bindings/input/atmel,maxtouch.yaml F: drivers/input/touchscreen/atmel_mxt_ts.c ATMEL WIRELESS DRIVER -- 2.17.1