I have RPI4 running NetBSD-current/evbarm64 (9.99.60).
But NIC(genet) doesn't work.
I thoroughly compare the source code & dmesg between raspbian & NetBSD.
I found phy-mode is "rgmii" for raspbian but "ramie-rxid" for NetBSD.
See
https://github.com/raspberrypi/linux/blob/rpi-4.19.y/arch/arm/boot/dts/bcm2838.dtsi
or fdtdump bcm2711-rpi-4-b.dtb of raspbian.
This means bit 16 of GENET_EXT_RGMII_OOB_CTRL is set to 1.
I modified genet_update_link() and set
GENET_EXT_RGMII_OOB_ID_MODE_DISABLE to GENET_EXT_RGMII_OOB_CTRL and it
works fine.
Also I rewrite phy-mode in bcm2711-rpi-4-b.dts and ti works fine.
Am I missing something?