From patchwork Wed Mar 20 20:25:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 10862601 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 1EDB61575 for ; Wed, 20 Mar 2019 20:26:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F1E8A2969F for ; Wed, 20 Mar 2019 20:26:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E657A29EA6; Wed, 20 Mar 2019 20:26:07 +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 5F0362969F for ; Wed, 20 Mar 2019 20:26:07 +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=HVG+5aBllW2BCLaYXn8wiLtk9SgGR4/M4glM6+m+WO4=; b=FWDwrikXDmQA0bt/0qLcoopQwg v94Ahypakhjiz1L6BohYTBoAaG9qvf4RawtAbai8L9a2UzIxXydfF4kqsJynbYLvWZev8oVJhUECi JYBdi7ey6jA38PbXeACscDV9pv9jPAx+xiLT2/JJzRqiwOrXJ4TLLcU5iObUdghfUXhrPVuU9TKaY 0wv+eGCHmiyRSm+lVA7Tlmni7M2s6s+6Fjl/BgOwlRFvvgxvSWlqPgZn1JQtpNVBRbslMxjcOzmsZ YY31rVM1r7L57u7lWRGISE73lFuEatwlRwd5ihuLazcLTxv0E844lVXpM34eBtUVY+tISU4JTad+B S/qbIShw==; 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 1h6hmj-0005o4-5p; Wed, 20 Mar 2019 20:26:01 +0000 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h6hmU-0005Vj-TM for linux-arm-kernel@lists.infradead.org; Wed, 20 Mar 2019 20:25:47 +0000 Received: by mail-pg1-x544.google.com with SMTP id q206so2613571pgq.4 for ; Wed, 20 Mar 2019 13:25:46 -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=eAdIcXOpcOR3wLEK4yruXkVpo6EckNrG1lSlt64OUZI=; b=gIzBRJzcM+k5r6H4u4+EmCE3SkWkBarn6xj+dfByEbYU7tyCwU8C8qRM8SuVpGSwwI nNWEdn4Y1qh6rTXdtp1RwtsToGSGVArL0l2IsBLMuig1aTa+NDPOZsObVCR0DWiBe3bg KBiF4CHp1gHIcKbIoB/Lquzlp/1Y+doko+byLhUG1GyuHD8/Zdk2qOZO3t+23Ma/WRD+ mMaDMQjMYyWj5SnCGo57GVIZ+XTbDUfy7IM6b/5XQx3uz5vPDntMxGGrELPt3VBf7uEo A0dtp8mzjiqSmhRuz54+EWjWc6EAhdFB3H9+RXfrAVBQW8OJ0o+Jer5+O/6Xaq/XZ/jP eFKQ== 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=eAdIcXOpcOR3wLEK4yruXkVpo6EckNrG1lSlt64OUZI=; b=j7dK/5lx/pAoms6+1U+XEn5g3vZaPCTqFPkB0gpoyXK5xYlINwxcFkjl6Q6Q790JGI m6Mp+udp+dLTyFZvWZgiHK62Myf5p8qFmE53YPpdDfOPKrmA3wpQveYygbt5Sm5kbavk xAGZ75q6ScicsSfJgy4v3rawc3EByqlxcSpbn/OeNYve/bxYW92AQj1VyFzqK/KbjOIQ UDJnWB16KH7k2ofg/iwhylJZUc1rNGxUVnZ4MJAAjh1yi+DSxOcd/KqwlvpXdZobD0lx riDd3KlLSr91yVhB81iL275cv6AvJhC5l90QCyRqJs74Xh8PCYD31K8fMyx8GVan/ki9 Mssg== X-Gm-Message-State: APjAAAWVaTy4mBRL6uUQiuQao7BbrOa4SXO5e3h4CbYurnvmvhmVyHlF gdraLU5ebK1Ivgpuy04dNyEWdQ== X-Google-Smtp-Source: APXvYqx6PDtUYK1QEqYly0pizPEw5ZfEhXv7OAmY9NV/TFotUocn/4vIvwVyax2nNAujPSdtMxpjkg== X-Received: by 2002:a63:e801:: with SMTP id s1mr30451014pgh.378.1553113546379; Wed, 20 Mar 2019 13:25:46 -0700 (PDT) Received: from localhost.localdomain ([2601:1c2:680:1319:4e72:b9ff:fe99:466a]) by smtp.gmail.com with ESMTPSA id u187sm866338pfu.113.2019.03.20.13.25.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 Mar 2019 13:25:45 -0700 (PDT) From: John Stultz To: lkml Subject: [PATCH 1/3] arm64: dts: hi3660: Add dma to uart nodes Date: Wed, 20 Mar 2019 13:25:38 -0700 Message-Id: <1553113540-28726-2-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1553113540-28726-1-git-send-email-john.stultz@linaro.org> References: <1553113540-28726-1-git-send-email-john.stultz@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190320_132546_948111_B1ACC88B X-CRM114-Status: GOOD ( 13.21 ) 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 2f19e0e..a3eeab1 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi @@ -478,6 +478,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"; @@ -490,6 +492,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"; @@ -514,6 +518,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"; @@ -526,6 +532,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";