Shutdown vim3 via gpio

I knew this subject sounded familiar. See if anything here looks suitable to your needs. I see “GPIO: External GPIO events*” among them.