Grafting old platform drivers onto a new DT kernel
Javier Martinez Canillas
javier at dowhile0.org
Thu Nov 5 07:42:33 PST 2015
Hello,
On Thu, Nov 5, 2015 at 12:15 PM, Andrew Lunn <andrew at lunn.ch> wrote:
>> Since I don't have time to rewrite the drivers at the moment, I'm wondering
>> if it's possible to "graft" old drivers (they're using the platform API, no
>> trace of DT support) onto my small base?
>
> Platform drivers are still usable with DT systems. We used that fact
> when converting platform based machines over to DT, one driver at a
> time. Look in the git history for kirkwood devices. e.g. somewhere
> around v3.7, arch/arm/mach-kirkwood. board-dt.c, and the various
> board-*.c files, and the DT files in the usual place.
>
OMAP did the same and still some boards use platform data and manually
register platform devices from board code. Take a look to
arch/arm/mach-omap2/pdata-quirks.c to see how that is being done.
Best regards,
Javier
More information about the linux-arm-kernel
mailing list