Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp502044ybl; Tue, 7 Jan 2020 09:50:00 -0800 (PST) X-Google-Smtp-Source: APXvYqyyZHDqWkb6vOURaDAJYKy9yQG4G4PM6P14cIxgrZ4mujN0qF6NbCSBMnkp0QxhOiqPmq/b X-Received: by 2002:a9d:23b5:: with SMTP id t50mr988681otb.122.1578419400584; Tue, 07 Jan 2020 09:50:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578419400; cv=none; d=google.com; s=arc-20160816; b=R9/4edwNG2gcyPfwMD8s6DdBVKL+8tO663DWCzoY3JAibPLle/S6CVT+mmtHLbsW2o 5pSk4yegOz3gb4uej5UfIwlFP1o62leX6kV1SWFofkT/wzX6eACnGKUEMMuJOLatiSnp LCga8kxXr5dgGjHaAet09sGyju712gcHZJHeTDeU78iEB8Aw3Gz64pp3CDTLyWY+UZxP O0lRZQs5cAoanz1krkR99WtDtP6G0rqM6DpqKAl5ubfed75EWmEgAvTr9OjSypYqWMxM gwL2xFltTYEAkG7jiZs/4PUmZVIHFmmSF+n8eJUdL3HufSMrXoBWMLievabrxXO+j2y8 oaCw== 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=Ah2MhH+iA1O1sEYRtxlpKCWvjr4kBJJ8U1neo+FjBVo=; b=PTilsl9iWKRQTAdVlfi8FuSZ2kMoAublN7hr/JJbTpGyM6kjkrhQGlFXX1ha8HP6Zc lM0CHgLuHHFhj3iO09auoKMK1PcGPNt2Y82mjT3nlkTSjshg7J/v6Lbwci41vMng9jp3 G6g9vg9FpuMjEfXOEM0jFX18vhlfkEbljXzJo8o9ZQ+WECoJH+Q6EMUoYHUQuBKp4eDf iSRY9LKOpoiqVy9HJFGKJDHGqP6oktDgawjU1iqbo7T9lQoHLDlkuCv1HEZyXuWdTuQ1 OJIPLgvuX4TVU++qHihz4HZCRvi1tRT2YUxdHVDgoRmclZpuPtbkFfYNgzGe++5IG+5Q IReg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HR3USh9s; 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 u12si339676oiv.13.2020.01.07.09.49.47; Tue, 07 Jan 2020 09:50:00 -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; dkim=pass header.i=@kernel.org header.s=default header.b=HR3USh9s; 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 S1728429AbgAGRsA (ORCPT + 99 others); Tue, 7 Jan 2020 12:48:00 -0500 Received: from mail.kernel.org ([198.145.29.99]:40514 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728211AbgAGRsA (ORCPT ); Tue, 7 Jan 2020 12:48:00 -0500 Received: from mail-qv1-f47.google.com (mail-qv1-f47.google.com [209.85.219.47]) (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 A8CD42087F; Tue, 7 Jan 2020 17:47:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578419278; bh=kTXZQjN173fCqmgTGewLyg98W69N0GpFT+kNBfLzEDI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=HR3USh9sYG0VnEHrfsPVmJUywzTogMyMYEoiNpLU76gdgueuJ+hqo4f+x0mdgy3ez a955S7kulz4m4Aw8Cz8VcHYLtd0Y+CG7ab1Eo59tMeOLC1h8hYoPndsAytRDkOYrwG l6KSatU+wBe8syQ3hDKKaOYpHyelebkEduEGuKo4= Received: by mail-qv1-f47.google.com with SMTP id z3so239583qvn.0; Tue, 07 Jan 2020 09:47:58 -0800 (PST) X-Gm-Message-State: APjAAAVCPKd0dHXDscERiZkbv9AS3Wcn/3TQDxN31a7UakC2nYQN6HiG PGm11aPYg8P1YqrfM1U2xxj0S1UOM7vQegqFWg== X-Received: by 2002:a0c:f68f:: with SMTP id p15mr518790qvn.79.1578419277767; Tue, 07 Jan 2020 09:47:57 -0800 (PST) MIME-Version: 1.0 References: <20200107130903.14421-1-benjamin.gaignard@st.com> <20200107130903.14421-2-benjamin.gaignard@st.com> In-Reply-To: <20200107130903.14421-2-benjamin.gaignard@st.com> From: Rob Herring Date: Tue, 7 Jan 2020 11:47:46 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] dt-bindings: touchscreen: Add touchscreen schema To: Benjamin Gaignard Cc: Dmitry Torokhov , Mark Rutland , Linux Input , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , Yannick Fertre 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 Tue, Jan 7, 2020 at 7:09 AM Benjamin Gaignard wrote: > > Add touchscreen schema for common properties > > Signed-off-by: Benjamin Gaignard > --- > .../bindings/input/touchscreen/touchscreen.yaml | 63 ++++++++++++++++++++++ > 1 file changed, 63 insertions(+) > create mode 100644 Documentation/devicetree/bindings/input/touchscreen/touchscreen.yaml Don't just add schema. Remove the old definitions. To avoid updating a bunch of references to touchscreen.txt, I just put a 'see touchscreen.yaml' in it. > diff --git a/Documentation/devicetree/bindings/input/touchscreen/touchscreen.yaml b/Documentation/devicetree/bindings/input/touchscreen/touchscreen.yaml > new file mode 100644 > index 000000000000..f6e7c73ef14e > --- /dev/null > +++ b/Documentation/devicetree/bindings/input/touchscreen/touchscreen.yaml > @@ -0,0 +1,63 @@ > +# SPDX-License-Identifier: GPL-2.0 > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/input/touchscreen/touchscreen.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Common touchscreen Bindings > + > +maintainers: > + - Dmitry Torokhov > + > +properties: > + touchscreen-min-x: > + description: minimum x coordinate reported (0 if not set) You need a type reference on a bunch of these. And "(0 if not set)" sounds like a 'default' constraint. > + > + touchscreen-min-y: > + description: minimum y coordinate reported (0 if not set) > + > + touchscreen-size-x: > + description: horizontal resolution of touchscreen (maximum x coordinate reported + 1) > + > + touchscreen-size-y: > + description: vertical resolution of touchscreen (maximum y coordinate reported + 1) I don't think it makes sense if both of these aren't present, so you need: dependencies: touchscreen-size-x: [ touchscreen-size-y ] touchscreen-size-y: [ touchscreen-size-x ] > + > + touchscreen-max-pressure: > + description: maximum reported pressure (arbitrary range dependent on the controller) > + > + touchscreen-min-pressure: > + description: minimum pressure on the touchscreen to be achieved in order for the > + touchscreen driver to report a touch event. > + > + touchscreen-fuzz-x: > + description: horizontal noise value of the absolute input device (in pixels) > + > + touchscreen-fuzz-y: > + description: vertical noise value of the absolute input device (in pixels) > + > + touchscreen-fuzz-pressure: > + description: pressure noise value of the absolute input device (arbitrary range > + dependent on the controller) > + > + touchscreen-average-samples: > + description: Number of data samples which are averaged for each read (valid values > + dependent on the controller) > + > + touchscreen-inverted-x: > + description: X axis is inverted (boolean) > + type: boolean > + > + touchscreen-inverted-y: > + description: Y axis is inverted (boolean) > + type: boolean > + > + touchscreen-swapped-x-y: > + description: X and Y axis are swapped (boolean) > + Swapping is done after inverting the axis > + type: boolean > + > + touchscreen-x-mm: > + description: horizontal length in mm of the touchscreen > + > + touchscreen-y-mm: > + description: vertical length in mm of the touchscreen Same dependencies here. Rob