From patchwork Fri Oct 13 09:01:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 825349 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133; helo=bombadil.infradead.org; envelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="HSwSecPD"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="dYNfk544"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3yD2fp2ZmSz9sRq for ; Fri, 13 Oct 2017 20:36:50 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=/N+iwyE5hSpIiLQZ0myKTMdDBOaM5I5TxR2etbDGXjQ=; b=HSwSecPDPtXW0i jl3QJ5V5uCkZu064hwF/Reje/XVNjskGdOqg354Nlli00zwZF9pmbX7YdZWg539odopmXKolb2i8H mirwGz0ZAf3B+GbLZFwZLWkNmvumY4DDzRwQ1wzgtJ6eJBpjTsbukLJKtwx8cJ+v/X4JigTRPQ2li k7orOce0rY6KBC4CV0cDMbhszCu34VQt8AurbJpMhW/VRE5eThhZi5x0lm9HedAn10OnHt9YTG2Qb HAxRQ+zN31j8jODHEbEph9Sr+r8Bu9UWqMY8Egi0EE9q/AObkmw6e1+uOMJ813DCiwPXQQQT65l2Q aEXZ6lHrNIZaE7XKiAUw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e2wOY-0003vv-Q7; Fri, 13 Oct 2017 09:36:42 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e2wMK-0000Rh-NZ for linux-arm-kernel@bombadil.infradead.org; Fri, 13 Oct 2017 09:34:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=EQtm2D8g4ogErX0aN7DPKTaLi/iXKrWPfrJXz8eHXaQ=; b=dYNfk544YGP17zYNQJOHNaE86+ OvDsVeBSd+xyPyFD444B65MfNNUAvMpG8+1qQBWdTqZRzJATgt4Lby9B2Ofxr0BifLEksvN1lF5J7 QvjNGcdHHrFMNSfV5UoxTtfCdrwzBaIiOfLbSfrnktolbTH08JvW4zQA4LuTH2sjIzKkuhnziwfeg f+U2wbAGBuRqGplXLD91c77O61DmhhphmlBkKRQUaPO87ZLBMCqscLr7b1tlhREk1T2V57A5aCPn8 yF9F9+jMw0LCosAuCp9ZhYgeUHySn6XUwXOPQiriXNK25tauGEnnpMkjYj/FfNuVci06s2Dos0GmG KFEo7OZQ==; Received: from mail.free-electrons.com ([62.4.15.54]) by casper.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e2vrN-0001W3-NQ for linux-arm-kernel@lists.infradead.org; Fri, 13 Oct 2017 09:02:30 +0000 Received: by mail.free-electrons.com (Postfix, from userid 110) id 35C0220820; Fri, 13 Oct 2017 11:02:03 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost.localdomain (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.free-electrons.com (Postfix) with ESMTPSA id C4751207F7; Fri, 13 Oct 2017 11:02:02 +0200 (CEST) From: Miquel Raynal To: Greg Kroah-Hartman , Linus Walleij , Jason Cooper , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Jiri Slaby , Catalin Marinas , Will Deacon Subject: [PATCH v2 00/16] Support armada-37xx second UART port Date: Fri, 13 Oct 2017 11:01:44 +0200 Message-Id: <20171013090200.31034-1-miquel.raynal@free-electrons.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171013_100225_801910_108B99AD X-CRM114-Status: GOOD ( 21.63 ) X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.4.1 on casper.infradead.org summary: Content analysis details: (-1.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Petazzoni , devicetree@vger.kernel.org, Antoine Tenart , Nadav Haklai , linux-gpio@vger.kernel.org, linux-serial@vger.kernel.org, Miquel Raynal , Wilson Ding , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org Changes since v1: - Added a fallback in probe() to allow the use of this driver without device tree. - Used devm_free_irq() instead of free_irq(). - Changed comments on ESPRESSObin DTS. - Fixed various typos. - Added Gregory's Acked-by/Reviewed-by tags. Hi, This series adds support for the armada-37xx extended UART port. The new capabilities of this IP compared to the standard port are the possibility to use DMA, it has bigger FIFOs (128 bytes instead of 32/64), it is possible to fill the FIFO byte-per-byte or 4 bytes at a time, it as RTS and CTS control, it supports transfer count for RX/TX with transfer finish status and finally it may achieve higher baudrates by the use of special dividers. Almost none of these extended features are implemented though. For now, the extended UART is just supported with the same features as the standard UART. This IP is present on the Armada 3720 SoC and is now enabled by the device tree related patches on the Armada-3720-DB. As adding the node to enable the second port on Armada-3720-ESPRESSObin could break existing users by changing the configuration of some pins on the main headers, only a side note is added on how to do it easily. - The driver patches should go through Greg KH. - The DT patches should go through the mvebu maintainers. - We would also like the DT binding documentation update to go through the mvebu maintainers, as it conflicts with another DT change. Thank you, Miquel Allen Yan (5): serial: mvebu-uart: support probe of multiple ports serial: mvebu-uart: add soft reset at probe serial: mvebu-uart: add function to change baudrate serial: mvebu-uart: clear state register before IRQ request serial: mvebu-uart: add TX interrupt trigger for pulse interrupts Miquel Raynal (10): dt-bindings: mvebu-uart: update documentation with extended UART pinctrl: dt-bindings: Fix A37xx uart2 group name serial: mvebu-uart: use a generic way to access the registers serial: mvebu-uart: dissociate RX and TX interrupts serial: mvebu-uart: augment the maximum number of ports serial: mvebu-uart: support extended port registers layout arm64: dts: marvell: armada-37xx: add UART clock arm64: dts: marvell: armada-37xx: add second UART port arm64: dts: marvell: armada-3720-db: enable second UART port arm64: dts: marvell: armada-3720-espressobin: fill UART nodes Yehuda Yitschak (1): serial: mvebu-uart: use driver name when requesting an interrupt .../pinctrl/marvell,armada-37xx-pinctrl.txt | 4 +- .../devicetree/bindings/serial/mvebu-uart.txt | 49 ++- arch/arm64/boot/dts/marvell/armada-3720-db.dts | 9 +- .../boot/dts/marvell/armada-3720-espressobin.dts | 12 + arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 19 +- drivers/tty/serial/mvebu-uart.c | 483 +++++++++++++++++---- 6 files changed, 473 insertions(+), 103 deletions(-) Acked-by: Gregory CLEMENT Acked-by: Gregory CLEMENT