Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp359514ybl; Wed, 22 Jan 2020 23:25:58 -0800 (PST) X-Google-Smtp-Source: APXvYqytJe4TjLM1ZNlH2ak6yZfGyjKXCkMugHM/1/b4hmp5tCXvQO9JbJsMlYwuDR0bkFEEls4L X-Received: by 2002:aca:3d7:: with SMTP id 206mr9876754oid.98.1579764358663; Wed, 22 Jan 2020 23:25:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579764358; cv=none; d=google.com; s=arc-20160816; b=yxSrrclKsruaL/PPQqpeaIeD+t+DxvUZTodG0SCQJ9h17ohrk2ZcccKDVtipr5P6Ys plkteJ3TE50B2QW57EDHv27zBlp/fshLAfzpe8hfpGi4oXFSLFh880z7eXmndlaA5QMK McobexLKjeXAwq90f4vRgAYDh5tznTDIKi1y+w0BscpHS55CiNF3d87GbwLKSQyBWc9J k87h6C9dZiOyGhhscQV2j/ndTJAPWO5zkiHrT+GEwgUrzzLeiDMorbDdNbFPaYnz0cen jLIyKJ8XNSS3RD3L2fiq5/LLsIo8rz9mx3R9fggd1C574p9mT8ZE4thpvlCd37Yt+j3S 6+xQ== 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=cTsnwOMluxKekCLeb9W8eEJHVKK2ACgLRWThZCKi/Bc=; b=UlaRzIymwsSQY38smazVb4l+1hKLBr3ey89GJ5elWaeVRlLcbscmgzWG17NODmDfqV tUUGvy2vsjh5pY720dkHd/wjv9YZfnLzrnhSUwYyU2jS294WRF4wLb6BjNOLJBwgiYkA FBF9ErGs/EvcI1TkTYCdzfG7Ea6Occ44WliyeN3xFgF5wfG6IoPGDYmpdZuYAb+srj9w kaO8yKZc+QmvlUnf9UVySUyFVPwqnKAdHdbxACylZffYfIPK6XoBIvzawK4okV9kKxap 2rqaRuysweOf9OZzM1bOffl7feA6b+B7dXMgsJrNcvOK5zvzbaptPdIq0KjiKZLy21NM k2pQ== 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 d21si478230oic.168.2020.01.22.23.25.46; Wed, 22 Jan 2020 23:25:58 -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 S1726442AbgAWHYi (ORCPT + 99 others); Thu, 23 Jan 2020 02:24:38 -0500 Received: from asavdk4.altibox.net ([109.247.116.15]:34668 "EHLO asavdk4.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725785AbgAWHYi (ORCPT ); Thu, 23 Jan 2020 02:24:38 -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 asavdk4.altibox.net (Postfix) with ESMTPS id CDE0680487; Thu, 23 Jan 2020 08:24:30 +0100 (CET) Date: Thu, 23 Jan 2020 08:24:29 +0100 From: Sam Ravnborg To: David Lechner , Geert Uytterhoeven Cc: Mark Rutland , devicetree@vger.kernel.org, Geert Uytterhoeven , David Airlie , Kieran Bingham , linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Rob Herring , Chris Brandt , dri-devel@lists.freedesktop.org Subject: Re: [PATCH] dt-bindings: restrict properties for sitronix,st7735r Message-ID: <20200123072429.GA11848@ravnborg.org> References: <20200115124548.3951-1-geert+renesas@glider.be> <20200115124548.3951-2-geert+renesas@glider.be> <20200120190249.GA9619@ravnborg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200120190249.GA9619@ravnborg.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=VcLZwmh9 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=hiXH8xowJhRCH_7nMvoA:9 a=7Zwj6sZBwVKJAoWSPKxL6X1jA+E=:19 a=CjuIK1q_8ugA:10 a=E9Po1WZjFZOl8hwRPBS3:22 a=PrHl9onO2p7xFKlKy1af:22 a=AjGcO6oz07-iQ99wixmX:22 a=Vxmtnl_E_bksehYqCbjh:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 20, 2020 at 08:02:49PM +0100, Sam Ravnborg wrote: > 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. Hi David, Geert. Any feedback on this patch? Sam > > 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 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel