MangoPI MQ Pro (single core allwinner D1 risc-v based Pi Zero clone)
Investigating the MangoPi MQ pro's IO capabilities when running Ubuntu 23.10, instead of the Armbian image it 'shipped' with. This is using the 'AllWinner Nezha' image (compatible with the MQ pro) from here: https://ubuntu.com/download/risc-v
My unit is connected to a Waveshare LORA hat, I want to make it work.
MQ Pro Pins:
This is derived from the schematics; showing the specific GPIO pin assignments on the MQ Pro GPIO connector
looking down, Pin1 is top left, Pin40 bottom right
3v3 -- o o -- 5v
PG13 ------ o o -- 5v
PG12 ------ o o -- GND
PB7 ------ o o ------ PB8
GND -- o o ------ PB9
PD21 ------ o o ------ PB5
PD22 ------ o o -- GND
PB0 ------ o o ------ PB1
3v3 -- o o ------ PD14
PD12 ------ o o -- GND
PD13 ------ o o ------ PC1
PD11 ------ o o ------ PD10
GND -- o o ------ PD15
PE17 ------ o o ------ PE16
PB10 ------ o o -- GND
PB11 ------ o o ------ PC0
PB12 ------ o o -- GND
PB6 ------ o o ------ PB2
PD17 ------ o o ------ PB3
GND -- o o ------ PB4
Note that the spare onboard LED (activity?) is on PD18
LoRA HAT pins
This is derived from the schematics; showing the 5 specific pins used (only)
looking down, Pin1 is top left, Pin40 bottom right
3v3 -- o o -- 5v
o o -- 5v
o o -- GND
AUX ------ o o ------ TX (set to USB serial via jumpers on HAT)
GND -- o o ------ RX (set to USB serial via jumpers on HAT)
-- o o --
M1 ------ o o -- GND
M0 ------ o o --
3v3 -- o o --
-- o o -- GND
-- o o --
-- o o --
GND -- o o --
-- o o --
-- o o -- GND
-- o o --
-- o o -- GND
-- o o --
-- o o --
GND -- o o --
The three fixed pins used by the HAT are 7,13 and 15. These map as follows:
AUX
is onPB7
M1
is onPD22
M0
is onPB0
The Serial (TX,RX) is deselected via onboard jumpers, a secondary serial will be jumpered to the module TX/RX instead.
References
MQ Pro
https://mangopi.org/mangopi_mqpro