rockchip-linux / u-boot

U-Boot tree for pending commits
114 stars 79 forks source link

rk3328 can't use internal phy #16

Open thorlin opened 6 years ago

thorlin commented 6 years ago

I follow rmii clk and pinctrl code of kernel to gmac_rockchip file of uboot, but internal phy can't work.

below is uboot startup message :

U-Boot 2017.09 (Dec 14 2017 - 17:38:49 +0800)

Model: Rockchip RK3328 EVB DRAM: 2 GiB thor_rk3328_pinctrl_get_periph_id=37 thor_rk3328_pinctrl_get_periph_id=51 thor_rk3328_pinctrl_get_periph_id=57 MMC: thor_rk3328_pinctrl_get_periph_id=14 thor_rk3328_pinctrl_get_periph_id=12 rksdmmc@ff500000: 1, rksdmmc@ff520000: 0 Card did not respond to voltage select! mmc_init: -95, time 9 *** Warning - No block device, using default environment

In: serial@ff130000 Out: serial@ff130000 Err: serial@ff130000 Model: Rockchip RK3328 EVB Net: thor_rk3328_pinctrl_get_periph_id=21 thor_pinctrl_rk3328_gmac_config gmac id = 28 iomux error! thor_rk3328_gmac_set_to_rmii888 thor_rk3328_gmac_set_to_rmii mac_con[2]=708 thor_rk3328_gmac_set_to_rmii macphy_con[0]=24697 thor_rk3328_gmac_set_to_rmii macphy_con[1]=512 thor_rk3328_gmac_set_to_rmii macphy_con[2]=4660 thor_rk3328_gmac_set_to_rmii macphy_con[3]=53

Warning: ethernet@ff550000 (eth0) using random MAC address - 82:3c:9a:c8:50:2a eth0: ethernet@ff550000 Hit any key to stop autoboot: 0

Does anyone to give me advice?

keveryang commented 6 years ago

support for internal phy is WIP, current U-Boot only support external phy.

bwt3 commented 3 years ago

Has support for the internal PHY within U-Boot been added yet? Got an application where this would be an advantage?