devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/2] tty: serial: Add mediatek UART driver
@ 2014-08-12 14:12 Matthias Brugger
  2014-08-12 14:12 ` [PATCH v4 1/2] tty: serial: 8250: Add Mediatek " Matthias Brugger
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Matthias Brugger @ 2014-08-12 14:12 UTC (permalink / raw)
  To: linux-kernel-u79uwXL29TY76Z2rM5mHXA
  Cc: robh+dt-DgEjT+Ai2ygdnm+yROfE0A, pawel.moll-5wv7dgnIgG8,
	mark.rutland-5wv7dgnIgG8, ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg,
	galak-sgV2jX0FEOL9JmXXK+q4OQ, rdunlap-wEGCiKHe2LqWVfeAwA7xHQ,
	gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r, jslaby-AlSwsSmVLrQ,
	grant.likely-QSEj5FYQhm4dnm+yROfE0A,
	matthias.bgg-Re5JQEeQqe8AvxtiuMwx3w, alan-VuQAYsv1563Yd54FQh9/CA,
	varkabhadram-Re5JQEeQqe8AvxtiuMwx3w,
	tklauser-93Khv+1bN0NyDzI6CaY1VQ, heiko-4mtYJXux2i+zQB+pC5nmwQ,
	yingjoe.chen-Re5JQEeQqe8AvxtiuMwx3w,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-doc-u79uwXL29TY76Z2rM5mHXA,
	linux-serial-u79uwXL29TY76Z2rM5mHXA

This patch set adds support for the UART found in Mediatek SoCs.
The chip is a changed version of a 8250 controller.
Especially it introduces a new register called highspeed. The value
in this register has to be set depending on the baudrate. The value
in the register influences the way the divisor has to be calculated.

The patch series is build against v3.16-rc1 and tested on mt6589. Should
work as well on mt6577 and mt6582.

Thanks,
Matthias

Changes for v4:
- delete owner in platform driver instance
- pass plattform_device to mtk8250_probe_of
- reorganise probe function to error out early
- Fix DTS documentation

Changes for v3:
- use dev_warn instead of pr_warn
- use 8250_core function to update termios

Changes for v2:
- drop 8250_core capability extension for the chip
- encapsulate set_termios in the driver method

---

Matthias Brugger (2):
  tty: serial: 8250: Add Mediatek UART driver
  DTS: serial: Add bindings documention for the Mediatek UARTs

 .../devicetree/bindings/serial/mtk-uart.txt        |   20 ++
 drivers/tty/serial/8250/8250_mtk.c                 |  294 ++++++++++++++++++++
 drivers/tty/serial/8250/Kconfig                    |    7 +
 drivers/tty/serial/8250/Makefile                   |    1 +
 4 files changed, 322 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/serial/mtk-uart.txt
 create mode 100644 drivers/tty/serial/8250/8250_mtk.c

-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2014-09-09 14:55 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-12 14:12 [PATCH v4 0/2] tty: serial: Add mediatek UART driver Matthias Brugger
2014-08-12 14:12 ` [PATCH v4 1/2] tty: serial: 8250: Add Mediatek " Matthias Brugger
2014-09-02 11:35   ` Mark Rutland
2014-09-08 22:32   ` Greg KH
2014-08-12 14:12 ` [PATCH v4 2/2] DTS: serial: Add bindings documention for the Mediatek UARTs Matthias Brugger
     [not found]   ` <1407852737-17265-3-git-send-email-matthias.bgg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-09-02 11:31     ` Mark Rutland
2014-09-08 22:33   ` Greg KH
2014-09-09 14:55     ` Matthias Brugger
2014-09-02 10:00 ` [PATCH v4 0/2] tty: serial: Add mediatek UART driver Matthias Brugger
     [not found] ` <1407852737-17265-1-git-send-email-matthias.bgg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-09-02 10:08   ` Matthias Brugger

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