Physical / GPIO compatibility with Pi 4B for Quad SATA HAT

Hello, Radxa community.

I have a Radxa Quad SATA HAT for Pi 4B. It works fine, but I need more RAM and CPU power.
From the quick look seems as 5A is physically compatible with Pi 4B, so maybe I can replace Pi 4 to 5A 16Gb in my setup.

Is 5A physically compatible with Pi 4B (so it can be installed into the Radxa case)? Is GPIO pinout is same enough so top panel can be used on 5A? I can fix software for different I2C bus numbers or GPIO pins.

What I need is hardware PWM on PIN32 & 33, I2C on PIN 3 & 5, I2C on PIN 27 & 28, and couple of GPIO pins: OLED reset (PIN16), 2xSATA enable (PIN22, PIN37), button (PIN11)

I have this hat: https://wiki.radxa.com/Dual_Quad_SATA_HAT

@setq please look into this issue

Checked GPIO - will have to bridge couple of pins to another ones, but more or less compatible.

Interested about physical compatibility