ps - running 64 bit Bookworm.
Looking through the WiringPi code, I see that as stated by Rhizomatica, there is no support for the Pi 5, in terms of code which can print the device type, but I don't know what that means for gpio. Is the GPIO mapping entirely different in the 5??