-
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.
This patch does the actual device tree switch for the LPC32xx SoC. Signed-off-by: Roland Stigge <stigge@antcom.de>
- Loading branch information
Roland Stigge
committed
Apr 22, 2012
1 parent
e04920d
commit f5c4227
Showing
7 changed files
with
158 additions
and
311 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,38 @@ | ||
* NXP LPC32xx Main Interrupt Controller | ||
(MIC, including SIC1 and SIC2 secondary controllers) | ||
|
||
Required properties: | ||
- compatible: Should be "nxp,lpc3220-mic" | ||
- interrupt-controller: Identifies the node as an interrupt controller. | ||
- interrupt-parent: Empty for the interrupt controller itself | ||
- #interrupt-cells: The number of cells to define the interrupts. Should be 2. | ||
The first cell is the IRQ number | ||
The second cell is used to specify mode: | ||
1 = low-to-high edge triggered | ||
2 = high-to-low edge triggered | ||
4 = active high level-sensitive | ||
8 = active low level-sensitive | ||
Default for internal sources should be set to 4 (active high). | ||
- reg: Should contain MIC registers location and length | ||
|
||
Examples: | ||
/* | ||
* MIC | ||
*/ | ||
mic: interrupt-controller@40008000 { | ||
compatible = "nxp,lpc3220-mic"; | ||
interrupt-controller; | ||
interrupt-parent; | ||
#interrupt-cells = <2>; | ||
reg = <0x40008000 0xC000>; | ||
}; | ||
|
||
/* | ||
* ADC | ||
*/ | ||
adc@40048000 { | ||
compatible = "nxp,lpc3220-adc"; | ||
reg = <0x40048000 0x1000>; | ||
interrupt-parent = <&mic>; | ||
interrupts = <39 4>; | ||
}; |
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,8 @@ | ||
NXP LPC32xx Platforms Device Tree Bindings | ||
------------------------------------------ | ||
|
||
Boards with the NXP LPC32xx SoC shall have the following properties: | ||
|
||
Required root node property: | ||
|
||
compatible: must be "nxp,lpc3220", "nxp,lpc3230", "nxp,lpc3240" or "nxp,lpc3250" |
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
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
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
Oops, something went wrong.