Hi,
I am currently replacing a raspberry Pi Zero by a BPI-M2 zero in a carrier board for an application.
I would like to be able to shutdown properly the BPI-M2 zero with the GPIO at the position 40.
The goal is when this GPIO is tied to ground, then the BPI-M2 Zero shutdown properly. There are a lot of examples for Raspberrypi but I can’t find any example for BPI-M2 Zero.
Does anybody made a similar feature ?
I am running Ubuntu 16.04 with kernel 5.3.4
Thanks