Received: by 10.223.185.116 with SMTP id b49csp862659wrg; Tue, 20 Feb 2018 09:03:32 -0800 (PST) X-Google-Smtp-Source: AH8x225qyVVWWh9NTb7MK6hEY+gLVHtvZvVVJ6dI7GgXGGcPUmrnT43GQy3gH9Ln280LkkIe2sq3 X-Received: by 2002:a17:902:50e:: with SMTP id 14-v6mr260868plf.360.1519146212823; Tue, 20 Feb 2018 09:03:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519146212; cv=none; d=google.com; s=arc-20160816; b=i8POzY9vWQ3jb5bJrilNthtpYfVvPFc+ReW005uyoBaQOSZRT/PEqtJMwjV9lilAR+ yMcIXzph9Xq7vtuT60RrZoDgDNEXnIpmfgL68hpmKpvK3vV1TzrhlCHwWKbrV7qPEIzh qaCyeICSKBePnyL7E6SaUezvvBV1WndexGC5M9ckrvPK78c5479KFKdIHUgpQwElNpWA br9Mwx2+HHIsPQOTeLD0iNUFap7c8HM9Hk00TQv4dhL+Np1npYqIn6L5YGjSF0gorF17 6Q0+I3KxOXYocAGYGWMrlik3tYso8DSEsR8QFKLoN9t0XDxJrRfoK8XhYSyQVx7ShNN9 otAw== 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=ZNO2DMhsPjbKkvDUZ5FIaoEMfoYJSugYx2oJ79AQmiVKWzItW4OwuWPDkzd8jNd8gt VGHuXKNMjiQ44iwLANiKBo1SWQ/q+oUtksnJz+5nNO8tNNr4cltEbAe9qYPJCT/xB5Wj dza5cQfhOkmh/3w5JvyJpZw5VrhiP5LkwR7ThPgAqoIZ8t++r5iea9me/bLuJ2bMKidG LfcnJgwKHRrCqxgmKx5Iu50DSU7YXTxn7SYPeaSZSxEkJzLaDuI/38MBPZgSsHaNfCzx Q3aAalUFn/UQo/u6A/3mD8fLNEqzEwv5zDAv9DcaI2UsHIuhNWvc2zrSecflfmy9OAJE U3MA== 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 c8-v6si29901plm.9.2018.02.20.09.02.54; Tue, 20 Feb 2018 09:03:32 -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 S1753385AbeBTRB4 (ORCPT + 99 others); Tue, 20 Feb 2018 12:01:56 -0500 Received: from bastet.se.axis.com ([195.60.68.11]:34010 "EHLO bastet.se.axis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752079AbeBTRBv (ORCPT ); Tue, 20 Feb 2018 12:01:51 -0500 Received: from localhost (localhost [127.0.0.1]) by bastet.se.axis.com (Postfix) with ESMTP id 38633183EF; Tue, 20 Feb 2018 18:01:50 +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 y6tFfi9zFPlO; Tue, 20 Feb 2018 18:01:49 +0100 (CET) Received: from boulder03.se.axis.com (boulder03.se.axis.com [10.0.8.17]) by bastet.se.axis.com (Postfix) with ESMTPS id 0A9D918405; Tue, 20 Feb 2018 18:01:49 +0100 (CET) Received: from boulder03.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EA1491E074; Tue, 20 Feb 2018 18:01:48 +0100 (CET) Received: from boulder03.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DEA7B1E072; Tue, 20 Feb 2018 18:01:48 +0100 (CET) Received: from seth.se.axis.com (unknown [10.0.2.172]) by boulder03.se.axis.com (Postfix) with ESMTP; Tue, 20 Feb 2018 18:01:48 +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 D16961B5A; Tue, 20 Feb 2018 18:01:48 +0100 (CET) Received: by lnxartpec1.se.axis.com (Postfix, from userid 20283) id CBADC401B8; Tue, 20 Feb 2018 18:01:48 +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 6/8] ARM: dts: artpec: add and utilize nbpfaxi DMA controllers Date: Tue, 20 Feb 2018 18:00:47 +0100 Message-Id: <20180220170049.22809-7-niklas.cassel@axis.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180220170049.22809-1-niklas.cassel@axis.com> References: <20180220170049.22809-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