Hi,
I am trying to build a robot with a raspberry pi. The standard i2c speed of 100kHz is to slow for me, thus I'd like to set it to the fast mode of 400kHz (or even faster?). As I am using ubuntu 20.04 to be able to easily install ros2 foxy, I can't simply set the speed in the /boot/config file. I am confused which chip (2708/2835/2711) actually is running on the rpi4 and which kernelmodul is used for the i2c interfacing. When I started up the rpi and got a simple python program with smbus2 working, only the following modules are loaded:
Code
lsmod | grep bcm
bcm2835_v4l2 49152 0
bcm2835_isp 28672 0
bcm2835_codec 45056 0
v4l2_mem2mem 36864 1 bcm2835_codec
bcm2835_mmal_vchiq 45056 3 bcm2835_codec,bcm2835_v4l2,bcm2835_isp
videobuf2_vmalloc 20480 1 bcm2835_v4l2
videobuf2_dma_contig 24576 2 bcm2835_codec,bcm2835_isp
videobuf2_v4l2 32768 4 bcm2835_codec,bcm2835_v4l2,v4l2_mem2mem,bcm2835_isp
snd_bcm2835 36864 0
videobuf2_common 61440 5 bcm2835_codec,videobuf2_v4l2,bcm2835_v4l2,v4l2_mem2mem,bcm2835_isp
snd_pcm 143360 1 snd_bcm2835
videodev 311296 6 bcm2835_codec,videobuf2_v4l2,bcm2835_v4l2,videobuf2_common,v4l2_mem2mem,bcm2835_isp
snd 114688 3 snd_bcm2835,snd_timer,snd_pcm
mc 73728 6 videodev,bcm2835_codec,videobuf2_v4l2,videobuf2_common,v4l2_mem2mem,bcm2835_isp
vc_sm_cma 49152 1 bcm2835_mmal_vchiq
Alles anzeigen
so it seems like the right chip is bcm2835? but isn't the rpi4's chip bcm2711? Also there is no i2c module loaded, but i2c is still working... I am confused.
Thanks for any help