Skip to contentSkip to conversation

staging:f81534 Add F81532/534 Driver

PATCH Superseded Peter Hung 2 participants 4 messages Jun 12, 2015 Staging

v1 of 12 Superseded Latest is v12 →

lore
Share & tools
lore

Peter Hung

author
#0 lore raw

PATCH 1/1 staging:f81534 Add F81532/534 Driver

This driver is for Fintek F81532/F81534 USB to Serial Ports IC.

Features:

	1.	F81534 is 1-to-4 & F81532 is 1-to-2 serial ports IC
	2.	Support Baudrate from B50 to B1500000 (excluding B1000000).
	3.	The RTS signal can be transformed their behavior with configuration
		for transceiver (for RS232/RS485/RS422)
	4.	There are 4x3 GPIOs to control transceiver. It's can be controlled
		with sysfs

If had any question, Please send email to
[email protected]
[email protected]

Patches Welcome :D

---
 drivers/staging/Kconfig         |    2 +
 drivers/staging/Makefile        |    1 +
 drivers/staging/f81534/Kconfig  |   10 +
 drivers/staging/f81534/Makefile |    1 +
 drivers/staging/f81534/Readme   |    9 +
 drivers/staging/f81534/TODO     |   12 +
 drivers/staging/f81534/f81534.c | 3335 +++++++++++++++++++++++++++++++++++++++
 7 files changed, 3370 insertions(+)
 create mode 100644 drivers/staging/f81534/Kconfig
 create mode 100644 drivers/staging/f81534/Makefile
 create mode 100644 drivers/staging/f81534/Readme
 create mode 100644 drivers/staging/f81534/TODO
 create mode 100644 drivers/staging/f81534/f81534.c
drivers/staging/Kconfig +2 -0
index 7f6cae5..b7c0bd0 100644
@@ -112,4 +112,6 @@ source "drivers/staging/fsl-mc/Kconfig"
 
 source "drivers/staging/wilc1000/Kconfig"
 
+source "drivers/staging/f81534/Kconfig"
+
 endif # STAGING
drivers/staging/Makefile +1 -0
index 347f647..9d17cb8 100644
@@ -48,3 +48,4 @@ obj-$(CONFIG_COMMON_CLK_XLNX_CLKWZRD)	+= clocking-wizard/
 obj-$(CONFIG_FB_TFT)		+= fbtft/
 obj-$(CONFIG_FSL_MC_BUS)	+= fsl-mc/
 obj-$(CONFIG_WILC1000)		+= wilc1000/
+obj-$(CONFIG_USB_SERIAL_F8153X)		+= f81534/
drivers/staging/f81534/Kconfig new file +10 -0
new file mode 100644
index 0000000..41bf55c
@@ -0,0 +1,10 @@
+#
+# Xilinx Clocking Wizard Driver
+#
+
+config USB_SERIAL_F8153X
+	tristate "F81532/534 USB to Serial Ports Driver"
+	depends on USB_SERIAL
+	default m
+	---help---
+	  Support for Fintek F81532/534 USB to Serial Ports board
drivers/staging/f81534/Makefile new file +1 -0
new file mode 100644
index 0000000..d73178d
@@ -0,0 +1 @@
+obj-$(CONFIG_USB_SERIAL_F8153X)	+= f81534.o
drivers/staging/f81534/Readme new file +9 -0
new file mode 100644
index 0000000..00b72b0
@@ -0,0 +1,9 @@
+This driver is for Fintek F81534/F81532
+
+Features:
+	1.	F81534 is 1-to-4 & F81532 is 1-to-2 serial ports IC
+	2.	Support Baudrate from B50 to B1500000 (excluding B1000000).
+	3.	The RTS signal can be transformed their behavior with configuration
+		for transceiver (for RS232/RS485/RS422)
+	4.	There are 4x3 GPIOs to control transceiver. It's can be controlled with
+		sysfs
\ No newline at end of file
drivers/staging/f81534/TODO new file +12 -0
new file mode 100644
index 0000000..422bdf2
@@ -0,0 +1,12 @@
+Current Progress
+	- Functional Test ok (BurninTest 921600bps 4Port / S4 / S5)
+
+TODO:
+	- Code review
+	- checkpatch.pl
+
+Welcome to send patch for F81532/534 If you found a problem.
+
+Patches to:
+	Greg Kroah-Hartman <[email protected]>
+	Peter Hong <[email protected]>
drivers/staging/f81534/f81534.c new file +3335 -0

2,957 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 1 line
1.9.1

Part of the diff is not shown here. View the raw message.

maintainer
#1 lore raw
Quoted 10 lines · Peter Hung

This driver is for Fintek F81532/F81534 USB to Serial Ports IC.

Features:

	1.	F81534 is 1-to-4 & F81532 is 1-to-2 serial ports IC
	2.	Support Baudrate from B50 to B1500000 (excluding B1000000).
	3.	The RTS signal can be transformed their behavior with configuration
		for transceiver (for RS232/RS485/RS422)
	4.	There are 4x3 GPIOs to control transceiver. It's can be controlled
		with sysfs
Quoted 3 lines

If had any question, Please send email to
[email protected]
[email protected]

Why not just do the work now to clean up the file and get it merged "properly"? Why put this in staging at all?

thanks,

greg k-h

author
#2 lore raw

Greg KH 於 2015/6/12 下午 12:33 寫道:

Quoted 3 lines

Why not just do the work now to clean up the file and get it merged "properly"? Why put this in staging at all?

I'll clear up the file and resend it to usb-serial subsystem mail list. Thanks for your advices.

Signature · 2 lines
With Best Regards,
Peter Hung
maintainer
#3 lore raw
Quoted 6 lines · Peter Hung

Greg KH 於 2015/6/12 下午 12:33 寫道:

Quoted 3 lines

Why not just do the work now to clean up the file and get it merged "properly"? Why put this in staging at all?

I'll clear up the file and resend it to usb-serial subsystem mail list.

Note, the "custom" ioctls will have to be removed, we can't have them in a usb-serial driver, sorry. Use the "real" GPIO api interface instead.

thanks,

greg k-h