From patchwork Fri Dec 16 12:39:00 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 9477853 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 2A5CE601C2 for ; Fri, 16 Dec 2016 12:39:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1E54628810 for ; Fri, 16 Dec 2016 12:39:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 124F528827; Fri, 16 Dec 2016 12:39:17 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1F92628810 for ; Fri, 16 Dec 2016 12:39:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760109AbcLPMjP (ORCPT ); Fri, 16 Dec 2016 07:39:15 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:49907 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759775AbcLPMjO (ORCPT ); Fri, 16 Dec 2016 07:39:14 -0500 Received: from epcpsbgm2new.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OIA01VAZ35AE200@mailout1.samsung.com> for linux-samsung-soc@vger.kernel.org; Fri, 16 Dec 2016 21:39:12 +0900 (KST) X-AuditID: cbfee61b-f796f6d000004092-e3-5853e070d69b Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id A4.F3.16530.070E3585; Fri, 16 Dec 2016 21:39:12 +0900 (KST) Received: from AMDC2765.digital.local ([106.116.147.25]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OIA0099B354FFA0@mmp2.samsung.com>; Fri, 16 Dec 2016 21:39:12 +0900 (KST) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Sylwester Nawrocki , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz Subject: [PATCH v2] arm: dts: exynos: Enable DMA support for UART modules on Exynos5 SoCs Date: Fri, 16 Dec 2016 13:39:00 +0100 Message-id: <1481891940-10385-1-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1481891254-7992-1-git-send-email-m.szyprowski@samsung.com> References: <1481891254-7992-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrJLMWRmVeSWpSXmKPExsVy+t9jQd2CB8ERBmsuCllsnLGe1eL8+Q3s FjPO72OyWHvkLrvF4TftrA6sHptWdbJ59G1ZxejxeZNcAHOUm01GamJKapFCal5yfkpmXrqt UmiIm66FkkJeYm6qrVKErm9IkJJCWWJOKZBnZIAGHJwD3IOV9O0S3DLmPBAt2ClcMevDAtYG xo/8XYycHBICJhI3f/1hh7DFJC7cW8/WxcjFISQwi1Fi08LjrBDOL0aJG8fPM4NUsQkYSnS9 7WIDsUUEVCU+ty1gByliFtjPKHF+6zOwImGBaInT/bvAiliAil4+nsAEYvMKeEi8XvaEDWKd nMTJY5NZQWxOoPiL690sILaQgLtE69vDzBMYeRcwMqxilEgtSC4oTkrPNcpLLdcrTswtLs1L 10vOz93ECA7WZ9I7GA/vcj/EKMDBqMTD+2NbUIQQa2JZcWXuIUYJDmYlEV7BO8ERQrwpiZVV qUX58UWlOanFhxhNgQ6byCwlmpwPjKS8knhDE3MTc2MDC3NLSxMjJXHextnPwoUE0hNLUrNT UwtSi2D6mDg4pRoYpTUuHboZ+oq74/fP1fPL1rxLFeEKmhp84cW118nesiwLsmWKPE6zHNou 7/zjvNzq0CiOScEb1p7gShVf0JmoGrL1/sUTp77v+v+1J0R1DXNLTdab7Ne8K1ifvl+c+kNx w/4rZvwpTz9dDxM8Jzn3zJyXdXHPZvROPB9RsL1U5PAee+PYiD2XVymxFGckGmoxFxUnAgCa CU9EbAIAAA== X-MTR: 20000000000000000@CPGS Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP UART modules can use DMA for offloading data transfers and reducing interrupts, so enable this feature for Exynos5 boards. Tested on Google ChromeBook Snow (Exynos5250) and Odroid XU3 (Exynos5422) boards. Signed-off-by: Marek Szyprowski --- v2: - added Exynos5250 - fixed copy/paste typo for serial 2 and 3 --- arch/arm/boot/dts/exynos5250.dtsi | 8 ++++++++ arch/arm/boot/dts/exynos5420.dtsi | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi index 255b7c891d59..fc7ae8e557cc 100644 --- a/arch/arm/boot/dts/exynos5250.dtsi +++ b/arch/arm/boot/dts/exynos5250.dtsi @@ -1047,21 +1047,29 @@ &serial_0 { clocks = <&clock CLK_UART0>, <&clock CLK_SCLK_UART0>; clock-names = "uart", "clk_uart_baud0"; + dmas = <&pdma0 13>, <&pdma0 14>; + dma-names = "rx", "tx"; }; &serial_1 { clocks = <&clock CLK_UART1>, <&clock CLK_SCLK_UART1>; clock-names = "uart", "clk_uart_baud0"; + dmas = <&pdma0 15>, <&pdma0 16>; + dma-names = "rx", "tx"; }; &serial_2 { clocks = <&clock CLK_UART2>, <&clock CLK_SCLK_UART2>; clock-names = "uart", "clk_uart_baud0"; + dmas = <&pdma1 15>, <&pdma1 16>; + dma-names = "rx", "tx"; }; &serial_3 { clocks = <&clock CLK_UART3>, <&clock CLK_SCLK_UART3>; clock-names = "uart", "clk_uart_baud0"; + dmas = <&pdma1 17>, <&pdma1 18>; + dma-names = "rx", "tx"; }; #include "exynos5250-pinctrl.dtsi" diff --git a/arch/arm/boot/dts/exynos5420.dtsi b/arch/arm/boot/dts/exynos5420.dtsi index bb90326e53d2..f5468bbe8f13 100644 --- a/arch/arm/boot/dts/exynos5420.dtsi +++ b/arch/arm/boot/dts/exynos5420.dtsi @@ -1422,21 +1422,29 @@ &serial_0 { clocks = <&clock CLK_UART0>, <&clock CLK_SCLK_UART0>; clock-names = "uart", "clk_uart_baud0"; + dmas = <&pdma0 13>, <&pdma0 14>; + dma-names = "rx", "tx"; }; &serial_1 { clocks = <&clock CLK_UART1>, <&clock CLK_SCLK_UART1>; clock-names = "uart", "clk_uart_baud0"; + dmas = <&pdma0 15>, <&pdma0 16>; + dma-names = "rx", "tx"; }; &serial_2 { clocks = <&clock CLK_UART2>, <&clock CLK_SCLK_UART2>; clock-names = "uart", "clk_uart_baud0"; + dmas = <&pdma1 15>, <&pdma1 16>; + dma-names = "rx", "tx"; }; &serial_3 { clocks = <&clock CLK_UART3>, <&clock CLK_SCLK_UART3>; clock-names = "uart", "clk_uart_baud0"; + dmas = <&pdma1 17>, <&pdma1 18>; + dma-names = "rx", "tx"; }; &sss {