Received: by 10.223.185.116 with SMTP id b49csp630118wrg; Wed, 21 Feb 2018 04:27:17 -0800 (PST) X-Google-Smtp-Source: AH8x225Zxyu5ooigR4TaxQF1knhGt8bWwON5qwfMzyyvpNlGksl4lS8CqA36mEjuo+zI4ztks3HN X-Received: by 10.101.93.17 with SMTP id e17mr2594752pgr.281.1519216037059; Wed, 21 Feb 2018 04:27:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519216037; cv=none; d=google.com; s=arc-20160816; b=LId5kA3c4uvoxqx/2sCBSRvkCnlIJXJeiTbx7At9eBdqejFTv653QG6dFf+lNFNwkb vfE9BVOmKSynfM0djzhS7KNl2uXp44mgLn1ItNNJfGXzHC39GGO6RyaYOXEtkcC9QLeB 2hlG8fMF15p/DLXxHbZc/KoaQwNDdtjCeDPVLmUbo7bwyjavBi2czDhhOc7DebhGClZf DPo7aErMvsYn543H+fYlD+iJ6snw4+ztlCUjsMoQO43199SP2W0CxPRhQiS2UNO5lHzw AaXXOt5wYXlSPKtWhPfi6CLzFEktYVZ502WG0yb6cW2s/pbkl2wO3l94BoDakynIvC6B ItGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=D8gdoroK2cb49XEDV38FdnEtIqnwAi3qUg3/Ksm4rM4=; b=kV1gW3nZ4AEo2Ql7CcW+CFx3P6YNUglgxSekYIvP5UxEv+mADGj4jfAr9pnb+xt403 0Qdw2H0qkAQ93spXLv/YeRJTpHiLFMlN3gdOYeQ/pD+SG3xs99masVxZznplPrTqZUQO YLtxnVc7jWBRKwf+/fHsJjhKL6/wNxwHO392fEAlWhaHE09fcyihY39+Pw3vFIg9ztID dSf/0s4rD093r6mEj/TkQtN101FV+UjkPlM85RYqnFhm/+YvkjbXaaFmMHRCK503Mo8S VOROSv30roGehduILlmB4I3lcUFKv6BaWnbEZyfX8/eiPtfgilhUxzV7sBbdKKv/IaX5 63wA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w3si2714153pgp.418.2018.02.21.04.27.02; Wed, 21 Feb 2018 04:27:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752829AbeBUJAv (ORCPT + 99 others); Wed, 21 Feb 2018 04:00:51 -0500 Received: from bastet.se.axis.com ([195.60.68.11]:43309 "EHLO bastet.se.axis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752507AbeBUJAq (ORCPT ); Wed, 21 Feb 2018 04:00:46 -0500 Received: from localhost (localhost [127.0.0.1]) by bastet.se.axis.com (Postfix) with ESMTP id 702601842F; Wed, 21 Feb 2018 10:00:45 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at bastet.se.axis.com Received: from bastet.se.axis.com ([IPv6:::ffff:127.0.0.1]) by localhost (bastet.se.axis.com [::ffff:127.0.0.1]) (amavisd-new, port 10024) with LMTP id a80fwqchzdyV; Wed, 21 Feb 2018 10:00:44 +0100 (CET) Received: from boulder02.se.axis.com (boulder02.se.axis.com [10.0.8.16]) by bastet.se.axis.com (Postfix) with ESMTPS id 7D29F18305; Wed, 21 Feb 2018 10:00:44 +0100 (CET) Received: from boulder02.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6B5231A073; Wed, 21 Feb 2018 10:00:44 +0100 (CET) Received: from boulder02.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 604D11A06F; Wed, 21 Feb 2018 10:00:44 +0100 (CET) Received: from seth.se.axis.com (unknown [10.0.2.172]) by boulder02.se.axis.com (Postfix) with ESMTP; Wed, 21 Feb 2018 10:00:44 +0100 (CET) Received: from lnxartpec1.se.axis.com (lnxartpec1.se.axis.com [10.88.4.10]) by seth.se.axis.com (Postfix) with ESMTP id 530D41BF8; Wed, 21 Feb 2018 10:00:44 +0100 (CET) Received: by lnxartpec1.se.axis.com (Postfix, from userid 20283) id 4E52F401B8; Wed, 21 Feb 2018 10:00:44 +0100 (CET) From: Niklas Cassel To: arm@kernel.org, Jesper Nilsson , Lars Persson , Niklas Cassel , Rob Herring , Mark Rutland , Russell King Cc: linux-arm-kernel@axis.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 6/8] ARM: dts: artpec: add and utilize nbpfaxi DMA controllers Date: Wed, 21 Feb 2018 09:59:58 +0100 Message-Id: <20180221090000.18091-7-niklas.cassel@axis.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180221090000.18091-1-niklas.cassel@axis.com> References: <20180221090000.18091-1-niklas.cassel@axis.com> X-TM-AS-GCONF: 00 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add nodes for the nbpfaxi DMA controllers used in the artpec6 SoC, and start using them for the exising UARTs. Signed-off-by: Niklas Cassel --- arch/arm/boot/dts/artpec6.dtsi | 58 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/arch/arm/boot/dts/artpec6.dtsi b/arch/arm/boot/dts/artpec6.dtsi index 7a6d8f39823a..1c46df0c03ce 100644 --- a/arch/arm/boot/dts/artpec6.dtsi +++ b/arch/arm/boot/dts/artpec6.dtsi @@ -41,6 +41,7 @@ */ #include +#include #include #include "skeleton.dtsi" @@ -213,6 +214,51 @@ ranges; dma-ranges; + dma0: dma@f8019000 { + compatible = "renesas,nbpfaxi64dmac8b16"; + reg = <0xf8019000 0x400>; + interrupts = , /* error */ + , + , + , + , + , + , + , + ; + interrupt-names = "error", + "ch0", "ch1", "ch2", "ch3", + "ch4", "ch5", "ch6", "ch7", + "ch8", "ch9", "ch10", "ch12", + "ch12", "ch13", "ch14", "ch15"; + clocks = <&clkctrl ARTPEC6_CLK_DMA_ACLK>; + #dma-cells = <2>; + dma-channels = <8>; + dma-requests = <8>; + }; + dma1: dma@f8019400 { + compatible = "renesas,nbpfaxi64dmac8b16"; + reg = <0xf8019400 0x400>; + interrupts = , /* error */ + , + , + , + , + , + , + , + ; + interrupt-names = "error", + "ch0", "ch1", "ch2", "ch3", + "ch4", "ch5", "ch6", "ch7", + "ch8", "ch9", "ch10", "ch12", + "ch12", "ch13", "ch14", "ch15"; + clocks = <&clkctrl ARTPEC6_CLK_DMA_ACLK>; + #dma-cells = <2>; + dma-channels = <8>; + dma-requests = <8>; + }; + ethernet: ethernet@f8010000 { clock-names = "stmmaceth", "ptp_ref"; clocks = <&clkctrl ARTPEC6_CLK_ETH_ACLK>, @@ -266,6 +312,9 @@ clock-names = "uart_clk", "apb_pclk"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart0>; + dmas = <&dma0 4 (NBPF_SLAVE_RQ_HIGH | NBPF_SLAVE_RQ_LEVEL)>, + <&dma0 5 (NBPF_SLAVE_RQ_HIGH | NBPF_SLAVE_RQ_LEVEL)>; + dma-names = "rx", "tx"; status = "disabled"; }; uart1: serial@f8037000 { @@ -277,6 +326,9 @@ clock-names = "uart_clk", "apb_pclk"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart1>; + dmas = <&dma0 6 (NBPF_SLAVE_RQ_HIGH | NBPF_SLAVE_RQ_LEVEL)>, + <&dma0 7 (NBPF_SLAVE_RQ_HIGH | NBPF_SLAVE_RQ_LEVEL)>; + dma-names = "rx", "tx"; status = "disabled"; }; uart2: serial@f8038000 { @@ -288,6 +340,9 @@ clock-names = "uart_clk", "apb_pclk"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart2>; + dmas = <&dma1 0 (NBPF_SLAVE_RQ_HIGH | NBPF_SLAVE_RQ_LEVEL)>, + <&dma1 1 (NBPF_SLAVE_RQ_HIGH | NBPF_SLAVE_RQ_LEVEL)>; + dma-names = "rx", "tx"; status = "disabled"; }; uart3: serial@f8039000 { @@ -299,6 +354,9 @@ clock-names = "uart_clk", "apb_pclk"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart3>; + dmas = <&dma1 2 (NBPF_SLAVE_RQ_HIGH | NBPF_SLAVE_RQ_LEVEL)>, + <&dma1 3 (NBPF_SLAVE_RQ_HIGH | NBPF_SLAVE_RQ_LEVEL)>; + dma-names = "rx", "tx"; status = "disabled"; }; }; -- 2.14.2