Re: [PATCH v6] serial:st-asc: Add ST ASC driver.

2013-07-25 Thread Srinivas KANDAGATLA
Hi Greg,
Am not sure if you missed this patch.
Can you please consider this for 3.12.

Thanks,
srini

On 15/07/13 12:39, Srinivas KANDAGATLA wrote:
> From: Srinivas Kandagatla 
> 
> This patch adds support to ASC (asynchronous serial controller)
> driver, which is basically a standard serial driver. This IP is common
> across all the ST parts for settop box platforms.
> 
> ASC is embedded in ST COMMS IP block. It supports Rx & Tx functionality.
> It support all industry standard baud rates.
> 
> Signed-off-by: Srinivas Kandagatla 
> CC: Stephen Gallimore 
> CC: Stuart Menefy 
> CC: Arnd Bergmann 
> CC: Greg Kroah-Hartman 
> ---
> 
> Hi Greg,
> 
> This patch is the part of the driver support for Sti ARM SOCs.
> This patch undergone 3-4 cycles of review in arm-kernel mailing list.
> All the patches in that series went into 3.11.
> This patch is based on 3.11-rc1.
> 
> Am resending this patch, as it missed 3.11 window.
> Can you please consider this patch for 3.12.
> 
> Thanks,
> srini

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v6] serial:st-asc: Add ST ASC driver.

2013-07-25 Thread Srinivas KANDAGATLA
Hi Greg,
Am not sure if you missed this patch.
Can you please consider this for 3.12.

Thanks,
srini

On 15/07/13 12:39, Srinivas KANDAGATLA wrote:
 From: Srinivas Kandagatla srinivas.kandaga...@st.com
 
 This patch adds support to ASC (asynchronous serial controller)
 driver, which is basically a standard serial driver. This IP is common
 across all the ST parts for settop box platforms.
 
 ASC is embedded in ST COMMS IP block. It supports Rx  Tx functionality.
 It support all industry standard baud rates.
 
 Signed-off-by: Srinivas Kandagatla srinivas.kandaga...@st.com
 CC: Stephen Gallimore stephen.gallim...@st.com
 CC: Stuart Menefy stuart.men...@st.com
 CC: Arnd Bergmann a...@arndb.de
 CC: Greg Kroah-Hartman gre...@linuxfoundation.org
 ---
 
 Hi Greg,
 
 This patch is the part of the driver support for Sti ARM SOCs.
 This patch undergone 3-4 cycles of review in arm-kernel mailing list.
 All the patches in that series went into 3.11.
 This patch is based on 3.11-rc1.
 
 Am resending this patch, as it missed 3.11 window.
 Can you please consider this patch for 3.12.
 
 Thanks,
 srini

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH v6] serial:st-asc: Add ST ASC driver.

2013-07-15 Thread Srinivas KANDAGATLA
From: Srinivas Kandagatla 

This patch adds support to ASC (asynchronous serial controller)
driver, which is basically a standard serial driver. This IP is common
across all the ST parts for settop box platforms.

ASC is embedded in ST COMMS IP block. It supports Rx & Tx functionality.
It support all industry standard baud rates.

Signed-off-by: Srinivas Kandagatla 
CC: Stephen Gallimore 
CC: Stuart Menefy 
CC: Arnd Bergmann 
CC: Greg Kroah-Hartman 
---

Hi Greg,

This patch is the part of the driver support for Sti ARM SOCs.
This patch undergone 3-4 cycles of review in arm-kernel mailing list.
All the patches in that series went into 3.11.
This patch is based on 3.11-rc1.

Am resending this patch, as it missed 3.11 window.
Can you please consider this patch for 3.12.

Thanks,
srini

Changes since v5:
- Fixed build error reported by Greg when build without PINCTRL.

Changes since v4:
- rebased with tty-next branch from git.kernel.org tty repo.

Changes since v3:
- None.

Changes since v2:
- st-asc driver made POSIX compatible based on Russell K comment.

Changes since RFC:
- modified kconfig to remove default y
- removed all the forward declaration.
- use dynamic major numbering.
- merge header-file in to driver.

 .../devicetree/bindings/tty/serial/st-asc.txt  |   18 +
 drivers/tty/serial/Kconfig |   15 +
 drivers/tty/serial/Makefile|1 +
 drivers/tty/serial/st-asc.c|  937 
 include/uapi/linux/serial_core.h   |3 +
 5 files changed, 974 insertions(+), 0 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/tty/serial/st-asc.txt
 create mode 100644 drivers/tty/serial/st-asc.c

