
I am resubmitting the patch titled "Add bitbang feature for npcm8xx and driver" for review and inclusion in the upstream project.
Driver didn't support bitbang feature. Add bb_miiphy_bus function for driver and open feature for npcm8xx
the log is as below: ------------------------------------------------- U-Boot 2024.10-g30b9cdaf2df5-dirty (Jan 09 2025 - 00:57:37 +0000)
CPU-0: NPCM845 A1 @ Model: Nuvoton npcm845 Development Board (Device Tree) DRAM: 1 GiB RNG: NPCM RNG module bind OK OTP: NPCM OTP module bind OK AES: NPCM AES module bind OK SHA: NPCM SHA module bind OK I/TC: Reserved shared memory is enabled I/TC: Dynamic shared memory is enabled I/TC: Normal World virtualization support is disabled I/TC: Asynchronous notifications are disabled Core: 649 devices, 28 uclasses, devicetree: separate WDT: Not starting watchdog@901c MMC: sdhci@f0842000: 0 Loading Environment from SPIFlash... SF: Detected w25q512jvq with page size 256 Bytes, erase size 64 KiB, total 64 MiB OK In: serial@0 Out: serial@0 Err: serial@0 Net: eth0: eth@f0802000, eth1: eth@f0804000, eth3: eth@f0808000 Hit any key to stop autoboot: 0 U-Boot> U-Boot> U-Boot>setenv ipaddr 192.168.16.3 U-Boot>ping 192.168.16.12 eth@f0802000 Waiting for PHY auto negotiation to complete ......... TIMEOUT ! Could not initialize PHY eth@f0802000 eth@f0804000 Waiting for PHY auto negotiation to complete ......... TIMEOUT ! Could not initialize PHY eth@f0804000 Speed: 100, full duplex Using eth@f0808000 device host 192.168.16.12 is alive -------------------------------------------------
Changes for v4: - Replece bitbang function prefix npcm to dw.
Changes for v3: - Support multiple buses for multiple Ethernet interfaces.
Changes for v2: - add bitbang delay dts read - modify printf to debug
Michael Chang (3): ARM: dts: nuvoton: Add bitbang delay through dts properties. ARM: configs: nuvoton: add bitbang feature for npcm8xx. net: designware: Add bitbang feature for designware driver.
arch/arm/dts/nuvoton-npcm845-evb.dts | 1 + configs/arbel_evb_defconfig | 4 + drivers/net/designware.c | 113 +++++++++++++++++++++++++++ drivers/net/designware.h | 6 +- 4 files changed, 123 insertions(+), 1 deletion(-)