[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <60BA5429A0E1584BA3633194F6F993B502B21362@NA-MBX-03.mgc.mentorg.com>
Date: Mon, 22 Jul 2013 19:59:25 +0000
From: "Chaiken, Alison" <Alison_Chaiken@...tor.com>
To: Tomasz Figa <tomasz.figa@...il.com>,
Grant Likely <grant.likely@...retlab.ca>
CC: Wolfram Sang <w.sang@...gutronix.de>,
Mark Rutland <mark.rutland@....com>,
Stephen Warren <swarren@...dotorg.org>,
Ian Campbell <ian.campbell@...rix.com>,
Pawel Moll <pawel.moll@....com>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
"devicetree-discuss@...ts.ozlabs.org"
<devicetree-discuss@...ts.ozlabs.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Rob Herring <rob.herring@...xeda.com>,
Olof Johansson <olof@...om.net>,
Mark Brown <broonie@...nsource.wolfsonmicro.com>,
Linus Walleij <linus.walleij@...aro.org>
Subject: RE: The future of DT binding maintainership
Grant Likely wrote:
> Another thing discussed is that we need to start validating DT schema with an extension to dtc.
Is there a schema out there in the wild that exemplifies what you mean?
> Tomasz Figa has volunteered to do this work and has support from his employer
That's great news.
> to have is that the DT schema will get checked as part of the dts build
> process so that any DT file that doesn't match the documented schema
> will get flagged, and that the schema files will be human readable and
> will double as documentation.
No doubt DTS files are already the best documentation available for many targets. The vendor's technical reference manual describes how the hardware is supposed to work, but the DTS describes what actually does. Any errata that the vendor issues subsequent to publication of the TRM must be reflected in DTS, after all.
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?
-- Alison
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists