Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2420781ybi; Thu, 20 Jun 2019 15:01:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqys+9Z5bB2Tk28CRxZKeb730nZtQx3YCv+BqjHgRCy/CwEGM/DcMC5RgXUlVWsa1GStMKoU X-Received: by 2002:a17:90b:d82:: with SMTP id bg2mr1901326pjb.87.1561068117185; Thu, 20 Jun 2019 15:01:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561068117; cv=none; d=google.com; s=arc-20160816; b=evllUKhGouZKp2R6MI7jR2KFs2+bkR9VKaZS9EyDLyXdGxVcwZCV5ZsXqs52mLhfex 1LpW96RaTgN3j3Thrn3eb3Z+hKsHFV55X7iuOc2nwtqy1GBJA4sa1TS6QaNKxSjR0f1Y kC1CAGC4hBefsGwDfwSgUydC6LpcUV2Fi0DhihoZbqzPR3vhXpp/K6fCc9V1dYMRmU0f gUs7wgeBsNMmFFjhE9DssvkU7ECHO27wNeUZj6IkpEyR2Tq+/jMZ+IxvZ7fuVVLx/V3R 96AuRBy6hD/OLOtx6ALi6rjezvhz+H/tLwt7u9LjzhOTjQeHKBgV9AjN94aRU52+fcmI 5DaQ== 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=adMpDFehfexKYQGWoRwyhvKPv1nGr49+PWfM+qCiVPw=; b=JTy7ODhxW9c9Fw4bbe2ZrBXNI+eIQ7aAQm2vwpO08qvdeQ/xchRKzd6shmkrnmBP1X m19L8so2NGH8RH8354qaZXddCn12q9MmPtBQVkSfzBk39cPPqDPCzC10wzgHckNKgXPd HUmuWjOZiJDHn3Lfe6L+6XoXikxzD5BhuSq1mqt3h8sqKT2mlAXZnkSaHyw6PE11yfZ8 zmtKnf3Ip9egITcL+1hAJuO5yg035ATYPiH+3mAH8nSD0TVrd30aofPeVjLXEaHPwIhh S4Et+VWeiu+9jlwk4+FLqYbJr+OP4wkPXEDi7AxR9mlBT6pifcLybJzCK6OALgWoYvWR aT3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=r2ObBBEX; 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 i4si580465pfa.218.2019.06.20.15.01.41; Thu, 20 Jun 2019 15:01:57 -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=r2ObBBEX; 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 S1726373AbfFTWBd (ORCPT + 99 others); Thu, 20 Jun 2019 18:01:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:58250 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726027AbfFTWBd (ORCPT ); Thu, 20 Jun 2019 18:01:33 -0400 Received: from mail-qk1-f177.google.com (mail-qk1-f177.google.com [209.85.222.177]) (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 C31F82082C; Thu, 20 Jun 2019 22:01:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561068091; bh=JbuElVbN3Z0lxncKmpOc3j7BcuU4pLJzsm2POWaHbOo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=r2ObBBEXMMVIpWzdPcHq+HCuoYoELbl52kWYsuBEcO/MYhbWgIFzfhhIzWmTqg1b7 u5NNWy2Sd4oq+dXI5MtYmQZ/C+MGQPQebzG9cwK/J3QlPTADjs19n197i/aAu0DUsr gnAavpclHADBh73WeYugpvdNKIZXIELjHNx0vldc= Received: by mail-qk1-f177.google.com with SMTP id i125so3030633qkd.6; Thu, 20 Jun 2019 15:01:31 -0700 (PDT) X-Gm-Message-State: APjAAAUAVA4xP+BSwMKPad0Cvp9T+WKLFw1Sd01Jimz9SdiLRJ2T0F+Q f33qYvNEkqSXPSLod1o71Z4V1p9jamZXCrdQyA== X-Received: by 2002:a37:69c5:: with SMTP id e188mr108358787qkc.119.1561068091034; Thu, 20 Jun 2019 15:01:31 -0700 (PDT) MIME-Version: 1.0 References: <20190619215156.27795-1-robh@kernel.org> <20190620090122.GB26689@ulmo> In-Reply-To: From: Rob Herring Date: Thu, 20 Jun 2019 16:01:19 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH 1/4] dt-bindings: display: Convert common panel bindings to DT schema To: Thierry Reding Cc: dri-devel , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , Sam Ravnborg , Maxime Ripard , Laurent Pinchart 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 Thu, Jun 20, 2019 at 8:52 AM Rob Herring wrote: > > On Thu, Jun 20, 2019 at 3:01 AM Thierry Reding wrote: > > > > On Wed, Jun 19, 2019 at 03:51:53PM -0600, Rob Herring wrote: > > > Convert the common panel bindings to DT schema consolidating scattered > > > definitions to a single schema file. > > > > > > The 'simple-panel' binding just a collection of properties and not a > > > complete binding itself. All of the 'simple-panel' properties are > > > covered by the panel-common.txt binding with the exception of the > > > 'no-hpd' property, so add that to the schema. > > > > > > As there are lots of references to simple-panel.txt, just keep the file > > > with a reference to panel-common.yaml for now until all the bindings are > > > converted. > > > > > > Cc: Thierry Reding > > > Cc: Sam Ravnborg > > > Cc: Maxime Ripard > > > Cc: Laurent Pinchart > > > Cc: dri-devel@lists.freedesktop.org > > > Signed-off-by: Rob Herring > > > --- > > > Note there's still some references to panel-common.txt that I need to > > > update or just go ahead and convert to schema. > > > > > > .../bindings/display/panel/panel-common.txt | 101 ------------- > > > .../bindings/display/panel/panel-common.yaml | 143 ++++++++++++++++++ > > > .../bindings/display/panel/panel.txt | 4 - > > > .../bindings/display/panel/simple-panel.txt | 29 +--- > > > 4 files changed, 144 insertions(+), 133 deletions(-) > > > delete mode 100644 Documentation/devicetree/bindings/display/panel/panel-common.txt > > > create mode 100644 Documentation/devicetree/bindings/display/panel/panel-common.yaml > > > > I know it was this way before, but perhaps remove the redundant panel- > > prefix while at it? > > Sure. On 2nd thought, I prefer it as-is. The reason being the schema including this file are more readable with: allOf: - $ref: panel-common.yaml# Compared to one of: $ref: common.yaml# $ref: /schemas/display/panel/common.yaml# I suppose we could automagically include a 'common.yaml' file if existing in the same directory. That's a bigger change though... Rob