aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python
Commit message (Collapse)AuthorAgeFilesLines
...
* mpm: Factor GPIO panel code into common moduleMartin Braun2018-01-103-256/+224
| | | | | | | | | | 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-102-59/+87
| | | | | | 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: Spawn periph manager inside the RPC processMartin Braun2018-01-104-76/+96
| | | | Reviewed-by: Brent Stapleton <brent.stapleton@ettus.com>
* mpm: Bump default log level to INFOMartin Braun2018-01-101-1/+1
|
* mpmd: Add API to read back logs from device and send to native loggingMartin Braun2018-01-101-1/+1
|
* mpm: n310: Factor out compat number checkMartin Braun2018-01-081-16/+12
| | | | Reviewed-by: Brent Stapleton <brent.stapleton@ettus.com>
* mpm: utils: Add assert_compat_number functionMartin Braun2018-01-081-0/+59
| | | | 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: Add API to read back log bufferMartin Braun2018-01-082-1/+64
| | | | Reviewed-by: Brent Stapleton <brent.stapleton@ettus.com>
* jesd: mg bug fix: default state of the RX link is scrambleddjepson12018-01-051-1/+1
| | | | Reviewed-by: Trung Trang <trung.tran@ettus.com>
* 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-042-50/+164
| | | | | | | | | | - 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: 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
|
* mpm: Add sysfs_thermal moduleTrung Tran2017-12-222-0/+27
| | | | This will provide an API call to read thermal values via udev.
* 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>
* n3xx: Removed PHY reset after Aurora BISTAshish Chaudhari2017-12-221-2/+1
| | | | | | - A PHY reset is not needed for SFP Aurora. It is only really useful when the entire quad including the commong clocking block needs to be reset
* mpm: Drop default log level to DEBUGMartin Braun2017-12-221-2/+2
|
* 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>
* 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.
* n3xx: Updated Aurora BIST reg offsetsAshish Chaudhari2017-12-221-10/+9
| | | | | - Aurora registers moved around after SFP refactoring in the FPGA. Reflecting changes in MPM
* mpm: Fix linter warningsMartin Braun2017-12-223-33/+42
| | | | | | - 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: xports: Sort requested transport options by QoSMartin Braun2017-12-221-6/+6
| | | | Reviewed-by: Trung Tran <trung.tran@ettus.com>
* mpm: udp xport: Bind SID addr 0 and 1 to respective SFP portsMartin Braun2017-12-222-2/+15
| | | | Reviewed-by: Trung Tran <trung.tran@ettus.com>
* mpm: udp xport: Increment TX/RX allocations for streamersMartin Braun2017-12-221-4/+22
| | | | Reviewed-by: Trung Tran <trung.tran@ettus.com>
* mpm: xports: Amend protocol for request/commit xport, add allocationMartin Braun2017-12-222-1/+13
| | | | Reviewed-by: Trung Tran <trung.tran@ettus.com>
* mpm: Fix ECHO commandMartin Braun2017-12-221-8/+16
| | | | | | | | The echo server was using the wrong socket options, allowing responses to be fragmented. Since we use the echo server for MTU discovery, that would have beaten the purpose. Also includes minor formatting fixes.
* mpmd: Refactor MPM transport architecture, use managersMartin Braun2017-12-221-2/+9
| | | | | | | | | | | | | | This splits up the transport code in mpmd_impl across multiple classes to properly leverage the request_xport/commit_xport API in MPM. Different types of transport (UDP, liberio) use their own distinct classes, which are generated dynamically on request. This is a true refactoring despite the large amount of changes; there are no functional differences. Reviewed-By: Brent Stapleton <brent.stapleton@ettus.com> Reviewed-By: Trung Tran <trung.tran@ettus.com> Reviewed-By: Ashish Chaudhari <ashish.chaudhari@ettus.com>
* mpm: mpmd: Add MPM compat number checkBrent Stapleton2017-12-221-0/+6
| | | | Reviewed-by: Martin Braun <martin.braun@ettus.com>
* mpm: rpc_server: Unregister old RPC calls _init_rpc_calls()Martin Braun2017-12-221-2/+22
| | | | | | | On FPGA loads, when the periph_manager is respawned, this will now clear the previously registered methods. Reviewed-By: Brent Stapleton <brent.stapleton@ettus.com>
* mpm: rpc_server: Fix use of to_binary_str()Martin Braun2017-12-221-5/+2
| | | | Reviewed-By: Brent Stapleton <brent.stapleton@ettus.com>
* mpm: mg: Added magnesium_update_cpld.pyBrent Stapleton2017-12-222-1/+128
| | | | Reviewed-by: Martin Braun <martin.braun@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: tdc: fixed typos in commentsDaniel Jepson2017-12-222-2/+2
| | | | Reviewed-By: Martin Braun <martin.braun@ettus.com>
* mpm: tdc: compensate for the trace delay differences between daughterboardsDaniel Jepson2017-12-221-1/+8
| | | | 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: 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-2251-596/+122
| | | | 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: xport: Let UDP manager re-enumerate available CHDR ifaces on init()Martin Braun2017-12-221-11/+23
| | | | | | This will enumerate CHDR interfaces as late as possible, so that the user changing the IP address will not affect operations. Note that IP is considered static during a UHD session.
* mpm: UIOs now open only when necessaryBrent Stapleton2017-12-228-185/+190
| | | | | | | 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>