From patchwork Sun Jul 6 04:05:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Emilio_L=C3=B3pez?= X-Patchwork-Id: 4489141 X-Patchwork-Delegate: vinod.koul@intel.com Return-Path: X-Original-To: patchwork-dmaengine@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7EBB09F36A for ; Sun, 6 Jul 2014 04:07:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A595320375 for ; Sun, 6 Jul 2014 04:07:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D40F920222 for ; Sun, 6 Jul 2014 04:07:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751080AbaGFEHR (ORCPT ); Sun, 6 Jul 2014 00:07:17 -0400 Received: from yotta.elopez.com.ar ([31.220.24.173]:54221 "EHLO yotta.elopez.com.ar" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750958AbaGFEHQ (ORCPT ); Sun, 6 Jul 2014 00:07:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=elopez.com.ar; s=mail; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=wf5HGuus70C4UEyjOSNNhokzdumZL63eMJmAJPPNd9s=; b=ZZc18jYR21QAvtafskirE6zP7+c9fc6SbhWdmZk6e3Ry25aGx5N9yg4mlJ5siZ0cJ6esLOHVO3yz+GKcEvPc4KakjR7xyL3Fp90aU5tTUqW8eydyj4EaMj5W0AYmomRBsBFLapiYndas8ihUfcFyZvldjmTJUqMnyWheeIQIdISU+Z2gZoCWN1jIKduElz74udSbySR4UUgujQFuJ53MmdAuO01ctBCdKR9EH4LD7P454JOBvMTni3SYa0wewB+4LLUGgmXaLLHbqrzd52I0bq98pnLp8AnzLO2mcIYF8I396CkiRFLCbi+xjbXqyZjBuyoaAInreD0wpbpRv+KbxQ==; Received: from [181.164.71.8] (helo=desktop.lan) by yotta.elopez.com.ar with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_CBC_SHA256:128) (Exim 4.82_1-5b7a7c0-XX) id 1X3djM-0001kf-8U; Sun, 06 Jul 2014 01:07:12 -0300 From: =?UTF-8?q?Emilio=20L=C3=B3pez?= To: Maxime Ripard , vinod.koul@intel.com, dan.j.williams@intel.com Cc: Ezequiel Garcia , , , shuge@allwinnertech.com, sunny@allwinnertech.com, kevin.z.m.zh@gmail.com, zhuzhenhua@allwinnertech.com, Chen-Yu Tsai , =?UTF-8?q?Emilio=20L=C3=B3pez?= Subject: [PATCH v2 4/8] ARM: sun5i: Add nodes to represent the DMA controllers Date: Sun, 6 Jul 2014 01:05:11 -0300 Message-Id: <1404619518-7592-5-git-send-email-emilio@elopez.com.ar> X-Mailer: git-send-email 2.0.1 In-Reply-To: <1404619518-7592-1-git-send-email-emilio@elopez.com.ar> References: <1404619518-7592-1-git-send-email-emilio@elopez.com.ar> MIME-Version: 1.0 Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The A10S and A13 SoCs have sun4i-compatible DMA controllers. Let's add the corresponding nodes to represent them on the device tree. Signed-off-by: Emilio López Reviewed-by: Chen-Yu Tsai --- Note that I have only tested on A10S, if anyone with an A13 device could test as well, that would be great! arch/arm/boot/dts/sun5i-a10s.dtsi | 8 ++++++++ arch/arm/boot/dts/sun5i-a13.dtsi | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/sun5i-a10s.dtsi b/arch/arm/boot/dts/sun5i-a10s.dtsi index b64f705..3708817 100644 --- a/arch/arm/boot/dts/sun5i-a10s.dtsi +++ b/arch/arm/boot/dts/sun5i-a10s.dtsi @@ -300,6 +300,14 @@ #size-cells = <1>; ranges; + dma: dma-controller@01c02000 { + compatible = "allwinner,sun4i-a10-dma"; + reg = <0x01c02000 0x1000>; + interrupts = <27>; + clocks = <&ahb_gates 6>; + #dma-cells = <2>; + }; + spi0: spi@01c05000 { compatible = "allwinner,sun4i-a10-spi"; reg = <0x01c05000 0x1000>; diff --git a/arch/arm/boot/dts/sun5i-a13.dtsi b/arch/arm/boot/dts/sun5i-a13.dtsi index 3b2a94c..1f1adf2 100644 --- a/arch/arm/boot/dts/sun5i-a13.dtsi +++ b/arch/arm/boot/dts/sun5i-a13.dtsi @@ -298,6 +298,14 @@ #size-cells = <1>; ranges; + dma: dma-controller@01c02000 { + compatible = "allwinner,sun4i-a10-dma"; + reg = <0x01c02000 0x1000>; + interrupts = <27>; + clocks = <&ahb_gates 6>; + #dma-cells = <2>; + }; + spi0: spi@01c05000 { compatible = "allwinner,sun4i-a10-spi"; reg = <0x01c05000 0x1000>;