Device trees I: Are we having fun yet?
Device trees I: Are we having fun yet?
Posted Nov 14, 2013 20:16 UTC (Thu) by mjg59 (subscriber, #23239)In reply to: Device trees I: Are we having fun yet? by rwmj
Parent article: Device trees I: Are we having fun yet?
Posted Nov 14, 2013 21:24 UTC (Thu)
by scottwood (guest, #74349)
[Link]
Granted, it's harder to standardize things well when the hardware being described is changing so rapidly, but by treating the device tree as a Linux implementation detail rather than an ABI, you take away the incentive to get it (reasonably close to) right the first time. You could still have a separate Linux-internal tree (we already do -- struct device and friends) that encodes Linux concepts and/or fixes quirks in the hardware tree, which is generated from the hardware tree plus quirk code in the kernel, and possibly some supplementary external data file which *is* a Linux implementation detail and not meant for sharing with other components. In extreme cases the "quirk and supplementary external data" could be an entire replacement tree, if the standard one is hopeless for anything other than identifying which replacement tree to use, but most cases should not be that bad.
Moving the hardware tree outside the kernel source would send a clear message that it is not a Linux implementation detail (and thus compatibility between the trees and OSes including but not limited to Linux needs to be considered), and that things which are need to go somewhere else.
Also note that the dts sometimes contains implementation details of the bootloader -- it may make assumptions about how the loader sets up the address map, or it may make assumptions about what things the loader will fill in before passing the tree to the kernel. Both of these are true on Freescale PPC. In those cases ideally the trees would be stored in the bootloader tree.
Posted Nov 14, 2013 22:14 UTC (Thu)
by mathstuf (subscriber, #69389)
[Link] (3 responses)
Sounds like a job for GPL enforcement ;) .
Posted Nov 14, 2013 22:48 UTC (Thu)
by mjg59 (subscriber, #23239)
[Link] (2 responses)
Posted Nov 14, 2013 22:52 UTC (Thu)
by mathstuf (subscriber, #69389)
[Link] (1 responses)
Posted Nov 15, 2013 0:06 UTC (Fri)
by mjg59 (subscriber, #23239)
[Link]
Device trees I: Are we having fun yet?
Device trees I: Are we having fun yet?
Device trees I: Are we having fun yet?
Device trees I: Are we having fun yet?
Device trees I: Are we having fun yet?