When transplanting across boards, first write the original wiring as physical pins and signal names, and then check the controller and row offset of the new board. Otherwise, even if the software can run, it may operate on another line.
Use the input signal to do the first verification
Select a common input pin that the document confirms is available, and check the logic voltage, ground wire, and pull-up and pull-down. First use gpioinfo to view the controller label, occupant and row information, and then read the button status according to the libgpiod version installed on the system. Never use exploratory outputs to find pins.
Use two readings to identify the effective level
Record the levels when the button is released and pressed respectively. Assuming that released is 1 and pressed is 0, active low should be marked in the application configuration. If both times are 1, first check the circuit, pin multiplexing and resistance, and then adjust the edge trigger of the program.
Allow maintenance personnel to reproduce
Place the plug orientation, physical pins, GPIO controller labels, row offsets, and valid levels into the wiring table. After upgrading the kernel, reconfirm the enumeration sequence according to the label to avoid writing the gpiochip serial number into the program.
Check GPIO tool version and pin occupancy
gpiodetect
gpioinfo --version
gpioinfo --help
Board documentation and references

- ArmSoM Sige7 · hardware and interface manual · Sige7 · product page
- Raspberry Pi Hardware and GPIO Documentation
- Device Tree Overlays for GPIO I2C and SPI on RK3576 and RK3588
- Raspberry Pi official GPIO document source file
