On Tue, Sep 27, 2022 at 6:28 AM Peter Maydell <peter.mayd...@linaro.org> wrote: > > On Tue, 27 Sept 2022 at 11:12, Jean-Philippe Brucker > <jean-phili...@linaro.org> wrote: > > > > The devicetree specification requires that nodes use a generic name > > where appropriate. Fix the corresponding dt-validate warnings: > > Either: > (1) guests are looking for devices in the DT by node name. In that > case we can't change the node names without breaking them
Using node names is generally wrong unless the node name to use is defined and that's the only way to identify them (e.g. /chosen). > Or: > (2) guest look for nodes by compatibility, in which case why > do we care what the exact format of the node name is? The spec[1] has defined standard class node names going back to 2008. That covered all the names here except for 'iommu' and those names date back to the 1990s. Obviously, there has been no checking of them or many things for a long time, but now we can check much more than reviews ever could we have a huge technical debt. The main reason on care on these is just consistency. Rob [1] https://elinux.org/images/c/cf/Power_ePAPR_APPROVED_v1.1.pdf