Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4164531ybi; Mon, 29 Jul 2019 20:40:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqxo7VflF8lBFmKGs2WDVwxaNZ4DYQQ/bf9t1kdYLb/Bs+IblVYCXCUOzqY0O2puGhRwNbEU X-Received: by 2002:a17:902:1e2:: with SMTP id b89mr5403828plb.7.1564458016234; Mon, 29 Jul 2019 20:40:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564458016; cv=none; d=google.com; s=arc-20160816; b=EIUACoaRHJXSDZt0gC657szpGXnDmuF5ZLCN+h/kkB+uVHYFZWOOkUSJnBT78ZYxnO vDs6RKwLcCoES8jj059PinePCmT2MER69w+EJSaRR1gIsEbroABYEFEfwX+4Mh2pCTs7 riChcKIQXAEb1WCgdIF+ygG51BXY1l1YTdGXC0CYD0R8pmhudJp7Gnu/En2mS9IdS+YS 5KE3/N6VUk2DFk2rwfKRkRaBC6jTSwHQUzb/BRCWf8aOAT3QXJ7G29HMECdTHWFkVwez sC8SuAqUDLLcyozqU6eQSa6aU4razx3Gj7n6roxUKs+J4P9RSdiBFdrdFvEks1o9k1AU MEOQ== 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=xVzhHVmXA6L0ewgghGYNVN47KqLzBM5dGQra3I+qYV4=; b=HY6IwgmNMxbI4H9YDl34ZbfnOUs1wcsGqI7PX/S3/PCbKsU2L+11qcbti0AUA7nHpk hr3Cxfc3kdIGi/2xWgnE2ZGABWozTOI5z77Yre0IffD0+gWRkUAOsG1mn9jaigY1xuPj RPXOaX8TRaNfv54DxER30Xgc9ohB6qaFA8+/vt/ctzlzaWv98EcrqWEUJG7IBy2LK/yU TNWoorbb9Jy/q3lrgpnu61L/Zkfpt79of7/u7HQ/sO1DNosxN+XsZh4WGNgC8NX8/eni XororUG8YqzoOlj6nShfAGundALvefcU3PahfFRuygwoVPcnr+lABAa+bUNjzCECTZS+ JFLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wIDAiVgh; 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 b5si26299825pjo.26.2019.07.29.20.40.00; Mon, 29 Jul 2019 20:40:16 -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=wIDAiVgh; 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 S1729816AbfG2Xyg (ORCPT + 99 others); Mon, 29 Jul 2019 19:54:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:41194 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728809AbfG2Xyf (ORCPT ); Mon, 29 Jul 2019 19:54:35 -0400 Received: from mail-qt1-f176.google.com (mail-qt1-f176.google.com [209.85.160.176]) (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 623C9206BA; Mon, 29 Jul 2019 23:54:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564444474; bh=7M7iM5NZ1SgdUOG+BMFQMLBU2J1/FLifWH7WWo4vukw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=wIDAiVgh8oFtCAHjZALXvXLlF06U5PG+b+RlokjKcUA+9gTiIQfq+hQf4JLn3jQqv 5FCecCmkCjAKo3SLAn3us51NrlQf/6cZWaRJrH30n0bTmbsUgHMHgFxjBmnZ421Lz1 XLXZCIiUws+DJYgL8XSsNCIr34nlTVVrVgiufrKM= Received: by mail-qt1-f176.google.com with SMTP id w17so16966692qto.10; Mon, 29 Jul 2019 16:54:34 -0700 (PDT) X-Gm-Message-State: APjAAAUgrLsv9jpLRUivJp8ogfVxrCT0n7QsumPZd4lEuq/FAy1m54JP tMPtYqeuC98fviLSbC6WdSkJE9krveXjHjWn1w== X-Received: by 2002:aed:3f10:: with SMTP id p16mr79236510qtf.110.1564444473606; Mon, 29 Jul 2019 16:54:33 -0700 (PDT) MIME-Version: 1.0 References: <20190722150414.9F97668B20@verein.lst.de> <20190725151829.DC20968B02@verein.lst.de> <20190726163601.o32bxqew5xavjgyi@flea> <20190729142258.GB7946@lst.de> In-Reply-To: <20190729142258.GB7946@lst.de> From: Rob Herring Date: Mon, 29 Jul 2019 17:54:21 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 6a/7] dt-bindings: Add ANX6345 DP/eDP transmitter binding To: Torsten Duwe Cc: Maxime Ripard , Chen-Yu Tsai , Mark Rutland , Thierry Reding , David Airlie , Daniel Vetter , Andrzej Hajda , Laurent Pinchart , Icenowy Zheng , Sean Paul , Vasily Khoruzhick , Harald Geyer , Greg Kroah-Hartman , Thomas Gleixner , dri-devel , devicetree@vger.kernel.org, "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , "linux-kernel@vger.kernel.org" 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 Mon, Jul 29, 2019 at 8:23 AM Torsten Duwe wrote: > > On Fri, Jul 26, 2019 at 06:36:01PM +0200, Maxime Ripard wrote: > > > + > > > + dvdd12-supply: > > > + maxItems: 1 > > > + description: Regulator for 1.2V digital core power. > > > + $ref: /schemas/types.yaml#/definitions/phandle > > > + > > > + dvdd25-supply: > > > + maxItems: 1 > > > + description: Regulator for 2.5V digital core power. > > > + $ref: /schemas/types.yaml#/definitions/phandle > > > > There's no need to specify the type here, all the properties ending in > > -supply are already checked for that type > > Ok, thanks for the hint. > > > > + ports: > > > + type: object > > > + minItems: 1 > > > + maxItems: 2 > > > + description: | > > > + Video port 0 for LVTTL input, > > > + Video port 1 for eDP output (panel or connector) > > > + using the DT bindings defined in > > > + Documentation/devicetree/bindings/media/video-interfaces.txt > > > > You should probably describe the port@0 and port@1 nodes here as > > well. It would allow you to express that the port 0 is mandatory and > > the port 1 optional, which got dropped in the conversion. > > I would have liked to, but have not discovered yet a comprehensive source > of information about recommended syntax and semantics of the YAML schemes. The language is json-schema. > Is there some central reference for these types of issues? I mean not the > "here is a git repo with the meta-schemes" but sort of a cookbook? Documentation/devicetree/writing-schema.md (soon .rst) and Documentation/devicetree/bindings/example-schema.yaml attempt to do this. Any feedback on them would be helpful. For this case specifically, we do need to define a common graph schema, but haven't yet. You can assume we do and only really need to capture what Maxime said above. Rob