From patchwork Sat Apr 8 12:04:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 748573 X-Patchwork-Delegate: blogic@openwrt.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3w0Zts3HgCz9s7F for ; Sat, 8 Apr 2017 22:07:01 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="f/btj3eS"; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 9BC62B915F7; Sat, 8 Apr 2017 14:05:58 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP; Sat, 8 Apr 2017 14:05:58 +0200 (CEST) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 83C2BB915EF for ; Sat, 8 Apr 2017 14:05:40 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .linaro. - helo: .mail-lf0-f49.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -7 Received: from mail-lf0-f49.google.com (mail-lf0-f49.google.com [209.85.215.49]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Sat, 8 Apr 2017 14:05:40 +0200 (CEST) Received: by mail-lf0-f49.google.com with SMTP id s141so17179140lfe.3 for ; Sat, 08 Apr 2017 05:05:40 -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=RIIw56dydvxz4maGVX1wZyNBzzCt496f2Ya48dbnq5k=; b=f/btj3eSfWHt38Mr/jjRsCLpEFwd2tPg/9fN85cbizAENZltmvE6kdHXSHfN9BOl1X bQy7+4YJJBTIEoc1OLL5bkdzn19hRdKOT2wFkvYipkD313EnxJCu7uXPtux+VJdT7IxD oo/gE6IQA8Mxkfp29JYSS5qnxtFOydO2PckYM= 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=RIIw56dydvxz4maGVX1wZyNBzzCt496f2Ya48dbnq5k=; b=SBTzcchi4l8GF8eC1VBCYQhKLpQQhGsoEUVQEIbsE7+JoIAOoINUorTtqGSyU6b+9b 3O9ciGsbdXoYb+4SFnqRrbUPU7N32pOBKl1/9iflSlJ/JvNag+PSXDLMfYDz07Jdqdi+ gwtTLvH3A7/gGV76GGLTsEuSLlFFr/Iz6q0M1eygF5ZyOk6lSYA9rwZeJRhv2TbO7t+q UZdtum2q1IbktCuqTSOXP5s1T+KulZAAQcHZAUg/Bfg3h+jYo++ML6lnSvlO+q+rLZ2d 3rwQ71a8cDYoHWGb05jk1TGeNDiLt6XuV9jd8mJGEjZCN4sWfzuQxswtZoOU3gFI28lQ om7g== X-Gm-Message-State: AFeK/H18Per5rtR4Eol69ssQGh+GHJf2j8yrkgB8f7P3pKd46Z6Ur7+E0djQS0FdHzBh3b/w X-Received: by 10.46.84.76 with SMTP id y12mr11579220ljd.126.1491653139667; Sat, 08 Apr 2017 05:05:39 -0700 (PDT) Received: from fabina.bredbandsbolaget.se (c-7a7871d5.014-348-6c756e10.cust.bredbandsbolaget.se. [213.113.120.122]) by smtp.gmail.com with ESMTPSA id j15sm1516339lfg.22.2017.04.08.05.05.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 08 Apr 2017 05:05:38 -0700 (PDT) From: Linus Walleij To: Vinod Koul , dmaengine@vger.kernel.org Date: Sat, 8 Apr 2017 14:04:57 +0200 Message-Id: <20170408120457.22750-6-linus.walleij@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170408120457.22750-1-linus.walleij@linaro.org> References: <20170408120457.22750-1-linus.walleij@linaro.org> Subject: [OpenWrt-Devel] [PATCH 6/6] ARM: dts: Add Gemini DMA controller X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: openwrt-devel@openwrt.org, Paulius Zaleckas , Kuo-Jung Su , Janos Laube , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" This adds the Faraday Technology FTDMAC020 DMA controller to the Gemini SoC DTSI file. It is only used for memcpy work so we can activate it for all users of the chipset. To make the PrimeCell bus work properly we need to add a summy PCLK clock, as the generic clock framework always gets compiled in on multiplatform builds. Signed-off-by: Linus Walleij --- Vinod: this is just for context, this patch will be directed through the ARM SoC tree once the rest is done. --- arch/arm/boot/dts/gemini.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/gemini.dtsi b/arch/arm/boot/dts/gemini.dtsi index e3fedcb69e2f..468ebdf9e594 100644 --- a/arch/arm/boot/dts/gemini.dtsi +++ b/arch/arm/boot/dts/gemini.dtsi @@ -8,6 +8,12 @@ #include / { + pclk: pclk@0 { + #clock-cells = <0>; + compatible = "fixed-clock"; + clock-frequency = <0>; + }; + soc { #address-cells = <1>; #size-cells = <1>; @@ -186,5 +192,21 @@ syscon = <&syscon>; status = "disabled"; }; + + dma-controller@67000000 { + compatible = "faraday,ftdma020", "arm,pl080", "arm,primecell"; + /* Faraday Technology FTDMAC020 variant */ + arm,primecell-periphid = <0x0003b080>; + reg = <0x67000000 0x1000>; + interrupts = <9 IRQ_TYPE_EDGE_RISING>; + clocks = <&pclk>; + clock-names = "apb_pclk"; + /* Bus interface AHB1 (AHB0) is totally tilted */ + lli-bus-interface-ahb2; + mem-bus-interface-ahb2; + memcpy-burst-size = <256>; + memcpy-bus-width = <32>; + #dma-cells = <2>; + }; }; };