mpm: Update X4xx GPIO SPI support

Update MPM GPIO handling for the updated X4xx GPIO SPI register
interface.

Require the FPGA compatibility number bump introduced with the new
SPI support so MPM does not operate against an incompatible FPGA image.

Bump MPM compat number.
This commit is contained in:
Max Becker 2026-09-15 11:21:27 +02:00 committed by Frank Dietze
parent 148c861163
commit b1e4016c2b
3 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ from usrp_mpm.sys_utils.sysfs_hwmon import HwmonTempSensors
from usrp_mpm.sys_utils.udev import dt_symbol_get_spidev
from usrp_mpm.xports import XportMgrUDP
X400_FPGA_COMPAT = (11, 0)
X400_FPGA_COMPAT = (12, 0)
# The compat number at which remote streaming was added:
X400_REMOTE_STREAMING_COMPAT = (7, 9)
# The compat number at which DNA support was added:

View File

@ -192,7 +192,7 @@ class DioControl:
FPGA_DIO_SW_DIO_CONTROL_REGISTER = FPGA_DIO_REGISTER_BASE + 0x20
FULL_DIO_FPGA_COMPAT = (7, 5)
FULL_SPI_FPGA_COMPAT = (7, 7)
FULL_SPI_FPGA_COMPAT = (12, 0)
LINEAR_PIN_MAPPING_COMPAT = (10, 1)
# DIO registers addresses in CPLD

View File

@ -44,7 +44,7 @@ grpc._cython.cygrpc.init_grpc_gevent()
TIMEOUT_INTERVAL = 5.0 # Seconds before claim expires (default value)
LOCK_ACQ_TIMEOUT = 1 # Seconds to wait for acquiring shared lock (default value)
TOKEN_LEN = 16 # Length of the token string
MPM_COMPAT_NUM = (7, 0) # Compatibility number for MPM
MPM_COMPAT_NUM = (8, 0) # Compatibility number for MPM
# Maximum gRPC message size (in bytes) to accommodate large FPGA bitfiles while
# preventing trivial memory exhaustion / DoS attacks.
MAX_GRPC_MESSAGE_SIZE = 128 * 1024 * 1024 # 128 MB in bytes