Intel® SoC FPGA Embedded Development Suite
Support for SoC FPGA Software Development, SoC FPGA HPS Architecture, HPS SoC Boot and Configuration, Operating Systems
549 Discussions

altera i2c linux driver bringup for fabric i2c - Agilex

harigs
Beginner
1,443 Views

Hi,

I am working to bringup altera i2c linux driver on our custom fpga board based on agilex.

 

Following are my bsp details

linux 5.15.50

uboot  v2022.04

Yocto : Kirkstone

 

I am able to program the fpga bitstream (with i2c ip) and able to access the slaves address through lw hps to fpga bridge from hps from userspace.

 

I followed the below reference and enabled I2C_ALTERA in the defconfig.

https://patchwork.kernel.org/project/linux-arm-kernel/patch/1496447559-19782-2-git-send-email-thor.thayer@linux.intel.com/

 

I am neither seeing i2c-altera driver loaded nor fpga_bridge sysfs entries are populated.

 

Kindly provide your support.

 

Thanks

0 Kudos
4 Replies
Jeet14
Employee
1,407 Views

Hi,


Can you please share the below-

u-boot.dtsi

boot log

device-tree.dtsi


Regards

Tiwari


0 Kudos
Jeet14
Employee
1,381 Views

Hi,


Please update on my previous reply.


Regards

Tiwari


0 Kudos
harigs
Beginner
1,335 Views

Hi Tiwari,

 

Please find the requested device tree files and boot logs attached.

 

I took different approach and I was able to get the driver loaded with the device trees attached.

But, the altera i2c linux driver complains with the following error

 

[008674] altera-i2c f9000080.i2c: Altera SoftIP I2C Probe Complete
[ 6.469673] altera-i2c f9000080.i2c: Core Status not IDLE...
[ 6.757649] altera-i2c f9000080.i2c: Core Status not IDLE...

 

I am unable to probe the hardware at the moment and hence unable to check the SDA & SCL line status. 

Also, register address probed in linux-socfpga-lts/drivers/i2c/busses/i2c-altera.c are not aligned with the one mentioned in Embedded Peripherals IP user guide.

 

What am I missing here?

 

Thanks

Hari

0 Kudos
GeneChang
Beginner
376 Views

Did you manage to resolve the issue in the end?

I am currently encountering the same problem as you:
"altera-i2c ff2002c0.i2c: Core Status not IDLE..."

0 Kudos
Reply