Thank you, I have tried your driver, here is the latest log, however all ports show No link, and tcpdump does not capture any packets on any LAN port. There are no signs on any of the ports, even the PC does not detect a physical connection.
1.050249] spi-nand spi0.0: Winbond SPI NAND was found.
[ 1.050301] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[ 1.057583] 21 qcomsmem partitions found on MTD device spi0.0
[ 1.062832] Creating 21 MTD partitions on "spi0.0":
[ 1.068400] 0x000000000000-0x000000080000 : "0:sbl1"
[ 1.075318] 0x000000080000-0x000000100000 : "0:mibib"
[ 1.080341] 0x000000100000-0x000000140000 : "0:bootconfig"
[ 1.085176] 0x000000140000-0x000000180000 : "0:bootconfig1"
[ 1.090227] 0x000000180000-0x000000280000 : "0:qsee"
[ 1.097073] 0x000000280000-0x000000380000 : "0:qsee_1"
[ 1.102006] 0x000000380000-0x0000003c0000 : "0:devcfg"
[ 1.105780] 0x0000003c0000-0x000000400000 : "0:devcfg_1"
[ 1.110830] 0x000000400000-0x000000440000 : "0:cdt"
[ 1.116466] 0x000000440000-0x000000480000 : "0:cdt_1"
[ 1.120852] 0x000000480000-0x000000500000 : "0:appsblenv"
[ 1.126573] 0x000000500000-0x000000640000 : "0:appsbl"
[ 1.133186] 0x000000640000-0x000000780000 : "0:appsbl_1"
[ 1.138113] 0x000000780000-0x000000880000 : "0:art"
[ 1.143346] 0x000000880000-0x000000900000 : "0:training"
[ 1.147068] 0x000000900000-0x000000980000 : "bdata"
[ 1.152838] 0x000000980000-0x000000a00000 : "crash"
[ 1.157265] 0x000000a00000-0x000000a80000 : "crash_syslog"
[ 1.162080] 0x000000a80000-0x000002880000 : "rootfs"
[ 1.215398] mtd: setting mtd18 (rootfs) as root device
[ 1.216034] mtdsplit: no squashfs found in "rootfs"
[ 1.219510] 0x000002880000-0x000004680000 : "rootfs_1"
[ 1.273824] 0x000004680000-0x000008000000 : "overlay"
[ 1.386841] cpufreq: cpufreq_online: CPU0: Running at unlisted initial frequency: 799999 KHz, changing to: 800000 KHz
[ 1.388654] ubi0: attaching mtd18
[ 1.609189] ubi0: scanning is finished
[ 1.674104] ubi0: attached mtd18 (name "rootfs", size 30 MiB)
[ 1.674178] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 1.678871] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 1.685701] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 1.692500] ubi0: good PEBs: 239, bad PEBs: 1, corrupted PEBs: 0
[ 1.699285] ubi0: user volume: 3, internal volumes: 1, max. volumes count: 128
[ 1.705534] ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 1758196871
[ 1.712554] ubi0: available PEBs: 0, total reserved PEBs: 239, PEBs reserved for bad PEB handling: 19
[ 1.721880] ubi0: background thread "ubi_bgt0d" started, PID 525
[ 1.723518] block ubiblock0_1: created from ubi0:1(rootfs)
[ 1.737100] ubi: mtd18 is already attached to ubi0
[ 1.742323] UBI error: cannot attach mtd�[ 1.760431] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[ 1.760987] Freeing unused kernel memory: 960K
[ 1.766726] Run /sbin/init as init process
[ 2.117866] init: Console is alive
[ 2.118299] init: - watchdog -
[ 2.965213] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 3.137468] gpio_button_hotplug: loading out-of-tree module taints kernel.
[ 3.194573] ssdk_dt_parse_mac_mode[300]:INFO:mac mode1 doesn't exit!
[ 3.194630] ssdk_dt_parse_mac_mode[308]:INFO:mac mode2 doesn't exit!
[ 3.200141] ssdk_dt_parse_port_bmp[1064]:INFO:port_bmp doesn't exist!
[ 3.206460] ssdk_dt_parse_interrupt[942]:INFO:intr-gpio does not exist
[ 4.722625] ssdk_mp_reset_init[1311]:INFO:MP reset successfully!
[ 5.053787] regi_init[2548]:INFO:Initializing SCOMPHY Done!!
[ 5.054025] regi_init[2574]:INFO:qca-ssdk module init succeeded!
[ 5.061714] nss-dp 39c00000.dp1 wan (uninitialized): nss_dp_gmac: Registering netdev wan(qcom-id:1) with GMAC, mac_base: 0xffffffc081600000
[ 5.134089] Qualcomm Atheros IPQ5018 internal PHY 88000.mdio-1:07: attached PHY driver (mii_bus:phy_addr=88000.mdio-1:07, irq=POLL)
[ 5.261189] nss-dp 39d00000.dp2 (unnamed net_device) (uninitialized): nss_dp_gmac: Registering netdev eth%d(qcom-id:2) with GMAC, mac_base: 0xffffffc081630000
[ 5.262264] Generic PHY fixed-0:00: attached PHY driver (mii_bus:phy_addr=fixed-0:00, irq=POLL)
[ 5.276543] **********************************************************
[ 5.282999] * NSS Data Plane driver
[ 5.289473] **********************************************************
[ 5.317811] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 5.324650] init: - preinit -
[ 5.376363] yt921x 90000.mdio-1:1d: Motorcomm YT9215S ethernet switch, chipid: 0x90020002, chipmode: 0x2 0x0
[ 5.662679] random: crng init done
[ 5.902527] yt921x_dsa_port_setup: port 8
[ 5.904519] yt921x_phylink_mac_link_down: port 8
[ 5.906902] yt921x 90000.mdio-1:1d: configuring for fixed/2500base-x link mode
[ 5.911343] yt921x_dsa_port_setup: port 0
[ 5.922404] yt921x 90000.mdio-1:1d: Link is Up - 2.5Gbps/Full - flow control rx/tx
[ 5.951624] yt921x 90000.mdio-1:1d lan1 (uninitialized): PHY [90000.mdio-1:1d:00] driver [Generic PHY] (irq=POLL)
[ 5.952165] yt921x_dsa_port_change_mtu: port 8, mtu 1500, frame size 1526
[ 5.961510] yt921x_dsa_port_change_mtu: port 0, mtu 1500, frame size 1518
[ 5.971439] yt921x_dsa_port_setup: port 1
[ 5.994308] yt921x 90000.mdio-1:1d lan2 (uninitialized): PHY [90000.mdio-1:1d:01] driver [Generic PHY] (irq=POLL)
[ 5.994405] yt921x_dsa_port_change_mtu: port 1, mtu 1500, frame size 1518
[ 6.006618] yt921x_dsa_port_setup: port 2
[ 6.033886] yt921x 90000.mdio-1:1d lan3 (uninitialized): PHY [90000.mdio-1:1d:02] driver [Generic PHY] (irq=POLL)
[ 6.033969] yt921x_dsa_port_change_mtu: port 2, mtu 1500, frame size 1518
[ 6.049922] yt921x_dsa_port_setup: port 3
[ 6.071920] yt921x 90000.mdio-1:1d lan4 (uninitialized): PHY [90000.mdio-1:1d:03] driver [Generic PHY] (irq=POLL)
[ 6.072013] yt921x_dsa_port_change_mtu: port 3, mtu 1500, frame size 1518
[ 6.084417] yt921x_dsa_port_setup: port 4
[ 6.105646] yt921x 90000.mdio-1:1d lan5 (uninitialized): PHY [90000.mdio-1:1d:04] driver [Generic PHY] (irq=POLL)
[ 6.105733] yt921x_dsa_port_change_mtu: port 4, mtu 1500, frame size 1518
[ 6.117655] yt921x_dsa_port_setup: port 5
[ 6.123151] yt921x_dsa_port_setup: port 6
[ 6.127077] yt921x_dsa_port_setup: port 7
[ 6.131130] yt921x_dsa_port_setup: port 9
[ 6.136633] yt921x_dsa_port_setup: port 10
[ 6.140981] nss-dp 39d00000.dp2 eth0: entered promiscuous mode
[ 6.141825] DSA: tree 0 setup
Cannot parse config file '/etc/fw_env.config': No such file or directory
Failed to find NVMEM device
[ 6.655187] nss-dp 39d00000.dp2 eth0: PHY Link up speed: 2500
[ 6.655637] yt921x 90000.mdio-1:1d lan1: configuring for phy/internal link mode
[ 6.661819] adpt_mp_port_netdev_change_notify[1186]:ERROR:netdev change notify with incorrect port 0
[ 6.667112] ssdk_dev_event[2313]:ERROR:netdev change notify failed
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[ 10.987508] UBIFS (ubi0:2): Mounting in unauthenticated mode
[ 10.987802] UBIFS (ubi0:2): background thread "ubifs_bgt0_2" started, PID 727
[ 11.049170] UBIFS (ubi0:2): recovery needed
[ 11.200453] UBIFS (ubi0:2): recovery completed
[ 11.200643] UBIFS (ubi0:2): UBIFS: mounted UBI device 0, volume 2, name "rootfs_data"
[ 11.203874] UBIFS (ubi0:2): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 11.211725] UBIFS (ubi0:2): FS size: 12570624 bytes (11 MiB, 99 LEBs), max 109 LEBs, journal size 1015809 bytes (0 MiB, 6 LEBs)
[ 11.221641] UBIFS (ubi0:2): reserved for root: 593741 bytes (579 KiB)
[ 11.232929] UBIFS (ubi0:2): media format: w5/r0 (latest is w5/r0), UUID 54C7F9C2-3EF9-4AA7-8479-13BB09D8336F, small LPT model
[ 11.244965] mount_root: switching to ubifs overlay
[ 11.259973] overlayfs: null uuid detected in lower fs '/', falling back to xino=off,index=off,nfs_export=off.
[ 11.269562] urandom-seed: Seeding with /etc/urandom.seed
[ 11.377986] procd: - early -
[ 11.378245] procd: - watchdog -
[ 12.043791] procd: - watchdog -
[ 12.131009] procd: - ubus -
[ 12.289280] procd: - init -
Please press Enter to activate this console.
[ 12.985155] kmodloader: loading kernel modules from /etc/modules.d/*
[ 13.337289] urngd: v1.0.2 started.
[ 13.350204] Loading modules backported from Linux version v6.16-0-g038d61fd6422
[ 13.350251] Backport generated by backports.git v6.1.145-1-47-g6194bf852a3e
[ 13.378656] NET: Registered PF_QIPCRTR protocol family
[ 13.709432] PPP generic driver version 2.4.2
[ 13.711689] NET: Registered PF_PPPOX protocol family
[ 13.798975] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 21.504189] nss-dp 39d00000.dp2 eth0: PHY Link is down
[ 21.516744] nss-dp 39d00000.dp2 eth0: PHY Link up speed: -1
[ 21.596805] yt921x 90000.mdio-1:1d lan1: configuring for phy/internal link mode
[ 21.627219] br-lan: port 1(lan1) entered blocking state
[ 21.627295] br-lan: port 1(lan1) entered disabled state
[ 21.631507] yt921x 90000.mdio-1:1d lan1: entered allmulticast mode
[ 21.636620] nss-dp 39d00000.dp2 eth0: entered allmulticast mode
[ 21.660513] yt921x_dsa_port_bridge_join: port 0, mask 0x101
[ 21.663117] yt921x_dsa_port_vlan_add: port 8, vid 1, flags 0x25
[ 21.665012] yt921x_dsa_port_bridge_flags: port 0, mask 0x20, flags 0x20
[ 21.665070] yt921x_dsa_port_fdb_add: port 8
[ 21.674363] yt921x_dsa_port_bridge_flags: port 0, mask 0x40, flags 0x40
[ 21.688628] yt921x_dsa_port_bridge_flags: port 0, mask 0x800, flags 0x800
[ 21.688703] yt921x_dsa_port_bridge_flags: port 0, mask 0x4000, flags 0x4000
[ 21.695314] yt921x_dsa_port_bridge_flags: port 0, mask 0x200000, flags 0x0
[ 21.701986] yt921x_dsa_set_ageing_time: 300000
[ 21.710243] yt921x 90000.mdio-1:1d lan1: entered promiscuous mode
[ 21.715781] yt921x_dsa_port_fdb_add: port 8
[ 21.716479] yt921x_dsa_port_vlan_add: port 0, vid 1, flags 0x6
[ 21.732977] yt921x_dsa_port_fdb_add: port 8
[ 21.739612] yt921x_dsa_port_fdb_del: port 8
[ 21.837879] yt921x 90000.mdio-1:1d lan2: configuring for phy/internal link mode
[ 21.864891] br-lan: port 2(lan2) entered blocking state
[ 21.864953] br-lan: port 2(lan2) entered disabled state
[ 21.872717] yt921x 90000.mdio-1:1d lan2: entered allmulticast mode
[ 21.874971] yt921x_dsa_port_bridge_join: port 1, mask 0x103
[ 21.883366] yt921x_dsa_port_bridge_flags: port 1, mask 0x20, flags 0x20
[ 21.887075] yt921x_dsa_port_bridge_flags: port 1, mask 0x40, flags 0x40
[ 21.892479] yt921x_dsa_port_bridge_flags: port 1, mask 0x800, flags 0x800
[ 21.899289] yt921x_dsa_port_bridge_flags: port 1, mask 0x4000, flags 0x4000
[ 21.906083] yt921x_dsa_port_bridge_flags: port 1, mask 0x200000, flags 0x0
[ 21.912881] yt921x_dsa_set_ageing_time: 300000
[ 21.933203] yt921x 90000.mdio-1:1d lan2: entered promiscuous mode
[ 21.933624] yt921x_dsa_port_vlan_add: port 1, vid 1, flags 0x6
[ 22.003072] yt921x 90000.mdio-1:1d lan3: configuring for phy/internal link mode
[ 22.037641] br-lan: port 3(lan3) entered blocking state
[ 22.037707] br-lan: port 3(lan3) entered disabled state
[ 22.041959] yt921x 90000.mdio-1:1d lan3: entered allmulticast mode
[ 22.053206] yt921x_dsa_port_bridge_join: port 2, mask 0x107
[ 22.054877] yt921x_dsa_port_bridge_flags: port 2, mask 0x20, flags 0x20
[ 22.063240] yt921x_dsa_port_bridge_flags: port 2, mask 0x40, flags 0x40
[ 22.065233] yt921x_dsa_port_bridge_flags: port 2, mask 0x800, flags 0x800
[ 22.071821] yt921x_dsa_port_bridge_flags: port 2, mask 0x4000, flags 0x4000
[ 22.078889] yt921x_dsa_port_bridge_flags: port 2, mask 0x200000, flags 0x0
[ 22.085631] yt921x_dsa_set_ageing_time: 300000
[ 22.122929] yt921x 90000.mdio-1:1d lan3: entered promiscuous mode
[ 22.123268] yt921x_dsa_port_vlan_add: port 2, vid 1, flags 0x6
[ 22.171925] yt921x 90000.mdio-1:1d lan4: configuring for phy/internal link mode
[ 22.190655] br-lan: port 4(lan4) entered blocking state
[ 22.190721] br-lan: port 4(lan4) entered disabled state
[ 22.195489] yt921x 90000.mdio-1:1d lan4: entered allmulticast mode
[ 22.201016] yt921x_dsa_port_bridge_join: port 3, mask 0x10f
[ 22.208529] yt921x_dsa_port_bridge_flags: port 3, mask 0x20, flags 0x20
[ 22.211918] yt921x_dsa_port_bridge_flags: port 3, mask 0x40, flags 0x40
[ 22.218314] yt921x_dsa_port_bridge_flags: port 3, mask 0x800, flags 0x800
[ 22.224875] yt921x_dsa_port_bridge_flags: port 3, mask 0x4000, flags 0x4000
[ 22.231782] yt921x_dsa_port_bridge_flags: port 3, mask 0x200000, flags 0x0
[ 22.238604] yt921x_dsa_set_ageing_time: 300000
[ 22.246575] yt921x 90000.mdio-1:1d lan4: entered promiscuous mode
[ 22.250221] yt921x_dsa_port_vlan_add: port 3, vid 1, flags 0x6
[ 22.552954] adpt_mp_port_netdev_change_notify[1186]:ERROR:netdev change notify with incorrect port 0
[ 22.553038] ssdk_dev_event[2313]:ERROR:netdev change notify failed
[ 25.433367] nss-dp 39c00000.dp1 wan: PHY Link up speed: 1000