patch "devicetree: serial: Document msm_serial bindings" added to tty tree
This is a note to let you know that I've just added the patch titled
devicetree: serial: Document msm_serial bindings
to my tty git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git
in the tty-next branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will also be merged in the next major kernel release during the merge window.
If you have any questions about this process, please let me know.
Quoted 1 line
From
6e01365c469f3cfe96a1b428bade1a3628896929Mon Sep 17 00:00:00 2001
From: Stephen Boyd <[email protected]>
Date: Wed, 28 Aug 2013 13:32:40 -0700
Subject: devicetree: serial: Document msm_serial bindings
Let's fix up the msm serial device bindings so that it's clearer what hardware is supported. Instead of using hsuart (for high speed uart) let's use uartdm because that matches the actual name of the hardware. Also, let's add the version information in case we need to differentiate between different versions of the hardware in the future. Finally, lets specify that clocks are required (the clock bindings didn't exist when the original binding was written) and also specify dma bindings just in case we want to use it in software. We split the binding into two files to make it clearer what's required and not required.
--- .../devicetree/bindings/serial/qcom,msm-uart.txt | 25 ++++++++++ .../devicetree/bindings/serial/qcom,msm-uartdm.txt | 53 ++++++++++++++++++++++ .../devicetree/bindings/tty/serial/msm_serial.txt | 27 ----------- 3 files changed, 78 insertions(+), 27 deletions(-) create mode 100644 Documentation/devicetree/bindings/serial/qcom,msm-uart.txt create mode 100644 Documentation/devicetree/bindings/serial/qcom,msm-uartdm.txt delete mode 100644 Documentation/devicetree/bindings/tty/serial/msm_serial.txt
Documentation/devicetree/bindings/serial/qcom,msm-uart.txt new file +25 -0
@@ -0,0 +1,25 @@ +* MSM Serial UART + +The MSM serial UART hardware is designed for low-speed use cases where a +dma-engine isn't needed. From a software perspective it's mostly compatible +with the MSM serial UARTDM except that it only supports reading and writing one +character at a time. + +Required properties: +- compatible: Should contain "qcom,msm-uart" +- reg: Should contain UART register location and length. +- interrupts: Should contain UART interrupt. +- clocks: Should contain the core clock. +- clock-names: Should be "core". + +Example: + +A uart device at 0xa9c00000 with interrupt 11. + +serial@a9c00000 { + compatible = "qcom,msm-uart"; + reg = <0xa9c00000 0x1000>; + interrupts = <11>; + clocks = <&uart_cxc>; + clock-names = "core"; +};
Documentation/devicetree/bindings/serial/qcom,msm-uartdm.txt new file +53 -0
53 lines not on this page · raw message
Documentation/devicetree/bindings/tty/serial/msm_serial.txt deleted +0 -27
@@ -1,27 +0,0 @@ -* Qualcomm MSM UART - -Required properties: -- compatible : - - "qcom,msm-uart", and one of "qcom,msm-hsuart" or - "qcom,msm-lsuart". -- reg : offset and length of the register set for the device - for the hsuart operating in compatible mode, there should be a - second pair describing the gsbi registers. -- interrupts : should contain the uart interrupt. - -There are two different UART blocks used in MSM devices, -"qcom,msm-hsuart" and "qcom,msm-lsuart". The msm-serial driver is -able to handle both of these, and matches against the "qcom,msm-uart" -as the compatibility. - -The registers for the "qcom,msm-hsuart" device need to specify both -register blocks, even for the common driver. - -Example: - - uart@19c400000 { - compatible = "qcom,msm-hsuart", "qcom,msm-uart"; - reg = <0x19c40000 0x1000>, - <0x19c00000 0x1000>; - interrupts = <195>; - };
Signature · 1 line
1.8.4.6.g82e253f.dirty