Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2876020ybl; Mon, 20 Jan 2020 11:05:00 -0800 (PST) X-Google-Smtp-Source: APXvYqz7zo6HO21X1XdhIwtkoOOHzBiWIMou6orSJBjgJLM88OBrquAA7rkyzZQCjs7g5VzBMrt8 X-Received: by 2002:a05:6808:8d5:: with SMTP id k21mr223041oij.121.1579547100487; Mon, 20 Jan 2020 11:05:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579547100; cv=none; d=google.com; s=arc-20160816; b=upPccflwRAM8P9XwWqEUMnDj3j5OfzWmVHB1utdQiLXBSu6br5QvgSk0TwIZD6QYaH ZygMNX+UTb4ei2ourD2DKZS6JF7h/DWROO4SXNZLt2yeuH6uU9I7P4ZBFbFghdlQW7fF YZEh/lEhEiVI9g2bYjGoav/hGlbYERdZehC3emhWHQyvR2eoAyMOLlRobr9iNzoU1UU5 ICLoyEcsFOA04INqSBtV3Q3Blc9jPlPXI4tXJy5lfY4uBs2Ms/MmR2fHwVylm5NWvt0v 3ST9oz7ewSNhOS1u/H+UfE7WKIrYp8s+cmHUW62qco6+tQHXzKlWDvzbVJrP6n4c8vbt jdQA== 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=PyYyOZDJZIis0anx+jG+VnoE84FWDboEA1ksnsCRSJw=; b=oqL+h4lL9MszIwzC5YeEE7LmJGElKW+wfgQsQ722f7qTMD2TffDiFkJfAdAXAG0bMm Hn8ZrGISYvLjAUljN99b6nNg7U1xS0hg6i9AvIcCdfnqs2TX9RQ0i0NY+K3CdZu9CVTq fJNQvAUQz0gWbhKlav+9rM0drLz1o+8S5mX+Oz0D+Fn9nJKROjnrKn4ehQg8/cN5+y6c lupXmnCpZdzV++oaTCzYDDZsrPGMMINUgr7Ldy812ek50f4K8UjFjQvqIWrgDJVhj5iZ odC3i/5jtvay7k3x4Y9XFTTzifKE8msIFXKKhf8L2Nsd/Bjpz+OEDlZZ0WNuv4VHrGym eXKw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h203si19096744oif.3.2020.01.20.11.04.37; Mon, 20 Jan 2020 11:05: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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726954AbgATTC5 (ORCPT + 99 others); Mon, 20 Jan 2020 14:02:57 -0500 Received: from asavdk3.altibox.net ([109.247.116.14]:41884 "EHLO asavdk3.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726112AbgATTC4 (ORCPT ); Mon, 20 Jan 2020 14:02:56 -0500 Received: from ravnborg.org (unknown [158.248.194.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by asavdk3.altibox.net (Postfix) with ESMTPS id 3032120023; Mon, 20 Jan 2020 20:02:50 +0100 (CET) Date: Mon, 20 Jan 2020 20:02:49 +0100 From: Sam Ravnborg To: David Lechner Cc: Geert Uytterhoeven , Noralf =?iso-8859-1?Q?Tr=F8nnes?= , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Rob Herring , Mark Rutland , Chris Brandt , Kieran Bingham , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring Subject: [PATCH] dt-bindings: restrict properties for sitronix,st7735r Message-ID: <20200120190249.GA9619@ravnborg.org> References: <20200115124548.3951-1-geert+renesas@glider.be> <20200115124548.3951-2-geert+renesas@glider.be> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=eMA9ckh1 c=1 sm=1 tr=0 a=UWs3HLbX/2nnQ3s7vZ42gw==:117 a=UWs3HLbX/2nnQ3s7vZ42gw==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=7gkXJVJtAAAA:8 a=WZHNqt2aAAAA:8 a=VwQbUJbxAAAA:8 a=e5mUnYsNAAAA:8 a=UoRE_DPNZI_mX2jt1NQA:9 a=7Zwj6sZBwVKJAoWSPKxL6X1jA+E=:19 a=CjuIK1q_8ugA:10 a=E9Po1WZjFZOl8hwRPBS3:22 a=PrHl9onO2p7xFKlKy1af:22 a=AjGcO6oz07-iQ99wixmX:22 a=Vxmtnl_E_bksehYqCbjh:22 a=pHzHmUro8NiASowvMSCR:22 a=n87TN5wuljxrRezIQYnT:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi David. > > +allOf: > > + - $ref: panel/panel-common.yaml# > > not all of these properties are applicable. > > > +required: > > + - compatible > > + - reg > > + - dc-gpios > > + - reset-gpios > > Missing optional rotation and backlight properties. Thanks for catching this. I have written a little .yaml files since I applied this - and learned a little more of the syntax. See attached patch for my attempt to fix this. Please review. Sam From 6b54fb0a071c0732cd4bd5b88f456b5a85bcf4f2 Mon Sep 17 00:00:00 2001 From: Sam Ravnborg Date: Mon, 20 Jan 2020 19:55:04 +0100 Subject: [PATCH] dt-bindings: restrict properties for sitronix,st7735r David Lechner noticed (paraphrased): - not all properties from panel-common are applicable. - missing optional rotation and backlight properties Fix this by listing all allowed properties, and do not allow other properties. Fixes: abdd9e3705c8 ("dt-bindings: display: sitronix,st7735r: Convert to DT schema") Reported-by: David Lechner Signed-off-by: Sam Ravnborg Cc: Geert Uytterhoeven Cc: David Lechner Cc: Rob Herring Cc: dri-devel@lists.freedesktop.org --- .../devicetree/bindings/display/sitronix,st7735r.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/display/sitronix,st7735r.yaml b/Documentation/devicetree/bindings/display/sitronix,st7735r.yaml index 8892d79e6e10..0cebaaefda03 100644 --- a/Documentation/devicetree/bindings/display/sitronix,st7735r.yaml +++ b/Documentation/devicetree/bindings/display/sitronix,st7735r.yaml @@ -39,12 +39,19 @@ properties: maxItems: 1 description: Display data/command selection (D/CX) + backlight: true + reg: true + reset-gpios: true + rotation: true + required: - compatible - reg - dc-gpios - reset-gpios +additionalProperties: false + examples: - | #include -- 2.20.1