Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp686849ybh; Wed, 11 Mar 2020 08:49:40 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuMfnDuMvlJ8ViqAn80qCZCgTM/6nqA3SWqRFWWbbzjjLBOU1FwK5sU6i4XJgxBys5WkuoV X-Received: by 2002:a9d:6e90:: with SMTP id a16mr2872534otr.72.1583941780183; Wed, 11 Mar 2020 08:49:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583941780; cv=none; d=google.com; s=arc-20160816; b=OFbSx4HcrFuecW2RC10apchylXIs2UKZebIHVVVoNxB5XYXDs95YZCAE5+jkRwpPz5 xuZMdYa3iy1XqEmFYH3MHXtHbFO9jQ8oY8StloHKbcQK87guKqmMrycp8OGENImBbn8Z elSlSEwh/p+h2LYiN2BUiLpKMNPOdqZJH44PG+fW40TdTsCNNBabjpfHIid3FyLiYWwU O2mFU//nj5lMQA0Qw7qvkPDfNdZvCelH/Wsv8+PAXsGieNwTfRXptxTVstjbwAngaOPa /PBtLoehGpizxVeQU8brb0deacqJsh3JyY27VHNaG6YinBHygl8IM3OgOUBtc3fRgYqw 4Mlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=NPM1N4xp8UHSSv24me+y2BUO5WYHs6lsVwKLXoXWFG8=; b=yAivwtB9CyYRuefsH6gJdFaGAUKTirxw2I2Jzo7bT553H/f5p6gEwz4JVQTpeU6gK5 u6WHR/YHZM3rUVN3TNv2vu4yzOJ7PDsSvCPS96zJiuo6h0hEQytwJCa8aki9+/8KvPNX Q5mFJ3KU9ecNrJfonXT6fqoxgG28xhMhJKzhc+3kGg0O4OTC8olSuw5eXCru2c1oalIX vFrlI/ncjgFjWFbgEMOAx4vupz1pA/IlmO8rCDZYH9tcCrhVrolWvHAxXfuZwvJNDAW5 puE4cTcT8o7RWoibaOGUcnJS8f9QqmFGlyKV0jy1352kb5H2WpiUnoAd4w0vnADFz9DF sUww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=C4dnKoqY; 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=pass (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 r129si1322399oib.123.2020.03.11.08.49.28; Wed, 11 Mar 2020 08:49:40 -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; dkim=pass header.i=@kernel.org header.s=default header.b=C4dnKoqY; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730063AbgCKPsx (ORCPT + 99 others); Wed, 11 Mar 2020 11:48:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:40460 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729887AbgCKPsw (ORCPT ); Wed, 11 Mar 2020 11:48:52 -0400 Received: from mail-qk1-f170.google.com (mail-qk1-f170.google.com [209.85.222.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B8A8120734; Wed, 11 Mar 2020 15:48:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583941731; bh=jfYGkmYlra2a5N3iuwek9u560UFwfYsQvuc4p7Zbdbc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=C4dnKoqY8DhDh9/7yt4hjN2EFwV1b8q/R9sZEOMnNN0w5BykJ2m39tux6UccgnknQ j9Ohly+rcKZTu8lyDYBtSPc2g8o8CagFhIrNG7sRDX6QiG0HUo7zTx8sXx3TlanQLF 2bn9pcSGhlTD7tjYmi7rqeDrah4YGmEa8m5swZUo= Received: by mail-qk1-f170.google.com with SMTP id q18so2492613qki.10; Wed, 11 Mar 2020 08:48:51 -0700 (PDT) X-Gm-Message-State: ANhLgQ3vmao97uNIG5cGULme00K0W5oACPN+/yxy/wJg74c7G+7OSetZ FwAwSHb9p781p+riwbO0wWTCo24cYAUZkgT/lg== X-Received: by 2002:a37:393:: with SMTP id 141mr3344508qkd.393.1583941730717; Wed, 11 Mar 2020 08:48:50 -0700 (PDT) MIME-Version: 1.0 References: <20200303172533.30602-1-dafna.hirschfeld@collabora.com> <20200310211437.GA18992@bogus> In-Reply-To: From: Rob Herring Date: Wed, 11 Mar 2020 10:48:39 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] dt-bindings: input: atmel_mxt_ts: convert atmel,maxtouch.txt to yaml To: Dafna Hirschfeld Cc: devicetree@vger.kernel.org, Nick Dyer , Dmitry Torokhov , Mark Rutland , Nicolas Ferre , Alexandre Belloni , Ludovic Desroches , Linux Input , "linux-kernel@vger.kernel.org" , Enric Balletbo i Serra , Helen Koike , Ezequiel Garcia , Collabora Kernel ML , dafna3@gmail.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 11, 2020 at 10:23 AM Dafna Hirschfeld wrote: > > 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. Like touchscreen-* properties? Then you should reference touchscreen.yaml. And add 'unevaluatedProperties: false' here. That doesn't yet do anything, but will when the tools support the lastest json-schema release. Rob