If you are suddenly having GPIO problems with your raspberry pi, perhaps you upgraded the kernel automagically, and the installer removed the line “iomem=relaxed” and you need to add it again to
console=tty0 console=ttyS1,115200 root=LABEL=RASPIROOT rw fsck.repair=yes net.ifnames=0 cma=64M rootwait iomem=relaxed
to /boot/firmware/cmdline.txt