-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Raspberry Pi 5 - Toggling GPIOs with gpiod disables I2C addresses #1933
Comments
|
@pelwell thank you for your quick response.
|
That's a lot of hardware for one Pi 5: |
|
i2c-1 should be disabled then. |
Pi - 4 works fine with the same setup when using RPi.GPIO lib. (it needs to doublecheck) |
Is that an assumption or a statement ? Could you please point to any doc ? Thanks |
It's a statement. By default, the I2C interfaces are disabled. Unless you have a HAT with an EEPROM which causes an overlay to be loaded, it necessary to add something to config.txt that enables i2c-1 - either |
dtparam=i2c_arm=on dtoverlay=mcp2515-can0,oscillator=16000000,interrupt=6 |
So not exactly
|
my bad. Resolved : Raspberry Pi -5 hardware issue. gpiod lib works fine . |
Hello,
Raspberry Pi 5 - Toggling GPIOs with gpiod disables I2C addresses
pi@pi:~ $ pinout
Description : Raspberry Pi 5B rev 1.0
Revision : d04170
SoC : BCM2712
RAM : 8GB
Storage : MicroSD
USB ports : 4 (of which 2 USB3)
Ethernet ports : 1 (1000Mbps max. speed)
pi@pi:~ $ uname -a
Linux pi 6.6.62+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.62-1+rpt1 (2024-11-25) aarch64 GNU/Linux
pi@pi:~ $ gpiodetect
gpiochip0 [pinctrl-rp1] (54 lines)
gpiochip10 [gpio-brcmstb@107d508500] (32 lines)
gpiochip11 [gpio-brcmstb@107d508520] (4 lines)
gpiochip12 [gpio-brcmstb@107d517c00] (17 lines)
gpiochip13 [gpio-brcmstb@107d517c20] (6 lines)
gpiochip0 [pinctrl-rp1] (54 lines)
pi@pi:~ $ ls /dev/i2*
/dev/i2c-1 /dev/i2c-13 /dev/i2c-14
pi@pi:~ $ sudo raspi-config nonint get_i2c
The text was updated successfully, but these errors were encountered: