Seeed reComputer R1000 (CM4) + BalenaOS: PCA9535 I2C expander (0x21) unreachable — WM1302 LoRa concentrator stuck at 0xFF

Hardware:

  • Seeed reComputer R1000 / R1013-10 (Raspberry Pi CM4, BalenaOS)
  • WM1302 LoRaWAN concentrator (SPI variant, /dev/spidev0.1)

Problem:
The WM1302 SX1302 concentrator always reads chip version is 0xFF and fails to start. Root cause: the SX1302 reset line (LoRaWAN_SX1302_RST, pin 2) and power enable (VDD_OUT_CTL, pin 9) are wired through an onboard NXP PCA9535 I2C GPIO expander at address 0x21, as declared in Seeed’s reComputer-R100x device tree overlay (&i2c5). Without being able to toggle those lines, the SX1302 stays in reset.

What we tried:

  • Scanned all available I2C buses (/dev/i2c-1, /dev/i2c-6, /dev/i2c-20, /dev/i2c-21) with no 0x21 found anywhere
  • dtoverlay=i2c5 fails silently; BalenaOS CM4 kernel does not expose BSC5
  • dtoverlay=i2c3,pins_2_3 and pins_4_5 bus either doesn’t come up or chip NAKs (pca953x 3-0021 error -5)
  • dtoverlay=i2c0,pins_44_45 bus comes up, 0x21 absent
  • dtoverlay=i2c-gpio,i2c_gpio_sda=44,i2c_gpio_scl=45,bus=5 caused a supervisor reboot loop; confirmed /boot/overlays/ does not exist on this BalenaOS build, so the overlay is not available in the kernel
  • Probed 11 BCM GPIO candidates directly via sysfs as SX1302 reset pin and all return 0xFF

Confirmed:

  • /boot/overlays/ does not exist, BalenaOS CM4 kernel has no loadable overlay files
  • i2c-20 and i2c-21 are phantom buses (almost all addresses respond ; floating lines)
  • The reComputer-R100x overlay is applied via Device Configuration but has no effect because &i2c5 (BSC5) is not present in the stock BalenaOS CM4 kernel

Question:
Is there a BalenaOS-compatible way to expose the reComputer R1000’s internal I2C bus (where the PCA9535 lives) on a stock CM4 kernel without Seeed’s custom kernel/DTB? Or is a custom BalenaOS build with Seeed’s seeed-linux-dtoverlays the only path forward?

Any guidance from the Balena or Seeed community would be very appreciated.

I believe we are running into a similar issue with R1025 (board variant 1.1) trying to drive the user LEDs.

Originally running the Pi4 image, installing the latest reComputer-R100x.dtbo exposed I2C5; however, the Pi4 image does not contain a PCA9535 driver.

We ported to using the CM4 IO Board image and replaced the reComputer overlay with the latest version again. I2C5 is on pin 12 and 13 for board V1.1 (“i2c5,pins_12_13”)

I2C5 is now failing with an error! Progress. But this seems to be in conflict with UART_5 which is also on GPIO12 and GPIO13. Th

[ 0.749941] pinctrl-bcm2835 fe200000.gpio: pin gpio12 already requested by fe201a00.serial; cannot claim for fe205a00.i2c

It seems UART5 is claiming this pin despite enable_uart=0 for our fleet.

Can Balena support assist with updating the reComputer overlay files with the latest version (to cover V1 and V1.1 boards) and look into the UART conflicts?

Follow up - unsure if this affects your LoRa issue but we were able to finally get i2c5 at 0x21 to function on our V1.1 board.

Manually pull the latest reComputer-R100x.dtbo from a SeeedStudio image, it should be about 11kb in size. Load it on the Balena System via rpiboot.

We used the following RESIN_HOST_CONFIG_dtoverlay (note drop of UART2 and addition of I2C5 from )

“i2c1,pins_44_45”,“i2c3,pins_2_3”,“i2c5,pins_12_13”,“i2c6,pins_22_23”,“audremap,pins_18_19”,“reComputer-R100x”