On 07/05/2016 04:25 PM, Mark Brown wrote:
There should be nothing in principle that stops you registering AMBA devices like MFDs currently register platform devices, or you could perhaps add platform device registration in the PL330 to let it be registered with either platform or AMBA?
As it turned out of_platform_populate() handles properly AMBA devices by looking at the compatible string. If compatible contains "arm,primecell" then an amba device instead of a platform device is created for a DT node.
I used of_platform_populate() instead of mfd_add_devices() in the MFD driver's probe(). Additionally I had to rearrange exynos5433.dtsi and to make the LPASS devices specified as sub-nodes of the LPASS node.
It all seems to work fine, I will post v4 so we can continue commenting on the actual patches.