Received: by 10.192.165.148 with SMTP id m20csp76823imm; Tue, 24 Apr 2018 17:34:34 -0700 (PDT) X-Google-Smtp-Source: AIpwx48tp3oZKpx1kpyr3XtUHDw59+xP9dh0C6Qq+ZXgZyoK2aY/xuVhrCksML9Zra0jGxCpcFlL X-Received: by 2002:a17:902:590d:: with SMTP id o13-v6mr26683386pli.130.1524616474626; Tue, 24 Apr 2018 17:34:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524616474; cv=none; d=google.com; s=arc-20160816; b=ZbX/BzfNnI3eFmYhyCwOCsO3v/nYNb+0lvTHLrurMSNFA8Y+EPEI3tG7RwwzU8EuJZ QyItQpnWdhW534DP4Rl/hbWMePdzC90jfQNbw5TSXBXOynTyJ1BUma+QaMaNgWAfterl 4JDN9Qyd5IJAznRKZfFur7FEVF1YiJO9KtO1+VdPjVyzoUrshOojf6hA7dwSHUHWYVIY f1cNX13tLqBFelDEIRr++n938rrjOuucgtbLBm+k7YKn+LVUPTsclAV4xeodCHFExfbQ eUzuzn4Ck+unsxO5+x2XBHhWblSM0/uB3vN1M/RG4lifd2cRs7lWJSCnYPFgntatjYde enEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=jc8nWTFvXljjf/cEhq+4IHHPG/Y6O736MNAQuDGEBnQ=; b=A/tcv+7BrputJ138mSn6KSJ5IjRV4rVIJ1yAtxAe/w5zQX1JzUGwtZ31MLHXAEEIUU CiE7eLp549RDndyH6aaiZzsaUYF9K3T//E4kGbN8xilfiVbcx+1JaqYnjU7aFJy5hfzF yUduBudHMCj82zNZHLk3aO63VFQ62MBUMFUj3Wb5U90dVLXazpPitnIIcoFMdhFbwMla p3jqfQP6aaxgqZ4nRTUhspo9LDG+f+6VR4Ta4dQK6QOkL57VthYeN3Iv9vVarBQYGKdr GNVHnQXVzB9xIqd+flp2vFCw+I26rMBJnC7V5O53CDjQLLB/YWH74gi4eBQE5+rhwMCX O3sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YK1nGv9W; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q13si12360798pgp.533.2018.04.24.17.34.19; Tue, 24 Apr 2018 17:34:34 -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=@gmail.com header.s=20161025 header.b=YK1nGv9W; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751047AbeDYAdR (ORCPT + 99 others); Tue, 24 Apr 2018 20:33:17 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:45071 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750756AbeDYAdO (ORCPT ); Tue, 24 Apr 2018 20:33:14 -0400 Received: by mail-pg0-f68.google.com with SMTP id i29so10546552pgn.12; Tue, 24 Apr 2018 17:33:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=jc8nWTFvXljjf/cEhq+4IHHPG/Y6O736MNAQuDGEBnQ=; b=YK1nGv9WfhvN2VyoVkz6RykkW1cQNkjTwHAmRnmKwEPR/CA/aIBRMByFh+YVrWG3fF Q0WMxSwyYQxwBVrMokvQEoxIZeMb86phxEyghwZdfPxk+c4Da+/rLm22NEebCVWzUdHa uNj5y+IE4agC8GJ1dp6nrbuUWWKooZi2JfsgfbOLYz4dHZniszWsNl1OnTf4q+S6Zqot 7elP/WJkVt/oo7TUQb2URz4aMan2if8XbLn3AGH08G6prdK9HFSZFjlQqyjjnHxMbwEA CCgg6I3/BRQDYipNg2kT0+ZiWnB0ZAcYZrU+4yngPf25WrpTV9s+CjDcUYsRZT7hD+3B Ah6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=jc8nWTFvXljjf/cEhq+4IHHPG/Y6O736MNAQuDGEBnQ=; b=ZS4WJndRqSbymllwRKB3+O3L0eJynS4og83o/onI3T9eoZSGdyNMU+40hgeySHkJ2g 2yrF746uXmerjqE5TVgvr3atKdAw4lozyK9RJIy77F91LIr0A3bWlLeX3p1Re+NFC8um JHvSuOw1HHE1FQnZ3Y35qRnRktOQDglzZFCiECYH4GvBwCKR0fYcWch5HfZiiUEjmCcb VLSXkI5b8DNBUym1vxV0HCvRQpBiYT1P330vETV96EX5a2x6133J5RJIhUObdhhIQ8Cz ocsGngsBgcliJRAq9pph+n+esDwhp3EbaWf1Jr6KbxIS15knMpObWhCLAhXoH3DqK1dB Oeeg== X-Gm-Message-State: ALQs6tB2s5UM+fU25aDTKW/2QgYDaSb1uTZK6B1op0F0lbbgxseOUKne 5UwEZl6n4BLfKKDQfniHHMA= X-Received: by 2002:a17:902:822:: with SMTP id 31-v6mr19329453plk.172.1524616394062; Tue, 24 Apr 2018 17:33:14 -0700 (PDT) Received: from [192.168.1.70] (c-24-6-192-50.hsd1.ca.comcast.net. [24.6.192.50]) by smtp.gmail.com with ESMTPSA id p71sm25906047pfl.170.2018.04.24.17.33.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 17:33:13 -0700 (PDT) Subject: Re: [RFC PATCH] dt-bindings: add a jsonschema binding example To: Rob Herring Cc: devicetree@vger.kernel.org, devicetree-spec@vger.kernel.org, "linux-kernel@vger.kernel.org" , Grant Likely , Mark Rutland , Geert Uytterhoeven , Linus Walleij , Thierry Reding , Mark Brown , Shawn Guo , Bjorn Andersson , Arnd Bergmann , Stephen Boyd , Jonathan Cameron References: <20180418222905.10414-1-robh@kernel.org> From: Frank Rowand Message-ID: Date: Tue, 24 Apr 2018 17:33:11 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/20/18 18:28, Rob Herring wrote: > On Fri, Apr 20, 2018 at 4:00 PM, Frank Rowand wrote: >> Hi Rob, >> >> Thanks for the example. It was a good starting tutorial of sorts for me >> to understand the format a bit. >> >> >> On 04/18/18 15:29, Rob Herring wrote: >>> The current DT binding documentation format of freeform text is painful >>> to write, review, validate and maintain. >>> >>> This is just an example of what a binding in the schema format looks >>> like. It's using jsonschema vocabulary in a YAML encoded document. Using >>> jsonschema gives us access to existing tooling. A YAML encoding gives us >>> something easy to edit. >>> >>> This example is just the tip of the iceberg, but it the part most >>> developers writing bindings will interact with. Backing all this up >>> are meta-schema (to validate the binding schemas), some DT core schema, >>> YAML encoded DT output with dtc, and a small number of python scripts to >>> run validation. The gory details including how to run end-to-end >>> validation can be found here: >>> >>> https://www.spinics.net/lists/devicetree-spec/msg00649.html >>> >>> Signed-off-by: Rob Herring >>> --- >>> Cc list, >>> You all review and/or write lots of binding documents. I'd like some feedback >>> on the format. >>> >>> Thanks, >>> Rob >>> >>> .../devicetree/bindings/example-schema.yaml | 149 +++++++++++++++++++++ >>> 1 file changed, 149 insertions(+) >>> create mode 100644 Documentation/devicetree/bindings/example-schema.yaml >>> >>> diff --git a/Documentation/devicetree/bindings/example-schema.yaml b/Documentation/devicetree/bindings/example-schema.yaml >>> new file mode 100644 >>> index 000000000000..fe0a3bd1668e >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/example-schema.yaml >> >> I'm guessing by the path name that this is in the Linux kernel source tree. > > Yes, well, my kernel tree. Most of the work still lives here: > > https://github.com/robherring/yaml-bindings/ > >>> @@ -0,0 +1,149 @@ >>> +# SPDX-License-Identifier: BSD-2-Clause >> >> If in the Linux kernel source tree, then allow gpl-v2 as a possible license. > > Why? BSD is compatible. The license of the above repo is all BSD. I said __if__ in the Linux kernel source tree. As my other comments indicated, I wasn't sure if this was intended to end up in the Linux kernel source tree. __If__ in the Linux kernel source tree then it would be dual licensed, correct? And thus the tag would reflect that? > Of course there's all the existing docs which default to GPLv2 and > we'll probably have to maintain that. > < snip >