Re: Attaching GPIO on PCEngines apu2
Greg Troxel <[email protected]> Sun, 11 Jan 2026 15:13:16 -0500
| Newsgroups | gmane.os.netbsd.ports.x86-64 |
|---|---|
| Message-ID | <[email protected]> |
David Brownlee <[email protected]> writes: > Would anyone have any thoughts on how hard it would be to attach some > LED controlling GPIO pins on an PCEngine apu2 > > dmesg from netbsd-11 identifies them as: > > GPIO (AMD0030) at acpi0 not configured > BTNS (PRP0001) at acpi0 not configured > BTN1 (PRP0001) at acpi0 not configured > LEDS (PRP0001) at acpi0 not configured > LED1 (PRP0001) at acpi0 not configured > LED2 (PRP0001) at acpi0 not configured > LED3 (PRP0001) at acpi0 not configured > CTBL (BOOT0000) at acpi0 not configured I would have thought this was done already but my netbsd-9 dmesg says the same. Good to know netbsd-11 is working. This might help: https://pcengines.github.io/apu2-documentation/gpios/ It seems likely that "cpu0: AMD GX-412TC SOC" has an AMD gpio controller built it and that one needs to wreit gpioamd(4), or find out that amd meets some standard interface. see src/sys/dev/acpi/acpi_gpio.c sorry, not really great hints....