Raspberry Pi 5 GPIO Pins problem

Hi,
after lots of trouble i was able to make Home assistant Core work on my Raspberry Pi 5 in a Docker Container.
Everything works fine.
The only thing is that i have problems using the GPIO pins.
the Docker COntainer is --privileged so it should be able to access the GPIO Pins.

I Installed Hacs and the Raspberry Pi GPIO Repository. THis worked great on my Raspberry Pi 3B.
Now i am only getting this error in the logs on startup of the container:

Logger: homeassistant.components.switch
Source: helpers/entity_platform.py:360
Integration: Schalter (documentation, issues)
First occurred: 14:31:32 (1 occurrences)
Last logged: 14:31:32

Error while setting up rpi_gpio platform for switch
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 360, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/rpi_gpio/switch.py", line 84, in setup_platform
    switches.append(RPiGPIOSwitch(name, port, invert_logic))
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/rpi_gpio/switch.py", line 100, in __init__
    setup_output(self._port)
  File "/config/custom_components/rpi_gpio/__init__.py", line 39, in setup_output
    GPIO.setup(port, GPIO.OUT)
RuntimeError: Cannot determine SOC peripheral base address

Is someone able to help me?

I’d like to know this too, did you ever get it to work?

No but i found the source of our problem.
The rpi5 is using the gpio pins in a different way as rpis before him.
I use a rpi zero to control things over gpio wich tells the main rpi5 over mqtt their state

Any update? I have the same problem and its not related to docker but to the way RPI5 kernel controlling GPIOs

I’m also keeping my fingers crossed that GPIO access comes back for Pi 5 :slight_smile: