I2c5 failing : debian 19.09

hi,

we are trying to use i2c5 device, added the below changes in dts, it is not creating i2c-5 device in i2c-dev, it is failing with “invalid proto 1” . please suggest.

arch/arm64/boot/dts/qcom/sdm845-db845c.dts

&i2c5 {

  •   status = "okay";
    
  •   clock-frequency = <400000>;
    

};
+
+};

+&qup_i2c5_default {

  •   pinconf {
    
  •           pins = "gpio85", "gpio86";
    
  •           drive-strength = <2>;
    
  •           bias-disable;
    
  •   };
    

+};

root@linaro-alip:~# dmesg | grep i2c
[ 3.220593] i2c /dev entries driver
[ 5.242352] geni_i2c 894000.i2c: Invalid proto 1
[ 5.248903] geni_i2c a8c000.i2c: Bus frequency not specified, default to 100kHz.
[ 5.258345] geni_i2c a8c000.i2c: Invalid proto 1
[ 5.263640] geni_i2c a98000.i2c: Bus frequency not specified, default to 100kHz.

root@linaro-alip:/sys/class/i2c-dev# ls
i2c-10 i2c-14/

regards,
vinaysimha

hi,

please download latest firmware release from http://releases.linaro.org/96boards/dragonboard845c/linaro/rescue/19.09/, and update with fastboot the devcfg.mbn file, and try again.

thanks

nico,

still the same error after using the latest firmware. please suggest.
http://releases.linaro.org/96boards/dragonboard845c/linaro/rescue/19.09/

root@linaro-alip:~# dmesg | grep i2c
[ 3.220593] i2c /dev entries driver
[ 5.242352] geni_i2c 894000.i2c: Invalid proto 1
[ 5.248903] geni_i2c a8c000.i2c: Bus frequency not specified, default to 100kHz.
[ 5.258345] geni_i2c a8c000.i2c: Invalid proto 1
[ 5.263640] geni_i2c a98000.i2c: Bus frequency not specified, default to 100kHz.

root@linaro-alip:/sys/class/i2c-dev# ls
i2c-10 i2c-14/

even the i2c-11 also not enabled a88000
i2c-5 -> 894000

regards,
vinaysimha

hi,

I am sorry… I pasted the wrong link… I meant to ask you to try this one:

http://snapshots.linaro.org/96boards/dragonboard845c/linaro/rescue/27/

We know that we have a SPI/I2C config issue in the 19.09 release.

nico,

from these meta-binaries i2c-11 able to detect,
i2c-5 still facing the issue

[ 5.242352] geni_i2c 894000.i2c: Invalid proto 1

root@linaro-alip:/sys/class/i2c-dev# ls
i2c-10 i2c-11 i2c-14

regards,
vinaysimha

Hi Vinay,
There is a issue in old firmware releases, in specific devcfg.mbn file.
Can you download https://releases.linaro.org/96boards/dragonboard845c/qualcomm/firmware/RB3_firmware_20190529180356-v4.zip and flash new devcfg with below fastboot cmd.

$sudo fastboot flash devcfg_a 07-devcfg/devcfg.mbn

That should help resolve invalid proto issue.
thanks,
srini

srini,

this new rb3_firmware also fails with “geni_i2c 894000.i2c: Invalid proto 1”

regards,
vinaysimha

Hi Vinay,
Are you sure you rebooted the board after flashing devcfg.mbn?
–srini

srini,

i had done the reboot also, but still the same error for i2c5.
geni_i2c 894000.i2c: Invalid proto 1”

regards,
vinaysimha

Hi Vinay,
If you are using DB845c you will not be able to use QUP5 for I2C as its configured for SPI. These pins are wired up on Cam Mezz for Altek Kara Module.

All this configuration comes via devcfg file. If you are Qcom OEM you should be able to generate this which fits your hardware layout.

Thanks,
srini

srini,

thanks, i am able to change in the devcfg , now able i2c-5 is accesible.

regards,
vinaysimha