Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp727602ybl; Thu, 23 Jan 2020 06:44:25 -0800 (PST) X-Google-Smtp-Source: APXvYqy90IfqiIhPOgrveCNiQv+cv9Zvy5VslJFyk1MiAZ1O5unbr2E8eSgf8eSJM1kQx2kckcDT X-Received: by 2002:a9d:6a47:: with SMTP id h7mr12236000otn.244.1579790664965; Thu, 23 Jan 2020 06:44:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579790664; cv=none; d=google.com; s=arc-20160816; b=NGGI5iXxddNMX0Bm0nP6fu+An4TF0Vp3x6rvD+kvpE/qfnnYE6XIrM12Qw1utnVfEP XCY0QTOCEMe7iyGkfQ95OskzbRMsfss20iqIEbkm/AEJnT1OQVnsjqyTO17QGf0SBycK 6AxKQTowM8VcxJGMjtskJ2gSWxiKbFxMcycQOZPU4Vh08wXnDB+22u2Ky3uOUFh6+b3Q ex9AtJhtmibv41NjCQHOx41ndFSQM27MPJGAoj1jsXv0fWWHb2TfmJYEbpzioN7bMUtR X5215v8o6JgLOrSdv42+nbhvPRg2zgPBiNbcCgjHuGH6WcffbCf5CtOGvVUOxC3kPX7Y lTWQ== 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=XyyEYmd6rzPdE4SjzNvt9zLoM4bcWk4jZl+F6inRdac=; b=qeVZ5ACtaT37ZD48qW20Ac7SwyYjc8Z2IuOzxgk4NA0yW4klrLi+PSd1d1Um9u5uSq 7xdMZoJTf+4hih+/PUFSVIc2HN9cr90+trV0rTeu0ctAW6hb989sB6TKWhusAMm7DYie IKF8wQEWbm+HJY0GL4DnK+gCYF00oEpsCfvA4OH7f5p8PPfz6iq2XFv1vqOlhc6tXEXG UufzHALb86pAvVwVxrpfh3U+WBeuwXl/PXeIOnK//D5cCqGHeHIyZiKQrw+QAGDyrPRD PuKdpoL8BB+e97ZmI04i5Q8imHTbo1PY4NZmQDEQKxQl21psc4Og7Z6aPzqxifV6tcqY gnvQ== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v5si866174oix.197.2020.01.23.06.44.13; Thu, 23 Jan 2020 06:44:24 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728988AbgAWOl6 (ORCPT + 99 others); Thu, 23 Jan 2020 09:41:58 -0500 Received: from mail-oi1-f194.google.com ([209.85.167.194]:33050 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726771AbgAWOl5 (ORCPT ); Thu, 23 Jan 2020 09:41:57 -0500 Received: by mail-oi1-f194.google.com with SMTP id q81so3127466oig.0; Thu, 23 Jan 2020 06:41:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=XyyEYmd6rzPdE4SjzNvt9zLoM4bcWk4jZl+F6inRdac=; b=F/1+xwwP/Y/0+1RrHcYRcVgMnQohCYtrTwnvPU+cmHRezE4bR0TZ9xlL7wjSo9st75 rwrgILMWbx4eNcfOOIXbmlHhZ2J81PszH+UC9Nqyp8gEy0jQm3Uq2VhZMxF6DQ3wFg9m Q3WarnfP42ZPq13cZeQ76/CYaFnl5XXLyINPYBrn6owZT5zXXk5gHVVACZ1rrz7hJFC0 BVvjQofzM4aozLzsQ91bmr0K8E+H9RrbEdZu5c7MEw7baJZiDjt0+ATlzHe+jy4AU7z9 pXmcH6f9tgIIAQsrRjis2pAdKWjO0Q9H2AsaanfKWELI6DGO/eBUON5C1OVwDw/8DiWq uF+w== X-Gm-Message-State: APjAAAWYOVEh3meDRPVso2PO9HhQzjNlIWgCesdfDY3EIuQWFg9SWmK9 6ljRyJ2ax3/OjtsjgMgO9w== X-Received: by 2002:aca:2118:: with SMTP id 24mr10597649oiz.28.1579790517079; Thu, 23 Jan 2020 06:41:57 -0800 (PST) Received: from rob-hp-laptop (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id k17sm846309otl.45.2020.01.23.06.41.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2020 06:41:56 -0800 (PST) Received: (nullmailer pid 8536 invoked by uid 1000); Thu, 23 Jan 2020 14:41:55 -0000 Date: Thu, 23 Jan 2020 08:41:55 -0600 From: Rob Herring To: Sam Ravnborg Cc: David Lechner , Geert Uytterhoeven , Noralf =?iso-8859-1?Q?Tr=F8nnes?= , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , 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 Subject: Re: [PATCH] dt-bindings: restrict properties for sitronix,st7735r Message-ID: <20200123144155.GA29553@bogus> 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) 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. > > 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(+) Acked-by: Rob Herring