Hi, I have added bcm2835_i2c.c inside the i2c folder and wired up it with
bcm2835_peripheral.c , I tried to launch qemu with "-device
pca9552,address=0x60" , and it launches without any error means it can able
to found the i2c-bus


But in the emulated rpi terminal I cant able to detect this device

I tried to enable i2c but it says *Unknown parameter i2c_arm


and on i2cdetect -y 1 it throws error

Error: Could not open file /dev/i2c-1' or /dev/i2c/1': No such file or
directory

This is the output for info qtree ( related to i2c) in qemu monitor

dev: bcm2835-i2c, id ""

gpio-out "sysbus-irq" 1mmio ffffffffffffffff/0000000000001000bus: i2c
type i2c-bus  dev: pca9552, id ""   gpio-out "" 16    description =
"pca-unspecified"    address = 96 (0x60)`

Thanks & Regards
Shivam Vijay

Reply via email to