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: 
Highlighted
Observer pullanlu
Observer
2,822 Views
Registered: ‎04-21-2012

Can the xi2cps driver support multiple i2c controller on the ZC702?

The built-in i2c-controller on the EC702 is i2c0 at address 0xE0004000, we added a 2nd i2c-controller of the same kind i2c1 at the address 0xE0005000. Device tree was changed to include the 2nd i2c-controller. However, the Linux instantiated only the 1st i2c-controller.

 

The i2c blocks of devicetree.dts was modified as below:

        i2c0: i2c@e0004000 {
            compatible = "xlnx,ps7-i2c-1.00.a";
            reg = <0xE0004000 0x1000>;
            interrupts = <57 0>;
            bus-id = <0>;
            input-clk = <111111111>;
            i2c-clk = <100000>;
            
            #address-cells = <1>;
            #size-cells = <0>;
        };

        i2c1: i2c@e0005000 {
            compatible = "xlnx,ps7-i2c-1.00.a";
            reg = <0xE0005000 0x1000>;
            interrupts = <80 0>;
            bus-id = <0>;
            input-clk = <111111111>;
            i2c-clk = <100000>;
            
            #address-cells = <1>;
            #size-cells = <0>;
        };

-----------------------------------------------------------------

 

The Linux boot message related to i2c shows nothing about i2c1:

 

i2c /dev entries driver

xi2cps e0004000.i2c: 100 kHz mmio e0004000 irq 57

xi2cps e0005000.i2c: reg adap failed: -16

xi2cps: probe of e0005000.i2c failed with error -16

si570 1-005d: registered si570 with default frequency 156250000 Hz

si570 1-005d: set initial output frequency 148500000 Hz

i2c i2c-0: Added multiplexed i2c bus 1

i2c i2c-0: Added multiplexed i2c bus 2

at24 3-0054: 1024 byte 24c08 EEPROM, writable, 1 bytes/write

i2c i2c-0: Added multiplexed i2c bus 3

i2c i2c-0: Added multiplexed i2c bus 4

rtc-pcf8563 5-0051: chip found, driver version 0.4.3

rtc-pcf8563 5-0051: low voltage detected, date/time is not reliable.

rtc-pcf8563 5-0051: rtc core: registered rtc-pcf8563 as rtc0

i2c i2c-0: Added multiplexed i2c bus 5

i2c i2c-0: Added multiplexed i2c bus 6

i2c i2c-0: Added multiplexed i2c bus 7

i2c i2c-0: Added multiplexed i2c bus 8

pca954x 0-0074: registered 8 multiplexed busses for I2C switch pca9548

Linux video capture interface: v2.00

gspca: v2.13.0 registered

usbcore: registered new interface driver uvcvideo

USB Video Class driver (v1.1.0)

WDT OF probe

 

---------------------------------------------------

 

Can the driver xi2cps support multiple i2c controllers?

 

0 Kudos
1 Reply
Scholar norman_wong
Scholar
2,816 Views
Registered: ‎05-28-2012

Re: Can the xi2cps driver support multiple i2c controller on the ZC702?

I would guess that "bus-id = <0>" should be "bus-id = <1>" for the i2c1 entry.

 

0 Kudos