diff --git a/Documentation/devicetree/bindings/tty/serial/st-asc.txt 
b/Documentation/devicetree/bindings/tty/serial/st-asc.txt
new file mode 100644
index 000..75d877f
--- /dev/null
+++ b/Documentation/devicetree/bindings/tty/serial/st-asc.txt
@@ -0,0 +1,18 @@
+*st-asc(Serial Port)
+
+Required properties:
+- compatible : Should be "st,asc".
+- reg, reg-names, interrupts, interrupt-names  : Standard way to define device
+   resources with names. look in
+   Documentation/devicetree/bindings/resource-names.txt
+
+Optional properties:
+- st,hw-flow-ctrl  bool flag to enable hardware flow control.
+- st,force-m1  bool flat to force asc to be in Mode-1 recommeded
+   for high bit rates (above 19.2K)
+Example:
+serial@fe44{
+compatible= "st,asc";
+reg = <0xfe44 0x2c>;
+interrupts =  <0 209 0>;
+};
diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig
index 5e3d689..bfca3bf 100644
--- a/drivers/tty/serial/Kconfig
+++ b/drivers/tty/serial/Kconfig
@@ -1496,6 +1496,21 @@ config SERIAL_FSL_LPUART_CONSOLE
help
  If you have enabled the lpuart serial port on the Freescale SoCs,
  you can make it the console by answering Y to this option.
+config SERIAL_ST_ASC
+   tristate "ST ASC serial port support"
+   select SERIAL_CORE
+   help
+ This driver is for the on-chip Asychronous Serial Controller on
+ STMicroelectronics STi SoCs.
+ ASC is embedded in ST COMMS IP block. It supports Rx & Tx 
functionality.
+ It support all industry standard baud rates.
+
+ If unsure, say N.
+
+config SERIAL_ST_ASC_CONSOLE
+   bool "Support for console on ST ASC"
+   depends on SERIAL_ST_ASC=y
+   select SERIAL_CORE_CONSOLE
 
 endmenu
 
diff --git a/drivers/tty/serial/Makefile b/drivers/tty/serial/Makefile
index cf650f0..47b679c 100644
--- a/drivers/tty/serial/Makefile
+++ b/drivers/tty/serial/Makefile
@@ -65,6 +65,7 @@ obj-$(CONFIG_SERIAL_KGDB_NMI) += kgdb_nmi.o
 obj-$(CONFIG_SERIAL_KS8695) += serial_ks8695.o
 obj-$(CONFIG_SERIAL_OMAP) += omap-serial.o
 obj-$(CONFIG_SERIAL_ALTERA_UART) += altera_uart.o
+obj-$(CONFIG_SERIAL_ST_ASC) += st-asc.o
 obj-$(CONFIG_KGDB_SERIAL_CONSOLE) += kgdboc.o
 obj-$(CONFIG_SERIAL_QE) += ucc_uart.o
 obj-$(CONFIG_SERIAL_TIMBERDALE)+= timbuart.o
diff --git a/drivers/tty/serial/st-asc.c b/drivers/tty/serial/st-asc.c
new file mode 100644
index 000..1838798
--- /dev/null
+++ b/drivers/tty/serial/st-asc.c
@@ -0,0 +1,937 @@
+/*
+ * st-asc.c: ST Asynchronous serial controller (ASC) driver
+ *
+ * Copyright (C) 2003-2013 STMicroelectronics (R) Limited
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ */
+
+#if defined(CONFIG_SERIAL_ST_ASC_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ)
+#define SUPPORT_SYSRQ
+#endif
+
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 

[PATCH v6] serial:st-asc: Add ST ASC driver.

2013-07-15 Thread Srinivas KANDAGATLA
From: Srinivas Kandagatla srinivas.kandaga...@st.com

This patch adds support to ASC (asynchronous serial controller)
driver, which is basically a standard serial driver. This IP is common
across all the ST parts for settop box platforms.

ASC is embedded in ST COMMS IP block. It supports Rx  Tx functionality.
It support all industry standard baud rates.

Signed-off-by: Srinivas Kandagatla srinivas.kandaga...@st.com
CC: Stephen Gallimore stephen.gallim...@st.com
CC: Stuart Menefy stuart.men...@st.com
CC: Arnd Bergmann a...@arndb.de
CC: Greg Kroah-Hartman gre...@linuxfoundation.org
---

Hi Greg,

This patch is the part of the driver support for Sti ARM SOCs.
This patch undergone 3-4 cycles of review in arm-kernel mailing list.
All the patches in that series went into 3.11.
This patch is based on 3.11-rc1.

