Document msm_serial bindings and support newer uartdms
v3 cover Document msm_serial bindings and support newer uartdms
This patchset aligns the msm_serial driver more with downstream usage and updates the driver's DT bindings.
Changes since v2:
* Fixed up DT review comments
* Dropped patches that were picked up in tty tree
Changes since v1:
* Dropped _clk postfix from {core,iface}_clk
* Split DT binding into two files
* Renamed DT binding files to match compatible strings
* Fixed up DT review comments
* Added new patch 5/5 (more than 1 char for UARTDM)
Stephen Boyd (2):
devicetree: serial: Document msm_serial bindings
ARM: dts: msm: Update uartdm compatible strings
.../devicetree/bindings/tty/serial/msm_serial.txt | 27 ----------- .../bindings/tty/serial/qcom,msm-uart.txt | 25 ++++++++++ .../bindings/tty/serial/qcom,msm-uartdm.txt | 53 ++++++++++++++++++++++ arch/arm/boot/dts/msm8660-surf.dts | 2 +- arch/arm/boot/dts/msm8960-cdp.dts | 2 +- 5 files changed, 80 insertions(+), 29 deletions(-) delete mode 100644 Documentation/devicetree/bindings/tty/serial/msm_serial.txt create mode 100644 Documentation/devicetree/bindings/tty/serial/qcom,msm-uart.txt create mode 100644 Documentation/devicetree/bindings/tty/serial/qcom,msm-uartdm.txt
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, hosted by The Linux Foundation
PATCH v3 1/2 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/tty/serial/msm_serial.txt | 27 ----------- .../bindings/tty/serial/qcom,msm-uart.txt | 25 ++++++++++ .../bindings/tty/serial/qcom,msm-uartdm.txt | 53 ++++++++++++++++++++++ 3 files changed, 78 insertions(+), 27 deletions(-) delete mode 100644 Documentation/devicetree/bindings/tty/serial/msm_serial.txt create mode 100644 Documentation/devicetree/bindings/tty/serial/qcom,msm-uart.txt create mode 100644 Documentation/devicetree/bindings/tty/serial/qcom,msm-uartdm.txt
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 at 19c400000 { - compatible = "qcom,msm-hsuart", "qcom,msm-uart"; - reg = <0x19c40000 0x1000>, - <0x19c00000 0x1000>; - interrupts = <195>; - };
Documentation/devicetree/bindings/tty/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 at a9c00000 { + compatible = "qcom,msm-uart"; + reg = <0xa9c00000 0x1000>; + interrupts = <11>; + clocks = <&uart_cxc>; + clock-names = "core"; +};
Documentation/devicetree/bindings/tty/serial/qcom,msm-uartdm.txt new file +53 -0
53 lines not on this page · raw message
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, hosted by The Linux Foundation
Re: [PATCH v3 1/2] devicetree: serial: Document msm_serial bindings
Quoted 14 lines · Stephen Boyd
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.
Cc David Brown <[email protected]>Cc <[email protected]>Signed-off-by Stephen Boyd <[email protected]>
Quoted 8 lines
---
.../devicetree/bindings/tty/serial/msm_serial.txt | 27 ----------- .../bindings/tty/serial/qcom,msm-uart.txt | 25 ++++++++++ .../bindings/tty/serial/qcom,msm-uartdm.txt | 53 ++++++++++++++++++++++ 3 files changed, 78 insertions(+), 27 deletions(-)delete mode 100644
Documentation/devicetree/bindings/tty/serial/msm_serial.txtcreate mode 100644Documentation/devicetree/bindings/tty/serial/qcom,msm-uart.txtcreate mode 100644Documentation/devicetree/bindings/tty/serial/qcom,msm-uartdm.txt
- k
Signature · 2 lines
Employee of Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
PATCH v3 2/2 ARM: dts: msm: Update uartdm compatible strings
In reply to Stephen BoydLet's follow the ratified DT binding and use uartdm instead of hsuart. This does break backwards compatibility but this shouldn't be a problem because the uart driver isn't probing on these devices without adding clock support (which isn't merged so far).
--- arch/arm/boot/dts/msm8660-surf.dts | 2 +- arch/arm/boot/dts/msm8960-cdp.dts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/msm8660-surf.dts +1 -1
@@ -38,7 +38,7 @@ }; serial at 19c40000 { - compatible = "qcom,msm-hsuart", "qcom,msm-uart"; + compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm"; reg = <0x19c40000 0x1000>, <0x19c00000 0x1000>; interrupts = <0 195 0x0>;
arch/arm/boot/dts/msm8960-cdp.dts +1 -1
@@ -38,7 +38,7 @@ }; serial at 16440000 { - compatible = "qcom,msm-hsuart", "qcom,msm-uart"; + compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm"; reg = <0x16440000 0x1000>, <0x16400000 0x1000>; interrupts = <0 154 0x0>;
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, hosted by The Linux Foundation
Re: [PATCH v3 2/2] ARM: dts: msm: Update uartdm compatible strings
Quoted 5 lines · Stephen Boyd
Let's follow the ratified DT binding and use uartdm instead of hsuart. This does break backwards compatibility but this shouldn't be a problem because the uart driver isn't probing on these devices without adding clock support (which isn't merged so far).
I'm not seeing any driver upstream even using the compatibles so might be worth adding that we aren't even breaking anything upstream.
Otherwise you can add:
Quoted 42 lines
Cc David Brown <[email protected]>Signed-off-by Stephen Boyd <[email protected]>---
arch/arm/boot/dts/msm8660-surf.dts| 2 +-arch/arm/boot/dts/msm8960-cdp.dts| 2 +-2 files changed, 2 insertions(+), 2 deletions(-)arch/arm/boot/dts/msm8660-surf.dts +1
-1@@ -38,7 +38,7 @@ }; serial at 19c40000 { - compatible = "qcom,msm-hsuart", "qcom,msm-uart"; + compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm"; reg = <0x19c40000 0x1000>, <0x19c00000 0x1000>; interrupts = <0 195 0x0>;arch/arm/boot/dts/msm8960-cdp.dts +1
-1@@ -38,7 +38,7 @@ }; serial at 16440000 { - compatible = "qcom,msm-hsuart", "qcom,msm-uart"; + compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm"; reg = <0x16440000 0x1000>, <0x16400000 0x1000>; interrupts = <0 154 0x0>;Signature · 7 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, hosted by The Linux Foundation -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo at vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 2 lines
Employee of Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
Re: [PATCH v3 2/2] ARM: dts: msm: Update uartdm compatible strings
Quoted 9 lines · Kumar Gala
Quoted 5 lines · Stephen Boyd
Let's follow the ratified DT binding and use uartdm instead of hsuart. This does break backwards compatibility but this shouldn't be a problem because the uart driver isn't probing on these devices without adding clock support (which isn't merged so far).
Quoted 3 lines
I'm not seeing any driver upstream even using the compatibles so might be worth adding that we aren't even breaking anything upstream.
Otherwise you can add:
Ignore me, not sure what tree I was looking at.
- k
Signature · 2 lines
Employee of Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
Quoted 24 lines · Stephen Boyd
This patchset aligns the
msm_serialdriver more with downstream usage and updates the driver's DT bindings.Changes since v2:
* Fixed up DT review comments
* Dropped patches that were picked up in tty treeChanges since v1:
* Dropped_clkpostfix from {core,iface}_clk
* Split DT binding into two files
* Renamed DT binding files to match compatible strings
* Fixed up DT review comments
* Added new patch 5/5 (more than 1 char for UARTDM)Stephen Boyd (2):
devicetree: serial: Documentmsm_serialbindings
ARM: dts: msm: Update uartdm compatible strings.../devicetree/bindings/tty/serial/msm_serial.txt | 27 ----------- .../bindings/tty/serial/qcom,msm-uart.txt | 25 ++++++++++ .../bindings/tty/serial/qcom,msm-uartdm.txt | 53 ++++++++++++++++++++++ arch/arm/boot/dts/msm8660-surf.dts | 2 +- arch/arm/boot/dts/msm8960-cdp.dts | 2 +- 5 files changed, 80 insertions(+), 29 deletions(-)
Quoted 3 lines
delete mode 100644
Documentation/devicetree/bindings/tty/serial/msm_serial.txtcreate mode 100644Documentation/devicetree/bindings/tty/serial/qcom,msm-uart.txtcreate mode 100644Documentation/devicetree/bindings/tty/serial/qcom,msm-uartdm.txt
We are going with bindings/serial as one location, can you update this so the bindings are in bindings/serial/qcom...
- k
Signature · 2 lines
Employee of Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
Quoted 31 lines · Kumar Gala
Quoted 24 lines · Stephen Boyd
This patchset aligns the
msm_serialdriver more with downstream usage and updates the driver's DT bindings.Changes since v2:
* Fixed up DT review comments
* Dropped patches that were picked up in tty treeChanges since v1:
* Dropped_clkpostfix from {core,iface}_clk
* Split DT binding into two files
* Renamed DT binding files to match compatible strings
* Fixed up DT review comments
* Added new patch 5/5 (more than 1 char for UARTDM)Stephen Boyd (2):
devicetree: serial: Documentmsm_serialbindings
ARM: dts: msm: Update uartdm compatible strings.../devicetree/bindings/tty/serial/msm_serial.txt | 27 ----------- .../bindings/tty/serial/qcom,msm-uart.txt | 25 ++++++++++ .../bindings/tty/serial/qcom,msm-uartdm.txt | 53 ++++++++++++++++++++++ arch/arm/boot/dts/msm8660-surf.dts | 2 +- arch/arm/boot/dts/msm8960-cdp.dts | 2 +- 5 files changed, 80 insertions(+), 29 deletions(-)Quoted 3 lines
delete mode 100644
Documentation/devicetree/bindings/tty/serial/msm_serial.txtcreate mode 100644Documentation/devicetree/bindings/tty/serial/qcom,msm-uart.txtcreate mode 100644Documentation/devicetree/bindings/tty/serial/qcom,msm-uartdm.txt
Quoted 2 lines
We are going with bindings/serial as one location, can you update this so the bindings are in bindings/serial/qcom...
Ok I can move it. Do I have your ack on patch 2?
Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
Quoted 32 lines · Stephen Boyd
Quoted 31 lines · Kumar Gala
Quoted 27 lines · Stephen Boyd
This patchset aligns the
msm_serialdriver more with downstream usage and updates the driver's DT bindings.Changes since v2:
* Fixed up DT review comments
* Dropped patches that were picked up in tty treeChanges since v1:
* Dropped_clkpostfix from {core,iface}_clk
* Split DT binding into two files
* Renamed DT binding files to match compatible strings
* Fixed up DT review comments
* Added new patch 5/5 (more than 1 char for UARTDM)Stephen Boyd (2):
devicetree: serial: Documentmsm_serialbindings
ARM: dts: msm: Update uartdm compatible strings.../devicetree/bindings/tty/serial/msm_serial.txt | 27 ----------- .../bindings/tty/serial/qcom,msm-uart.txt | 25 ++++++++++ .../bindings/tty/serial/qcom,msm-uartdm.txt | 53 ++++++++++++++++++++++ arch/arm/boot/dts/msm8660-surf.dts | 2 +- arch/arm/boot/dts/msm8960-cdp.dts | 2 +- 5 files changed, 80 insertions(+), 29 deletions(-)delete mode 100644
Documentation/devicetree/bindings/tty/serial/msm_serial.txtcreate mode 100644Documentation/devicetree/bindings/tty/serial/qcom,msm-uart.txtcreate mode 100644Documentation/devicetree/bindings/tty/serial/qcom,msm-uartdm.txt
Quoted 4 lines
Quoted 2 lines
We are going with bindings/serial as one location, can you update this so the bindings are in bindings/serial/qcom...
Ok I can move it. Do I have your ack on patch 2?
Yes, I thought I sent it.
- k
Signature · 2 lines
Employee of Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation