From 6659e77bd05ab53f85b791562de4f01118da4712 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Fri, 13 Jun 2025 08:12:28 +0200 Subject: [PATCH] qca-wifi-7/ipq53xx: consolidate phy_quirk handling Fixes: WIFI-14680 Signed-off-by: John Crispin --- .../ipq53xx/base-files/etc/board.d/01_leds | 9 -------- .../ipq53xx/base-files/etc/init.d/phy_quirks | 22 +++++++++++++++++++ 2 files changed, 22 insertions(+), 9 deletions(-) create mode 100755 feeds/qca-wifi-7/ipq53xx/base-files/etc/init.d/phy_quirks diff --git a/feeds/qca-wifi-7/ipq53xx/base-files/etc/board.d/01_leds b/feeds/qca-wifi-7/ipq53xx/base-files/etc/board.d/01_leds index 6a8421d2a..c8ec20df0 100755 --- a/feeds/qca-wifi-7/ipq53xx/base-files/etc/board.d/01_leds +++ b/feeds/qca-wifi-7/ipq53xx/base-files/etc/board.d/01_leds @@ -19,15 +19,6 @@ sonicfi,rap750e-s|\ sonicfi,rap750w-311a) ucidef_set_led_default "power" "POWER" "pwm:blue" "on" ;; -zyxel,nwa130be) - #eth0: APPE: phyaddr 4 green:2.5G orange:others - ssdk_sh debug phy set 4 0x40078074 0x670 - ssdk_sh debug phy set 4 0x40078078 0x8600 - - #eth1: MHT: phyaddr 3 green:2.5G orange:others - ssdk_sh debug phy set 3 0x40078074 0x670 - ssdk_sh debug phy set 3 0x40078078 0x8600 - ;; esac board_config_flush diff --git a/feeds/qca-wifi-7/ipq53xx/base-files/etc/init.d/phy_quirks b/feeds/qca-wifi-7/ipq53xx/base-files/etc/init.d/phy_quirks new file mode 100755 index 000000000..65670d248 --- /dev/null +++ b/feeds/qca-wifi-7/ipq53xx/base-files/etc/init.d/phy_quirks @@ -0,0 +1,22 @@ +#!/bin/sh /etc/rc.common + +START=99 + +boot() { + . /lib/functions.sh + + case "$(board_name)" in + edgecore,eap105) + ssdk_sh debug phy set 0x1 0x601FD032 0xff + ;; + zyxel,nwa130be) + #eth0: APPE: phyaddr 4 green:2.5G orange:others + ssdk_sh debug phy set 4 0x40078074 0x670 + ssdk_sh debug phy set 4 0x40078078 0x8600 + + #eth1: MHT: phyaddr 3 green:2.5G orange:others + ssdk_sh debug phy set 3 0x40078074 0x670 + ssdk_sh debug phy set 3 0x40078078 0x8600 + ;; + esac +}