Am resending this patch, as it missed 3.11 window.
Can you please consider this patch for 3.12.

Thanks,
srini

Changes since v5:
- Fixed build error reported by Greg when build without PINCTRL.

Changes since v4:
- rebased with tty-next branch from git.kernel.org tty repo.

Changes since v3:
- None.

Changes since v2:
- st-asc driver made POSIX compatible based on Russell K comment.

Changes since RFC:
- modified kconfig to remove default y
- removed all the forward declaration.
- use dynamic major numbering.
- merge header-file in to driver.

 .../devicetree/bindings/tty/serial/st-asc.txt  |   18 +
 drivers/tty/serial/Kconfig |   15 +
 drivers/tty/serial/Makefile|1 +
 drivers/tty/serial/st-asc.c|  937 
 include/uapi/linux/serial_core.h   |3 +
 5 files changed, 974 insertions(+), 0 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/tty/serial/st-asc.txt
 create mode 100644 drivers/tty/serial/st-asc.c

diff --git a/Documentation/devicetree/bindings/tty/serial/st-asc.txt 
b/Documentation/devicetree/bindings/tty/serial/st-asc.txt
new file mode 100644
index 000..75d877f
--- /dev/null
+++ b/Documentation/devicetree/bindings/tty/serial/st-asc.txt
@@ -0,0 +1,18 @@
+*st-asc(Serial Port)
+
+Required properties:
+- compatible : Should be st,asc.
+- reg, reg-names, interrupts, interrupt-names  : Standard way to define device
+   resources with names. look in
+   Documentation/devicetree/bindings/resource-names.txt
+
+Optional properties:
+- st,hw-flow-ctrl  bool flag to enable hardware flow control.
+- st,force-m1  bool flat to force asc to be in Mode-1 recommeded
+   for high bit rates (above 19.2K)
+Example:
+serial@fe44{
+compatible= st,asc;
+reg = 0xfe44 0x2c;
+interrupts =  0 209 0;
+};
diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig
index 5e3d689..bfca3bf 100644
--- a/drivers/tty/serial/Kconfig
+++ b/drivers/tty/serial/Kconfig
@@ -1496,6 +1496,21 @@ config SERIAL_FSL_LPUART_CONSOLE
help
  If you have enabled the lpuart serial port on the Freescale SoCs,
  you can make it the console by answering Y to this option.
+config SERIAL_ST_ASC
+   tristate ST ASC serial port support
+   select SERIAL_CORE
+   help
+ This driver is for the on-chip Asychronous Serial Controller on
+ STMicroelectronics STi SoCs.
+ ASC is embedded in ST COMMS IP block. It supports Rx  Tx 
functionality.
+ It support all industry standard baud rates.
+
+ If unsure, say N.
+
+config SERIAL_ST_ASC_CONSOLE
+   bool Support for console on ST ASC
+   depends on SERIAL_ST_ASC=y
+   select SERIAL_CORE_CONSOLE
 
 endmenu
 
diff --git a/drivers/tty/serial/Makefile b/drivers/tty/serial/Makefile
index cf650f0..47b679c 100644
--- a/drivers/tty/serial/Makefile
+++ b/drivers/tty/serial/Makefile
@@ -65,6 +65,7 @@ obj-$(CONFIG_SERIAL_KGDB_NMI) += kgdb_nmi.o
 obj-$(CONFIG_SERIAL_KS8695) += serial_ks8695.o
 obj-$(CONFIG_SERIAL_OMAP) += omap-serial.o
 obj-$(CONFIG_SERIAL_ALTERA_UART) += altera_uart.o
+obj-$(CONFIG_SERIAL_ST_ASC) += st-asc.o
 obj-$(CONFIG_KGDB_SERIAL_CONSOLE) += kgdboc.o
 obj-$(CONFIG_SERIAL_QE) += ucc_uart.o
 obj-$(CONFIG_SERIAL_TIMBERDALE)+= timbuart.o
diff --git a/drivers/tty/serial/st-asc.c b/drivers/tty/serial/st-asc.c
new file mode 100644
index 000..1838798
--- /dev/null
+++ b/drivers/tty/serial/st-asc.c
@@ -0,0 +1,937 @@
+/*
+ * st-asc.c: ST Asynchronous serial controller (ASC) driver
+ *
+ * Copyright (C) 2003-2013 STMicroelectronics (RD) Limited
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ */
+
+#if defined(CONFIG_SERIAL_ST_ASC_CONSOLE)  defined(CONFIG_MAGIC_SYSRQ)
+#define SUPPORT_SYSRQ