arch: raspberrypi: clean up/fix GPIO file handling