[BPI-R4] mtk-xsphy soc -- failed to get ref_clk(id-1)

Hardware: BPI-R4 v1.1 board

OpenWrt: 25.12.2 installed from firmware selector.

PSU: 12V/5A

The image is functional with the built in interfaces (WAN, LAN1, LAN2, LAN3).

However, my setup has a Quectel EG25G WWAN card in CN12 (SIM2) and two 1G Copper RJ45 adapters in the SFP WAN/LAN ports.

EG25G WWAN Card

The card initializes fine with /dev/cdc-wwan0 and /dev/ttyUSB0-3 ports. AT commands over /dev/ttyUSB2 work fine.
However, after a few minutes it starts looping through resets. Multiple /dev/cdc-wwan* show up. There is only one /dev/ttyUSB0 device;

[  828.072843] usb 1-1.3: USB disconnect, device number 14
[  828.078250] qmi_wwan 1-1.3:1.0 wwan0: unregister 'qmi_wwan' usb-11200000.usb-1.3, WWAN/QMI device
[  828.145876] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[  828.153963] option 1-1.3:1.2: device disconnected
[  828.158899] qmi_wwan 1-1.3:1.3 wwan1: unregister 'qmi_wwan' usb-11200000.usb-1.3, WWAN/QMI device
[  828.235871] qmi_wwan 1-1.3:1.4 wwan2: unregister 'qmi_wwan' usb-11200000.usb-1.3, WWAN/QMI device
[  828.295948] qmi_wwan 1-1.3:1.5 wwan3: unregister 'qmi_wwan' usb-11200000.usb-1.3, WWAN/QMI device
[  840.645199] usb 1-1.3: new high-speed USB device number 15 using xhci-mtk
[  840.809328] qmi_wwan 1-1.3:1.0: cdc-wdm0: USB WDM device
[  840.815077] qmi_wwan 1-1.3:1.0 wwan0: register 'qmi_wwan' at usb-11200000.usb-1.3, WWAN/QMI device, 96:37:24:72:79:68
[  840.827088] option 1-1.3:1.2: GSM modem (1-port) converter detected
[  840.833560] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB0
[  840.840810] qmi_wwan 1-1.3:1.3: bogus CDC Union: master=0, slave=0
[  840.847477] qmi_wwan 1-1.3:1.3: cdc-wdm1: USB WDM device
[  840.853249] qmi_wwan 1-1.3:1.3 wwan1: register 'qmi_wwan' at usb-11200000.usb-1.3, WWAN/QMI device, 5a:7d:2f:5a:50:15
[  840.864124] qmi_wwan 1-1.3:1.4: bogus CDC Union: master=0, slave=0
[  840.870958] qmi_wwan 1-1.3:1.4: cdc-wdm2: USB WDM device
[  840.876801] qmi_wwan 1-1.3:1.4 wwan2: register 'qmi_wwan' at usb-11200000.usb-1.3, WWAN/QMI device, 16:2e:87:22:b8:32
[  840.887694] qmi_wwan 1-1.3:1.5: bogus CDC Union: master=0, slave=0
[  840.894409] qmi_wwan 1-1.3:1.5: cdc-wdm3: USB WDM device
[  840.900239] qmi_wwan 1-1.3:1.5 wwan3: register 'qmi_wwan' at usb-11200000.usb-1.3, WWAN/QMI device, d2:5b:70:6a:47:1a

The RJ45 SFP adapters do not initialize fully. ethtool for both ports report link not detected. Whereas the corresponding port on the Ethernet switch clearly shows the physical link is OK.

Looking at the early stage boot message shows mtk-xsphy failed to get a reference clock.

[    0.071858] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.073129] mtk-xsphy soc:xs-phy@11e10000: failed to get ref_clk(id-1)
[    0.073743] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[    0.073759] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[    0.073771] mtk-pcie-gen3 11280000.pcie:       IO 0x0020000000..0x00201fffff -> 0x0020000000
[    0.073785] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020200000..0x0027ffffff -> 0x0020200000
[    0.073872] mtk-pcie-gen3 11290000.pcie: host bridge /soc/pcie@11290000 ranges:
[    0.073883] mtk-pcie-gen3 11290000.pcie: Parsing ranges property...
[    0.073894] mtk-pcie-gen3 11290000.pcie:       IO 0x0028000000..0x00281fffff -> 0x0028000000
[    0.073904] mtk-pcie-gen3 11290000.pcie:      MEM 0x0028200000..0x002fffffff -> 0x0028200000
[    0.073922] /soc/pcie@11290000: Failed to get clk index: 0 ret: -517
[    0.073931] mtk-pcie-gen3 11290000.pcie: failed to get clocks
[    0.073995] mtk-pcie-gen3 11300000.pcie: host bridge /soc/pcie@11300000 ranges:
[    0.074005] mtk-pcie-gen3 11300000.pcie: Parsing ranges property...
[    0.074016] mtk-pcie-gen3 11300000.pcie:       IO 0x0030000000..0x00301fffff -> 0x0030000000
[    0.074026] mtk-pcie-gen3 11300000.pcie:      MEM 0x0030200000..0x0037ffffff -> 0x0030200000
[    0.074044] /soc/pcie@11300000: Failed to get clk index: 0 ret: -517
[    0.074052] mtk-pcie-gen3 11300000.pcie: failed to get clocks
[    0.074126] mtk-pcie-gen3 11310000.pcie: host bridge /soc/pcie@11310000 ranges:
[    0.074136] mtk-pcie-gen3 11310000.pcie: Parsing ranges property...
[    0.074145] mtk-pcie-gen3 11310000.pcie:       IO 0x0038000000..0x00381fffff -> 0x0038000000
[    0.074155] mtk-pcie-gen3 11310000.pcie:      MEM 0x0038200000..0x003fffffff -> 0x0038200000
[    0.074172] /soc/pcie@11310000: Failed to get clk index: 0 ret: -517
[    0.074180] mtk-pcie-gen3 11310000.pcie: failed to get clocks
[    0.078739] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.080795] printk: legacy console [ttyS0] disabled
[    0.101062] 11000000.serial: ttyS0 at MMIO 0x11000000 (irq = 99, base_baud = 2500000) is a ST16650V2

I suspect this is causing the instability with the EG25 modem card and the SFP RJ45 adapters.

I also tried to use the 24.10.5 image but the symptoms persist.

Is there a workaround to resolve this?