4 Jan
2008
4 Jan
'08
12:13 a.m.
On Thu, Jan 03, 2008 at 01:18:31PM -0600, Scott Wood wrote:
Grant Likely wrote:
Gah! Don't do that! Then you need to maintain both directions in the dts file. Software is good at generating reverse mappings.
Software is, however, lousy at correctly wading through poorly-structured data (which device trees are full of) to figure out how to locate the link it wants to follow backwards.
Thinking about that from an ASoC v2 perspective the approach that this immediately suggests is to represent the links between the devices in the device tree and then have those links reference the attached devices.