From patchwork Thu Mar 16 05:53:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ralph Sennhauser X-Patchwork-Id: 9627199 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 D57C16048C for ; Thu, 16 Mar 2017 05:54:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BC6DA28637 for ; Thu, 16 Mar 2017 05:54:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B10112863B; Thu, 16 Mar 2017 05:54:03 +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=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3174B28637 for ; Thu, 16 Mar 2017 05:54:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=B4zHVSXn5xBMI2xT2dgCI0gzcMtfUTiEzwybeJksECE=; b=nPD Ise5SSMvP5HEw00aja1Vb83QAo0zNWvw8sGiMuuHcpWnT7J42EijB5L66IlznIX7Bx30E7lIeZ5VZ ZEHAM0P1n+hNxD0YhjprAjquQ6e41rSwqEkwuAp2kFUkYuXWhfOYJNjpjEHS5nCbtPXLNKbmxIqs/ /ZH0MHkue+gFWFMuNXJTausi6fWJOhar4abE2kfHItZpJMe2YXiEaNVA7K8qsq/jhI0KX/psTOg4A hmJDzs4WJRM8wP68hDfDqVOUEhxP/r9VDSQ0vgfsE0I+9keS6DUjjD/iJBcjzMnMM5B4oaksoP3l/ 7iCHtUYohUVZ0JxmqRknoYf+a//XvJA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1coOMM-0003no-VR; Thu, 16 Mar 2017 05:54:02 +0000 Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1coOMK-0003lt-6j for linux-arm-kernel@lists.infradead.org; Thu, 16 Mar 2017 05:54:01 +0000 Received: by mail-wr0-x244.google.com with SMTP id l37so4449576wrc.3 for ; Wed, 15 Mar 2017 22:53:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=6eo1nwNq6BlN7om6mBWXWqr5VlyeOjUTgbQHOvgD3qc=; b=agOu8H4IaQU+nDrxVIH/h12Go6OrvogGlOT7HUkXDM12YIKBSNSaXh8DkO94uw5/XD GCaRi8ZCbh5TCt+OQxIcR5rd4L/y3iQyDLptsG3wfjRyQiI7aKgzubCUQv2vM61GD5SJ F5Qt1TVkc14j1AR+pwENHoEh2+aAQ7OlUlSQFQ4Ueq7sXgta0AMvj/hWvL2XM6wXbAZL NWFc2PPTjHAjpS9Icw4dLU8+9SG6KoHJa7u7N6KvZdMJvzRx6LZv2nEC+Bxcl/fq6x7L gRNubfrosG/0DrbzcoWA/xgOGTYiHq4XuRoqLZIPDe/kDfNS+tGXYwDu9cUjxZlnLn2A 28+g== 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=6eo1nwNq6BlN7om6mBWXWqr5VlyeOjUTgbQHOvgD3qc=; b=px7OON0gesVxN6xgaVRem0pMNRROqEez6ma6AdKenPueHf52s77s8hUNBnIjxgO7DH T4XRsnhn81AjSfLCBBDWp3Ert0XhuaNCncnEk//4tGlGJ3cRXXVGDCMm8OsnfPL8bpa1 lTRMJHREf7ZlmjyXn7sfZjC1Gz+cqU8xTDKi/bfiKepDWM7Td4Vk2UiuaXpdqHctgybo rAYseBGLp0WvWLPSdyTwC4gokmL19d41KaknH6fxGpN0mAQGQFg+WqddxeQwR9fv3CPi PIRcVIrCKWKTJ12tUioGtOgLiV+gsPl7DOQcx/k+0KH3ALws6qNyiECwmCINRKP3geAS bvUw== X-Gm-Message-State: AFeK/H3m+a1SMLXP0I6vqOePIwEL/+KQQliooy7wLqBYpJUdbEkTRsFcw0WeTLi3PIKNHw== X-Received: by 10.223.136.183 with SMTP id f52mr5871253wrf.68.1489643617948; Wed, 15 Mar 2017 22:53:37 -0700 (PDT) Received: from localhost.lan ([37.209.189.139]) by smtp.googlemail.com with ESMTPSA id 127sm2935420wmt.20.2017.03.15.22.53.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 15 Mar 2017 22:53:36 -0700 (PDT) From: Ralph Sennhauser To: Gregory Clement Subject: [PATCH v2] ARM: dts: mvebu: linksys: enable buffer manager support Date: Thu, 16 Mar 2017 06:53:19 +0100 Message-Id: <20170316055320.7929-1-ralph.sennhauser@gmail.com> X-Mailer: git-send-email 2.10.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170315_225400_427951_4AA461B8 X-CRM114-Status: GOOD ( 11.22 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Andrew Lunn , Jason Cooper , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Russell King , open list , Rob Herring , Ralph Sennhauser , "moderated list:ARM/Marvell Kirkwood and Armada 370, 375, 38x, ..." , Sebastian Hesselbarth MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add appropriate properties to devices in the Linksys WRT AC Series for the mvneta driver to use hardware buffer management. Also update "soc" ranges property and set the status of bm and bm-bppi to "okay" (SRAM). Signed-off-by: Ralph Sennhauser --- v1 -> v2: Use independent pools for short (suggested by Gregory Clement) arch/arm/boot/dts/armada-385-linksys.dtsi | 17 ++++++++++++++++- arch/arm/boot/dts/armada-xp-linksys-mamba.dts | 17 ++++++++++++++++- 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/armada-385-linksys.dtsi b/arch/arm/boot/dts/armada-385-linksys.dtsi index df47bf1..aa0d225 100644 --- a/arch/arm/boot/dts/armada-385-linksys.dtsi +++ b/arch/arm/boot/dts/armada-385-linksys.dtsi @@ -59,7 +59,8 @@ ranges = ; + MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000 + MBUS_ID(0x0c, 0x04) 0 0xf1200000 0x100000>; internal-regs { i2c@11000 { @@ -88,6 +89,9 @@ ethernet@70000 { status = "okay"; phy-mode = "rgmii-id"; + buffer-manager = <&bm>; + bm,pool-long = <2>; + bm,pool-short = <3>; fixed-link { speed = <1000>; full-duplex; @@ -97,6 +101,9 @@ ethernet@34000 { status = "okay"; phy-mode = "sgmii"; + buffer-manager = <&bm>; + bm,pool-long = <0>; + bm,pool-short = <1>; fixed-link { speed = <1000>; full-duplex; @@ -159,6 +166,10 @@ status = "okay"; }; + bm@c8000 { + status = "okay"; + }; + /* USB part of the eSATA/USB 2.0 port */ usb@58000 { status = "okay"; @@ -241,6 +252,10 @@ }; }; + bm-bppi { + status = "okay"; + }; + pcie-controller { status = "okay"; diff --git a/arch/arm/boot/dts/armada-xp-linksys-mamba.dts b/arch/arm/boot/dts/armada-xp-linksys-mamba.dts index 3744ba3..9efcf59 100644 --- a/arch/arm/boot/dts/armada-xp-linksys-mamba.dts +++ b/arch/arm/boot/dts/armada-xp-linksys-mamba.dts @@ -71,7 +71,8 @@ ranges = ; + MBUS_ID(0x09, 0x05) 0 0 0xf1110000 0x10000 + MBUS_ID(0x0c, 0x04) 0 0 0xf1200000 0x100000>; internal-regs { @@ -95,6 +96,9 @@ pinctrl-names = "default"; status = "okay"; phy-mode = "rgmii-id"; + buffer-manager = <&bm>; + bm,pool-long = <0>; + bm,pool-short = <1>; fixed-link { speed = <1000>; full-duplex; @@ -106,6 +110,9 @@ pinctrl-names = "default"; status = "okay"; phy-mode = "rgmii-id"; + buffer-manager = <&bm>; + bm,pool-long = <2>; + bm,pool-short = <3>; fixed-link { speed = <1000>; full-duplex; @@ -186,6 +193,10 @@ }; }; + bm@c8000 { + status = "okay"; + }; + nand@d0000 { status = "okay"; num-cs = <1>; @@ -259,6 +270,10 @@ }; }; }; + + bm-bppi { + status = "okay"; + }; }; gpio_keys {