Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3714431ybd; Tue, 25 Jun 2019 07:16:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqxN9H0DyIxhcp3nfpnjWZVsNT2bQRWuN5elsEdQRKvcAUyv+PpdBq2fdthovhZAUo2XA3po X-Received: by 2002:a65:55ca:: with SMTP id k10mr3132791pgs.14.1561472209463; Tue, 25 Jun 2019 07:16:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561472209; cv=none; d=google.com; s=arc-20160816; b=jczd4aftDEKDhw0eoTQkT/FtOK8V9UxZ2SOKfpZwC2bvXeQGKxJKpJWyKPy2G66ASD ApVuwE3K00Ul5s1a3RcQ8uZOebnWXN85qItOYpTkRUnzrwEOPLejYTy7OR017ijrsmvs AbvzNQxT+uvzjGXTMeyV6dxweWBbxf2vwSujsUIEfCDQbZgLtVwt4VmOy/A1LZA2TOxE oJM3T6yavmWI32lTXi0kM600roJ7Z+0iU2TYFLnCBilT2fe7bTTzvod1Q2iFckP3HKqo 34K4uWtVRjbk/k5LVpvX/pOsQyw7ObeWOEO/thr8yHmZYqaq1aS1L6inOMskqYah6ih+ Kb0Q== 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=p3ME3Ft5Z+B4uv5rl3MNkathapFtth481RQKsnUz0fk=; b=Fb93k9lLrjX5OJINcooAi98GBOW/eoAMuhEkCcxQvYEZUWbDftd9c+Bz6law53LthY P0RupzbdjiS/N8QZVzUul1Ut06PFOj9BpBcbwz/5w84EfF925Qx7yo8V4EwurkkA/NZ3 DE63P+wGX4e21iw99lV6Bl5KoeuXqeIkHdjWeGShN0GylrSQobJ0qaIgYZvjXyZbdjk+ 5hgwJYob+i51RXMUIF/vmSlhpRozxeFKtZhCq05xcPc1QzXZowV6U4Y50mdBH2KLJ6vw Ys7mzpnCdF6rluoG5stAQ9i8edYxdCGR3bNR1XNhBvNgXaZkJp/zjGwpcLqpLQkYkUcq cCyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=V8WtBeSo; 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 e19si14136651pfi.91.2019.06.25.07.16.33; Tue, 25 Jun 2019 07:16:49 -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=V8WtBeSo; 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 S1729599AbfFYOPc (ORCPT + 99 others); Tue, 25 Jun 2019 10:15:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:42262 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728252AbfFYOPc (ORCPT ); Tue, 25 Jun 2019 10:15:32 -0400 Received: from mail-qk1-f179.google.com (mail-qk1-f179.google.com [209.85.222.179]) (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 971C021655; Tue, 25 Jun 2019 14:15:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561472130; bh=CSPPQvXxxLJHjaf7mkYaItL0XCi+kuQqJ8aFZvaSQm4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=V8WtBeSoOtEfNzciSHEA3eF3ej1jkECegr5DZ2OYjOzIPhWsp2Qh/VZPOSVHXnl1s l4cBB1coaSY9tOZx5+pqs2pK4cFlxPurht3JDscmUVkCZchTb663MaJM8pc/6EROaj vN1AoNoU+XADmmdcbUoLpBqIrw9UguN76bgTpxog= Received: by mail-qk1-f179.google.com with SMTP id l128so12698492qke.2; Tue, 25 Jun 2019 07:15:30 -0700 (PDT) X-Gm-Message-State: APjAAAUoz84m8BghnQeugmYDYcfAq58XWwR2kwTQ+Ohc74JHOqsIPPtW FRwyZMEwTNmX+nfMK5ynecfZYPIOfCiZM89OGA== X-Received: by 2002:a37:a48e:: with SMTP id n136mr55002727qke.223.1561472129808; Tue, 25 Jun 2019 07:15:29 -0700 (PDT) MIME-Version: 1.0 References: <20190624215649.8939-1-robh@kernel.org> <20190624215649.8939-7-robh@kernel.org> <20190625075542.u5kzex4cbrcss5ga@flea> In-Reply-To: <20190625075542.u5kzex4cbrcss5ga@flea> From: Rob Herring Date: Tue, 25 Jun 2019 08:15:18 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 06/15] dt-bindings: display: Convert dlc,dlc0700yzg-1 panel to DT schema To: Maxime Ripard Cc: dri-devel , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , Thierry Reding , Sam Ravnborg , Laurent Pinchart , Philipp Zabel 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, Jun 25, 2019 at 1:55 AM Maxime Ripard wrote: > > Hi, > > On Mon, Jun 24, 2019 at 03:56:40PM -0600, Rob Herring wrote: > > Convert the dlc,dlc0700yzg-1 panel binding to DT schema. > > > > Cc: Philipp Zabel > > Cc: Thierry Reding > > Cc: Sam Ravnborg > > Cc: Maxime Ripard > > Cc: Laurent Pinchart > > Cc: dri-devel@lists.freedesktop.org > > Signed-off-by: Rob Herring > > --- > > .../display/panel/dlc,dlc0700yzg-1.txt | 13 --------- > > .../display/panel/dlc,dlc0700yzg-1.yaml | 28 +++++++++++++++++++ > > 2 files changed, 28 insertions(+), 13 deletions(-) > > delete mode 100644 Documentation/devicetree/bindings/display/panel/dlc,dlc0700yzg-1.txt > > create mode 100644 Documentation/devicetree/bindings/display/panel/dlc,dlc0700yzg-1.yaml > > > > diff --git a/Documentation/devicetree/bindings/display/panel/dlc,dlc0700yzg-1.txt b/Documentation/devicetree/bindings/display/panel/dlc,dlc0700yzg-1.txt > > deleted file mode 100644 > > index bf06bb025b08..000000000000 > > --- a/Documentation/devicetree/bindings/display/panel/dlc,dlc0700yzg-1.txt > > +++ /dev/null > > @@ -1,13 +0,0 @@ > > -DLC Display Co. DLC0700YZG-1 7.0" WSVGA TFT LCD panel > > - > > -Required properties: > > -- compatible: should be "dlc,dlc0700yzg-1" > > -- power-supply: See simple-panel.txt > > - > > -Optional properties: > > -- reset-gpios: See panel-common.txt > > -- enable-gpios: See simple-panel.txt > > -- backlight: See simple-panel.txt > > - > > -This binding is compatible with the simple-panel binding, which is specified > > -in simple-panel.txt in this directory. > > diff --git a/Documentation/devicetree/bindings/display/panel/dlc,dlc0700yzg-1.yaml b/Documentation/devicetree/bindings/display/panel/dlc,dlc0700yzg-1.yaml > > new file mode 100644 > > index 000000000000..1b0b63d46f3e > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/display/panel/dlc,dlc0700yzg-1.yaml > > @@ -0,0 +1,28 @@ > > +# SPDX-License-Identifier: GPL-2.0 > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/display/panel/dlc,dlc0700yzg-1.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: DLC Display Co. DLC0700YZG-1 7.0" WSVGA TFT LCD panel > > + > > +maintainers: > > + - Philipp Zabel > > + - Thierry Reding > > + > > +allOf: > > + - $ref: panel-common.yaml# > > + > > +properties: > > + compatible: > > + const: dlc,dlc0700yzg-1 > > + > > + reset-gpios: true > > + enable-gpios: true > > + backlight: true > > Do we need to list them? > > Since we don't have additionalItems, it doesn't really change anything > since it will be validated by panel-common. I've gone back and forth on it. I think we need to express what properties from the common properties apply for a particular panel. I've been requiring panel bindings to be explicit here rather than just say "uses the simple-panel binding." For example, if 'power-supply' is not listed, does the panel have a single supply or multiple supplies that haven't haven't been considered? > Either way, it should be consistent between your patches, and the > previous patches in this series didn't list all the properties in the > binding. Indeed. Rob