On Fri, Dec 14, 2018 at 11:22 AM Kumar Gala <kumar.gala@xxxxxxxxxx> wrote: > > Guys, > > In the v0.2 spec with regards to device_type: > > ‘new use of the property is deprecated, and it should be included only on cpu and memory nodes for compatibility with IEEE 1275–derived devicetrees’. > > For CPU nodes I know we’ve been using compatible properties for some time, so I can see how we’d phase ‘device_type’ out. However its unclear if we’ve got any compatible’s we are using for memory. I know some special cases like ‘mmio-sram’, but do we have a compatible that we should be using for general system memory? Compatible doesn't really work for the same purposes because there are so many generally. I've moved the kernel over to using the node name for cpu nodes (and falling back to device_type as even modern IBM powerpc doesn't use 'cpu' for node names). We could do the same for memory nodes. I don't think there are any cases of memory nodes not named 'memory', but I could be wrong. The only other case I think is PCI bridge nodes. That too could move to (pci|pcie) node names. We've not been as consistent there, but we do warn on that now (by conveniently looking at device_type to find those nodes). Rob