>> The device tree describes _all_ hardware in the system, >> not just the things that are somewhat harder to probe >> for. > > Actually, for embedded systems, the device tree is really only > required to describe the things that it's useful for the Linux kernel > to know.
Sure, for example it could provide a "SoC" node with only an address range, and not describe all the devices on that SoC separately. It still describes all of the hardware, not in quite so much detail though. It also won't get all the benefits of using the OF device tree, but that is a trade off, for each group to decide on their own. > The point of the device tree for embedded systems is to provide > configuration information, not to be able to claim compliance with > some set of legalistic requirements. :) Well, if you use some certain binding, you better use it correctly, no? Ill-defined and ill-used interfaces aren't the nicest thing to deal with. > I think in some cases we have gone a little over the top in trying to > put everything in the device tree, in fact. Ultimately I think it has > to be up to the more experienced embedded developers to say how much > detail in the device tree is actually helpful and how much is dead > weight. Yes, more complex device bindings need a lot of time to get right, and need a lot of input from all parties using it. In general, it is better to leave out things from a binding until it is very clear it is needed and is the right thing to do. Segher _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev