Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7097998imu; Wed, 14 Nov 2018 11:40:18 -0800 (PST) X-Google-Smtp-Source: AJdET5e4Xad9qloYRcm9e5N7W/RxwZctf1k8L1pN4mA2F3f2eRnxWc2KSqKdQEy3VTbRO0JeAxd1 X-Received: by 2002:a63:8043:: with SMTP id j64mr2995828pgd.405.1542224418576; Wed, 14 Nov 2018 11:40:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542224418; cv=none; d=google.com; s=arc-20160816; b=Xy7sSxPpgi38iWi5+RD9LemIyni18tC07a5gwcNdUfDF/+/fEv906JtdCQM+yHmyRV O0Hq0WqMULdM/Xcdl7uI5uThriEFBaYMQrbOsv0OPxkAafbR7ARcBHY0CCgUFkb5EOOt Sz25DojCzG/X8/TQ0Kn7cI75B5F458CdGVGBMAQvPCKFAk5syS+5/K2bgV1chv3TtSdf mz4WDgOf2gBeQPFGLLl/SnmW7eqQSzIfojcDHdfVjT+4MDYx3zli/5s3vRrLtwmXFnCP IK8l2D4eJHPrdkPRs2thK7O8LEXA0S3p0+0LjIM1Zbp7mohJRt4/OL6akxBWldtWeC3M DXrQ== 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=azqJU8sLKCqUdcpTLYFdzT1D3gVaueehGjCTsxo/J7I=; b=OgEGVLEQ3UIA+4QOx6geLCLm+sBKUpnshE+biOfn1JFqmfBR7AbzKBsHr6rZz70X9Z lokeUyJ65z8RYCBrRzGODZ/bg6oZ1cC3iIBlQP2ZG6wopc0ng0XbPF/HBiDrzhmkWB4q 18sN2sWlNJ+/KSYoVRSykO+ALFS4+W4grw9HgpwN1EhVLUo8g+xjpe2OgywdWsuEIdRo Kat4NVj6hX5b05MhnwQb069vazX5A0Rd3w3V27tTm6lIG3MQ10sqbN5IbIKVpKU7Gjnw 7xvW6NOv+abi/x5o9NUrqKGx1Yf73aJZEMFhmEr+PPko5iNbGAtGM71oEsw4XOP6brG1 OcdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nb9yWuyL; 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 k69si24279054pga.176.2018.11.14.11.40.02; Wed, 14 Nov 2018 11:40:18 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nb9yWuyL; 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 S1726015AbeKOFoO (ORCPT + 99 others); Thu, 15 Nov 2018 00:44:14 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:35671 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725756AbeKOFoO (ORCPT ); Thu, 15 Nov 2018 00:44:14 -0500 Received: by mail-pg1-f196.google.com with SMTP id 32-v6so7828449pgu.2; Wed, 14 Nov 2018 11:39:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=azqJU8sLKCqUdcpTLYFdzT1D3gVaueehGjCTsxo/J7I=; b=nb9yWuyL9zbRRaU8bJih2M3cf16d3bxuLapmZxZ7w5AX+gybIgWyyYnqmMMr9MT7aL cMgyvLlDwMN23YefP7lgifmCtoz8x0Djo0GsoYw+0Diy7dToerFKnFim6XS5NPbr649b G8pHuV969UKzkFPr3HCMoBQcbxKHEailsFY6KawEgFkD8z7MGdApjZG+vla23w1REf+K h9axfVthSOWnq2QnCFX7+JhISf6Wbu8rz1CgCSIui2MhXUDKOszXWYvl4pOM2/dUfSVk BugkQbI9aLOdgFg7hcuaItCOoRbNZQt6vI9P73WFJoeIO9uP4zBbw1mYIpkW2GMc61rO 9UDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=azqJU8sLKCqUdcpTLYFdzT1D3gVaueehGjCTsxo/J7I=; b=nOe6XV53aGfInHTEUqRbwbC+j+uz84b7OtyTyYxHR3paCW7n6/ZADijBh23ayj/d1u T2pLtYS7GhWIXSH41XQIF9Hyh2eyE/98JgUuSFeTIEzooXlI3Tqa0jF9L/HUBsGiG2oB Y/oMZhggFjk9tD8RrlFVEE29iaAH+yv3fT2CoXLsYU77V+tZKwJdoZLABqfE6PGdR3yu P/pio2wQ+v+INnBaSCCkfouzvJGt00sINpunMPV9VY+9D4pIqA6xh1SURFlOVlj6J9Hr bH3shwRt/m7lNVIHpvO4se2dtbT1+WkeGAESS4dA0g2dnpf3HpK1Ip8o83SSODiwjODV xL4w== X-Gm-Message-State: AGRZ1gL9SauEpyC1zLRiQEjm9QDwVNSC96AGb4upiX87VgrDSLLQMEaR 0Dpeq1o279ckFRp/9UNKHNk99hkgBohoruKx0T7LFl2w X-Received: by 2002:a62:3387:: with SMTP id z129-v6mr3233928pfz.143.1542224380817; Wed, 14 Nov 2018 11:39:40 -0800 (PST) MIME-Version: 1.0 References: <20180418222905.10414-1-robh@kernel.org> In-Reply-To: From: "jonsmirl@gmail.com" Date: Wed, 14 Nov 2018 14:39:29 -0500 Message-ID: Subject: Re: [RFC PATCH] dt-bindings: add a jsonschema binding example To: robh@kernel.org Cc: frowand.list@gmail.com, devicetree@vger.kernel.org, devicetree-spec@vger.kernel.org, lkml , grant.likely@arm.com, Mark Rutland , geert+renesas@glider.be, Linus Walleij , Thierry Reding , Mark Brown , shawnguo@kernel.org, bjorn.andersson@linaro.org, Arnd Bergmann , sboyd@kernel.org, jic23@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 Fri, Apr 20, 2018 at 9:36 PM Rob Herring wrote: > I share the concern as I doubt most kernel developers don't know > jsonschema. But then the alternative is us defining and writing our > own thing which is C like 'cause that's what kernel developers > understand. My hope is to simplify and restrict things enough that it > writing a binding doc is straightforward without being jsonschema > experts. That was the intent of this patch without going into all the > details behind it. When schemas were first discussed long, long ago the idea was to have a n arbitrator who controls the schema (like Grant/Rob) so there is no need for general schema design knowledge in random kernel developers. First a developer should try and build their device tree using the existing schema. Then only if they find that impossible to do so should they propose schema changes. The schema arbitrator would then look at those changes and work them into the existing schemas as needed. Doing this via an arbitrator will ensure consistency in the overall schema design while eliminating redundancy with slight variations (like we have now). Another side effect of schemas is that as they evolve and enforce commonality among driver implementation it will become possible to turn those in-common pieces into driver libraries. -- Jon Smirl jonsmirl@gmail.com