UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
740 Views
Registered: ‎03-19-2017

axi iic device tree for eeprom at zynq7020

Jump to solution

I use vivado2015.4, I found that the eeprom driver will not be probe for axi iic driver, why?

Anyone could help, thank you.

 

for example of below device tree, the i2c cadence driver will be probe and then the eeprom at24.c driver will also be probe.

//zynq-7000.dtsi

i2c0: i2c@e0004000 {
   compatible = "cdns,i2c-r1p10";
   status = "disabled";
   clocks = <&clkc 38>;
   interrupt-parent = <&intc>;
   interrupts = <0 25 4>;
   reg = <0xe0004000 0x1000>;
   #address-cells = <1>;
   #size-cells = <0>;
   
   m24c08@50 {
    compatible = "at,24c08";
    reg = <0x50>;
       };
  };

 

But if I replace PS's i2c with axi iic ip (the device tree as below), the xilinx's axi iic driver will be probe, but the eeprom at24.c will not be probe? Anyone could help how to fix below device tree?

//pl.dtsi

axi_iic_0: i2c@41600000 {
   #address-cells = <1>;
   #size-cells = <0>;
   compatible = "xlnx,xps-iic-2.00.a";
   reg = <0x41600000 0x10000>;
       

    m24c08@50 {
    compatible = "at,24c08";
    reg = <0x50>;
       };
  };

0 Kudos
1 Solution

Accepted Solutions
700 Views
Registered: ‎03-19-2017

Re: axi iic device tree for eeprom at zynq7020

Jump to solution

Sorry, I did not describe my condition clearly. I mean that the probe function of device driver of at24.c did not be called by the device tree as below in Petalinux201504. But the probe function of at24.c will be called if I change it to be ps's i2c (cadence's driver), why?

 

axi_iic_0: i2c@41600000 {
   #address-cells = <1>;
   #size-cells = <0>;
   compatible = "xlnx,xps-iic-2.00.a";
   reg = <0x41600000 0x10000>;
       

    m24c08@50 {
    compatible = "at,24c08";
    reg = <0x50>;
       };
  };

0 Kudos
2 Replies
Moderator
Moderator
712 Views
Registered: ‎06-27-2017

Re: axi iic device tree for eeprom at zynq7020

Jump to solution

Hi p.ching.kuang@gmail.com,

 

In I2C Cadence is in Zynq7020 PS and it has MUX  which need to be initialized then slave will be accessible.

In Case of AXI IIC you should be able to configure the MUX and then try accessing eeprom becuase eeprom is connected to  MUX.

 

Please refer Zynq-7000 User guide for reference.

https://www.xilinx.com/support/documentation/boards_and_kits/zc702_zvik/ug850-zc702-eval-bd.pdf

 

Regards
Kranthi
--------------------------
Don't forget to reply, kudo, and accept as solution.

Best Regards
Kranthi
--------------------------
Don't forget to reply, kudo, and accept as solution.
0 Kudos
701 Views
Registered: ‎03-19-2017

Re: axi iic device tree for eeprom at zynq7020

Jump to solution

Sorry, I did not describe my condition clearly. I mean that the probe function of device driver of at24.c did not be called by the device tree as below in Petalinux201504. But the probe function of at24.c will be called if I change it to be ps's i2c (cadence's driver), why?

 

axi_iic_0: i2c@41600000 {
   #address-cells = <1>;
   #size-cells = <0>;
   compatible = "xlnx,xps-iic-2.00.a";
   reg = <0x41600000 0x10000>;
       

    m24c08@50 {
    compatible = "at,24c08";
    reg = <0x50>;
       };
  };

0 Kudos