Hello
on a custom board AM3352 i use a PHY marvell 80E1118 and a PHY marvell 80E3018 both in RGMII mode :
I validated Network device support ->PHY device support ->Drivers for marvell PHYin linux kernel
1) What should be configured in the kernel to have RGMII support ?
2) how can we set MAC adress and IP adress for the second PHY ? How u-boot passes information about 2 PHY to linux ?
In the board file configuration i have the following settings (only for one PHY...) :
#define CONFIG_EXTRA_ENV_SETTINGS \
"serverip=192.168.0.20\0" \
"ipaddr=192.168.0.101\0" \
"loadaddr=0x80200000\0" \
"kloadaddr=0x80007fc0\0" \
"fdtaddr=0x80F80000\0" \
"rdaddr=0x81000000\0" \
"bootfile=uImage\0" \
"console=ttyO0,115200n8\0" \
"optargs=\0" \
"mmcdev=0\0" \
"mmcroot=/dev/mmcblk0p2 ro\0" \
"mmcrootfstype=ext3 rootwait\0" \
"nandroot=ubi0:rootfs rw ubi.mtd=7,4096\0" \
"nandrootfstype=ubifs rootwait=1\0" \
"nandsrcaddr=0x400000\0" \
"nandimgsize=0xC00000\0" \
"mtdids=" MTDIDS_DEFAULT "\0" \
"mtdparts=" MTDPARTS_DEFAULT "\0" \
"rootpath=/export/rootfs\0" \
"nfsopts=nolock\0" \
"ramroot=/dev/ram0 rw ramdisk_size=65536 initrd=${rdaddr},64M\0" \
"ramrootfstype=ext2\0" \
"ip_method=none\0" \
"static_ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}" \
"::off\0" \
"bootargs_defaults=setenv bootargs " \
"console=${console} " \
"${optargs}\0" \
"mmcargs=run bootargs_defaults;" \
"setenv bootargs ${bootargs} " \
"root=${mmcroot} " \
"rootfstype=${mmcrootfstype} ip=${ip_method}\0" \
"nandargs=run bootargs_defaults;" \
"setenv bootargs ${bootargs} " \
"root=${nandroot} noinitrd " \
"rootfstype=${nandrootfstype} ip=${ip_method}\0" \
"spiroot=/dev/mtdblock4 rw\0" \
"spirootfstype=jffs2\0" \
"spisrcaddr=0x80000\0" \
"spiimgsize=0x362000\0" \
"spibusno=0\0" \
"ramroot=/dev/ram0 rw ramdisk_size=65536 initrd=${rdaddr},64M\0" \
"ramrootfstype=ext2\0" \
"spiargs=run bootargs_defaults;" \
"setenv bootargs ${bootargs} " \
"rootfstype=${spirootfstype} ip=${ip_method}\0" \
"netargs=run bootargs_defaults;" \
"setenv bootargs ${bootargs} " \
"root=/dev/nfs " \
"nfsroot=${serverip}:${rootpath},${nfsopts} rw " \
"ip=dhcp\0" \
"bootenv=uEnv.txt\0" \
"loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \
"importbootenv=echo Importing environment from mmc ...; " \
"env import -t $loadaddr $filesize\0" \
"ramargs=setenv bootargs console=${console} " \
"${optargs} " \
"root=${ramroot} " \
"rootfstype=${ramrootfstype}\0" \
"loadramdisk=fatload mmc ${mmcdev} ${rdaddr} ramdisk.gz\0" \
"loaduimagefat=fatload mmc ${mmcdev} ${kloadaddr} ${bootfile}\0" \
"loaduimage=ext2load mmc ${mmcdev}:2 ${kloadaddr} /boot/${bootfile}\0" \
"mmcboot=echo Booting from mmc ...; " \
"run mmcargs; " \
"bootm ${kloadaddr}\0" \
"nandboot=echo Booting from nand ...; " \
"run nandargs; " \
"nand read.i ${kloadaddr} ${nandsrcaddr} ${nandimgsize}; " \
"bootm ${kloadaddr}\0" \
"spiboot=echo Booting from spi ...; " \
"run spiargs; " \
"sf probe ${spibusno}:0; " \
"sf read ${kloadaddr} ${spisrcaddr} ${spiimgsize}; " \
"bootm ${kloadaddr}\0" \
"netboot=echo Booting from network ...; " \
"setenv autoload no; " \
"dhcp; " \
"tftp ${kloadaddr} ${bootfile}; " \
"run netargs; " \
"bootm ${kloadaddr}\0" \
"ramboot=echo Booting from ramdisk ...; " \
"run ramargs; " \
"bootm ${loadaddr}\0" \
"nandupdate=nand erase 0 1000000; " \
"mw 80000000 ffffffff 1000000; " \
"fatload mmc 0 80000000 mlo; " \
"fatload mmc 0 80080000 mlo; " \
"fatload mmc 0 80100000 mlo; " \
"fatload mmc 0 80180000 mlo; " \
"fatload mmc 0 80200000 u-boot.img; " \
"fatload mmc 0 80400000 uImage; " \
"setenv nandimgsize $filesize; " \
"nand write 80000000 0 1000000; " \
"saveenv\0" \
CONFIG_DFU_ALT
regards