[openwrt/openwrt] sunxi: Fix B53 swconfig driver for Lamobo R1

LEDE Commits lede-commits at lists.infradead.org
Fri Mar 9 16:17:16 PST 2018


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.lede-project.org/b7b14fd64e09b523b2da6a9db6d7ff300964b955

commit b7b14fd64e09b523b2da6a9db6d7ff300964b955
Author: Hauke Mehrtens <hauke at hauke-m.de>
AuthorDate: Thu Mar 8 22:24:37 2018 +0100

    sunxi: Fix B53 swconfig driver for Lamobo R1
    
    This reverts the changes needed for the upstream b53 DSA switch driver
    to use the OpenWrt b43 swconfig switch driver instead.
    
    Tested-by: TheWerthFam <thewerthfam at gmail.com>
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 ...dts-sun7i-Add-BCM53125-switch-nodes-to-th.patch | 88 ++++++++++++++++++++++
 1 file changed, 88 insertions(+)

diff --git a/target/linux/sunxi/patches-4.14/310-Revert-ARM-dts-sun7i-Add-BCM53125-switch-nodes-to-th.patch b/target/linux/sunxi/patches-4.14/310-Revert-ARM-dts-sun7i-Add-BCM53125-switch-nodes-to-th.patch
new file mode 100644
index 0000000..3f8a341
--- /dev/null
+++ b/target/linux/sunxi/patches-4.14/310-Revert-ARM-dts-sun7i-Add-BCM53125-switch-nodes-to-th.patch
@@ -0,0 +1,88 @@
+From 49cd9ea6dc8d68eb519ccd9f31c9730dec8a181a Mon Sep 17 00:00:00 2001
+From: Hauke Mehrtens <hauke at hauke-m.de>
+Date: Thu, 8 Mar 2018 22:14:50 +0100
+Subject: [PATCH] Revert "ARM: dts: sun7i: Add BCM53125 switch nodes to the
+ lamobo-r1 board"
+
+This reverts the changes needed for the upstream b53 DSA switch driver 
+to use the OpenWrt b43 swconfig switch driver.
+
+This reverts commit 0cdefd5b5485ee6eb3512a75739d09a4090176ed.
+This reverts commit d7b9eaff5f0ca00726336b4c0c3c29decf30412a.
+---
+ arch/arm/boot/dts/sun7i-a20-lamobo-r1.dts | 60 ++-----------------------------
+ 1 file changed, 3 insertions(+), 57 deletions(-)
+
+--- a/arch/arm/boot/dts/sun7i-a20-lamobo-r1.dts
++++ b/arch/arm/boot/dts/sun7i-a20-lamobo-r1.dts
+@@ -109,67 +109,13 @@
+ &gmac {
+ 	pinctrl-names = "default";
+ 	pinctrl-0 = <&gmac_pins_rgmii_a>;
++	phy = <&phy1>;
+ 	phy-mode = "rgmii";
+ 	phy-supply = <&reg_gmac_3v3>;
+ 	status = "okay";
+ 
+-	fixed-link {
+-		speed = <1000>;
+-		full-duplex;
+-	};
+-
+-	mdio {
+-		compatible = "snps,dwmac-mdio";
+-		#address-cells = <1>;
+-		#size-cells = <0>;
+-
+-		switch: ethernet-switch at 1e {
+-			compatible = "brcm,bcm53125";
+-			reg = <30>;
+-			#address-cells = <1>;
+-			#size-cells = <0>;
+-
+-			ports {
+-				#address-cells = <1>;
+-				#size-cells = <0>;
+-
+-				port0: port at 0 {
+-					reg = <0>;
+-					label = "lan2";
+-				};
+-
+-				port1: port at 1 {
+-					reg = <1>;
+-					label = "lan3";
+-				};
+-
+-				port2: port at 2 {
+-					reg = <2>;
+-					label = "lan4";
+-				};
+-
+-				port3: port at 3 {
+-					reg = <3>;
+-					label = "wan";
+-				};
+-
+-				port4: port at 4 {
+-					reg = <4>;
+-					label = "lan1";
+-				};
+-
+-				port8: port at 8 {
+-					reg = <8>;
+-					label = "cpu";
+-					ethernet = <&gmac>;
+-					phy-mode = "rgmii-txid";
+-					fixed-link {
+-						speed = <1000>;
+-						full-duplex;
+-					};
+-				};
+-			};
+-		};
++	phy1: ethernet-phy at 1 {
++		reg = <1>;
+ 	};
+ };
+ 



More information about the lede-commits mailing list