From patchwork Tue May 30 08:08: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: 9753999 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B5596602F0 for ; Tue, 30 May 2017 08:09:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A6FF727E63 for ; Tue, 30 May 2017 08:09:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9948A2818A; Tue, 30 May 2017 08:09:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3DEE927E63 for ; Tue, 30 May 2017 08:09:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751245AbdE3IJS (ORCPT ); Tue, 30 May 2017 04:09:18 -0400 Received: from mail-lf0-f51.google.com ([209.85.215.51]:33077 "EHLO mail-lf0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751242AbdE3IJR (ORCPT ); Tue, 30 May 2017 04:09:17 -0400 Received: by mail-lf0-f51.google.com with SMTP id m18so44684480lfj.0 for ; Tue, 30 May 2017 01:09:12 -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; bh=GvQjNbX/rJkdvvDr+9ZW2LH/5HGTdF/Zi1kvR8yyrtA=; b=T4j0UcChfALlmhJQD0bUDnSP+ygQZGCNo2b54Tp3GMcHPZkyHYV4BeZfMW0cTBPxIv Cjry0Sg5HBnhpWIzcG/F0V4C5j32QmA3p5q541WlnXKErWqiwkYlpHYYIvbxAvYwjmXf 7VrCz2l/fnqrqbATlsXMfLJU6siTM6S1Q7TLo= 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; bh=GvQjNbX/rJkdvvDr+9ZW2LH/5HGTdF/Zi1kvR8yyrtA=; b=seteJAKuUKKc1v43EP9TbmHE2lCHhwusodISwVoaVVS8WSLPYTW+QQcXlai3M7PwJB MpZcV5vOy27EPtE9K2bHXuU2tFs1D6rbts2qymAfSuq12mOzuuV57/zVv18JdvooJpDE 9NCnunvonHG2Ox0QkD10EO54bPWFIfHlJoeQQyzxmGZwWiPyFBaxW64BfUwmpuoAas4M /+0vZjCV4rCWbz8mpnaW0NwRoFuxq2O9PJ9L31clgxQOneSF5FzystDQbD/s5Hefkpo9 oHQeHCBUl9aT07htF1/M5NuQEEwpCzHUF4aKPhcFc+Knd3z0iuPw7cya3yjoajMafL2f p67Q== X-Gm-Message-State: AODbwcCURjl0esoNWcV6nhn27fqjvjOh5hJDTRXlyQZs5xnfwJd/psE+ q3qsvNFrahEcwN+z X-Received: by 10.25.102.18 with SMTP id a18mr4640721lfc.49.1496131746116; Tue, 30 May 2017 01:09:06 -0700 (PDT) Received: from fabina.bredbandsbolaget.se (c-9d7e71d5.014-348-6c756e10.cust.bredbandsbolaget.se. [213.113.126.157]) by smtp.gmail.com with ESMTPSA id 22sm2441100ljv.67.2017.05.30.01.09.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 May 2017 01:09:04 -0700 (PDT) From: Linus Walleij To: linux-arm-kernel@lists.infradead.org, Hans Ulli Kroll , Florian Fainelli Cc: Janos Laube , Paulius Zaleckas , linux-clk@vger.kernel.org, Linus Walleij Subject: [PATCH] ARM: dts: Add Gemini DMA controller Date: Tue, 30 May 2017 10:08:57 +0200 Message-Id: <20170530080857.13806-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.9.4 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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. Signed-off-by: Linus Walleij --- The driver has been merged to the DMA tree. The clock and reset lines are added with numerical values as we do not want to depend on headers in the merge window. Will be fixed post-rc1. --- arch/arm/boot/dts/gemini.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm/boot/dts/gemini.dtsi b/arch/arm/boot/dts/gemini.dtsi index 80abf84f8a80..0beaa4ef757e 100644 --- a/arch/arm/boot/dts/gemini.dtsi +++ b/arch/arm/boot/dts/gemini.dtsi @@ -175,5 +175,22 @@ #interrupt-cells = <1>; }; }; + + 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>; + resets = <&syscon 10>; + clocks = <&syscon 1>; + 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>; + }; }; };