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: 
Voyager
Voyager
308 Views
Registered: ‎09-14-2016

Cadence i2c driver ( kernel 4.6 -> 4.9)

Hi all,

 

After moving from kernel 4.6 to 4.9 (linux-xlnx) I have several problems and i'm stuck with i2c:

[   10.325053] [IOEXP] Loading ioexpo & mux driver...
[   10.335944] pca954x 0-0070: probe
[   10.335976] i2c i2c-0: master_xfer[0] W, addr=0x70, len=1
[   10.341651] pca954x 0-0070: probe failed
[   10.345646] i2c-core: driver [pca954x] registered
[   10.352820] pca953x 0-0020: probe
[   10.352845] 0-0020 supply vcc not found, using dummy regulator
[   10.358618] i2c i2c-0: master_xfer[0] W, addr=0x20, len=1
[   10.358628] i2c i2c-0: master_xfer[1] R, addr=0x20, len=1
[   10.358643] pca953x 0-0020: failed reading register
[   10.363538] pca953x: probe of 0-0020 failed with error -11
[   10.369084] i2c-core: driver [pca953x] registered

Any idea ? For info, same dts node just update zynq-7000.dtsi

[edit -1]: 

root@blo148sg~ # ll /sys/bus/platform/drivers/cdns-i2c/
--w-------    1 root     root          4096 Feb 26 12:28 bind
lrwxrwxrwx    1 root     root             0 Feb 26 12:28 e0004000.i2c -> ../../../../devices/soc0/amba/e0004000.i2c
lrwxrwxrwx    1 root     root             0 Feb 26 12:28 e0005000.i2c -> ../../../../devices/soc0/amba/e0005000.i2c
--w-------    1 root     root          4096 Feb 26 12:28 uevent
--w-------    1 root     root          4096 Feb 26 12:28 unbind
root@blo-148sg ~ # lsmod
Module                  Size  Used by
gpio_pca953x           10198  0
i2c_mux_pca954x         5300  0

root@blo-148sg ~ # grep XILINX running.config | grep I2C
CONFIG_I2C_XILINX=y

 

 

Thx :)

Trigger

0 Kudos
1 Reply
Voyager
Voyager
277 Views
Registered: ‎09-14-2016

Re: Cadence i2c driver ( kernel 4.6 -> 4.9)

Up...

 

@All Xilinx modo, could you please explain how it's possible to get an error during i2c probing and get the driver regitrated ?

 

Thx! :)

Trigger

0 Kudos