From patchwork Thu Apr 4 08:16:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 10885231 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 18BCD1708 for ; Thu, 4 Apr 2019 08:17:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 01EE928A28 for ; Thu, 4 Apr 2019 08:17:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E9F9328A2D; Thu, 4 Apr 2019 08:17:16 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 5EF6228A28 for ; Thu, 4 Apr 2019 08:17:16 +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=PuRhrBXOZT5fR80FyL3ZeaWXWXTEbsHpZf7Amhi0FLE=; b=CcptldAjeJEvYe+wvEphSaH369 ZPlmDn4nEQLdkOj0Smefx8jvYcTTwbshpWC3MNyd7PlJt4ej/I4mG7D9tYAa+CHsPqf2kbXT6blKM Ja4WcEW+Ef/44rqfHRPqAs9fzVn+BvOyE2nRM8uhq6Qjpr9fXWx+VyagH0Pgy03g1f+UOgk3rqP/w cjKAH6ACR3uM9J2LEoZLQbTRlRSb5XNEs8IIC/fSyfwIh0EkPP+LNiDyAWlUVGNFcJoNbWIkvwEER WetuhlXA0wJKsl3euyo/kVVJnzEBlgPOxb/nAaCB4h3RwYxW7Gzo/qCK3GBs0av0tkNsRchA51QbV Dc2gubyA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBxYb-00060r-Pw; Thu, 04 Apr 2019 08:17:09 +0000 Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBxY7-0005H3-F5 for linux-arm-kernel@lists.infradead.org; Thu, 04 Apr 2019 08:16:51 +0000 Received: by mail-pl1-x641.google.com with SMTP id m10so767051plt.10 for ; Thu, 04 Apr 2019 01:16:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=3WFDGlXmYECw79Q41NjIHGfPygiaXYVxcsbulVh6YIk=; b=xqhXud9D8ZzCmeNC+QrKKIVT/UiIn9dig1QYWFOsNlIqPrHFW6xklV/clsCXg5AZDy UG2AlkD/QMa24G9mgqBTIcQUMVO3uUsYvrwcCRCVnY6GGYVYJlPWJY+vNP4C9/KzgcUG gJur1UWcQMxN5XJ/Yi28RoJ2LYVFTOHTYMUoAQYHFGMiVHY8s+t+UbaF8jFhjdyy1Diw RPU1i1ZGBIGr8BWShbl8yeHdIXDcJSez62uEOSRysvspiUCo1GEeq59HRq9itOxTT0ck w3UT5zTTpVMmfHlarxqEZYRS3nWhTyGgxbesnz13LF+uQioZbARJJkkplj/Bi8JXPTCb qzeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=3WFDGlXmYECw79Q41NjIHGfPygiaXYVxcsbulVh6YIk=; b=gNXKopGaxaalkOBASuifM58BYQElqwBtZ8hdAu9CJkAtvccWO5eeA1+HbUwpg5+5I6 wMOMUQIiUTJIZQiok+32jFAMNp9UayXqbaF6C8FUmLW0SDPvcW4BcosIWOUaqEnH8lXi irRE5z2vfyQcIDUfEwWKW9NIFy4TmA8iiuhjBjWbNbAAYAIfK1UaGpDB5KageO2hDzMB tUUBmU3v7bgGFl9SPZyqufVKdnhmxL6ivf1zA/3lGT4P/zRXt2z6LhPSqx9EpNpAnO6L TNTm2S4eQbWB7+WKN8fSQR64wwGK1zSjWSIZfRL86pd0ZXlm+E2uRF9pd8RG1dc4+Cdm rEYw== X-Gm-Message-State: APjAAAVGoRYBwPaHkJPTKpWi4wJsMjjP1ihHWPbzYOBRGAKMpWX324Zs 1he50UqCrZMNiPotbtLyoTRU1A== X-Google-Smtp-Source: APXvYqxOJZkdZc7XRyOpy0yck6xh7db+3GYFns8oLKKHvkJELSlhfGsMaakrZsTuwxhQpS0eV8bZUg== X-Received: by 2002:a17:902:8349:: with SMTP id z9mr4817116pln.144.1554365798362; Thu, 04 Apr 2019 01:16:38 -0700 (PDT) Received: from localhost.localdomain ([2601:1c2:680:1319:4e72:b9ff:fe99:466a]) by smtp.gmail.com with ESMTPSA id d129sm26041389pfa.142.2019.04.04.01.16.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Apr 2019 01:16:37 -0700 (PDT) From: John Stultz To: lkml Subject: [RESEND][PATCH 1/3] arm64: dts: hi3660: Add dma to uart nodes Date: Thu, 4 Apr 2019 01:16:26 -0700 Message-Id: <1554365788-25610-2-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1554365788-25610-1-git-send-email-john.stultz@linaro.org> References: <1554365788-25610-1-git-send-email-john.stultz@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190404_011639_857819_D07B2CF1 X-CRM114-Status: GOOD ( 13.47 ) 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: Mark Rutland , devicetree@vger.kernel.org, Ryan Grachek , Zhuangluan Su , Tanglei Han , Wei Xu , Rob Herring , John Stultz , Manivannan Sadhasivam , 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 Try to add DMA support to the uart nodes following the assignments made in the dts from the victoria vendor kernel here: https://consumer.huawei.com/en/opensource/detail/?siteCode=worldwide&keywords=p10&fileType=openSourceSoftware&pageSize=10&curPage=1 Cc: Tanglei Han Cc: Zhuangluan Su Cc: Ryan Grachek Cc: Manivannan Sadhasivam Cc: Wei Xu Cc: Rob Herring Cc: Mark Rutland Cc: linux-arm-kernel@lists.infradead.org Cc: devicetree@vger.kernel.org Acked-by: Manivannan Sadhasivam Signed-off-by: John Stultz --- v3: * Remove dma enablment on uart0 which would use reserved channel 0 --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi index 1734675..37a997a 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi @@ -484,6 +484,8 @@ compatible = "arm,pl011", "arm,primecell"; reg = <0x0 0xfdf00000 0x0 0x1000>; interrupts = ; + dma-names = "rx", "tx"; + dmas = <&dma0 2 &dma0 3>; clocks = <&crg_ctrl HI3660_CLK_GATE_UART1>, <&crg_ctrl HI3660_CLK_GATE_UART1>; clock-names = "uartclk", "apb_pclk"; @@ -496,6 +498,8 @@ compatible = "arm,pl011", "arm,primecell"; reg = <0x0 0xfdf03000 0x0 0x1000>; interrupts = ; + dma-names = "rx", "tx"; + dmas = <&dma0 4 &dma0 5>; clocks = <&crg_ctrl HI3660_CLK_GATE_UART2>, <&crg_ctrl HI3660_PCLK>; clock-names = "uartclk", "apb_pclk"; @@ -520,6 +524,8 @@ compatible = "arm,pl011", "arm,primecell"; reg = <0x0 0xfdf01000 0x0 0x1000>; interrupts = ; + dma-names = "rx", "tx"; + dmas = <&dma0 6 &dma0 7>; clocks = <&crg_ctrl HI3660_CLK_GATE_UART4>, <&crg_ctrl HI3660_CLK_GATE_UART4>; clock-names = "uartclk", "apb_pclk"; @@ -532,6 +538,8 @@ compatible = "arm,pl011", "arm,primecell"; reg = <0x0 0xfdf05000 0x0 0x1000>; interrupts = ; + dma-names = "rx", "tx"; + dmas = <&dma0 8 &dma0 9>; clocks = <&crg_ctrl HI3660_CLK_GATE_UART5>, <&crg_ctrl HI3660_CLK_GATE_UART5>; clock-names = "uartclk", "apb_pclk";