[FFe] Update to 2.0 version

Bug #2037637 reported by Dave Jones
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gpiozero (Ubuntu)
Fix Released
Undecided
Dave Jones

Bug Description

[ Impact ]

The Raspberry Pi 5 changes GPIO operation substantially from being controlled directly from the SoC, to being handled by the new "southbridge-like" RP1. This in turn means all the "traditional" GPIO control libraries (RPi.GPIO, pigpio, etc.) no longer operate. The new libgpiod based libraries (including lgpio which we already switched to in hirsute) are now the only officially supported method of controlling GPIO.

However, the default gpiochip changes from 0 (on all prior models) to 4 (on the Pi 5), and gpiozero also provides the "pinout" utility which requires new data to cover the Pi 5. The new upstream 2.0 version incorporates all these changes.

[ Test Plan ]

* Enable -proposed
* Upgrade python3-gpiozero package
* Ensure GPIO still operates correctly by trying recipes from the documentation [1]
* Run "pinout" and verify that the Raspberry Pi board you are using is correctly identified and displayed

Repeat this procedure for all supported boards (2B, 3B, 3A+, 3B+, Zero 2W, 4B, CM4, 400, 5).

[1]: https://gpiozero.readthedocs.io/en/stable/recipes.html

[ Regression Potential ]

Low; as mentioned above, we'd patched gpiozero to prefer the lgpio driver as the default since Ubuntu hirsute. The only changes that are technically required for the Pi 5 here are ensuring the correct gpiochip device is selected, and the board data for the 5. However, gpiozero 2.0 substantially overhauled how the board data is stored in the library so back-porting just those changes was not practical.

We've been (quietly) testing these changes on several boards (including a pre-release 5) for a couple of months now with no issues, but obviously I'll run a full verification again on all boards once this is in -proposed.

Dave Jones (waveform)
Changed in gpiozero (Ubuntu):
milestone: none → ubuntu-23.10
assignee: nobody → Dave Jones (waveform)
Revision history for this message
Graham Inggs (ginggs) wrote :

FFe granted

Changed in gpiozero (Ubuntu):
status: New → Triaged
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gpiozero - 2.0-0ubuntu1

---------------
gpiozero (2.0-0ubuntu1) mantic; urgency=medium

  * Merge new upstream release, adding support for Raspberry Pi 5
    (LP: #2037637)
  * d/rules: Fixed pytest exclusion syntax
  * d/t/control: Add DEP8 tests
  * d/python3-gpiozero.manpages: Added pintest and gpiozero-env
  * Removed d/p/use-setup-cfg.patch; now upstream
  * Removed d/p/lgpio-priority.patch; now upstream
  * Refreshed d/p/no-coverage.patch; context change
  * Updated d/p/local-objects-inv.patch to use local python3-doc and
    python-colorzero-doc during build
  * Bump standards version to 4.6.2

 -- Dave Jones <email address hidden> Thu, 28 Sep 2023 11:17:02 +0100

Changed in gpiozero (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.