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: 825298 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3yD1tp4Ztgz9t2S for ; Fri, 13 Oct 2017 20:02:10 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753320AbdJMJCH (ORCPT ); Fri, 13 Oct 2017 05:02:07 -0400 Received: from mail.free-electrons.com ([62.4.15.54]:41746 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750973AbdJMJCF (ORCPT ); Fri, 13 Oct 2017 05:02:05 -0400 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 Cc: linux-serial@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, Thomas Petazzoni , Antoine Tenart , Nadav Haklai , Wilson Ding , Miquel Raynal 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 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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