On Wed, Aug 07, 2013 at 03:59:46PM +0800, Barry Song wrote:
For 1, what kind of codes will have in the codec driver if adding a link to UART in codec dts node? UART is very generic to transfer path. it even doesn't know bluetooth is running on top of it.
For 2, if the case is that we add codec subnode in UART node, the UART driver will need to walk child nodes and extend platform device for them, it seems it is not uart driver likes.
I don't know what 1 and 2 are (they weren't numbered in the mail you're replying to)... I'd expect that any intelligence would go into frameworks or into the device for the BT so for example if the BT device was hanging off the UART then the kernel would have generic support for parsing the DT and knowing that a fixed device was connected to the UART and be able to handle that - AIUI line disciplines are often used for this stuff.