I am currently working on an embedded device with Linux (based on Freescale i.MX6). My platform is DT-enabled (that is all devices instantiation origins from the flattened device tree and not from the board initialization source file).
In such a context I am in need to instantiate a device which makes use of a driver that has not been ported to DT yet... is it possible? I mean: is it possible to mix devices instantiated via device tree and devices instantiated the old way (e.g. through i2c_register_board_info
for I2C devices)?
If so, is it also possible to pass platform data to the old-style driver using the usual way (e.g. through struct i2c_board_info
for I2C devices)? Or, being the platform DT-based, then .platform_data
field in struct i2c_board_info
will always be NULL
?
Are you aware of some examples available on the web?
Thanks.
platform_device
andplatform_data
structures (as well as calls toof_*
procedures to retrieve FDT values). – sawdust