# Software (i2c-gpio) With Balena + Rasbperry Pi CM4

**URL:** <https://forums.balena.io/t/software-i2c-gpio-with-balena-rasbperry-pi-cm4/350130>\
**Category:** balenaOS\
**Created:** [November 15, 2021, 10:13pm UTC](https://forums.balena.io/t/software-i2c-gpio-with-balena-rasbperry-pi-cm4/350130 "2021-11-15T22:13:05Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![keenanjohnson](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/keenanjohnson/32/6682_2.png) [@keenanjohnson](https://forums.balena.io/u/keenanjohnson)\
**Post date:** [November 18, 2021, 9:24pm UTC](https://forums.balena.io/t/software-i2c-gpio-with-balena-rasbperry-pi-cm4/350130/21 "2021-11-18T21:24:19Z")

</div>

All right I’ve solved my own problem here. I needed to remove the commas between each line of the dt\_overlay gpio parameters so they all end up on one line in config.txt:

```auto
Define DT parameters = "i2c_arm=off","i2c-gpio=on"
Define DT overlays = "i2c-gpio,i2c_gpio_sda=2,i2c_gpio_scl=3"

```

Once I’ve done that everything is working great!

```auto
root@5582468:/usr/src# dmesg | grep i2c
[10.451224] i2c-gpio ffffffff00000002.i2c: using lines 2 (SDA) and 3 (SCL)
[15.229958] i2c /dev entries driver
root@5582468:/usr/src# i2cdetect -l
i2c-11 i2c ffffffff00000002.i2c I2C adapter
root@5582468:/usr/src# i2cdetect -y 11
     0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- 61 -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- 77

```

---

<div class="post-metadata">

**Author:** ![keenanjohnson](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/keenanjohnson/32/6682_2.png) [@keenanjohnson](https://forums.balena.io/u/keenanjohnson)\
**Post date:** [November 18, 2021, 9:24pm UTC](https://forums.balena.io/t/software-i2c-gpio-with-balena-rasbperry-pi-cm4/350130/22 "2021-11-18T21:24:37Z")

</div>

Thanks for the help all!

---

<div class="post-metadata">

**Author:** ![dtischler](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/dtischler/32/2483_2.png) [@dtischler](https://forums.balena.io/u/dtischler)\
**Post date:** [November 18, 2021, 10:40pm UTC](https://forums.balena.io/t/software-i2c-gpio-with-balena-rasbperry-pi-cm4/350130/24 "2021-11-18T22:40:53Z")

</div>

Well that is just crazy. Glad it is working though Keenan!

[Previous page](https://forums.balena.io/t/software-i2c-gpio-with-balena-rasbperry-pi-cm4/350130.md?page=1)
