On Tue, Jan 07, 2014 at 11:00:53AM +0400, Alexander Shiyan wrote:
So, we need codec phandle. The codec is probed by MC13XXX MFD core, and codec pdev not contain compatible string, but we should associate our codec with DT. if ASoC core wants to use codec it will try to find it by of_node. Maybe my opinion is wrong, fixme.
The fact that we happen to use platform devices inside Linux to split the MFD between subsystems isn't something that should leak out into the device tree representation, this is a Linux implementation detail. The card should be referencing the root node for the device in its binding.
You're also confusing the idea of using an of_node for something with putting it into the struct device; you should never need to modify what's in the struct device to use the device tree data.