Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4397

Troubleshooting • i2c overlays are not exposing 0,2,3 Pi5

$
0
0
/dev/i2c-1 is exposed, the others are not. I even tried the overlays with -pi5 and they did not work.

Is this a 6.6 kernel issue not loading the module or working with it properly?

Code:

fred@pi5:~ $ lsmod | grep i2ci2c_designware_platform    49152  0i2c_designware_core    49152  1 i2c_designware_platformi2c_brcmstb            49152  0i2c_dev                49152  0

Code:

fred@pi5:~ $ uname -aLinux pi5 6.6.74+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.74-1+rpt1 (2025-01-27) aarch64 GNU/Linux
fred@pi5:~ $ for bus in $(ls /dev/i2c-* | grep -o '[0-9]*'); do
echo "Scanning I2C Bus $bus:"
i2cdetect -y $bus
echo ""
done
Scanning I2C Bus 2:
Error: Could not open file `/dev/i2c-2' or `/dev/i2c/2': No such file or directory

Scanning I2C Bus 1:
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- 38 -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

Scanning I2C Bus 2:
Error: Could not open file `/dev/i2c-2' or `/dev/i2c/2': No such file or directory

Scanning I2C Bus 13:
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 08 09 0a 0b 0c 0d 0e 0f
10: 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f
20: 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f
30: -- -- -- -- -- -- -- -- 38 39 3a 3b 3c 3d 3e 3f
40: 40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: 60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f
70: 70 71 72 73 74 75 76 77

Scanning I2C Bus 2:
Error: Could not open file `/dev/i2c-2' or `/dev/i2c/2': No such file or directory

Scanning I2C Bus 14:
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 08 09 0a 0b 0c 0d 0e 0f
10: 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f
20: 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f
30: -- -- -- -- -- -- -- 37 38 39 3a 3b 3c 3d 3e 3f
40: 40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f
50: 50 -- -- -- -- -- -- -- -- 59 -- -- -- -- -- --
60: 60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f
70: 70 71 72 73 74 75 76 77


Code:

$ cat /boot/firmware/config.txt # For more options and information see# http://rptl.io/configtxt# Some settings may impact device functionality. See link above for details# Uncomment some or all of these to enable the optional hardware interfacesdtparam=i2c_arm=on#dtparam=i2s=ondtparam=spi=on# Enable audio (loads snd_bcm2835)dtparam=audio=on# Additional overlays and parameters are documented# /boot/firmware/overlays/README# Automatically load overlays for detected camerascamera_auto_detect=1# Automatically load overlays for detected DSI displaysdisplay_auto_detect=1# Automatically load initramfs files, if foundauto_initramfs=1# Enable DRM VC4 V3D driverdtoverlay=vc4-kms-v3dmax_framebuffers=2# Don't have the firmware create an initial video= setting in cmdline.txt.# Use the kernel's default instead.disable_fw_kms_setup=1# Run in 64-bit modearm_64bit=1# Disable compensation for displays with overscandisable_overscan=1# Run as fast as firmware / board allowsarm_boost=1[cm4]# Enable host mode on the 2711 built-in XHCI USB controller.# This line should be removed if the legacy DWC2 controller is required# (e.g. for USB device mode) or if USB support is not required.otg_mode=1[cm5]dtoverlay=dwc2,dr_mode=host[all]dtoverlay=spi0-0cs.dtbo,i2c1-pi5.dtbo,i2c0-pi5.dtbo,uart1-pi5.dtbodtparam=uart0=on
What i2c ports are hardware and which ones are software.

Statistics: Posted by foxsquirrel — Fri Feb 21, 2025 11:48 pm — Replies 0 — Views 35



Viewing all articles
Browse latest Browse all 4397

Trending Articles