Rockchip · AI & Linux Hub

Hardware interfaces

Mapping Raspberry Pi BCM GPIO numbers to ArmSoM pins

"Button connected to GPIO17" may refer to the BCM number in the Raspberry Pi project, but may be seen as pin 17 of the pin header on the wiring diagram.

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

Products and development resources

Check the hardware revision, carrier, image and interfaces in the product documentation. An article association is not evidence that a configuration has been tested.

Explore this topic → · Learning paths →