mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 15:32:33 +00:00
17a627ec82
Backport [1] and fix [2] hardware buffer management. Also fix the IRQ storm
caused by a misconfiguration of the PCA9538 interrupt pin [3].
[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/arch/arm/boot/dts/armada-385-turris-omnia.dts?id=018b88eee1a2efda26ed2f09aab33ccdc40ef18f
[2] https://lore.kernel.org/linux-arm-kernel/20210217153038.1068170-1-rsalvaterra@gmail.com/
[3] https://lore.kernel.org/linux-arm-kernel/20210220231144.32325-1-kabel@kernel.org/
Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
(cherry picked from commit 6fe6b631ef
)
75 lines
1.9 KiB
Diff
75 lines
1.9 KiB
Diff
From 018b88eee1a2efda26ed2f09aab33ccdc40ef18f Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Marek=20Beh=C3=BAn?= <kabel@kernel.org>
|
|
Date: Sun, 15 Nov 2020 14:59:17 +0100
|
|
Subject: ARM: dts: turris-omnia: enable HW buffer management
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
The buffer manager is available on Turris Omnia but needs to be
|
|
described in device-tree to be used.
|
|
|
|
Signed-off-by: Marek Behún <kabel@kernel.org>
|
|
Fixes: 26ca8b52d6e1 ("ARM: dts: add support for Turris Omnia")
|
|
Cc: linux-arm-kernel@lists.infradead.org
|
|
Cc: Uwe Kleine-König <uwe@kleine-koenig.org>
|
|
Cc: Jason Cooper <jason@lakedaemon.net>
|
|
Cc: Gregory CLEMENT <gregory.clement@bootlin.com>
|
|
Cc: Andreas Färber <afaerber@suse.de>
|
|
Cc: Andrew Lunn <andrew@lunn.ch>
|
|
Cc: Rob Herring <robh+dt@kernel.org>
|
|
Cc: devicetree@vger.kernel.org
|
|
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
|
|
---
|
|
arch/arm/boot/dts/armada-385-turris-omnia.dts | 17 +++++++++++++++++
|
|
1 file changed, 17 insertions(+)
|
|
|
|
(limited to 'arch/arm/boot/dts/armada-385-turris-omnia.dts')
|
|
|
|
--- a/arch/arm/boot/dts/armada-385-turris-omnia.dts
|
|
+++ b/arch/arm/boot/dts/armada-385-turris-omnia.dts
|
|
@@ -84,12 +84,23 @@
|
|
};
|
|
};
|
|
|
|
+&bm {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&bm_bppi {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
/* Connected to 88E6176 switch, port 6 */
|
|
ð0 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&ge0_rgmii_pins>;
|
|
status = "okay";
|
|
phy-mode = "rgmii";
|
|
+ buffer-manager = <&bm>;
|
|
+ bm,pool-long = <0>;
|
|
+ bm,pool-short = <3>;
|
|
|
|
fixed-link {
|
|
speed = <1000>;
|
|
@@ -103,6 +114,9 @@
|
|
pinctrl-0 = <&ge1_rgmii_pins>;
|
|
status = "okay";
|
|
phy-mode = "rgmii";
|
|
+ buffer-manager = <&bm>;
|
|
+ bm,pool-long = <1>;
|
|
+ bm,pool-short = <3>;
|
|
|
|
fixed-link {
|
|
speed = <1000>;
|
|
@@ -115,6 +129,9 @@
|
|
status = "okay";
|
|
phy-mode = "sgmii";
|
|
phy = <&phy1>;
|
|
+ buffer-manager = <&bm>;
|
|
+ bm,pool-long = <2>;
|
|
+ bm,pool-short = <3>;
|
|
};
|
|
|
|
&i2c0 {
|