Shouldn't DT preserve pdev name and id to allow platform_match to work?

Barry Song 21cnbao at gmail.com
Fri Aug 5 06:02:30 EDT 2011


> auxdata passes platform_data and overrides the device name when there
> is no way easy way to make the driver work without it.  It handles the
> the current implementation of clocks and regulators which aren't yet
> populated from the device tree.  It will go away when clock &
> regulator bindings are implemented.
Yes. As OF_DEV_AUXDATA_ID still requires hardware information like
0x48000100 as below, it seems it is not
consistent with the origin purpose of ARM DT.
OF_DEV_AUXDATA_ID("ti,omap-i2c", 0x48000100, "omap-i2c.1", 1, &i2c_pdata)
And the information 0x48000100 is something that doesn't want to be in
kernel codes.it should be only in dts.

-barry



More information about the linux-arm-kernel mailing list