From patchwork Thu Jan 10 17:34:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 155233 Delivered-To: patches@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp2159358jaa; Thu, 10 Jan 2019 09:34:25 -0800 (PST) X-Received: by 2002:a63:1c09:: with SMTP id c9mr10047881pgc.200.1547141665065; Thu, 10 Jan 2019 09:34:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547141665; cv=none; d=google.com; s=arc-20160816; b=T9d2xrxWEYLwZ3eOHinoLHKtlvYI72Jd15PoFasFR6hNqk1Sb1ZDcJhFtyioCT4Lii Ej80ILqqMLJQGDPzxu75hFSe4vvWYTqqTTEeHMmwiAROYC0RDuS8LZPwUWo/m/rf0IVD RwEpBtVQ4EvqzWGmU1adHq4M/zhEvvJflNuEw6439QiZP6pDllFR70iNd6ysFmwf6lqH D5KBn+01j3ekOiyS6HbFHVcSOB0NaqwHPCNeh8MHHu+z5ye4U1zlQfzD+1RDGWGjte3K eH10MeCLZoiRIpSo87DoIw0vJajKfEnmR+I3HdqprieLV5j2DgPlT6ZZTojIpbW/TrFM CCSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=VnxmDmWRiHgP8rQwZAnpNW6+tNuZ3Gwc75mIp5vRAak=; b=k5fw2QwLdJ37Rjh7f3zkSGq6KOR9Dwk04db4IGAnwtnfCS6ORKl4AhwIQhYGhPIfQn aPGvoOQjmvGvuBZoxIIRXYgt9b7MBu6roby6OkoZcFmG7fbAtcrhnNSGvKB87H6y6tjq pq8YpCGJEGbJmCXVhFpy2duhzxAuVpiMm7V21h7RMzj9b98HQDhg7G/wjqgGN9XxlJos vA07kr21DIn7CAF1aQqeDqINUC7Z/IGKbRFIt7bJFMtOPNYdF9+SXnT2qcHoK3JdVFjD YnO/uvg1RfWEwIWA1ukDk0KmrVgyGggC9vSvUk4Grej4ogpNknQQdHvqZAA6w1DVwefY Z3SA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SWCvuoSn; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id j6sor50845025pgq.46.2019.01.10.09.34.24 for (Google Transport Security); Thu, 10 Jan 2019 09:34:25 -0800 (PST) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SWCvuoSn; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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=VnxmDmWRiHgP8rQwZAnpNW6+tNuZ3Gwc75mIp5vRAak=; b=SWCvuoSnfQU8l4XA5RnQA4Xo85TwZCLQhNPOOlMXlpaSh1JIEkFmqrLaT4JNvUSEYS 6StZRSA+n1lJ0bk+PUSx6ANXLkFjSLSFjSHlgSAWpiaoZcwnazcC+08U0ncm9ALhZg7T Y3eLnSwq4XG0sX76Evoku9ko3752RGhLLn/TE= 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=VnxmDmWRiHgP8rQwZAnpNW6+tNuZ3Gwc75mIp5vRAak=; b=EMjYjg1MrkEygNoIVo9TCeQdQDFDpQ1Ok4lHiX/spPz1lP+1Q0RLAr0uN1IeHEYuxo /hhaPL5yUywRvN3a/DCGRRqh4YFCjCvUEEU7W6PxW7n4tDl84zUTYVuCcOYYPDavnp3v +A6VOeAkTOxZKJq616mxgC7JdonZvgbDSTg3ueEAcxfdxuHO3ZA+ZixNq3a1Kek48Q8n qMZKYjX4yJGE6i+wXhQUZ7bRvyXqmgQ/1PI7vQb62rvIEnczcsHyA2023zOXcd9paLDI KxUUl8c6kOMub4u3lbEfoAkeXyf8BGREwt9SBguo5v4G9kV8cBSWIVzOi5HdLTN47WIP Cljg== X-Gm-Message-State: AJcUukfW2fJa7AKyf3c1hgNvZTq9Mv+iVLjkk1kHv6VOy/udmZ1aVJtt ZQdBOVM6gZ5SRBu9c0YOIBoiN0mH X-Google-Smtp-Source: ALg8bN7XMfJIwJKKEavHsyAPlj4ivJhbI8iuWSsMXERF6VzGFeaZYQ1YqIKBRD4Wcncg2T0UDK0ewg== X-Received: by 2002:a63:1a0c:: with SMTP id a12mr9993920pga.157.1547141664636; Thu, 10 Jan 2019 09:34:24 -0800 (PST) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:4e72:b9ff:fe99:466a]) by smtp.gmail.com with ESMTPSA id k15sm125977409pfb.147.2019.01.10.09.34.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 10 Jan 2019 09:34:23 -0800 (PST) From: John Stultz To: lkml Cc: Tanglei Han , Zhuangluan Su , Ryan Grachek , Manivannan Sadhasivam , Wei Xu , Rob Herring , Mark Rutland , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, John Stultz Subject: [PATCH 6/8 v3] arm64: dts: hi3660: Add dma to uart nodes Date: Thu, 10 Jan 2019 09:34:10 -0800 Message-Id: <1547141652-8660-7-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1547141652-8660-1-git-send-email-john.stultz@linaro.org> References: <1547141652-8660-1-git-send-email-john.stultz@linaro.org> 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 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(+) -- 2.7.4 diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi index 20ae40d..4c8d682 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";