[PATCH 2/2] drivers/amba: probe via device tree
From: arnd@arndb.de (Arnd Bergmann)
Date: 2011-05-22 10:03:19
Also in:
linux-devicetree, lkml
From: arnd@arndb.de (Arnd Bergmann)
Date: 2011-05-22 10:03:19
Also in:
linux-devicetree, lkml
On Saturday 21 May 2011 19:42:34 Grant Likely wrote:
1) drop amba-bus entirely and use platform_device everywhere, similar to what OMAP has done 2) strictly create amba_devices for nodes compatible with "arm,amba-device" 3) be intelligent about amba device creation; create an amba_device only for devices we know are driven with amba_driver.
Or maybe 4) Use amba_device for all devices on an amba bus (identified by the compatible property of the bus), but mark the ones that do not have primecell compatible registers so that the amba bus does not try to look at them but instead takes the information from the device tree. Even though this might seem a bit silly when most devices are not primecell ones, but it could be used as an incentive for hardware designers (I can dream, right?) to provide them in future designs. It would also make it easier to document the actual bus hierarchy correctly. Arnd