The hal_gpio driver will only work with the bookworm images and not with the recent Trixie images due to incompatibility issues with libgpiod2 supplied with bookworm and libgpiod3 supplied with Trixie.
I raised this issue on GitHub and it is on the to do list.
So what it means is that for gpios builds use the images dated around Jan 2025 or earlier.