Z-Turn board support on U-Boot 2020.10-rc2, got some errors.

Hello,
I've tried the u-boot 2020.10-rc2 and it's seem i've got some errors:
U-Boot 2020.10-rc2-00204-gc84341f5ac (Aug 24 2020 - 09:49:25 +0200)
CPU: Zynq 7z020 Silicon: v3.1 Model: Zynq Z-Turn MYIR Board DRAM: ECC disabled 1 GiB Flash: 0 Bytes NAND: 0 MiB MMC: mmc@e0100000: 0 Loading Environment from SPIFlash... Invalid bus 0 (err=-19) *** Warning - spi_flash_probe_bus_cs() failed, using default environment
In: serial@e0001000 Out: serial@e0001000 Err: serial@e0001000 Net: ZYNQ GEM: e000b000, mdio bus e000b000, phyaddr 0, interface rgmii-id Could not get PHY for eth0: addr 0 No ethernet found.
Hit any key to stop autoboot: 0 Zynq>
According to [0] the board use a winbond W25Q128BVFIG but on the board it's seem to usea spansion FL128SAIF00.
I've checked if FL128SAIF00 is registered on drivers/mtd/spi/spi-nor-ids.c:
({ INFO6("s25fl128s", 0x012018, 0x4d0180, 64 * 1024, 256, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | USE_CLSR) },)
I've checked if flash manufacturer was enabled on configs/xilinx_zynq_virt_defconfig:
CONFIG_SPI_FLASH_SPANSION=y
I checked on [1] to see if the pinout is broken but not.
I dont know how to correct this problem.
For the ethernet it's seem CONFIG_PHY_MICREL_KSZ90X1=y and CONFIG_PHY_MICREL=y was not on configs/xilinx_zynq_virt_defconfig
But adding it doesn't resolve it:
ZYNQ GEM: e000b000, mdio bus e000b000, phyaddr 0, interface rgmii-id Could not get PHY for eth0: addr 0 No ethernet found.
I dont (again) know how to correct this problem.
Can you help me ?
[0] http://www.myirtech.com/download/Zynq7000/Z-TURNBOARD_schematic.pdf
[1] https://www.xilinx.com/support/documentation/boards_and_kits/zc702_zvik/ug85...

Hi,
On 24. 08. 20 13:21, Alexandre GRIVEAUX wrote:
Hello,
I've tried the u-boot 2020.10-rc2 and it's seem i've got some errors:
U-Boot 2020.10-rc2-00204-gc84341f5ac (Aug 24 2020 - 09:49:25 +0200)
CPU: Zynq 7z020 Silicon: v3.1 Model: Zynq Z-Turn MYIR Board DRAM: ECC disabled 1 GiB Flash: 0 Bytes NAND: 0 MiB MMC: mmc@e0100000: 0 Loading Environment from SPIFlash... Invalid bus 0 (err=-19) *** Warning - spi_flash_probe_bus_cs() failed, using default environment
In: serial@e0001000 Out: serial@e0001000 Err: serial@e0001000 Net: ZYNQ GEM: e000b000, mdio bus e000b000, phyaddr 0, interface rgmii-id Could not get PHY for eth0: addr 0 No ethernet found.
Hit any key to stop autoboot: 0 Zynq>
According to [0] the board use a winbond W25Q128BVFIG but on the board it's seem to usea spansion FL128SAIF00.
I've checked if FL128SAIF00 is registered on drivers/mtd/spi/spi-nor-ids.c:
({ INFO6("s25fl128s", 0x012018, 0x4d0180, 64 * 1024, 256, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | USE_CLSR) },)
I've checked if flash manufacturer was enabled on configs/xilinx_zynq_virt_defconfig:
CONFIG_SPI_FLASH_SPANSION=y
I checked on [1] to see if the pinout is broken but not.
I dont know how to correct this problem.
For the ethernet it's seem CONFIG_PHY_MICREL_KSZ90X1=y and CONFIG_PHY_MICREL=y was not on configs/xilinx_zynq_virt_defconfig
But adding it doesn't resolve it:
ZYNQ GEM: e000b000, mdio bus e000b000, phyaddr 0, interface rgmii-id Could not get PHY for eth0: addr 0 No ethernet found.
I dont (again) know how to correct this problem.
Can you help me ?
[0] http://www.myirtech.com/download/Zynq7000/Z-TURNBOARD_schematic.pdf
[1] https://www.xilinx.com/support/documentation/boards_and_kits/zc702_zvik/ug85...
It looks like that manufacturer created different versions where they are not compatible to each other. Please take a look at this thread. https://www.spinics.net/lists/arm-kernel/msg800078.html
I didn't accepted the patch because none else didn't test it on both revisions. Issue with spi flash can be also related.
Thanks, Michal

On 24/08/2020 13:31, Michal Simek wrote :
Hi,
Hi
It looks like that manufacturer created different versions where they are not compatible to each other. Please take a look at this thread. https://www.spinics.net/lists/arm-kernel/msg800078.html
I didn't accepted the patch because none else didn't test it on both revisions. Issue with spi flash can be also related.
Thanks, Michal
Seem right to me to test things, I can test on the board (V5), maybe Alexander Graf could help with V4 [0] ?
As a reminder the board can be populated with a Xilinx XC7Z010 or Xilinx XC7Z020.
Maybe we need to create another DT ?
Thanks.
[0] I don't know how to get one for testing, that's why i added Alexander in copy.

On 25. 08. 20 20:36, Alexandre GRIVEAUX wrote:
On 24/08/2020 13:31, Michal Simek wrote :
Hi,
Hi
It looks like that manufacturer created different versions where they are not compatible to each other. Please take a look at this thread. https://www.spinics.net/lists/arm-kernel/msg800078.html
I didn't accepted the patch because none else didn't test it on both revisions. Issue with spi flash can be also related.
Thanks, Michal
Seem right to me to test things, I can test on the board (V5), maybe Alexander Graf could help with V4 [0] ?
As a reminder the board can be populated with a Xilinx XC7Z010 or Xilinx XC7Z020.
Maybe we need to create another DT ?
No problem with that. But also if none is interested in V4 version we can just remove it and convert it to V5 which should be visible from compatible string.
Thanks, Michal
participants (2)
-
Alexandre GRIVEAUX
-
Michal Simek