From patchwork Sun Nov 22 07:53:58 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcin Wojtas X-Patchwork-Id: 7675631 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 989889F7CA for ; Sun, 22 Nov 2015 07:59:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BD85A20647 for ; Sun, 22 Nov 2015 07:59:29 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F05D02064C for ; Sun, 22 Nov 2015 07:59:28 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1a0PWe-0003Wh-Rt; Sun, 22 Nov 2015 07:57:32 +0000 Received: from mail-lf0-x233.google.com ([2a00:1450:4010:c07::233]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1a0PTh-00008J-70 for linux-arm-kernel@lists.infradead.org; Sun, 22 Nov 2015 07:54:32 +0000 Received: by lfaz4 with SMTP id z4so91271800lfa.0 for ; Sat, 21 Nov 2015 23:54:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=hhAAv/xW5LeF8rW+XJQ9UbqfNJy7Qs16EPdu1WoGgEc=; b=axCYa802gLz2fsuHJiBBpXunnqTLzbu64DypKWQoeYNdk29PH8iYhuVf6zVlV4si75 Q0irp8rg8+pARqya3j0KDIv78IxWwLAnK1DYbPlDpQ6ATn759fSPgsPS7jfZNL9m8Ji9 m4yVZWBDITm9+IZFJfov8vuIi6KbYjQagPRDylvpItPrrR8N4/jmFi2JI1ZdIanQkRA9 Lju9rLYWYAT1zSBkJ6ZKgRMRh727fq5GY5kJovXol11ebFEGum+gFK+ihegU3mK9zjgQ hLoKKCMbkawCfdhuf2TDIwxY6Ve7emhX4WltKqvIoJ9ZkbW2G8tDDbOEIet/GH+9TtN0 Z0LQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=hhAAv/xW5LeF8rW+XJQ9UbqfNJy7Qs16EPdu1WoGgEc=; b=biij7WbRRTi3+tJJWV2b24hw9CPxQacalyw5gbitWUcD1tI7N91hfCPdj6ClZYB4sE z7kWljIEks0OsL1Ls93VUmjP3TyCDoCxTeinGysiBPc1iL4q4FAtgeGuOg5MOe8M35Mb OSaHief9P9lHn8mJXqYMtXeGPWi9g/tTXHxM3A+99YJ4HHNqbqI0dDeWLk/YwobPq4xl 0HMpTZoN0GcRj+1ye9ytWoKTVlwzJJM6J5au4Ho7M9Ej5jAAolsP08gcYs2yFmD8gFX0 j3N8+XsmOj82aojSBjN6Kdio/19bc/E2qPvfrac8YylTui4OThXIo3TCRPB4fbDkj+O1 1zkw== X-Gm-Message-State: ALoCoQkZUuPy1WWofuqDhni4kX/Gorg5fWA7MxacUR4q3Mz5nI6G+Us/XMrvSOva3Qg5M6ebiijo X-Received: by 10.25.208.11 with SMTP id h11mr886191lfg.109.1448178846868; Sat, 21 Nov 2015 23:54:06 -0800 (PST) Received: from enkidu.semihalf.local (cardhu.semihalf.com. [213.17.239.108]) by smtp.gmail.com with ESMTPSA id y79sm1010840lfd.45.2015.11.21.23.54.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 21 Nov 2015 23:54:06 -0800 (PST) From: Marcin Wojtas To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org Subject: [PATCH 12/13] ARM: mvebu: add buffer manager nodes to armada-xp.dtsi Date: Sun, 22 Nov 2015 08:53:58 +0100 Message-Id: <1448178839-3541-13-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1448178839-3541-1-git-send-email-mw@semihalf.com> References: <1448178839-3541-1-git-send-email-mw@semihalf.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151121_235429_705471_0EB1B6BB X-CRM114-Status: UNSURE ( 9.08 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: thomas.petazzoni@free-electrons.com, andrew@lunn.ch, linux@arm.linux.org.uk, jason@lakedaemon.net, myair@marvell.com, jaz@semihalf.com, simon.guinot@sequanux.org, xswang@marvell.com, nadavh@marvell.com, alior@marvell.com, tn@semihalf.com, gregory.clement@free-electrons.com, nitroshift@yahoo.com, mw@semihalf.com, davem@davemloft.net, sebastian.hesselbarth@gmail.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,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 Armada XP network controller supports hardware buffer management (BM). Since it is now enabled in mvneta driver, appropriate nodes can be added to armada-xp.dtsi - for the actual common BM unit (bm@c0000) and its internal SRAM (bm-bppi), which is used for indirect access to buffer pointer ring residing in DRAM. Pools - ports mapping, bm-bppi entry in 'soc' node's ranges and optional parameters are supposed to be set in board files. Signed-off-by: Marcin Wojtas --- arch/arm/boot/dts/armada-xp.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/armada-xp.dtsi b/arch/arm/boot/dts/armada-xp.dtsi index be23196..bd45936 100644 --- a/arch/arm/boot/dts/armada-xp.dtsi +++ b/arch/arm/boot/dts/armada-xp.dtsi @@ -253,6 +253,14 @@ marvell,crypto-sram-size = <0x800>; }; + bm: bm@c0000 { + compatible = "marvell,armada-380-neta-bm"; + reg = <0xc0000 0xac>; + clocks = <&gateclk 13>; + internal-mem = <&bm_bppi>; + status = "disabled"; + }; + xor@f0900 { compatible = "marvell,orion-xor"; reg = <0xF0900 0x100 @@ -291,6 +299,16 @@ #size-cells = <1>; ranges = <0 MBUS_ID(0x09, 0x05) 0 0x800>; }; + + bm_bppi: bm-bppi { + compatible = "mmio-sram"; + reg = ; + ranges = <0 MBUS_ID(0x0c, 0x04) 0 0x100000>; + #address-cells = <1>; + #size-cells = <1>; + clocks = <&gateclk 13>; + status = "disabled"; + }; }; clocks {