cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Visitor
Visitor
188 Views
Registered: ‎06-12-2020

I2C support in u-boot 2020

Hi, 

I'm trying to port a reference board bsp based on zcu102 from 2018.1 to 2020.1.

I'm facing the following error in u-boot (2020.1):

NOTICE: BL31: v2.2(release):v1.1-5588-g5918e656e
NOTICE: BL31: Built : 01:58:17, Aug 18 2020
zynqmp_clk_get_peripheral_rate mio read fail
failed to get rate
zynqmp_clk_get_peripheral_rate mio read fail
failed to get rate
zynqmp_clk_get_peripheral_rate mio read fail
failed to get rate
zynqmp_clk_get_peripheral_rate mio read fail
failed to get rate
zynqmp_clk_get_peripheral_rate mio read fail
failed to get rate
No serial driver found
resetting ...

My I2C setting in u-boot config are:

# I2C support
CONFIG_DM_I2C=y
CONFIG_I2C_SET_DEFAULT_BUS_NUM=y
CONFIG_I2C_DEFAULT_BUS_NUMBER=0x0
CONFIG_SYS_I2C_CADENCE=y

 

The answer https://forums.xilinx.com/t5/Embedded-Linux/Petalinux-15-4-Add-I2C-support-to-u-boot/td-p/853882 also has same issue but the I2C settings uses CONFIG_SYS_I2C which is not working for my 2020 build. (CONFIG_SYS_I2C and CONFIG_SYS_I2C can't be defined together).

Any pointers to what am i missing.

Tags (2)
0 Kudos
Reply
0 Replies