[PATCH v4 00/11] ep93xx: Move SoC private bits to core

Arnd Bergmann arnd at arndb.de
Wed Mar 14 13:00:06 EDT 2012


On Wednesday 14 March 2012, H Hartley Sweeten wrote:
> On Wednesday, March 14, 2012 6:51 AM, Arnd Bergmann wrote:

> > As the first steps (after reading Documentation/devicetree/booting-without-of.txt)
> > the best way forward is probably to take you favourite board file and
> > add a DT_MACHINE_START section so you can boot the same machine
> > when passing an empty devicetree rather than ATAGS. Then add the interrupt
> > controller (should be simple for VIC), followed by gpio (needs bindings,
> > see Documentation/devicetree/bindings/gpio/*.txt), i2c and spi. After
> > you have all that infrastructure in place, you can convert every other
> > device, one at a time. Some (anything without platform_data) will be
> > Trivial, others require you to come up with a new binding document
> > and properties to replace the platform_data. Many people try to do
> > the ones from board files first because it lets them remove the board
> > files, and only after that look at converting the core devices, but you
> > can do any order you like.
> 
> The main problem I see with converting the ep93xx platform to device tree
> is that it requires modifying the bootloader. Correct me if I am wrong.

You can always use legacy bootloaders with an appended device tree.
It's slightly less interesting that way but it still works. You can
also use a second-stage boot loader, but that would require having
one that supports your platform.

	Arnd



More information about the linux-arm-kernel mailing list