-
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.
Merge branch 'at91-3.4-cleanup2+DT' of git://github.com/at91linux/lin…
…ux-at91 into next/dt * 'at91-3.4-cleanup2+DT' of git://github.com/at91linux/linux-at91: (22 commits) ARM: at91: at91sam9x5cm/dt: add leds support ARM: at91: usb_a9g20/dt: add gpio-keys support ARM: at91: at91sam9m10g45ek/dt: add gpio-keys support ARM: at91: at91sam9m10g45ek/dt: add leds support ARM: at91: usb_a9g20/dt: add leds support ARM: at91/pio: add new PIO3 features ARM: at91: add sam9_smc.o to at91sam9x5 build ARM: at91/tc/clocksource: Add 32 bit variant to Timer Counter ARM: at91/tc: add device tree support to atmel_tclib ARM: at91/tclib: take iomem size from resource ARM: at91/pit: add traces in case of error ARM: at91: pit add DT support ARM: at91: AIC and GPIO IRQ device tree initialization ARM: at91/board-dt: remove AIC irq domain from board file ARM: at91/gpio: remove the static specification of gpio_chip.base ARM: at91/gpio: add .to_irq gpio_chip handler ARM: at91/gpio: non-DT builds do not have gpio_chip.of_node field ARM: at91/gpio: add irqdomain and DT support ARM: at91/gpio: change comments and one variable name ARM/USB: at91/ohci-at91: remove the use of irq_to_gpio ...
- Loading branch information
Showing
28 changed files
with
1,286 additions
and
204 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 @@ | ||
* Advanced Interrupt Controller (AIC) | ||
|
||
Required properties: | ||
- compatible: Should be "atmel,<chip>-aic" | ||
- interrupt-controller: Identifies the node as an interrupt controller. | ||
- interrupt-parent: For single AIC system, it is an empty property. | ||
- #interrupt-cells: The number of cells to define the interrupts. It sould be 2. | ||
The first cell is the IRQ number (aka "Peripheral IDentifier" on datasheet). | ||
The second cell is used to specify flags: | ||
bits[3:0] trigger type and level flags: | ||
1 = low-to-high edge triggered. | ||
2 = high-to-low edge triggered. | ||
4 = active high level-sensitive. | ||
8 = active low level-sensitive. | ||
Valid combinations are 1, 2, 3, 4, 8. | ||
Default flag for internal sources should be set to 4 (active high). | ||
- reg: Should contain AIC registers location and length | ||
|
||
Examples: | ||
/* | ||
* AIC | ||
*/ | ||
aic: interrupt-controller@fffff000 { | ||
compatible = "atmel,at91rm9200-aic"; | ||
interrupt-controller; | ||
interrupt-parent; | ||
#interrupt-cells = <2>; | ||
reg = <0xfffff000 0x200>; | ||
}; | ||
|
||
/* | ||
* An interrupt generating device that is wired to an AIC. | ||
*/ | ||
dma: dma-controller@ffffec00 { | ||
compatible = "atmel,at91sam9g45-dma"; | ||
reg = <0xffffec00 0x200>; | ||
interrupts = <21 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,32 @@ | ||
Atmel AT91 device tree bindings. | ||
================================ | ||
|
||
PIT Timer required properties: | ||
- compatible: Should be "atmel,at91sam9260-pit" | ||
- reg: Should contain registers location and length | ||
- interrupts: Should contain interrupt for the PIT which is the IRQ line | ||
shared across all System Controller members. | ||
|
||
TC/TCLIB Timer required properties: | ||
- compatible: Should be "atmel,<chip>-pit". | ||
<chip> can be "at91rm9200" or "at91sam9x5" | ||
- reg: Should contain registers location and length | ||
- interrupts: Should contain all interrupts for the TC block | ||
Note that you can specify several interrupt cells if the TC | ||
block has one interrupt per channel. | ||
|
||
Examples: | ||
|
||
One interrupt per TC block: | ||
tcb0: timer@fff7c000 { | ||
compatible = "atmel,at91rm9200-tcb"; | ||
reg = <0xfff7c000 0x100>; | ||
interrupts = <18 4>; | ||
}; | ||
|
||
One interrupt per TC channel in a TC block: | ||
tcb1: timer@fffdc000 { | ||
compatible = "atmel,at91rm9200-tcb"; | ||
reg = <0xfffdc000 0x100>; | ||
interrupts = <26 4 27 4 28 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,20 @@ | ||
* Atmel GPIO controller (PIO) | ||
|
||
Required properties: | ||
- compatible: "atmel,<chip>-gpio", where <chip> is at91rm9200 or at91sam9x5. | ||
- reg: Should contain GPIO controller registers location and length | ||
- interrupts: Should be the port interrupt shared by all the pins. | ||
- #gpio-cells: Should be two. The first cell is the pin number and | ||
the second cell is used to specify optional parameters (currently | ||
unused). | ||
- gpio-controller: Marks the device node as a GPIO controller. | ||
|
||
Example: | ||
pioA: gpio@fffff200 { | ||
compatible = "atmel,at91rm9200-gpio"; | ||
reg = <0xfffff200 0x100>; | ||
interrupts = <2 4>; | ||
#gpio-cells = <2>; | ||
gpio-controller; | ||
}; | ||
|
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.