I made some progress, so here's a small update!
I've been able to build a kernel+initramfs that's bootable, thanks to @andyboeh 's work on the loader. The image can be loaded through the UART anywhere in memory, and booted from here.
The current state is still heavy WIP but is available here.
I found this in the Realtek SDK, this reference design seems very close to the switch I have so I used it as a reference to populate the device tree, but the network is still not working (I'm not able to send or receive any thing).
Here are the last kernel logs I obtained, any suggestion is appreciated:
[ 0.000000] Linux version 6.6.74 (builder@buildhost) (mips-openwrt-linux-musl-gcc (OpenWrt GCC 13.3.0 r28800-04570f5ee2) 13.3.0, GNU ld (GNU Binutils) 2.42) #0 Wed Mar 5 15:01:58 2025
[ 0.000000] RTL838X model is 0
[ 0.000000] RTL839X model is 0
[ 0.000000] RTL93XX model is 93021801
[ 0.000000] SoC Type: RTL9302C
[ 0.000000] printk: bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019555 (MIPS 34Kc)
[ 0.000000] MIPS: machine is Zyxel XMG1915-10E Switch
[ 0.000000] earlycon: ns16550a0 at MMIO 0x18002000 (options '115200n8')
[ 0.000000] printk: bootconsole [ns16550a0] enabled
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Using appended Device Tree.
[ 0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] HighMem empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Kernel command line: earlycon
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 0.000000] Writing ErrCtl register=00030b90
[ 0.000000] Readback ErrCtl register=00030b90
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 32480
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 108996K/131072K available (6931K kernel code, 630K rwdata, 884K rodata, 12028K init, 256K bss, 22076K reserved, 0K cma-reserved, 0K highmem)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS: 256
[ 0.000000] Failed to get CPU clock: -2
[ 0.000000] CPU frequency from device tree: 800MHz
[ 0.000000] clocksource: realtek_otto_timer: mask: 0xfffffff max_cycles: 0xfffffff, max_idle_ns: 38225208801 ns
[ 0.000002] sched_clock: 28 bits at 3125kHz, resolution 320ns, wraps every 42949672800ns
[ 0.009121] Calibrating delay loop... 531.66 BogoMIPS (lpj=2658304)
[ 0.065871] pid_max: default: 32768 minimum: 301
[ 0.081012] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.089135] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.107421] RCU Tasks Trace: Setting shift to 0 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=1.
[ 0.123181] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.134090] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[ 0.144253] pinctrl core: initialized pinctrl subsystem
[ 0.152660] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.173633] clocksource: Switched to clocksource realtek_otto_timer
[ 0.191834] NET: Registered PF_INET protocol family
[ 0.197559] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.207216] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.216634] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.225227] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.233724] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[ 0.241524] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.249368] MPTCP token hash table entries: 512 (order: 0, 6144 bytes, linear)
[ 0.257737] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.265030] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.273815] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.294991] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[ 0.303915] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.310363] jffs2: version 2.2 (NAND) (SUMMARY) (ZLIB) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.361441] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[ 0.384792] pinctrl-single 1b00c600.pinmux: 32 pins, size 4
[ 0.391394] pinctrl-single 1b00cc00.pinmux: 32 pins, size 4
[ 0.399513] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 0.413915] printk: console [ttyS0] disabled
[ 0.419236] 18002000.uart: ttyS0 at MMIO 0x18002000 (irq = 30, base_baud = 10937500) is a 16550A
[ 0.429062] printk: console [ttyS0] enabled
[ 0.438412] printk: bootconsole [early0] disabled
[ 0.484188] printk: bootconsole [ns16550a0] disabled
[ 0.549185] brd: module loaded
[ 0.564496] spi-nor spi0.0: mx25l25635e (32768 Kbytes)
[ 0.570340] 6 fixed-partitions partitions found on MTD device spi0.0
[ 0.577508] Creating 6 MTD partitions on "spi0.0":
[ 0.582849] 0x000000000000-0x000000080000 : "BootBase"
[ 0.624220] 0x000000260000-0x000000290000 : "BootExt1"
[ 0.631625] 0x000000291800-0x000000411800 : "RomDefa1"
[ 0.637432] mtd: partition "RomDefa1" doesn't start on an erase/write block boundary -- force read-only
[ 0.664454] 0x000000411800-0x000001000000 : "RasCode1"
[ 0.670192] mtd: partition "RasCode1" doesn't start on an erase/write block boundary -- force read-only
[ 0.704030] 0x000001291800-0x000001411800 : "RomDefa2"
[ 0.709769] mtd: partition "RomDefa2" doesn't start on an erase/write block boundary -- force read-only
[ 0.734089] 0x000001411800-0x000002000000 : "RasCode2"
[ 0.739831] mtd: partition "RasCode2" doesn't start on an erase/write block boundary -- force read-only
[ 0.784680] Probing RTL838X eth device pdev: 818a5400, dev: 818a5410
[ 0.811260] Found SoC ID: 9302: RTL9302C, family 9300
[ 0.817061] Using MAC 000000e04c000000
[ 0.821342] set sds port 0 to 2
[ 0.824922] set sds port 8 to 3
[ 0.828431] set sds port 26 to 8
[ 0.832016] set sds port 27 to 9
[ 0.836388] c45_mask: 00030000
[ 1.469801] mdio_bus mdio-bus: MDIO device at address 26 is missing.
[ 1.480247] mdio_bus mdio-bus: MDIO device at address 27 is missing.
[ 1.488631] i2c_dev: i2c /dev entries driver
[ 1.497152] NET: Registered PF_INET6 protocol family
[ 1.516338] Segment Routing with IPv6
[ 1.520543] In-situ OAM (IOAM) with IPv6
[ 1.525214] NET: Registered PF_PACKET protocol family
[ 1.530912] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 1.546019] 8021q: 802.1Q VLAN Support v1.8
[ 1.615170] REALTEK RTL9300 SERDES rtl838x slave mii-0:1a: Detected internal RTL9300 Serdes
[ 1.650501] REALTEK RTL9300 SERDES rtl838x slave mii-0:1b: Detected internal RTL9300 Serdes
[ 1.686146] REALTEK RTL9300 SERDES rtl838x slave mii-0:3f: Detected internal RTL9300 Serdes
[ 1.719511] rtl93xx_setup called
[ 1.723160] In rtl83xx_vlan_setup
[ 1.726897] In rtl930x_vlan_profile_setup
[ 1.731355] In rtl930x_vlan_profile_setup
[ 1.735835] UNKNOWN_MC_PMASK: 000000001fffffff
[ 1.740782] VLAN 0: L2 learn: 0; Unknown MC PMasks: L2 1fffffff, IPv4 1fffffff, IPv6: 1fffffff
[ 1.740796] Routing enabled: IPv4 UC y, IPv6 UC y, IPv4 MC y, IPv6 MC y
[ 1.757965] Bridge enabled: IPv4 MC n, IPv6 MC n,
[ 1.763390] VLAN profile 0: raw 00033000 00000000 1fffffff 1fffffff 1fffffff
[ 2.813642] rtl83xx_enable_phy_polling: c0000ff
[ 2.819575] rtl930x_pie_init
[ 2.822984] rtl930x_led_init called
[ 2.826988] rtl930x_led_init led_set configuration invalid skipping over this set
[ 2.835348] rtl930x_led_init led_set configuration invalid skipping over this set
[ 2.843728] rtl930x_led_init bb00cc00: 01454659
[ 2.848772] rtl930x_led_init bb00cc04: aaaaaaaa
[ 2.853834] rtl930x_led_init bb00cc08: 005aaaaa
[ 2.858874] rtl930x_led_init bb00cc0c: 00000000
[ 2.863932] rtl930x_led_init bb00cc10: 00000000
[ 2.868977] rtl930x_led_init bb00cc14: 00000000
[ 2.874034] rtl930x_led_init bb00cc18: 00000000
[ 2.879071] rtl930x_led_init bb00cc1c: 00000000
[ 2.884128] rtl930x_led_init bb00cc20: 0a010a20
[ 2.889173] rtl930x_led_init bb00cc24: 00000a08
[ 2.894230] rtl930x_led_init bb00cc28: 0a200a80
[ 2.899267] rtl930x_led_init bb00cc2c: 00000000
[ 2.904323] rtl930x_led_init bb00cc30: 00500000
[ 2.909360] rtl930x_led_init bb00cc34: 00000000
[ 2.914417] rtl930x_led_init bb00cc38: 00500000
[ 2.919455] rtl930x_led_init bb00cc3c: 0c0000ff
[ 2.924512] rtl930x_led_init bb00cc40: 0c0000ff
[ 2.929548] rtl930x_led_init bb00cc44: 0c0000ff
[ 2.934605] rtl930x_led_init bb00cc48: 00000000
[ 2.939641] rtl930x_led_init bb00cc4c: 00000000
[ 2.944698] rtl930x_led_init bb00cc50: 00000000
[ 2.949736] rtl930x_led_init bb00cc54: 00000000
[ 2.954799] rtl930x_led_init bb00cc58: 00000000
[ 2.959847] rtl930x_led_init bb00cc5c: 00000000
[ 2.965077] rtl83xx-switch switch@1b000000: configuring for fixed/internal link mode
[ 2.973766] rtl93xx_phylink_mac_config port 28, mode 1, phy-mode: internal, speed -1, link 0
[ 2.985608] rtl83xx-switch switch@1b000000: Link is Up - 10Gbps/Full - flow control off
[ 3.023861] rtl83xx-switch switch@1b000000 lan1 (uninitialized): PHY [mdio-bus:00] driver [RTL8224 2.5Gbps PHY] (irq=POLL)
[ 3.073871] rtl83xx-switch switch@1b000000 lan2 (uninitialized): PHY [mdio-bus:01] driver [RTL8224 2.5Gbps PHY] (irq=POLL)
[ 3.123866] rtl83xx-switch switch@1b000000 lan3 (uninitialized): PHY [mdio-bus:02] driver [RTL8224 2.5Gbps PHY] (irq=POLL)
[ 3.173933] rtl83xx-switch switch@1b000000 lan4 (uninitialized): PHY [mdio-bus:03] driver [RTL8224 2.5Gbps PHY] (irq=POLL)
[ 3.223924] rtl83xx-switch switch@1b000000 lan5 (uninitialized): PHY [mdio-bus:08] driver [RTL8224 2.5Gbps PHY] (irq=POLL)
[ 3.273975] rtl83xx-switch switch@1b000000 lan6 (uninitialized): PHY [mdio-bus:09] driver [RTL8224 2.5Gbps PHY] (irq=POLL)
[ 3.323972] rtl83xx-switch switch@1b000000 lan7 (uninitialized): PHY [mdio-bus:0a] driver [RTL8224 2.5Gbps PHY] (irq=POLL)
[ 3.373866] rtl83xx-switch switch@1b000000 lan8 (uninitialized): PHY [mdio-bus:0b] driver [RTL8224 2.5Gbps PHY] (irq=POLL)
[ 3.388950] rtl83xx-switch switch@1b000000 lan9 (uninitialized): PHY [rtl838x slave mii-0:1a] driver [REALTEK RTL9300 SERDES] (irq=POLL)
[ 3.405244] rtl83xx-switch switch@1b000000 lan10 (uninitialized): PHY [rtl838x slave mii-0:1b] driver [REALTEK RTL9300 SERDES] (irq=POLL)
[ 3.420655] rtl838x-eth 1b00a300.ethernet eth0: entered promiscuous mode
[ 3.428368] DSA: tree 0 setup
[ 3.431761] LINK state irq: 23
[ 3.435253] In rtl83xx_setup_qos
[ 3.438909] L3_IPUC_ROUTE_CTRL 00002000, IPMC_ROUTE 00000500, IP6UC_ROUTE 00014580, IP6MC_ROUTE 00012880
[ 3.449495] L3_IPUC_ROUTE_CTRL 00002001, IPMC_ROUTE 00000501, IP6UC_ROUTE 00014581, IP6MC_ROUTE 00012881
[ 3.460076] L3_IP_ROUTE_CTRL 00000130
[ 3.464335] rtl930x_dbgfs_init called
[ 3.469684] rtl83xx_fib_event_work_do: FIB4 default rule failed
[ 3.479223] rtl83xx_fib_event_work_do: FIB4 default rule failed
[ 3.486982] clk: Disabling unused clocks
[ 3.544531] Freeing unused kernel image (initmem) memory: 12028K
[ 3.551246] This architecture does not have kernel memory protection.
[ 3.558458] Run /init as init process
[ 3.562529] with arguments:
[ 3.565851] /init
[ 3.568375] with environment:
[ 3.571859] HOME=/
[ 3.574501] TERM=linux
[ 4.187709] init: Console is alive
[ 4.191932] init: - watchdog -
[ 4.211018] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 4.221930] gpio_button_hotplug: loading out-of-tree module taints kernel.
[ 4.232471] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 4.251261] init: - preinit -
[ 7.083689] random: crng init done
[ 8.175838] RESETTING 9300, CPU_PORT 28
[ 8.380497] rtl838x-eth 1b00a300.ethernet eth0: configuring for fixed/internal link mode
[ 8.389498] In rtl838x_mac_config, mode 1
[ 8.394788] rtl83xx-switch switch@1b000000 lan1: configuring for phy/usxgmii link mode
[ 8.403699] rtl93xx_phylink_mac_config port 0, mode 0, phy-mode: usxgmii, speed -1, link 0
[ 8.412902] rtl93xx_phylink_mac_config SDS is 2
[ 8.419506] rtl838x-eth 1b00a300.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[ 8.453796] 8021q: adding VLAN 0 to HW filter on device lan1
[ 8.468608] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[ 8.476028] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[ 8.490696] rtl83xx_fib_event_work_do: FIB4 failed
[ 8.496192] rtl83xx_fib_event_work_do: FIB4 failed
[ 8.501537] rtl83xx_fib_event_work_do: FIB4 failed
[ 9.693696] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[ 12.705332] rtl83xx_fib4_del: no such gateway: 0.0.0.0
[ 12.722014] procd: - early -
[ 12.725396] rtl83xx_fib4_del: no such gateway: 0.0.0.0
[ 12.731162] rtl83xx_fib4_del: no such gateway: 0.0.0.0
[ 12.738119] procd: - watchdog -
[ 13.391977] procd: - watchdog -
[ 13.396073] procd: - ubus -
[ 13.455139] procd: - init -
[ 14.273289] kmodloader: loading kernel modules from /etc/modules.d/*
[ 14.436399] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 15.963576] urngd: v1.0.2 started.
[ 19.662287] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[ 59.367064] in rtl838x_eth_stop
[ 59.371097] rtl838x-eth 1b00a300.ethernet eth0: Link is Down
[ 59.913005] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[ 59.920415] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[ 59.927800] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[ 59.935160] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[ 60.089379] RESETTING 9300, CPU_PORT 28
[ 60.294033] rtl838x-eth 1b00a300.ethernet eth0: configuring for fixed/internal link mode
[ 60.303033] In rtl838x_mac_config, mode 1
[ 60.309139] rtl838x-eth 1b00a300.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[ 60.320680] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[ 60.328144] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[ 60.420481] rtl83xx-switch switch@1b000000 lan1: configuring for phy/usxgmii link mode
[ 60.429390] rtl93xx_phylink_mac_config port 0, mode 0, phy-mode: usxgmii, speed -1, link 0
[ 60.438645] rtl93xx_phylink_mac_config SDS is 2
[ 60.498118] 8021q: adding VLAN 0 to HW filter on device lan1
[ 60.524467] switch: port 1(lan1) entered blocking state
[ 60.530312] switch: port 1(lan1) entered disabled state
[ 60.536247] rtl83xx-switch switch@1b000000 lan1: entered allmulticast mode
[ 60.543968] rtl838x-eth 1b00a300.ethernet eth0: entered allmulticast mode
[ 60.552406] rtl83xx-switch switch@1b000000 lan1: entered promiscuous mode
[ 60.631947] rtl930x_set_l3_egress_intf writing to index 0: 00000201 10101492
[ 60.751560] rtl83xx-switch switch@1b000000 lan2: configuring for phy/usxgmii link mode
[ 60.760469] rtl93xx_phylink_mac_config port 1, mode 0, phy-mode: usxgmii, speed -1, link 0
[ 60.769728] rtl93xx_phylink_mac_config SDS is -1
[ 60.851823] 8021q: adding VLAN 0 to HW filter on device lan2
[ 60.905518] switch: port 2(lan2) entered blocking state
[ 60.911362] switch: port 2(lan2) entered disabled state
[ 60.917297] rtl83xx-switch switch@1b000000 lan2: entered allmulticast mode
[ 60.925898] rtl83xx-switch switch@1b000000 lan2: entered promiscuous mode
[ 61.114897] rtl83xx-switch switch@1b000000 lan3: configuring for phy/usxgmii link mode
[ 61.123797] rtl93xx_phylink_mac_config port 2, mode 0, phy-mode: usxgmii, speed -1, link 0
[ 61.133004] rtl93xx_phylink_mac_config SDS is -1
[ 61.218999] 8021q: adding VLAN 0 to HW filter on device lan3
[ 61.268336] switch: port 3(lan3) entered blocking state
[ 61.274245] switch: port 3(lan3) entered disabled state
[ 61.280112] rtl83xx-switch switch@1b000000 lan3: entered allmulticast mode
[ 61.359775] rtl83xx-switch switch@1b000000 lan3: entered promiscuous mode
[ 61.514814] rtl83xx-switch switch@1b000000 lan4: configuring for phy/usxgmii link mode
[ 61.523721] rtl93xx_phylink_mac_config port 3, mode 0, phy-mode: usxgmii, speed -1, link 0
[ 61.532925] rtl93xx_phylink_mac_config SDS is -1
[ 61.597152] 8021q: adding VLAN 0 to HW filter on device lan4
[ 61.625769] switch: port 4(lan4) entered blocking state
[ 61.631615] switch: port 4(lan4) entered disabled state
[ 61.637550] rtl83xx-switch switch@1b000000 lan4: entered allmulticast mode
[ 61.704379] rtl83xx-switch switch@1b000000 lan4: entered promiscuous mode
[ 61.804264] rtl83xx-switch switch@1b000000 lan5: configuring for phy/usxgmii link mode
[ 61.813110] rtl93xx_phylink_mac_config port 4, mode 0, phy-mode: usxgmii, speed -1, link 0
[ 61.822386] rtl93xx_phylink_mac_config SDS is 3
[ 61.913892] 8021q: adding VLAN 0 to HW filter on device lan5
[ 61.954276] switch: port 5(lan5) entered blocking state
[ 61.960164] switch: port 5(lan5) entered disabled state
[ 61.966099] rtl83xx-switch switch@1b000000 lan5: entered allmulticast mode
[ 62.023456] rtl83xx-switch switch@1b000000 lan5: entered promiscuous mode
[ 62.146019] rtl83xx-switch switch@1b000000 lan6: configuring for phy/usxgmii link mode
[ 62.154927] rtl93xx_phylink_mac_config port 5, mode 0, phy-mode: usxgmii, speed -1, link 0
[ 62.164188] rtl93xx_phylink_mac_config SDS is -1
[ 62.257782] 8021q: adding VLAN 0 to HW filter on device lan6
[ 62.304304] switch: port 6(lan6) entered blocking state
[ 62.310149] switch: port 6(lan6) entered disabled state
[ 62.316079] rtl83xx-switch switch@1b000000 lan6: entered allmulticast mode
[ 62.324707] rtl83xx-switch switch@1b000000 lan6: entered promiscuous mode
[ 62.413772] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[ 62.421125] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[ 62.485145] rtl83xx-switch switch@1b000000 lan7: configuring for phy/usxgmii link mode
[ 62.494071] rtl93xx_phylink_mac_config port 6, mode 0, phy-mode: usxgmii, speed -1, link 0
[ 62.503273] rtl93xx_phylink_mac_config SDS is -1
[ 62.578214] 8021q: adding VLAN 0 to HW filter on device lan7
[ 62.605737] switch: port 7(lan7) entered blocking state
[ 62.611582] switch: port 7(lan7) entered disabled state
[ 62.617539] rtl83xx-switch switch@1b000000 lan7: entered allmulticast mode
[ 62.626166] rtl83xx-switch switch@1b000000 lan7: entered promiscuous mode
[ 62.738861] rtl83xx-switch switch@1b000000 lan8: configuring for phy/usxgmii link mode
[ 62.747756] rtl93xx_phylink_mac_config port 7, mode 0, phy-mode: usxgmii, speed -1, link 0
[ 62.757012] rtl93xx_phylink_mac_config SDS is -1
[ 62.828638] 8021q: adding VLAN 0 to HW filter on device lan8
[ 62.845659] switch: port 8(lan8) entered blocking state
[ 62.851506] switch: port 8(lan8) entered disabled state
[ 62.857444] rtl83xx-switch switch@1b000000 lan8: entered allmulticast mode
[ 62.866075] rtl83xx-switch switch@1b000000 lan8: entered promiscuous mode
[ 63.051163] rtl83xx-switch switch@1b000000 lan9: configuring for inband/10gbase-r link mode
[ 63.060563] rtl93xx_phylink_mac_config port 26, mode 2, phy-mode: 10gbase-r, speed -1, link 0
[ 63.070114] rtl93xx_phylink_mac_config SDS is 8
[ 63.075195] rtl9300_sds_rst 31
[ 63.219424] rtl9300_phy_enable_10g_1g 1gbit phy: 00001140
[ 63.226464] rtl9300_phy_enable_10g_1g 1gbit phy enabled: 00001140
[ 63.234270] rtl9300_phy_enable_10g_1g 10gbit phy: 00002040
[ 63.241377] rtl9300_phy_enable_10g_1g 10gbit phy after: 00002040
[ 63.249080] rtl9300_phy_enable_10g_1g set medium: 00000000
[ 63.256216] rtl9300_phy_enable_10g_1g set medium after: 00000002
[ 63.282889] rtl9300_serdes_setup: Configuring RTL9300 SERDES 8
[ 63.291408] rtl9300_serdes_mac_link_config: registers before 00000000 00001203
[ 63.303491] rtl9300_serdes_mac_link_config: registers after 00000000 00001003
[ 63.311477] rtl9300_force_sds_mode: SDS: 8, mode 28
[ 63.316939] rtl9300_force_sds_mode --------------------- serdes 8 forcing to 1a ...
[ 63.637004] rtl9300_force_sds_mode --------------------- serdes 8 forced to 1a DONE
[ 63.947221] rtl9300_sds_10g_idle WARNING: Waiting for RX idle timed out, SDS 8
[ 63.955287] start_1.1.1 initial value for sds 8
[ 64.017284] end_1.1.1 --
[ 64.020105] start_1.1.2 Load DFE init. value
[ 64.026876] end_1.1.2
[ 64.029407] start_1.1.3 disable LEQ training,enable DFE clock
[ 64.047814] end_1.1.3 --
[ 64.050632] start_1.1.4 offset cali setting
[ 64.057305] end_1.1.4
[ 64.059828] start_1.1.5 LEQ and DFE setting
[ 64.078487] end_1.1.5
[ 64.090026] start_1.2.1 ForegroundOffsetCal_Manual
[ 64.099378] end_1.2.1
[ 64.110383] start_1.2.3 Foreground Calibration
[ 64.128856] rtl9300_do_rx_calibration_2_3: fgcal_gray: 18, fgcal_binary 27
[ 64.137534] rtl9300_do_rx_calibration_2_3: end_1.2.3
[ 64.143054] start_1.4.1
[ 64.366661] end_1.4.1
[ 64.369383] start_1.4.2
[ 64.381913] vth_set_bin = 7
[ 64.384668] vth_set_bin = 7
[ 64.388775] Vth Maunal = 0
[ 64.507685] Tap0 Sign : +
[ 64.510704] tap0_coef_bin = 31
[ 64.514635] tap0 manual = 0
[ 64.524050] end_1.4.2
[ 64.527160] start_1.5.2
[ 64.607589] end_1.5.2
[ 64.631293] rtl9300_do_rx_calibration: SDS enabled
[ 64.712230] 8021q: adding VLAN 0 to HW filter on device lan9
[ 64.835558] REALTEK RTL9300 SERDES rtl838x slave mii-0:1a: No DT node.
[ 64.842844] ------------[ cut here ]------------
[ 64.848014] WARNING: CPU: 0 PID: 6 at drivers/net/phy/phy.c:1233 0x804c30f4
[ 64.855802] 0x804c19f0: returned: -22
[ 64.859883] Modules linked in: nft_fib_inet nf_flow_table_inet nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject nft_redir nft_quota nft_numgen nft_nat nft_masq nft_log nft_limit nft_hash nft_floc
[ 64.909009] CPU: 0 PID: 6 Comm: kworker/0:0 Tainted: G O 6.6.74 #0
[ 64.917448] Workqueue: events_power_efficient 0x804c3038
[ 64.923360] Stack : 00000000 8081491c 8184bd4c 81f5da9c 00000000 00000000 00000000 00000000
[ 64.932689] 00000000 00000000 00000000 00000000 00000000 00000001 8184bd08 5b272809
[ 64.942011] 8184bda0 00000000 00000000 8184bc40 00000038 807bd584 00000000 ffffffea
[ 64.951332] 00000154 8184bc04 00000154 00000000 807d6ff0 8184bce8 8184be10 804c30f4
[ 64.960653] 00000009 81f5da9c 8181a1d0 61c88647 808b1760 8045c314 00000000 81500000
[ 64.969974] ...
[ 64.972687] Call Trace:
[ 64.972698] [<807bd584>] 0x807bd584
[ 64.979281] [<804c30f4>] 0x804c30f4
[ 64.983160] [<8045c314>] 0x8045c314
[ 64.987030] [<80105b34>] 0x80105b34
[ 64.990901] [<80105b3c>] 0x80105b3c
[ 64.994781] [<807936f4>] 0x807936f4
[ 64.998651] [<80127848>] 0x80127848
[ 65.002530] [<804c30f4>] 0x804c30f4
[ 65.006400] [<80127908>] 0x80127908
[ 65.010274] [<804c30f4>] 0x804c30f4
[ 65.014151] [<804c19f0>] 0x804c19f0
[ 65.018023] [<801422bc>] 0x801422bc
[ 65.021951] [<8014287c>] 0x8014287c
[ 65.025825] [<801424e4>] 0x801424e4
[ 65.029695] [<801499e0>] 0x801499e0
[ 65.033567] [<801424e4>] 0x801424e4
[ 65.037436] [<801499e0>] 0x801499e0
[ 65.041307] [<80149ad4>] 0x80149ad4
[ 65.045179] [<801499e0>] 0x801499e0
[ 65.049048] [<801499e0>] 0x801499e0
[ 65.052920] [<801011f8>] 0x801011f8
[ 65.056801]
[ 65.058507] ---[ end trace 0000000000000000 ]---
[ 65.161637] switch: port 9(lan9) entered blocking state
[ 65.167559] switch: port 9(lan9) entered disabled state
[ 65.173426] rtl83xx-switch switch@1b000000 lan9: entered allmulticast mode
[ 65.182085] rtl83xx-switch switch@1b000000 lan9: entered promiscuous mode
[ 65.254914] rtl83xx-switch switch@1b000000 lan10: configuring for inband/10gbase-r link mode
[ 65.264400] rtl93xx_phylink_mac_config port 27, mode 2, phy-mode: 10gbase-r, speed -1, link 0
[ 65.273956] rtl93xx_phylink_mac_config SDS is 9
[ 65.279002] rtl9300_sds_rst 31
[ 65.409242] rtl9300_phy_enable_10g_1g 1gbit phy: 00001140
[ 65.416283] rtl9300_phy_enable_10g_1g 1gbit phy enabled: 00001140
[ 65.424089] rtl9300_phy_enable_10g_1g 10gbit phy: 00002040
[ 65.431194] rtl9300_phy_enable_10g_1g 10gbit phy after: 00002040
[ 65.438898] rtl9300_phy_enable_10g_1g set medium: 00000000
[ 65.446034] rtl9300_phy_enable_10g_1g set medium after: 00000002
[ 65.472700] rtl9300_serdes_setup: Configuring RTL9300 SERDES 9
[ 65.481213] rtl9300_serdes_mac_link_config: registers before 00000000 00001203
[ 65.493271] rtl9300_serdes_mac_link_config: registers after 00000000 00001003
[ 65.501252] rtl9300_force_sds_mode: SDS: 9, mode 28
[ 65.506726] rtl9300_force_sds_mode --------------------- serdes 9 forcing to 1a ...
[ 65.826795] rtl9300_force_sds_mode --------------------- serdes 9 forced to 1a DONE
[ 66.137004] rtl9300_sds_10g_idle WARNING: Waiting for RX idle timed out, SDS 9
[ 66.145080] start_1.1.1 initial value for sds 9
[ 66.207074] end_1.1.1 --
[ 66.209898] start_1.1.2 Load DFE init. value
[ 66.216664] end_1.1.2
[ 66.219190] start_1.1.3 disable LEQ training,enable DFE clock
[ 66.237590] end_1.1.3 --
[ 66.240415] start_1.1.4 offset cali setting
[ 66.247086] end_1.1.4
[ 66.249612] start_1.1.5 LEQ and DFE setting
[ 66.268277] end_1.1.5
[ 66.279820] start_1.2.1 ForegroundOffsetCal_Manual
[ 66.289170] end_1.2.1
[ 66.300176] start_1.2.3 Foreground Calibration