[PATCH] bcm53xx: complete Asus RT-AC88U support

Arınç ÜNAL arinc.unal at arinc9.com
Wed Mar 30 23:18:04 PDT 2022


Add white:lan LED configuration. Replace the reverted commit on upstream
with the current one. Remove the BROKEN flag.

Signed-off-by: Arınç ÜNAL <arinc.unal at arinc9.com>
---
 .../bcm53xx/base-files/etc/board.d/01_leds     |  3 +++
 target/linux/bcm53xx/image/Makefile            |  1 -
 ...-define-RTL8365MB-switch-on-Asus-RT-.patch} | 18 +++++++++++-------
 3 files changed, 14 insertions(+), 8 deletions(-)
 rename target/linux/bcm53xx/patches-5.10/{034-v5.17-0003-ARM-dts-BCM5301X-define-RTL8365MB-switch-on-Asus-RT-.patch => 035-v5.18-0001-ARM-dts-BCM5301X-define-RTL8365MB-switch-on-Asus-RT-.patch} (82%)

diff --git a/target/linux/bcm53xx/base-files/etc/board.d/01_leds b/target/linux/bcm53xx/base-files/etc/board.d/01_leds
index aba526b9c3..bd24234046 100644
--- a/target/linux/bcm53xx/base-files/etc/board.d/01_leds
+++ b/target/linux/bcm53xx/base-files/etc/board.d/01_leds
@@ -4,6 +4,9 @@
 board_config_update
 
 case "$(board_name)" in
+asus,rt-ac88u)
+	ucidef_set_led_netdev "lan" "LAN" "white:lan" "eth1"
+	;;
 netgear,r8000)
 	ucidef_set_led_usbport "usb2" "USB 2.0" "bcm53xx:white:usb2" "usb1-port2" "usb2-port2"
 	ucidef_set_led_usbport "usb3" "USB 3.0" "bcm53xx:white:usb3" "usb1-port1" "usb2-port1" "usb4-port1"
diff --git a/target/linux/bcm53xx/image/Makefile b/target/linux/bcm53xx/image/Makefile
index 3df24013ce..fc85a131cc 100644
--- a/target/linux/bcm53xx/image/Makefile
+++ b/target/linux/bcm53xx/image/Makefile
@@ -172,7 +172,6 @@ define Device/asus_rt-ac88u
   DEVICE_MODEL := RT-AC88U
   DEVICE_PACKAGES := $(BRCMFMAC_4366C0) $(USB3_PACKAGES)
   ASUS_PRODUCTID := RT-AC88U
-  BROKEN := y
 endef
 TARGET_DEVICES += asus_rt-ac88u
 
diff --git a/target/linux/bcm53xx/patches-5.10/034-v5.17-0003-ARM-dts-BCM5301X-define-RTL8365MB-switch-on-Asus-RT-.patch b/target/linux/bcm53xx/patches-5.10/035-v5.18-0001-ARM-dts-BCM5301X-define-RTL8365MB-switch-on-Asus-RT-.patch
similarity index 82%
rename from target/linux/bcm53xx/patches-5.10/034-v5.17-0003-ARM-dts-BCM5301X-define-RTL8365MB-switch-on-Asus-RT-.patch
rename to target/linux/bcm53xx/patches-5.10/035-v5.18-0001-ARM-dts-BCM5301X-define-RTL8365MB-switch-on-Asus-RT-.patch
index 562d5a22c7..dd3304fb8a 100644
--- a/target/linux/bcm53xx/patches-5.10/034-v5.17-0003-ARM-dts-BCM5301X-define-RTL8365MB-switch-on-Asus-RT-.patch
+++ b/target/linux/bcm53xx/patches-5.10/035-v5.18-0001-ARM-dts-BCM5301X-define-RTL8365MB-switch-on-Asus-RT-.patch
@@ -1,6 +1,6 @@
-From b6c99228c8edc5e67d8229ba1c5f76cce210ddfc Mon Sep 17 00:00:00 2001
+From 441d531ec9b766f49e01c107a3043235daa4493f Mon Sep 17 00:00:00 2001
 From: =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= <arinc.unal at arinc9.com>
-Date: Wed, 27 Oct 2021 00:57:06 +0800
+Date: Sun, 2 Jan 2022 23:33:04 +0300
 Subject: [PATCH] ARM: dts: BCM5301X: define RTL8365MB switch on Asus RT-AC88U
 MIME-Version: 1.0
 Content-Type: text/plain; charset=UTF-8
@@ -13,12 +13,14 @@ Signed-off-by: Arınç ÜNAL <arinc.unal at arinc9.com>
 Acked-by: Alvin Šipraga <alsi at bang-olufsen.dk>
 Signed-off-by: Florian Fainelli <f.fainelli at gmail.com>
 ---
- arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts | 77 ++++++++++++++++++++
- 1 file changed, 77 insertions(+)
+ arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts | 76 ++++++++++++++++++++
+ 1 file changed, 76 insertions(+)
 
+diff --git a/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts b/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts
+index 249476fdad7a..82f9629f0abb 100644
 --- a/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts
 +++ b/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts
-@@ -93,6 +93,83 @@
+@@ -93,6 +93,82 @@ led {
  			gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
  		};
  	};
@@ -35,7 +37,6 @@ Signed-off-by: Florian Fainelli <f.fainelli at gmail.com>
 +		ports {
 +			#address-cells = <1>;
 +			#size-cells = <0>;
-+			reg = <0>;
 +
 +			port at 0 {
 +				reg = <0>;
@@ -67,7 +68,7 @@ Signed-off-by: Florian Fainelli <f.fainelli at gmail.com>
 +				ethernet = <&sw0_p5>;
 +				phy-mode = "rgmii";
 +				tx-internal-delay-ps = <2000>;
-+				rx-internal-delay-ps = <2000>;
++				rx-internal-delay-ps = <2100>;
 +
 +				fixed-link {
 +					speed = <1000>;
@@ -102,3 +103,6 @@ Signed-off-by: Florian Fainelli <f.fainelli at gmail.com>
  };
  
  &srab {
+-- 
+2.25.1
+
-- 
2.25.1




More information about the openwrt-devel mailing list