lkml.org 
[lkml]   [2018]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [RFC PATCH] dt-bindings: add a jsonschema binding example
    On Fri, Apr 20, 2018 at 9:36 PM Rob Herring <robh@kernel.org> 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

    \
     
     \ /
      Last update: 2022-09-17 16:05    [W:3.836 / U:0.152 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site