Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp664747ybh; Wed, 11 Mar 2020 08:24:20 -0700 (PDT) X-Google-Smtp-Source: ADFU+vv5ngWJ2Ac1BEniqTj/3hAOj3ZVlddsOFQ38WmlDJuGAG4/77ghKrzyLeBfJcVgmm5ZPiqP X-Received: by 2002:a05:6808:907:: with SMTP id w7mr2288051oih.78.1583940259892; Wed, 11 Mar 2020 08:24:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583940259; cv=none; d=google.com; s=arc-20160816; b=RhmTHCfFe9aLZusxowfUv0FgeAINHUhJfeOzGZ7N2vUyo2nHJRrfOOhPvkxw0QfhBa dYrBQ97+X8uKBZtVoc3Q4bbZHkkKA8LmGialXP0KjzuAPmNz3aaYyeikNHzNV0byV1tw 06qeuJHfqsRUvOCspGs2wBecTiDqBwv7rEhPr+qfEbTQj96fs72zNrzT/vFl2YHs3VcW XqI15rm9oOq3Q1waVdus/GIznjs5rn8scLcUyO6nyB5XhUKxrxXE4DoqJ8jWl1g82kzx QGgDosqniUFd5G/uraCMqDGN69MH15HjLxy+/14NDEd6mzLujWiFzRTakHB3gNxLd14F wfrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=dOSgaIqTnELJeLccvvgbL66h/w/IxppejzZw5FKav1Y=; b=WF1Ryikc78/Q7pXuSvpoBd2K/YiG+cdHZKajsCir2l1dcv4W46x+ViorNZgNaDNRtg DzzVGcR8V7HlguX7Fz1HjHYnT3ep10HlW6En2ypTVUvw5aJlvL+VJx/E4qxE7KulRRcG nXfF4+kl3xrnSXQO/7RQxJ0326DDo2UdOO9sQDvVGQe5gNHU7IeKm8Bl1Z7HgYrKwqBM /HtrGq31DudVbS74R4VUr6GecX1xIsF5Ihtjw9aEgeyVL54zTsZe5t5zMz0zMU8SV5cM qbFVpYW/ZmnFxgzZ4ZOpsgC7rVITLcW9Mdt9xIcMkwOHX3CikRlE6Q/XEDfQVPP2anKi UP8g== 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 o2si1268558otj.312.2020.03.11.08.24.07; Wed, 11 Mar 2020 08:24:19 -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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729845AbgCKPXO (ORCPT + 99 others); Wed, 11 Mar 2020 11:23:14 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:59652 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729473AbgCKPXO (ORCPT ); Wed, 11 Mar 2020 11:23:14 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: dafna) with ESMTPSA id AA96427FD37 Subject: Re: [PATCH] dt-bindings: input: atmel_mxt_ts: convert atmel,maxtouch.txt to yaml To: Rob Herring 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 References: <20200303172533.30602-1-dafna.hirschfeld@collabora.com> <20200310211437.GA18992@bogus> From: Dafna Hirschfeld Message-ID: Date: Wed, 11 Mar 2020 16:23:08 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200310211437.GA18992@bogus> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Thanks for the review On 10.03.20 22:14, Rob Herring wrote: > 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'. but many nodes has more properties not described here so I could not set it to false. thanks, Dafna > >> + >> +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 >>