Forum Discussion

harigs's avatar
harigs
Icon for New Contributor rankNew Contributor
3 years ago

altera i2c linux driver bringup for fabric i2c - Agilex

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

4 Replies

  • Jeet14's avatar
    Jeet14
    Icon for Frequent Contributor rankFrequent Contributor

    Hi,


    Can you please share the below-

    u-boot.dtsi

    boot log

    device-tree.dtsi


    Regards

    Tiwari


  • Jeet14's avatar
    Jeet14
    Icon for Frequent Contributor rankFrequent Contributor

    Hi,


    Please update on my previous reply.


    Regards

    Tiwari


    • harigs's avatar
      harigs
      Icon for New Contributor rankNew Contributor

      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

  • GeneChang's avatar
    GeneChang
    Icon for New Contributor rankNew Contributor

    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..."