-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers/amba: create devices from device tree
Add a function to create amba_devices (i.e. primecell peripherals) from device tree nodes. The device tree scanning is done by the of_platform_populate() function which can call of_amba_device_create based on a match table entry. Nodes with a "arm,primecell-periphid" property can override the h/w peripheral id value. Based on the original work by Jeremy Kerr. Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Rob Herring <rob.herring@calxeda.com> Reviewed-by: Arnd Bergmann <arnd@arndb.de> [grant.likely: add Jeremy's original s-o-b line, changes from review comments, and moved all code to drivers/of/platform.c] Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
- Loading branch information
Grant Likely
committed
Jun 21, 2011
1 parent
29d4f8a
commit 5de1540
Showing
2 changed files
with
92 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
* ARM Primecell Peripherals | ||
|
||
ARM, Ltd. Primecell peripherals have a standard id register that can be used to | ||
identify the peripheral type, vendor, and revision. This value can be used for | ||
driver matching. | ||
|
||
Required properties: | ||
|
||
- compatible : should be a specific value for peripheral and "arm,primecell" | ||
|
||
Optional properties: | ||
|
||
- arm,primecell-periphid : Value to override the h/w value with | ||
|
||
Example: | ||
|
||
serial@fff36000 { | ||
compatible = "arm,pl011", "arm,primecell"; | ||
arm,primecell-periphid = <0x00341011>; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters