* [PATCH v3 0/2] Document msm_serial bindings and support newer uartdms @ 2013-08-28 0:12 Stephen Boyd 2013-08-28 0:12 ` [PATCH v3 1/2] devicetree: serial: Document msm_serial bindings Stephen Boyd 2013-08-28 18:49 ` [PATCH v3 0/2] Document msm_serial bindings and support newer uartdms Kumar Gala 0 siblings, 2 replies; 6+ messages in thread From: Stephen Boyd @ 2013-08-28 0:12 UTC (permalink / raw) To: Greg Kroah-Hartman Cc: linux-kernel, linux-arm-msm, linux-arm-kernel, linux-serial, David Brown, devicetree, Kumar Gala 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 -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, hosted by The Linux Foundation ^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v3 1/2] devicetree: serial: Document msm_serial bindings 2013-08-28 0:12 [PATCH v3 0/2] Document msm_serial bindings and support newer uartdms Stephen Boyd @ 2013-08-28 0:12 ` Stephen Boyd 2013-08-28 18:13 ` Kumar Gala 2013-08-28 18:49 ` [PATCH v3 0/2] Document msm_serial bindings and support newer uartdms Kumar Gala 1 sibling, 1 reply; 6+ messages in thread From: Stephen Boyd @ 2013-08-28 0:12 UTC (permalink / raw) To: Greg Kroah-Hartman Cc: linux-kernel, linux-arm-msm, linux-arm-kernel, linux-serial, Kumar Gala, David Brown, devicetree 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 <davidb@codeaurora.org> Cc: <devicetree@vger.kernel.org> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> --- .../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 diff --git a/Documentation/devicetree/bindings/tty/serial/msm_serial.txt b/Documentation/devicetree/bindings/tty/serial/msm_serial.txt deleted file mode 100644 index aef383e..0000000 --- a/Documentation/devicetree/bindings/tty/serial/msm_serial.txt +++ /dev/null @@ -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>; - }; diff --git a/Documentation/devicetree/bindings/tty/serial/qcom,msm-uart.txt b/Documentation/devicetree/bindings/tty/serial/qcom,msm-uart.txt new file mode 100644 index 0000000..ce8c901 --- /dev/null +++ b/Documentation/devicetree/bindings/tty/serial/qcom,msm-uart.txt @@ -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"; +}; diff --git a/Documentation/devicetree/bindings/tty/serial/qcom,msm-uartdm.txt b/Documentation/devicetree/bindings/tty/serial/qcom,msm-uartdm.txt new file mode 100644 index 0000000..ffa5b78 --- /dev/null +++ b/Documentation/devicetree/bindings/tty/serial/qcom,msm-uartdm.txt @@ -0,0 +1,53 @@ +* MSM Serial UARTDM + +The MSM serial UARTDM hardware is designed for high-speed use cases where the +transmit and/or receive channels can be offloaded to a dma-engine. From a +software perspective it's mostly compatible with the MSM serial UART except +that it supports reading and writing multiple characters at a time. + +Required properties: +- compatible: Should contain at least "qcom,msm-uartdm". + A more specific property should be specified as follows depending + on the version: + "qcom,msm-uartdm-v1.1" + "qcom,msm-uartdm-v1.2" + "qcom,msm-uartdm-v1.3" + "qcom,msm-uartdm-v1.4" +- reg: Should contain UART register locations and lengths. The first + register shall specify the main control registers. An optional second + register location shall specify the GSBI control region. + "qcom,msm-uartdm-v1.3" is the only compatible value that might + need the GSBI control region. +- interrupts: Should contain UART interrupt. +- clocks: Should contain the core clock and the AHB clock. +- clock-names: Should be "core" for the core clock and "iface" for the + AHB clock. + +Optional properties: +- dmas: Should contain dma specifiers for transmit and receive channels +- dma-names: Should contain "tx" for transmit and "rx" for receive channels + +Examples: + +A uartdm v1.4 device with dma capabilities. + +serial@f991e000 { + compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm"; + reg = <0xf991e000 0x1000>; + interrupts = <0 108 0x0>; + clocks = <&blsp1_uart2_apps_cxc>, <&blsp1_ahb_cxc>; + clock-names = "core", "iface"; + dmas = <&dma0 0>, <&dma0 1>; + dma-names = "tx", "rx"; +}; + +A uartdm v1.3 device without dma capabilities and part of a GSBI complex. + +serial@19c40000 { + compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm"; + reg = <0x19c40000 0x1000>, + <0x19c00000 0x1000>; + interrupts = <0 195 0x0>; + clocks = <&gsbi5_uart_cxc>, <&gsbi5_ahb_cxc>; + clock-names = "core", "iface"; +}; -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, hosted by The Linux Foundation ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v3 1/2] devicetree: serial: Document msm_serial bindings 2013-08-28 0:12 ` [PATCH v3 1/2] devicetree: serial: Document msm_serial bindings Stephen Boyd @ 2013-08-28 18:13 ` Kumar Gala 0 siblings, 0 replies; 6+ messages in thread From: Kumar Gala @ 2013-08-28 18:13 UTC (permalink / raw) To: Stephen Boyd Cc: Greg Kroah-Hartman, linux-kernel, linux-arm-msm, linux-arm-kernel, linux-serial, David Brown, devicetree On Aug 27, 2013, at 7:12 PM, Stephen Boyd wrote: > 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 <davidb@codeaurora.org> > Cc: <devicetree@vger.kernel.org> > Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> > --- > .../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 Acked-by: Kumar Gala <galak@codeaurora.org> - k -- Employee of Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v3 0/2] Document msm_serial bindings and support newer uartdms 2013-08-28 0:12 [PATCH v3 0/2] Document msm_serial bindings and support newer uartdms Stephen Boyd 2013-08-28 0:12 ` [PATCH v3 1/2] devicetree: serial: Document msm_serial bindings Stephen Boyd @ 2013-08-28 18:49 ` Kumar Gala 2013-08-28 19:19 ` Stephen Boyd 1 sibling, 1 reply; 6+ messages in thread From: Kumar Gala @ 2013-08-28 18:49 UTC (permalink / raw) To: Stephen Boyd Cc: Greg Kroah-Hartman, linux-kernel, linux-arm-msm, linux-arm-kernel, linux-serial, David Brown, devicetree On Aug 27, 2013, at 7:12 PM, Stephen Boyd wrote: > 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 We are going with bindings/serial as one location, can you update this so the bindings are in bindings/serial/qcom... - k -- Employee of Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v3 0/2] Document msm_serial bindings and support newer uartdms 2013-08-28 18:49 ` [PATCH v3 0/2] Document msm_serial bindings and support newer uartdms Kumar Gala @ 2013-08-28 19:19 ` Stephen Boyd 2013-08-28 19:21 ` Kumar Gala 0 siblings, 1 reply; 6+ messages in thread From: Stephen Boyd @ 2013-08-28 19:19 UTC (permalink / raw) To: Kumar Gala Cc: Greg Kroah-Hartman, linux-kernel, linux-arm-msm, linux-arm-kernel, linux-serial, David Brown, devicetree On 08/28, Kumar Gala wrote: > > On Aug 27, 2013, at 7:12 PM, Stephen Boyd wrote: > > > 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 > > 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? -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v3 0/2] Document msm_serial bindings and support newer uartdms 2013-08-28 19:19 ` Stephen Boyd @ 2013-08-28 19:21 ` Kumar Gala 0 siblings, 0 replies; 6+ messages in thread From: Kumar Gala @ 2013-08-28 19:21 UTC (permalink / raw) To: Stephen Boyd Cc: Greg Kroah-Hartman, linux-kernel, linux-arm-msm, linux-arm-kernel, linux-serial, David Brown, devicetree On Aug 28, 2013, at 2:19 PM, Stephen Boyd wrote: > On 08/28, Kumar Gala wrote: >> >> On Aug 27, 2013, at 7:12 PM, Stephen Boyd wrote: >> >>> 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 >> >> 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 -- Employee of Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-08-28 19:21 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-08-28 0:12 [PATCH v3 0/2] Document msm_serial bindings and support newer uartdms Stephen Boyd 2013-08-28 0:12 ` [PATCH v3 1/2] devicetree: serial: Document msm_serial bindings Stephen Boyd 2013-08-28 18:13 ` Kumar Gala 2013-08-28 18:49 ` [PATCH v3 0/2] Document msm_serial bindings and support newer uartdms Kumar Gala 2013-08-28 19:19 ` Stephen Boyd 2013-08-28 19:21 ` Kumar Gala
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).