From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pb0-f41.google.com ([209.85.160.41]:62720 "EHLO mail-pb0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751474Ab3GYEPI (ORCPT ); Thu, 25 Jul 2013 00:15:08 -0400 Received: by mail-pb0-f41.google.com with SMTP id rp16so237674pbb.14 for ; Wed, 24 Jul 2013 21:15:07 -0700 (PDT) From: Grant Likely Subject: Re: The future of DT binding maintainership In-Reply-To: References: <2962401.WRRoYlXkRr@flatron> <60BA5429A0E1584BA3633194F6F993B502B21362@NA-MBX-03.mgc.mentorg.com> <1925583.R0td2pS6as@flatron> Date: Wed, 24 Jul 2013 21:26:16 +0100 Message-Id: <20130724202617.049E33E13AF@localhost> Sender: devicetree-owner@vger.kernel.org To: Jon Loeliger , Tomasz Figa Cc: "Chaiken, Alison" , Wolfram Sang , Mark Rutland , Stephen Warren , Ian Campbell , Pawel Moll , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Rob Herring , Olof Johansson , Mark Brown , Linus Walleij List-ID: On Mon, 22 Jul 2013 16:34:49 -0500, Jon Loeliger wrote: > > > > Is there a schema out there in the wild that exemplifies what you mean? > > > > Not really. The format of schemas is currently in design stage. I'm > > currently rethinking some details of what I have in my mind. Give me some > > more time and I will post an RFC to the ML with all that written down. > > ...and... > > > > The schema-check idea reminds me of the W3C HTML validators: > > > > > > http://validator.w3.org/ > > > > > > Since device-tree source looks a bit like XML (or maybe more like JSON), > > > will be the schemas be similar in spirit to DTDs, and is it helpful to > > > think of the validator in this spirit? Or will the checker be more > > > like "gcc -Wall", since it will be invoked by a compiler? > > > > My idea is to implement compile time verification in dtc, so I guess it > > will be more like the latter. Since dts is what dtc can already parse, my > > plan is to keep the schemas in spirit to dts, just modifying/extending it > > to allow specifying bindings with them, rather than static values. > > > > Best regards, > > Tomasz > > It is possible to add some-damn XML DTD parsing and /me runs screaming. g.