aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_mpm/dboard_manager
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2017-05-23 15:16:50 -0700
committerMartin Braun <martin.braun@ettus.com>2017-12-22 15:03:53 -0800
commit245b96a777afbeb84990ebb377def658879c2fa1 (patch)
tree7333a32c4bd9381b76aef28db0245e2d30a30ef7 /mpm/python/usrp_mpm/dboard_manager
parente9a1af171eecb333326b3d791fd6516788ec7cac (diff)
downloaduhd-245b96a777afbeb84990ebb377def658879c2fa1.tar.gz
uhd-245b96a777afbeb84990ebb377def658879c2fa1.tar.bz2
uhd-245b96a777afbeb84990ebb377def658879c2fa1.zip
mpm: Added auto-loading of dboard-specific overlays
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)