From patchwork Wed Mar 8 05:33:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ralph Sennhauser X-Patchwork-Id: 9610389 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 1F8AF6016C for ; Wed, 8 Mar 2017 05:34:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 210FF2859B for ; Wed, 8 Mar 2017 05:34:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 152BC285B7; Wed, 8 Mar 2017 05:34:30 +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=unavailable 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 98D282859B for ; Wed, 8 Mar 2017 05:34:29 +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=dTaKvRCDESykVgjIjzDjMSYN8Azen83nXi5XPTOgDds=; b=p5t gY1HMncfLJtqeWUUziFZ6Az+ZqQWs30ynn1LQ3jz43cpPidzxk9Y5fLY2y7GbPnCouSdUa6drNX6U FN2aeMyKr0oDrzbo5OYaOLR3oX6NNyohz63boihMiJ9fGy6vy2bbSML3m1eFlAagOX148h7J0Ki34 hVjWV8W5/gklRXUsZGr7ORyUOxYjrfOXeo994dEZNY0/Mxo+901Cg2oMTxMYBI8bbYB5Xdr+bTTX3 /5BgR9GwkeIDey4yOcMUMLVNKJ8nWOjRqFJZPb8/Y2dcz0hqgfmKfjh4CI0n8j7I/u7CRHTcE6hn0 hy/iK7KdYB9H2TaS9fD4q+VyPUr25mQ==; 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 1clUEm-0002aV-Mz; Wed, 08 Mar 2017 05:34:12 +0000 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1clUEL-0002Y3-4s for linux-arm-kernel@lists.infradead.org; Wed, 08 Mar 2017 05:33:47 +0000 Received: by mail-wr0-x242.google.com with SMTP id l37so2669157wrc.3 for ; Tue, 07 Mar 2017 21:33:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=YBEEpX/m78fk2S8Omf3UtMNPiAdtAWpIQnIVsN2uzAk=; b=oF73aaMl6dhgpi84fqaXXuXf4isdfh1PSPJFeS7hWK+8OxwZPD+suKdz/KtFx81ylC d+wAcNZs0r9lHI1F1O+ttgEWsNpy7KrH5xRi7vF/+MRXaLSECJNbjBDmu7vFLXepKLBo qZ10PCF+q6UjvckVJ/r9UsymWst6mLwoWQ1cJ66yE/WonG8DtL3CUpUImLE3VxMyAvpx GoY7tzbxd8Izbe+rsKwXQ1zuwnzyqTnXv8N3NYNW6eW2LsqV0Df0O4bIJYJt+yj7RvYV AtFMLF4JzBTMq1PORJGx1For2UxGh+BqNyxjNO5VhBpnYcsFMHX0K1UvvM3yDF8vvQAF uwMw== 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=YBEEpX/m78fk2S8Omf3UtMNPiAdtAWpIQnIVsN2uzAk=; b=Sg5aHvFx41rX69hKz7Ns0pTqSFdeeULeE2wOssdQZcJR4XlK+ERMIpgFKMiTUvQv93 0tSmVE9Zw9UQRo+KNrJLa9KHS4PHryjIMW4mNVSURdp/q3rOUH5j8YzC1XkFzpTgvTVo XJmv0cuaqKPzX5eFwjSehhEBm2HF/E63ihQUpspkJEM6RGkdP2NnXEUbX033+riaVWjW fJC8NJLe0CHisws8Vl2sZrxmCKYHp6os+AvVbNmyisOp5nh6CpvNfHCOgbYDxocyh3NR bmgBXy5Bc+jvFuBnlyyMBOT72Ixu1r2Ew2TMZCnLLS0ICE1Bh4OoZt5kiE45YwSFcLfo OySQ== X-Gm-Message-State: AMke39m5nZyFdHL+nDW2LyaIERn5m79gIskWsPEgNwt0hCXtjCXp8hMeG/xtSDLZvuAKKg== X-Received: by 10.223.153.225 with SMTP id y88mr3259713wrb.81.1488951201769; Tue, 07 Mar 2017 21:33:21 -0800 (PST) Received: from localhost.lan ([37.209.189.130]) by smtp.googlemail.com with ESMTPSA id x133sm21701899wme.22.2017.03.07.21.33.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 07 Mar 2017 21:33:20 -0800 (PST) From: Ralph Sennhauser To: Gregory Clement Subject: [PATCH] ARM: dts: mvebu: linksys: enable buffer manager support Date: Wed, 8 Mar 2017 06:33:12 +0100 Message-Id: <20170308053312.29243-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-20170307_213345_568909_6129CAFB X-CRM114-Status: GOOD ( 11.57 ) 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 --- 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..4aac375 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 = <1>; + 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 = <3>; 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..b188a4dc 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 = <3>; 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 = <1>; + 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 {