aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_mpm/periph_manager
Commit message (Collapse)AuthorAgeFilesLines
* mpm: Update all license headersMartin Braun2018-02-194-8/+8
| | | | | - Fix typo in company name (missing 'a') - Updated SPDX license identifier to version 3.0
* mpm: n310: Remove some leftover cruftMoritz Fischer2018-02-131-2/+0
| | | | | | | The lines removed here are no longer needed, get rid of them Suggested-by: Martin Braun <martin.braun@ettus.com> Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
* mpm: Add entries for renamed sfpsMoritz Fischer2018-02-131-1/+13
| | | | | | | | | | | | | In order to match the front panel 0 and 1 for the SFPs, as well as for clarity and consistency reasons, udev rules will be put onto future filesystems in order to rename the eth1 eth2 devices to sfp0 and sfp1. This change *should* be backwards compatible, nevertheless, be careful and bump compat number. This also updates the uhd image loader manifest. Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
* fixup! mpm: magnesium_update_cpld.py: Add axi_bitq supportBrent Stapleton2018-02-091-1/+1
|
* mpm: Use prefs API for periph managerMartin Braun2018-02-082-6/+39
| | | | | | | | - Allow to set default args via config file - Read them from prefs API - override-db-pids uses the same APIs now ([overrides] section in config file, prefs API, and same dictionary as --default-args when used on the command line
* mpm: n310: Return CHDR addresses as part of device_infoMartin Braun2018-02-072-1/+27
| | | | Reviewed-by: Brent Stapleton <brent.stapleton@ettus.com>
* mpm: n310: Removed superfluous importMartin Braun2018-02-071-1/+0
|
* mpm: Fixup for argument parsing in N310Brent Stapleton2018-02-071-3/+3
| | | | | | | Adding helper function to parse strings to a boolean value. We can then use that function to parse MPM's default_args, and set enable_gps and enable_fp_gpio. This replaces the usages of the Python builtin bool(), which returns True for any non-empty string.
* usrp3: Changes for Vivado 2017.4Ashish Chaudhari2018-01-241-1/+1
| | | | | | - Bumped compat number for e3xx, n230, x3xx, n3xx - Updated images package for e3xx, n230, x3xx, n3xx - Updated fpga-src submodule
* fixup! mpm: Log timeouts during API calls, reset timer on claimed callsMartin Braun2018-01-231-0/+6
|
* mpm: n310: Fix setting time source depending on clock sourceMartin Braun2018-01-221-7/+4
| | | | | | | | - When clock source is set, but time source is not, still set time source to guarantee correct ref clock freq - Enable unconditional setting of time source Reviewed-by: Daniel Jepson <daniel.jepson@ettus.com>
* n310: removed orphaned commentsBrent Stapleton2018-01-191-4/+0
|
* mpm: Demoted some log statements from INFO to TRACE or DEBUGMartin Braun2018-01-171-1/+1
|
* mpm: n310: Bump compat number to 2.0Martin Braun2018-01-161-1/+1
| | | | - Updated fpga-src submodule pointer
* mpm/mpmd: Report device state using get_init_status() and verifyMartin Braun2018-01-161-1/+7
| | | | | | When trying to run init(), mpmd will first query the initialization status of the MPM device. If it is found to be in a bad state, it will not go forward with initialization, but instead print the error message.
* mpm: n310: Refactor N3xx periph managerMartin Braun2018-01-161-20/+32
| | | | | | | - Sort methods by functional groups - Reorder init from less likely to fail to more likely (this enables the LINK LED on claim for when FPGA fails to initialize, e.g. on compat errors)
* mpm: Refactor PeriphManager classesMartin Braun2018-01-162-39/+72
| | | | | - Sort methods by functional groups - Removed some cruft
* mpm: add init clock and time source from argsTrung N Tran2018-01-161-0/+4
| | | | Reviewed-by: Martin Braun <martin.braun@ettus.com>
* mpm: n310: Check all periphs for initialization statusMartin Braun2018-01-122-7/+22
|
* mpm: n310: Fix various bugs in sensor APIMartin Braun2018-01-121-5/+2
|
* mpm: periph_manager: Pass default args to dboard managerMartin Braun2018-01-111-2/+3
|
* mpm: Factor GPIO panel code into common moduleMartin Braun2018-01-101-255/+157
| | | | | | | | | | GPIOBank is the new class, n310.FrontpanelGPIO and BackpanelGPIO now derive from that. Other minor changes: - Renamed classes to FrontpanelGPIO and BackpanelGPIO in accordance with coding guidelines - Moved MboardRegsControl before n310 class for consistent code layout
* mpm: Add code to drive the back panel LEDsMoritz Fischer2018-01-101-10/+100
| | | | | | | Add code to drive back panel LEDs for GPS, Link (claim) and REF Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com> Reviewed-By: Martin Braun <martin.braun@ettus.com>
* mpm: n310: Add status monitor threadMartin Braun2018-01-101-0/+46
| | | | | This thread is able to update software-controlled status pins, such as back-panel LEDs.
* mpm: n310: Shuffle around location of functions for better browsabilityMartin Braun2018-01-101-37/+44
|
* mpm: Add API call for claim and unclaimMartin Braun2018-01-101-0/+18
| | | | | | These are hooks that the RPC server calls into when claiming a device, and allow the device implementation to trigger user-definable actions on claiming/unclaiming.
* mpm: n310: Factor out compat number checkMartin Braun2018-01-081-16/+12
| | | | Reviewed-by: Brent Stapleton <brent.stapleton@ettus.com>
* mpm: n310: Move SID re-alloc log message to right spotMartin Braun2018-01-082-1/+1
|
* mpm: n310: Fix setting time sourceMartin Braun2017-12-221-2/+4
|
* n3xx: MPM: Add FPGA build timestampAshish Chaudhari2017-12-221-11/+45
| | | | | | - Fixed the interpretation of the git hash Reviewed-by: Martin Braun <martin.braun@ettus.com>
* mpm: n310: Add temp and fan sensorsMartin Braun2017-12-221-0/+43
|
* n310: Move SID framing all the way to n310.pyMartin Braun2017-12-222-5/+13
| | | | | | | MPM will now no longer keep a SID framer variable. Reviewed-by: Trung Tran <trung.tran@ettus.com> Reviewed-by: Brent Stapleton <brent.stapleton@ettus.com>
* mpm: Fix linter warningsMartin Braun2017-12-221-1/+5
| | | | | | - Magnesium: Bad formatting in DRP setup - PeriphManagerBase: Import order - dtoverlay: Missed default value for param
* mpm: n310: Set default clock source to 'internal'Martin Braun2017-12-221-1/+1
|
* mpm: periph_manager: Clarify request/commit protocolMartin Braun2017-12-221-5/+8
|
* mpm: udp xport: Bind SID addr 0 and 1 to respective SFP portsMartin Braun2017-12-221-0/+4
| | | | Reviewed-by: Trung Tran <trung.tran@ettus.com>
* mpm: xports: Amend protocol for request/commit xport, add allocationMartin Braun2017-12-221-0/+11
| | | | Reviewed-by: Trung Tran <trung.tran@ettus.com>
* mpm: adding GPS time sensorBrent Stapleton2017-12-221-0/+30
| | | | | | Adding GPS time sensor to MPM, and its respective getter. Reviewed-By: Martin Braun <martin.braun@ettus.com>
* mpm: n310: Support RevEMartin Braun2017-12-221-1/+1
| | | | | | Bump the max supported rev accordingly. Reviewed-By: Trung Tran <trung.tran@ettus.com>
* mpm: Harmonize all license headerMartin Braun2017-12-225-65/+10
| | | | Now uses SPDX headers everywhere.
* mpm: n310: add fpga compat number checkTrung N Tran2017-12-221-0/+34
| | | | | | Reviewed-By: Brent Stapleton <brent.stapleton@ettus.com> Reviewed-By: Sugandha Gupta <sugandha.gupta@ettus.com> Reviewed-By: Martin Braun <martin.braun@ettus.com>
* mpm: UIOs now open only when necessaryBrent Stapleton2017-12-222-29/+33
| | | | | | | 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: adding GPS sensor functionsBrent Stapleton2017-12-221-0/+44
| | | | | | Adding GPS TPV and SKY sensors to MPM, and their respective getters. Reviewed-By: Martin Braun <martin.braun@ettus.com>
* mpm: Harmonize imports, tidy + sort modulesMartin Braun2017-12-226-74/+15
| | | | | | | | - 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
* mpm: add all time_source options and complete MB clk controlDaniel Jepson2017-12-221-10/+96
| | | | | | | | - complete time_source options to match updates to fpga registers - add methods for each of the bitfields in the clock control register - add init sequences for the meas_clk MMCM and PPS output Reviewed-By: Martin Braun <martin.braun@ettus.com>
* mpm: added uio for motherboard regssugandhagupta2017-12-221-7/+47
| | | | Reviewed-By: Martin Braun <martin.braun@ettus.com>
* mpm: Factor out xport managers as own objectsMartin Braun2017-12-222-233/+21
| | | | | | - Move XportMgr classes out of n310.py - Subclass them there and apply N310-specific settings - Remove chdr_interfaces option from PeriphManagerBase
* mpm: n310: Compile .dts files to .dtbo on updateMartin Braun2017-12-221-7/+31
| | | | Reviewed-By: Brent Stapleton <brent.stapleton@ettus.com>
* mpm: Reset periph manager on updateBrent Stapleton2017-12-222-1/+23
| | | | | | | | | | Upon updating certain components (the FPGA, for example), the Peripheral Manager is restarted, and the overlay is reapplied. In order to facilitate this, the RPC server intercepts and handles the update_component function. Tested on the RJ45 ethernet connection. It probably won't work as well if the SFP connection goes down when the overlay is removed.
* mpm: PeriphManager decides and applies overlayBrent Stapleton2017-12-222-17/+14
| | | | | | | Previously, the daughterboard requested an overlay file based on SFP preference using magic values. This commit moves the decision making to the peripheral manager, which uses our singular name (ie 'n3xx' for the N310).