-
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.
tty: ar933x_uart: add device tree support and binding documentation
Modify the probe routine to get the port line number from device tree if the 'of_node' is populated in the platform device. The driver can be built as module, thus add an OF specific module device table as well to support module auto loading. This makes it possible to use the driver for AR9330 UART devices specified in device tree. Cc: devicetree@vger.kernel.org Signed-off-by: Gabor Juhos <juhosg@openwrt.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
- Loading branch information
Gabor Juhos
authored and
Greg Kroah-Hartman
committed
Aug 30, 2013
1 parent
284301e
commit dd910d9
Showing
2 changed files
with
59 additions
and
3 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
Documentation/devicetree/bindings/tty/serial/qca,ar9330-uart.txt
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,34 @@ | ||
* Qualcomm Atheros AR9330 High-Speed UART | ||
|
||
Required properties: | ||
|
||
- compatible: Must be "qca,ar9330-uart" | ||
|
||
- reg: Specifies the physical base address of the controller and | ||
the length of the memory mapped region. | ||
|
||
- interrupt-parent: The phandle for the interrupt controller that | ||
services interrupts for this device. | ||
|
||
- interrupts: Specifies the interrupt source of the parent interrupt | ||
controller. The format of the interrupt specifier depends on the | ||
parent interrupt controller. | ||
|
||
Additional requirements: | ||
|
||
Each UART port must have an alias correctly numbered in "aliases" | ||
node. | ||
|
||
Example: | ||
|
||
aliases { | ||
serial0 = &uart0; | ||
}; | ||
|
||
uart0: uart@18020000 { | ||
compatible = "qca,ar9330-uart"; | ||
reg = <0x18020000 0x14>; | ||
|
||
interrupt-parent = <&intc>; | ||
interrupts = <3>; | ||
}; |
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