aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_mpm/dboard_manager
diff options
context:
space:
mode:
Diffstat (limited to 'mpm/python/usrp_mpm/dboard_manager')
-rw-r--r--mpm/python/usrp_mpm/dboard_manager/base.py6
-rw-r--r--mpm/python/usrp_mpm/dboard_manager/eiscat.py1
2 files changed, 7 insertions, 0 deletions
diff --git a/mpm/python/usrp_mpm/dboard_manager/base.py b/mpm/python/usrp_mpm/dboard_manager/base.py
index c7e116fc0..e16906cb4 100644
--- a/mpm/python/usrp_mpm/dboard_manager/base.py
+++ b/mpm/python/usrp_mpm/dboard_manager/base.py
@@ -38,6 +38,12 @@ class DboardManagerBase(object):
# maps these keys to actual spidev paths. Also throws a warning/error if
# the SPI configuration is invalid.
spi_chipselect = {}
+ # Lists device tree overlays that need to be applied before this class can
+ # be used. List of strings. If strings contain the token {sfp}, it will be
+ # expanded to the flavour of SFP configuration is (XG, 1G, ...).
+ # Example: 'magnesium-{sfp}' could get expanded to 'eiscat-XG'.
+ # Are applied in order.
+ dt_overlays = []
def __init__(self, slot_idx, **kwargs):
self.log = get_logger('dboardManager')
diff --git a/mpm/python/usrp_mpm/dboard_manager/eiscat.py b/mpm/python/usrp_mpm/dboard_manager/eiscat.py
index 78d5d0e18..c0a5e2fb1 100644
--- a/mpm/python/usrp_mpm/dboard_manager/eiscat.py
+++ b/mpm/python/usrp_mpm/dboard_manager/eiscat.py
@@ -366,6 +366,7 @@ class EISCAT(DboardManagerBase):
"adc1": create_spidev_iface_sane,
"phase_dac": create_spidev_iface_phasedac,
}
+ dt_overlays = ['eiscat-{sfp}']
def __init__(self, slot_idx, **kwargs):
super(EISCAT, self).__init__(slot_idx, **kwargs)