mirror of
https://github.com/torvalds/linux.git
synced 2024-12-19 01:23:20 +00:00
62b0a1b3e7
CLPS711X serial driver uses the system wide registers to control the modem signals. Now gpio-syscon driver can be used for this purposes. mctrl_gpio helpers allow us to create GPIO bindings for any of modem/tty control signals that extends the functionality of the driver. This patch makes such change. This change does not break any current DT bindings, since DT support for this platform is not introduced yet. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
32 lines
921 B
Plaintext
32 lines
921 B
Plaintext
* Cirrus Logic CLPS711X Universal Asynchronous Receiver/Transmitter (UART)
|
|
|
|
Required properties:
|
|
- compatible: Should be "cirrus,clps711x-uart".
|
|
- reg: Address and length of the register set for the device.
|
|
- interrupts: Should contain UART TX and RX interrupt.
|
|
- clocks: Should contain UART core clock number.
|
|
- syscon: Phandle to SYSCON node, which contain UART control bits.
|
|
|
|
Optional properties:
|
|
- {rts,cts,dtr,dsr,rng,dcd}-gpios: specify a GPIO for RTS/CTS/DTR/DSR/RI/DCD
|
|
line respectively.
|
|
|
|
Note: Each UART port should have an alias correctly numbered
|
|
in "aliases" node.
|
|
|
|
Example:
|
|
aliases {
|
|
serial0 = &uart1;
|
|
};
|
|
|
|
uart1: uart@80000480 {
|
|
compatible = "cirrus,clps711x-uart";
|
|
reg = <0x80000480 0x80>;
|
|
interrupts = <12 13>;
|
|
clocks = <&clks 11>;
|
|
syscon = <&syscon1>;
|
|
cts-gpios = <&sysgpio 0 GPIO_ACTIVE_LOW>;
|
|
dsr-gpios = <&sysgpio 1 GPIO_ACTIVE_LOW>;
|
|
dcd-gpios = <&sysgpio 2 GPIO_ACTIVE_LOW>;
|
|
};
|