[PATCH 2/2] drivers/amba: probe via device tree

Segher Boessenkool segher at kernel.crashing.org
Sat May 21 14:00:05 EST 2011


> The ARM definition of AMBA encompasses a lot of things. It is the 
> definition of the AXI, AHB and APB buses.

So the device tree, which describes the hardware, should call the buses
axi, ahb or apb as appropriate, and describe the actual physical 
connections.
The Linux kernel is free to ignore that if it so wishes.

>  It also has the definition of the peripheral ID register definitions 
> which primarily only ARM Ltd peripherals implement. You can have those 
> bus types yet not have any peripherals with the ID registers.

The devices are identified in the device tree, you do not need to read
the ID registers to find them.  You should have some way of figuring out
which devices have the AMBA ID block; maybe add something to the 
"compatible"
property and have all devices that use this have this register block as 
the
first entry in the "reg" property?


Segher



More information about the devicetree-discuss mailing list