Commit bbac3297 authored by Frank Rowand's avatar Frank Rowand Committed by Greg Kroah-Hartman

tty: serial: msm_serial: document DT alias

Update devicetree binding for msm_serial to reflect msm_serial_probe()
getting line id (port number) from the serialN alias.
Signed-off-by: default avatarFrank Rowand <frank.rowand@sonymobile.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7920408b
...@@ -27,11 +27,16 @@ Optional properties: ...@@ -27,11 +27,16 @@ Optional properties:
- dmas: Should contain dma specifiers for transmit and receive channels - dmas: Should contain dma specifiers for transmit and receive channels
- dma-names: Should contain "tx" for transmit and "rx" for receive channels - dma-names: Should contain "tx" for transmit and "rx" for receive channels
Note: Aliases may be defined to ensure the correct ordering of the UARTs.
The alias serialN will result in the UART being assigned port N. If any
serialN alias exists, then an alias must exist for each enabled UART. The
serialN aliases should be in a .dts file instead of in a .dtsi file.
Examples: Examples:
A uartdm v1.4 device with dma capabilities. - A uartdm v1.4 device with dma capabilities.
serial@f991e000 { serial@f991e000 {
compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm"; compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
reg = <0xf991e000 0x1000>; reg = <0xf991e000 0x1000>;
interrupts = <0 108 0x0>; interrupts = <0 108 0x0>;
...@@ -39,15 +44,35 @@ serial@f991e000 { ...@@ -39,15 +44,35 @@ serial@f991e000 {
clock-names = "core", "iface"; clock-names = "core", "iface";
dmas = <&dma0 0>, <&dma0 1>; dmas = <&dma0 0>, <&dma0 1>;
dma-names = "tx", "rx"; dma-names = "tx", "rx";
}; };
A uartdm v1.3 device without dma capabilities and part of a GSBI complex. - A uartdm v1.3 device without dma capabilities and part of a GSBI complex.
serial@19c40000 { serial@19c40000 {
compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm"; compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
reg = <0x19c40000 0x1000>, reg = <0x19c40000 0x1000>,
<0x19c00000 0x1000>; <0x19c00000 0x1000>;
interrupts = <0 195 0x0>; interrupts = <0 195 0x0>;
clocks = <&gsbi5_uart_cxc>, <&gsbi5_ahb_cxc>; clocks = <&gsbi5_uart_cxc>, <&gsbi5_ahb_cxc>;
clock-names = "core", "iface"; clock-names = "core", "iface";
}; };
- serialN alias.
aliases {
serial0 = &uarta;
serial1 = &uartc;
serial2 = &uartb;
};
uarta: serial@12490000 {
status = "ok";
};
uartb: serial@16340000 {
status = "ok";
};
uartc: serial@1a240000 {
status = "ok";
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment