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: 161764 Delivered-To: patches@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp1301237jan; Thu, 4 Apr 2019 01:16:38 -0700 (PDT) X-Received: by 2002:a63:170d:: with SMTP id x13mr4510806pgl.169.1554365798774; Thu, 04 Apr 2019 01:16:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554365798; cv=none; d=google.com; s=arc-20160816; b=QEMlvutNXiJVes7ubzi9fsyukqmK2cit9wfdCfrhIW/eagyG14I5BxnhqmqsOMJYLy AyjxYK0W1OJMQr3ZaB+OUYKPL3hEiOtqdAv2sqdmVg5nyqty83m/E0rvl+x61K55vNUm ef8l+Pm07CyXcIXe/qZ3Z07NLifOPsvgx+LY9vWg4xSdxSSe3ff5mX80L3KsDa/z0oIx VDg5aTs1RVkqgC5l69eRBNAIlyMAckzJlCd7mVzm4ai5Hli6Cf3Chxjq960KEag9QOsG ZQS1+RhaCl99dO82lfeDNmX5+zdCNcRakeLYUL9piVbRCk+bu8XfqfFDzeqASkSXXNlJ /JZA== 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=3WFDGlXmYECw79Q41NjIHGfPygiaXYVxcsbulVh6YIk=; b=rk+K1LvvoNO6qD5HL0a1Jc5g8r3oZNzinhKrEdLB2eXxp1AyJ0NNNZwjy5BYVs2PSB anFaTMzCpSpNU24o9QfiWUfLcmZbCTjSrfDyTfjPCX69Dc4+F1tvMiXjq0kIl5xAgOs2 ZzetgeVqHTiUnMVmcOVYfZrk80cFbN+J5kMvpjdYXw/NBoz4zKrSheu0Oo3D53LC15ZR Mcp1l9UJGHfxPdRjZCfmPQZXEVKg5IK7RuKNU2FvZ2exqmbNJzRYUrMAj/vwQxsaOZL6 kkZ41pnVeoCs90qTVwTh2HbQze/8Jt47+pVWWqFMK9LSKyZ8ckN0+6PRBzUAPINm6S3c ZOdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xqhXud9D; 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 q5sor23517975pls.13.2019.04.04.01.16.38 for (Google Transport Security); Thu, 04 Apr 2019 01:16:38 -0700 (PDT) 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=xqhXud9D; 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=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=V7Kqkm5uN0QL0Z2GVUyWNfUbDP/nxEIg1YZksEsDz9iQQ4i4wFM26U7bZKWn4vN8cD bELQhfZnITgy6yjjL9IqV9Gt/+wX84WxgGO4G732LofWHyWklMIZUidQUvkVVx+qLnPn jA8g7KDiowYTW0tD+4h/uhmpdbXsQUOogeTET+wDSBOhxQU3xfIGudM39YdDI4BcoEkm XSFbi4ykJF6iNYlTtPnoKUKxI4Pp8vgJVribDw4OCWQMBHhWRdnL92Tb716tpHba26ue 0meBneCbG6ygZlx2qnnx7jhZCL2QsCg3q7N/RZG1Am3kF9Rg3mH30CHuntODk761dVFE ri0Q== X-Gm-Message-State: APjAAAVD5iROWnOMhm+VtDtFwbqfrYKEZ2QuJgQVrZHP49NE3PLmHclK GSq0h8KK/bkzrKcsF/X1TKooE5MN 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) Return-Path: 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 Cc: John Stultz , Tanglei Han , Zhuangluan Su , Ryan Grachek , Manivannan Sadhasivam , Wei Xu , Rob Herring , Mark Rutland , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org 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> 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(+) -- 2.7.4 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";