I have built customize image using yocto for Rpi 4B. I want to use GPIO0 and GPIO1 as input/output with /sys/class interface Can I use them?
I don't need any Rpi HAT or EEPROM.
I have googled so much not clarified answer.
Anyone can clarify ?
The quickest way to come up with a definitive answer is to try.
The only problem I see is that GPIO 0 and 1 may be probed during boot to see if a HAT is present. Only you can know if that will upset your system.
After boot you should be able to use GPIO 0 and 1 as normal.
You can actually stop the probe of GPIO 0 and 1 by adding the following entry to `/boot/config.txt'