Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1081222ybh; Tue, 10 Mar 2020 14:16:02 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsQmFbO87IXINt6XESgA78Ph10+UM4DPJgkC8by8Al5YOcKrtJSvgTTYvtKODWLxkOBiESV X-Received: by 2002:aca:3c45:: with SMTP id j66mr2709604oia.62.1583874962015; Tue, 10 Mar 2020 14:16:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583874962; cv=none; d=google.com; s=arc-20160816; b=wJRBbK2Nt22bbjBf15JFLsJ7uRpc3KTLbADkm6jvEkQuEugoIYBazwVo2e3VwU8Zn4 IdP0/ZYp9oMpet41tKoZdg6p6p8imMyPR8gF44yaCfXU/che4J691yTo/kiZseq7OSi8 8GQPijrXuWBUUjzcrr/WdE3GXWeHV4DmEyWMXhco/Oy/LOymuzSEyt/4rODR9KJwkKKI DQ4pbV3r7iWjvdn6leztEP+ZUTPFztCaWcL5qeBaOjoFKRxKUksQFnYGvOPpqgpKpEoK zHbnpsBstRi50/9ZZZajvqU7Q0BR4HQo/lqRQQulyDRBygoVnmG19o8RZusgMMDkWTyz VPgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=JkykpUPy0GzuJ7bhjumSgmxVwtFhWeK9dyIcRUc31eA=; b=TqGdQH11ROK0dFayGqhvKNMVMiWSf42+/c5JHYZPXDzm3DZfNoT1c5AiOg66S2YyN6 XqvuGKY1LcWQjJpcnuW3Gg3u7DYOJYST4TkMjVbKFu4i3WFuKhe0yk6EI+etri/75wb+ 8bthxg6vrRr8v277dD7mXpn4qoDkP4uTlgymWQQbrEvuMxM3iBbIF3Ll+KrVmHXkMyf5 uazyVgTvvqr+wFA3EoQLewxwwZNXbVptUYDXxtxDO+K+6VhVFbXZTXtNAcUzWnM92r6f 5KHPOs6EOP4bZDJCTI26kvRl2rNBHAlZ58Cr5eeZK+/7LBx4gOEcjrmWKbopb/5rvwjX Og0A== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f23si8893505oti.283.2020.03.10.14.15.49; Tue, 10 Mar 2020 14:16:01 -0700 (PDT) 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727535AbgCJVOk (ORCPT + 99 others); Tue, 10 Mar 2020 17:14:40 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:32846 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726100AbgCJVOk (ORCPT ); Tue, 10 Mar 2020 17:14:40 -0400 Received: by mail-ot1-f65.google.com with SMTP id g15so8564655otr.0; Tue, 10 Mar 2020 14:14:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=JkykpUPy0GzuJ7bhjumSgmxVwtFhWeK9dyIcRUc31eA=; b=LofeS0NirTHwx4p684SUKQftOm7j2JBSq3uDlv7MR1XY1P54t2a5BjeNOrgzudy3du +tg5Ulhvd59BH56JDKvM2o49HUP2UJ/QqkIHR4FRuujIEPtDW7O7OSD0yNqXOPu2eErf cQ5jjTJ19G/Zl8vI7YSluS+aD6nWDcfDcLBFLUgihgou6VcjImLL9YqWHkjHn0RxXjOO QotaAK4CZH9eL+0sTbProV/BRjCDUXwPap27vZ/8bug42TQ6MpofhfXwtsIa5ERz/hLf PnpcNJb7kPvSvrJXOKKMcrDup15WZ0wyIpkMk+J/eKvLMpDksPcRYaJTzeboJc8K76E+ rOwQ== X-Gm-Message-State: ANhLgQ3P8437SYEHjzKCsfpNtewKEXGJrfRck/jhpwHS4a6bmCScGzdj NX27OdylkwU+U2Uq4c5BLQ== X-Received: by 2002:a9d:4b0c:: with SMTP id q12mr19351298otf.77.1583874879261; Tue, 10 Mar 2020 14:14:39 -0700 (PDT) Received: from rob-hp-laptop (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id n6sm1646493otk.75.2020.03.10.14.14.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Mar 2020 14:14:38 -0700 (PDT) Received: (nullmailer pid 2800 invoked by uid 1000); Tue, 10 Mar 2020 21:14:37 -0000 Date: Tue, 10 Mar 2020 16:14:37 -0500 From: Rob Herring To: Dafna Hirschfeld Cc: devicetree@vger.kernel.org, nick@shmanahar.org, dmitry.torokhov@gmail.com, 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, helen.koike@collabora.com, ezequiel@collabora.com, kernel@collabora.com, dafna3@gmail.com Subject: Re: [PATCH] dt-bindings: input: atmel_mxt_ts: convert atmel,maxtouch.txt to yaml Message-ID: <20200310211437.GA18992@bogus> References: <20200303172533.30602-1-dafna.hirschfeld@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200303172533.30602-1-dafna.hirschfeld@collabora.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 03, 2020 at 07:25:33PM +0200, Dafna Hirschfeld wrote: > 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 How many? Needs 'maxItems: 1'? You can drop the description. > + > + 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 That's the default and we generally want this to be 'false'. > + > +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 >