linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] serial: sh-sci: Add support for SCIFA/SCIFB variable sampling rates
@ 2016-01-04 13:45 Geert Uytterhoeven
  2016-01-04 13:45 ` [PATCH 1/5] serial: sh-sci: Add more Serial Mode Register documentation Geert Uytterhoeven
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Geert Uytterhoeven @ 2016-01-04 13:45 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Jiri Slaby
  Cc: Simon Horman, Magnus Damm, Yoshinori Sato, linux-serial, linux-sh,
	Geert Uytterhoeven

	Hi Greg, Jiri,

This patch series adds support for variable sampling rates on the SCIFA
and SCIFB variants.

Currently the driver uses a fixed sampling rate divider (usually 16 or 32),
except on HSCIF (full range of 8 to 32).  Supporting all available
sampling rates on SCIFA and SCIFB increases the range and accuracy of
supported baud rates.

E.g. on r8a7791/koelsch:
  - Supports now 134, 150, and standard 500000-4000000 bps,
  - Perfect match for 134, 150, 500000, 1000000, 2000000, and 4000000
    bps,
  - Accuracy has increased for most standard bps values.

Tested on:
  - r8a7791/koelsch (Fully tested on SCIFA and SCIFB),
  - r8a7740/armadillo (Fully tested on SCIFA and SCIFB),
  - sh73a0/kzm9g (Fully tested on SCIFA only, no easy access to SCIFB),
  - r8a73a4/ape6evm (SCIFA/FTDI console at 460800 bps, no easy access to
    SCIFB).

This series depends on my scif-clk-sck-brg-for-v4.5 pull request.

Thanks for your comments!

Geert Uytterhoeven (5):
  serial: sh-sci: Add more Serial Mode Register documentation
  serial: sh-sci: Preserve SCIFA/SCIFB bit rate config for serial
    console
  serial: sh-sci: Use premultiplier to handle half sampling rate
  serial: sh-sci: Use a bitmask to indicate supported sampling rates
  serial: sh-sci: Add support for SCIFA/SCIFB variable sampling rates

 drivers/tty/serial/sh-sci.c | 106 ++++++++++++++++++++++++++------------------
 drivers/tty/serial/sh-sci.h |  15 +++++++
 2 files changed, 77 insertions(+), 44 deletions(-)

-- 
1.9.1

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-01-04 13:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-04 13:45 [PATCH 0/5] serial: sh-sci: Add support for SCIFA/SCIFB variable sampling rates Geert Uytterhoeven
2016-01-04 13:45 ` [PATCH 1/5] serial: sh-sci: Add more Serial Mode Register documentation Geert Uytterhoeven
2016-01-04 13:45 ` [PATCH 2/5] serial: sh-sci: Preserve SCIFA/SCIFB bit rate config for serial console Geert Uytterhoeven
2016-01-04 13:45 ` [PATCH 3/5] serial: sh-sci: Use premultiplier to handle half sampling rate Geert Uytterhoeven
2016-01-04 13:45 ` [PATCH 4/5] serial: sh-sci: Use a bitmask to indicate supported sampling rates Geert Uytterhoeven
2016-01-04 13:45 ` [PATCH 5/5] serial: sh-sci: Add support for SCIFA/SCIFB variable " Geert Uytterhoeven

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).