From patchwork Fri Oct 13 09:01:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 10003961 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F2F60602B3 for ; Fri, 13 Oct 2017 09:31:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E6C8C27F60 for ; Fri, 13 Oct 2017 09:31:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DB3AA28FD2; Fri, 13 Oct 2017 09:31:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3BBD627F60 for ; Fri, 13 Oct 2017 09:31:54 +0000 (UTC) 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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To: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:List-Owner; bh=HIeQIGWVAwWKQPHyYcU5MkmQqxMCaf79394UcTwpjh8=; b=uORE2pID7whyPvz7j+eyo8s9I7 dCa2Ya/1+ad7l5e5B9eFznojUm1Y4YyWLzgCQzdcUzovElZM5/+sJsOzkkp5jbnmRT7o3GvjgbSTt Jt6SGtnGPYb/r72m+skVe6EQs/KFwQOZsiT6BfOz+sEjOyWlybBtONHBQ2euUe/TF/gmrSBps65NG haYnfYc/8VCv4sgtQ4hbDnyk8nZXvlbpUM5FgfyaiQ1MivwQuCexMz9dHlFqAUstgK1p739DbNIy5 YjE82hRdp73fwdCFI77Segv0nE0rvNtqjnB31Ny/j4GzV3uOivBsLihiOl/rJSfPvsWDBZUe2F8W5 tdioQl9Q==; 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 1e2wJo-0006T4-JT; Fri, 13 Oct 2017 09:31:48 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e2wHd-0002T4-CJ for linux-arm-kernel@bombadil.infradead.org; Fri, 13 Oct 2017 09:29:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=P2gVg0JW3dv/+zTuk3Dhux/1XR3N2Vs6wxVw/xAgEa4=; b=czRxNPcxrPOV07s3AeRXHWgfW tDgHziP3Yj3LFqXBzo9GEqM93Gjk2zIOpU3U5J9dCuW8iKgxULsN57UxtePd8zttcWIgMZMxrXXr9 EhnKnr+ngvh2u9FvEGecrePLYUtzTwQPehRRHWicnB+axuBqEFs1kAV19azJu714jVjNN7PsJAVf6 yYcXOBYrmLC0DPkk7O4FvpVbLQM+rbvwyNqU0Tbv9HHwj1QncY35i8tcEGo0RwGUGr3sz7j/9aNjp +RFwCnyp7rZiwhm2BNtufO84MNdKM3rBL0EPaMyDVN4jxJNo3kTTkAKtBBPbJtTV4E6maldvur1Kn zs8oIXSZw==; Received: from mail.free-electrons.com ([62.4.15.54]) by merlin.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e2vs6-00005W-Gj for linux-arm-kernel@lists.infradead.org; Fri, 13 Oct 2017 09:03:12 +0000 Received: by mail.free-electrons.com (Postfix, from userid 110) id 73C0A2084F; Fri, 13 Oct 2017 11:02:18 +0200 (CEST) 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 0F7C1207E1; Fri, 13 Oct 2017 11:02:18 +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 14/16] arm64: dts: marvell: armada-37xx: add second UART port Date: Fri, 13 Oct 2017 11:01:58 +0200 Message-Id: <20171013090200.31034-15-miquel.raynal@free-electrons.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171013090200.31034-1-miquel.raynal@free-electrons.com> References: <20171013090200.31034-1-miquel.raynal@free-electrons.com> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: 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 MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add a node in Armada 37xx DTSI file for the second UART, with a different compatible due to its extended IP which has some differences with the first UART already in place. Make use of this commit to also fully describe the first port and use the same clear and named interrupt bindings for both ports. The standard UART (UART0) uses level-interrupts while the extended UART (UART1) uses edge-triggered interrupts. Signed-off-by: Miquel Raynal Acked-by: Gregory CLEMENT --- arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi index a36d667f770e..72b68f23c001 100644 --- a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi +++ b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi @@ -55,6 +55,7 @@ aliases { serial0 = &uart0; + serial1 = &uart1; }; cpus { @@ -136,7 +137,22 @@ compatible = "marvell,armada-3700-uart"; reg = <0x12000 0x200>; clocks = <&xtalclk>; - interrupts = ; + interrupts = + , + , + ; + interrupt-names = "uart-sum", "uart-tx", "uart-rx"; + status = "disabled"; + }; + + uart1: serial@12200 { + compatible = "marvell,armada-3700-uart-ext"; + reg = <0x12200 0x30>; + clocks = <&xtalclk>; + interrupts = + , + ; + interrupt-names = "uart-tx", "uart-rx"; status = "disabled"; };