I’m running PRU step-generator firmware on a BeagleBone AI-64 (Debian, kernel 6.18.47-arm64-k3-r53, PREEMPT_RT) and have hit a very reproducible asymmetry on ICSSG0 PRU0 direct outputs, verified with an oscilloscope on the header pins.
R30 bits 16-19 work perfectly (P8_12 / P8_11 / P8_15 / P8_16, padconfig mux 0): clean 3.3 V step trains at 5 kHz.
R30 bits 0-15 never reach the header (tested bit 0 → AF28/P9_28, bit 3, others; same mux 0, padconfig = 0x00010000): pins float or sit at a constant level while the same bits demonstrably toggle in R30.
Ruled out before posting: padconfig registers verified by readback, with ball-to-pin mapping cross-checked against the kernel’s gpiochip line names. The same pad muxed to GPIO (mux 7) toggles fine from Linux via gpioset – so the ball, trace, and socket are good; only the PRU (mux 0) path is dead. The firmware writes all 32 bits of R30 (verified in source and in the PRU’s task memory). ICSSG0 GPCFG0/1 read 0x0, MII_RT TXCFG0/1 have TX_ENABLE clear, and there is no ti,pruss-gp-mux-sel in the DT.
Full disclosure: at one point I dropped a scope probe’s ground clip onto the board, which shorted something and caused a reboot – so I can’t 100% rule out damage, and I have a second AI-64 on order to double-check everything on fresh hardware. That said, the failure pattern doesn’t look like damage to me: it’s a clean bit-range split (0-15 vs 16-19) that’s identical across many pins and reboots, and the affected pins all still work fine through the GPIO path.
SPRUJ61 describes CTRLMMR_ICSSG[2:0]_CTRL registers with per-pin GPM_BIDI fields gating each GPO. I can’t inspect them from Linux – reading 0x00104100 via /dev/mem raises a firewall exception (hard-learned!).
My questions:
Q1: Does the AI-64 boot chain (u-boot / SYSFW / board config) set CTRLMMR_ICSSG0_CTRL GPM_BIDI (or anything similar) non-default for GPO0-15?
Q2: What’s the sanctioned way to return those pins to plain R30-driven outputs on a stock image?
Q3: Is there another per-bit gate between PRU R30 and the pad I should check?
I have a scope on the pins and full control of the board – happy to run any diagnostic.