From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752780AbaHLOMa (ORCPT ); Tue, 12 Aug 2014 10:12:30 -0400 Received: from mail-wi0-f180.google.com ([209.85.212.180]:46260 "EHLO mail-wi0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752282AbaHLOM3 (ORCPT ); Tue, 12 Aug 2014 10:12:29 -0400 From: Matthias Brugger To: linux-kernel@vger.kernel.org Cc: robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, rdunlap@infradead.org, gregkh@linuxfoundation.org, jslaby@suse.cz, grant.likely@linaro.org, matthias.bgg@gmail.com, alan@linux.intel.com, varkabhadram@gmail.com, tklauser@distanz.ch, heiko@sntech.de, yingjoe.chen@gmail.com, devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-serial@vger.kernel.org Subject: [PATCH v4 0/2] tty: serial: Add mediatek UART driver Date: Tue, 12 Aug 2014 16:12:15 +0200 Message-Id: <1407852737-17265-1-git-send-email-matthias.bgg@gmail.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthias Brugger Subject: [PATCH v4 0/2] tty: serial: Add mediatek UART driver Date: Tue, 12 Aug 2014 16:12:15 +0200 Message-ID: <1407852737-17265-1-git-send-email-matthias.bgg@gmail.com> Return-path: Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, pawel.moll-5wv7dgnIgG8@public.gmane.org, mark.rutland-5wv7dgnIgG8@public.gmane.org, ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org, galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org, rdunlap-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org, gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org, jslaby-AlSwsSmVLrQ@public.gmane.org, grant.likely-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org, matthias.bgg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, alan-VuQAYsv1563Yd54FQh9/CA@public.gmane.org, varkabhadram-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, tklauser-93Khv+1bN0NyDzI6CaY1VQ@public.gmane.org, heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org, yingjoe.chen-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-doc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-serial-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: devicetree@vger.kernel.org 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