aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_mpm/dboard_manager
Commit message (Collapse)AuthorAgeFilesLines
* mpm: mg: move init_rf_cal before JESD de/framer bringupTrung Tran2018-08-161-4/+4
| | | | This sequence is the one as described by the AD9371 user guide.
* e320: Add all 5 temp sensors, fan sensor and rssi sensors per channelSugandha Gupta2018-08-091-4/+2
|
* mpm: n3xx: clocking API changes for transitioning clock and time sourcesDaniel Jepson2018-08-022-4/+81
| | | | | | Added set_sync_source method to set both the time and clock sources without forcing a re-init twice. Modified the existing set_time_source and set_clock_source methods to call into set_sync_source.
* mpm: mg: periphs: Modify AD9361 reset function to keep it in resetMartin Braun2018-08-021-2/+9
|
* uio: mpm: Fixup for opening mboard-regs UIOBrent Stapleton2018-07-231-13/+13
| | | | | | | | | - Fix the syntax to open mboard-regs UIO objects, and change the open() and close() functions to be private. - We were calling open() twice in every context manager line- once manually, and once in __enter__. This commit corrects those usages, and allows the context manager to fully manage the opening and closing of UIO objects.
* e320: mpm: Add dboard and mboard sensorsSugandha Gupta2018-07-181-13/+57
| | | | | | | | Adding the following sensors: - Catalina temperature, RSSI, and LO Lock sensors - GPS lock, time, TPV, and SKY sensors Co-authored-by: Brent Stapleton <brent.stapleton@ettus.com>
* mpm: initial commit of E320 codeBrent Stapleton2018-07-183-4/+286
| | | | Co-authored-by: Sugandha Gupta <sugandha.gupta@ettus.com>
* mpm: mg: Adding fast-reinit modeMartin Braun2018-07-172-19/+99
| | | | | | | | | | When a device is re-initialized without any changes (e.g., master_clock_rate, ref_clock_freq) then we can skip the initialization sequence and move on. This shaves a significant amount of time from the init sequence. Fast re-init can be overridden by providing the `force_reinit=1` device arg.
* mpm: mg: Move RF cal initialization after JESD initMartin Braun2018-07-171-2/+1
|
* mpm: mg: Store init args between runsMartin Braun2018-07-171-2/+6
|
* mpm: n3xx: mg: Refactor init codeMartin Braun2018-07-173-499/+583
| | | | | | | All code relevant to initializing an N310/N300 daughterboard is moved to its own module (mg_init.py). No functional changes.
* mpm: mg: Print AD9371 info as debug message during initMartin Braun2018-07-171-0/+8
|
* mpm: dboard_manager: Fix docstring for get_serial()Martin Braun2018-06-181-1/+2
|
* mpm: allow multiple spi device objects to use the same chip selectMark Meserve2018-05-141-2/+2
|
* mpm: replace long execution function with async callTrung N Tran2018-04-301-5/+10
| | | | | | - Replace mykonos finish_initialization with async version - Replace myknonos setup_cal with async version - Remove disable_timeout on rpc_server init()
* mg: implement digital loopback arg for the rficDaniel Jepson2018-04-101-1/+6
|
* n3xx: add White Rabbit supportDaniel Jepson2018-03-301-3/+17
| | | | Reviewed-by: Martin Braun <martin.braun@ettus.com>
* lmk: clean up logging statementsdjepson12018-03-071-2/+2
|
* tdc: support for tdc 2.0djepson12018-03-073-35/+55
|
* mpm: Fix some Pylint warningsMartin Braun2018-03-062-11/+12
| | | | No functional changes.
* mpm: Demote some log messagesMartin Braun2018-03-065-22/+21
| | | | | | The log output at level 'INFO' was pretty cluttered. This cleans up the log messages at the higher levels. In some cases, log message typos or capitalizations were also fixed.
* mpm: Rename n310 to n3xxMartin Braun2018-03-051-1/+1
| | | | | This module (and class) are, in fact, used for all N3xx-derivates so renaming it is the more correct thing to do.
* mpm: Update all license headersMartin Braun2018-02-1910-18/+18
| | | | | - Fix typo in company name (missing 'a') - Updated SPDX license identifier to version 3.0
* mpm: mg: Move MgCPLD, TCA6408, DboardClockControl class to own moduleMartin Braun2018-02-143-195/+209
|
* mpm: mg: add cpld revision to dboard infoTrung N Tran2018-02-121-5/+7
| | | | Reviewed-by: Martin Braun <martin.braun@ettus.com>
* fixup! mpm: Changed mpm_shell to support scripted useMoritz Fischer2018-02-071-26/+31
| | | | Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
* mpm: magnesium_update_cpld.py: Add axi_bitq supportMoritz Fischer2018-02-071-19/+65
| | | | | | | | | | | | Add axi_bitq support. In order for this to work we need several conditions to be true: - Updated openocd - FPGA image with axi_bitq built in and hooked up to correct pins - Updated overlays matching the FPGA image - An svf file with correct max frequency <= 10MHz Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
* mpm: mg: Remove superfluous importMartin Braun2018-01-231-1/+1
|
* mg: ease the usage of init and tracking calTrung N Tran2018-01-231-9/+94
| | | | | | | | Using string expression instead of passing in a total hex value. Now user can passed in for example: init_cals=DEFAULT or init_cals=BASIC|TX_QEC_INIT Reviewed-by: Martin Braun <martin.braun@ettus.com>
* n310: Update the dboard UIO usageBrent Stapleton2018-01-191-25/+22
| | | | | Updating the UIO usage in the debug functions in magnesium.py. Somehow this didn't get updated before.
* mpm: mg: Demote notice on LMK not being locked b/c of lacking initMartin Braun2018-01-181-1/+1
|
* mpm: Demoted some log statements from INFO to TRACE or DEBUGMartin Braun2018-01-171-2/+1
|
* mpm: mg: Pass deserializer_lane_xbar to ad937x_configTrung N Tran2018-01-121-0/+8
| | | | | | | | | Slot A and Slot B are different in how the JESD lanes are connected. We now pass in different deserializer_lane_xbar config values for each slot. Reviewed-by: Martin Braun <martin.braun@ettus.com> Reviewed-by: Daniel Jepson <daniel.jepson@ettus.com> Reviewed-by: Mark Meserve <mark.meserve@ni.com>
* mpm: n310: Fix various bugs in sensor APIMartin Braun2018-01-121-1/+1
|
* mpm: tdc: add signature/revision checks and master reset routinedjepson12018-01-121-0/+1
| | | | Reviewed-by: Martin Braun <martin.braun@ettus.com>
* mpm: dboard_manager: Use mpmutils.to_native_str instead of local hackMartin Braun2018-01-111-10/+2
|
* fixup! mpm: mg: Added magnesium_update_cpld.pyBrent Stapleton2018-01-051-1/+1
|
* mpm: mg: Assert that ref clock freq was actually set before init()Martin Braun2018-01-051-5/+7
| | | | | | | There was a theoretical chance otherwise that we forgot to set the ref_clock_freq value and it set up the LMK incorrectly. Reviewed-by: Daniel Jepson <daniel.jepson@ettus.com>
* mg cpld: update compatibility checking to major/minordjepson12018-01-041-18/+19
| | | | | Reviewed-by: Ashish Chaudhari <ashish.chaudhari@ettus.com> Reviewed-by: Martin Braun <martin.braun@ettus.com>
* jesd: add in detailed error reporting for JESD204b linksdjepson12018-01-041-20/+81
| | | | | | | | | | - add version control checks and bump to match latest core - add detailed mykonos reporting - add detailed fpga deframer reporting - misc cleanup Reviewed-by: Ashish Chaudhari <ashish.chaudhari@ettus.com> Reviewed-by: Martin Braun <martin.braun@ettus.com>
* mpm: mg: Fix CPLD rev checkMartin Braun2017-12-221-6/+13
| | | | | | | | Now checks the oldest-compat-rev register. Current rev is read out for logging purposes. Reviewed-by: Daniel Jepson <daniel.jepson@ettus.com> Reviewed-by: Moritz Fischer <moritz.fischer@ettus.com>
* mg: ignore Mykonos framer errordjepson12017-12-221-1/+1
| | | | According to ADI, this bit toggles a lot so ignoring it for now.
* mpm: mg: Repeat deframer init upon failuredjepson12017-12-221-1/+8
| | | | This is a band-aid solution.
* mpm: Fix linter warningsMartin Braun2017-12-221-31/+36
| | | | | | - Magnesium: Bad formatting in DRP setup - PeriphManagerBase: Import order - dtoverlay: Missed default value for param
* mpm: mg: Added magnesium_update_cpld.pyBrent Stapleton2017-12-222-1/+128
| | | | Reviewed-by: Martin Braun <martin.braun@ettus.com>
* mpm: tdc: fixed typos in commentsDaniel Jepson2017-12-221-1/+1
| | | | Reviewed-By: Martin Braun <martin.braun@ettus.com>
* mpm: mg: Fix lookup of user EEPROM mapMartin Braun2017-12-221-1/+18
| | | | | | For unknown revs, this now scales back to the last known rev. Reviewed-By: Trung Tran <trung.tran@ettus.com>
* mpm: Harmonize all license headerMartin Braun2017-12-229-120/+22
| | | | Now uses SPDX headers everywhere.
* mpm: UIOs now open only when necessaryBrent Stapleton2017-12-222-93/+94
| | | | | | | Refactoring to use the C++-based UIO objects. The Liberio and Ethernet objects now open the UIO before using it, and close it once done. Reviewed-By: Martin Braun <martin.braun@ettus.com>
* mpm: Harmonize imports, tidy + sort modulesMartin Braun2017-12-228-23/+18
| | | | | | | | - Moved nijesdcore to cores/ - Moved udev, net, dtoverlay, uio to sys_utils/ - Made all imports non-relative (except in __init__.py files) - Removed some unnecessary imports - Reordered some imports for Python conventions