From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [RFC PATCH dtc] C-based DT schema checker integrated into dtc Date: Mon, 04 Nov 2013 10:28:49 +0100 Message-ID: <2443024.JdDKnfkC18@wuerfel> References: <1382651488-9696-1-git-send-email-swarren@wwwdotorg.org> <1432962.yW4lKnaQJE@flatron> <25161583.XICaeMWvPh@flatron> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: In-Reply-To: <25161583.XICaeMWvPh@flatron> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org Cc: Tomasz Figa , mark.rutland-5wv7dgnIgG8@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Jon Loeliger , khilman-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org, Stephen Warren , Benoit Cousson , pawel.moll-5wv7dgnIgG8@public.gmane.org, Stephen Warren , Tomasz Figa , rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org, Grant Likely , fparent-rdvid1DuHRBWk0Htik3J/w@public.gmane.org, a.hajda-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org, s.nawrocki-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org, galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org, olof-nZhT3qVonbNeoWH0uzbU5w@public.gmane.org, Alison_Chaiken-nmGgyN9QBj3QT0dZR+AlfA@public.gmane.org, David Gibson List-Id: devicetree@vger.kernel.org On Monday 04 November 2013 00:26:29 Tomasz Figa wrote: > > Aha, one more thing. As it was mentioned on ARM Mini Summit, as a long > term goal, we will eventually have to introduce another validation tool > that checks device drivers against device tree bindings. We should keep > this in mind when considering schema design. Incidentally I have just had an idea for a new driver-level API that should let us do this much easier. I hope to find some time in the next few days to come up with draft kernel patches. If you don't hear back from me soon but want to work on validating the drivers against the bindings, please contact me again. The basic idea is to extend 'devres' to automatically register all the resources (registers, irq, dma, gpio, pinctrl, clk, regulator, ...) and simple properties before the ->probe() callback is even called, based on a per-driver data structure that describes them, and that can be easily parsed by an external tool. Arnd -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html