aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python
Commit message (Collapse)AuthorAgeFilesLines
* n3xx: enable 1G clock with gpio settings.Ryan Marlow2017-12-221-0/+17
|
* mpm: mg: Specify I2C parents for GPIO devicesTrung N Tran2017-12-221-3/+77
| | | | | | The Magnesium daughterboards have GPIO port expanders, but both have the same udev label. In order to specify which port expander to use, we pass in the parent udev I2c device.
* mpm: n3xx: Add GPS locked sensorTrung N Tran2017-12-221-0/+13
|
* mpm: mg: Specify the required overlay for FPGA auto-loadingMartin Braun2017-12-221-0/+15
|
* mpm: Provide default dboard EEPROM getter/settersMartin Braun2017-12-221-0/+28
| | | | | The setter will throw an exception though. It is supposed to be overriden by device-specific classes.
* mpm: Properly populate device_info dict for dboard classesMartin Braun2017-12-221-1/+18
| | | | | | | | | | | Prior to this commit, device_info was always an empty dictionary on all dboard classes. The device_info dict is now auto-populated from the EEPROM contents, if any were provided. Dboard classes can still opt to amend that dictionary in specific class implementations. Signed-off-by: Martin Braun <martin.braun@ettus.com>
* mpm: sysfsgpio: Allow to filter by parent deviceTrung Tran2017-12-221-11/+22
| | | | | | There are cases where we need to specify a parent device in order to disambiguate GPIO devices with the same label. This lets you passing in a parent udev device to clarify.
* bit to bin: initial commit of converter scriptBrent Stapleton2017-12-221-0/+121
|
* mpm: n310: Add mboard EEPROM supportMartin Braun2017-12-221-0/+15
| | | | | This is a specific override for the N310. It returns all the default device info as a dict.
* mpm: Add mboard EEPROM supportMartin Braun2017-12-222-4/+28
| | | | | | MPMD binds a property for the mboard EEPROM to the appropriate RPC calls. PeriphManager now provides default implementations for an mboard EEPROM.
* Sync: Improved range checking for offset measurements.djepson12017-12-221-2/+2
|
* mg: Updated JESD204b init seq and documentation.djepson12017-12-222-41/+65
| | | | | | | | | | | - Based on feedback from ADI, updated SYSREF sequencing for meeting deterministic latency requirements. - Changed majority of register addresses in nijesdcore.py to constants. - Corrected write data to SYSREF_CAPTURE_CONTROL to produce the correct SYSREF toggle rate inside the FPGA. Signed-off-by: djepson1 <daniel.jepson@ni.com>
* mg: Fix debug support for CPLD accessesdjepson12017-12-221-1/+0
| | | | Signed-off-by: djepson1 <daniel.jepson@ni.com>
* mg: Clean up CPLD initialization.djepson12017-12-221-16/+32
| | | | Signed-off-by: djepson1 <daniel.jepson@ni.com>
* mg: Preliminary clock sync supportdjepson12017-12-222-7/+49
| | | | Signed-off-by: djepson1 <daniel.jepson@ni.com>
* mg: Clean up radio_regs creationdjepson12017-12-221-5/+9
| | | | Signed-off-by: djepson1 <daniel.jepson@ni.com>
* mg: Updated support for LMKdjepson12017-12-222-32/+116
| | | | | | | | - add clock shifting - add DAC support - modify __init__ calls for cleanup Signed-off-by: djepson1 <daniel.jepson@ni.com>
* mpm/n310: Moved the mboard ref_locked sensor into MPMMartin Braun2017-12-221-0/+28
| | | | | | | | An N310 device will query all its dboards for ref lock status and return a Boolean combination as a motherboard sensors (note: the N310 does not actually have a ref_locked sensor on the motherboard, this is mostly for backwards-compat with UHD applications that expect a motherboard ref lock sensor).
* mpm: Added sensor APIMartin Braun2017-12-222-0/+76
| | | | | | | | - Motherboard sensors are automatically populated into the property tree, they can be automatically enumerated and queried - Daughterboard sensors have an API for querying and enumerating sensors, but this commit does not automatically add them to the property tree
* mpm: add n310 motherboard revD supportTrung N Tran2017-12-222-40/+91
| | | | | | | | | | This will enable both RevC and RevD from an MPM perspective. The revision read back from the EEPROM is used to enable the code for either rev. The impact on the code is limited to the port expander GPIOs. Port expander objects are instantiated in both the N310 MPM module as well as the n3xx_bist executable.
* mpm: n3xx_bist: Added more comments, clarified timeout unitsMartin Braun2017-12-221-7/+18
|
* mpm: Update TDC sync code to make it generic for N dboardsDaniel Jepson2017-12-222-12/+65
|
* mpm: Minor updates to nijesdcoreDaniel Jepson2017-12-221-11/+25
| | | | | - Better logging - Better error messages
* mpm: Added lmk_mg to CMakeDaniel Jepson2017-12-221-0/+1
|
* n3xx: BIST add GPS option and fix minor gps timing conversion bugTrung N Tran2017-12-221-2/+16
|
* mpm: n310 BIST change aurora default phy nameTrung N Tran2017-12-221-4/+4
| | | | ... to match dts spec
* mpm: Added max rev check overridableMartin Braun2017-12-222-5/+30
| | | | | | When reading revision numbers from EEPROM, we now have an easy way of checking of our version MPM is sufficient to run on the current device. N310 implicitly makes use of this starting with this commit.
* mpm: Streaming-related improvements to Magnesium controlsDJ Epson2017-12-223-81/+320
|
* mpm: minor change trace log of sysfs_gpioTrung N Tran2017-12-221-2/+3
|
* mpm: Catch multiprocess exception on exitMartin Braun2017-12-221-1/+6
|
* mg: General fixesMark Meserve2017-12-221-4/+6
| | | | | - Make DB probe-able - Add RPC client
* mpm: n3xx: Don't set time and clock source without dboardsMartin Braun2017-12-221-6/+14
| | | | | | | | When there are no daughterboards present, clock and time source are meaningless. It's also possible that corresponding FPGA images are not loaded, in which case trying to set those could crash the system. Unless daughterboards are actually present, these settings won't get applied any more.
* mpm: Overlay handling functions use dtoverlay moduleMartin Braun2017-12-221-10/+8
|
* mpm: RPC methods now tell us if they need a claimMartin Braun2017-12-221-7/+8
| | | | | | On the RPC server side, we keep track of which methods require a claim token. MPM shell uses this info to automatically add claim tokens when required.
* n3xx bist: Fixed defaults for LV compat modeMartin Braun2017-12-221-7/+8
|
* n310_bist: add ddr3 bistTrung N Tran2017-12-221-4/+24
|
* n3xx bist: Refactored functions with timeoutMartin Braun2017-12-221-15/+28
|
* n3xx bist: Added socket read timeoutMartin Braun2017-12-221-9/+29
| | | | | | When the GPS chip is non-functional, gpsd could simply fail to return a value. In that case, the recv() call to the socket would hang indefinitely. This adds a graceful failure for that case.
* n3xx bist: Properly sequence GPSDO testMartin Braun2017-12-221-2/+30
| | | | | | | | It now does: - Power on GPS - Wait for WARMUP to go low - Wait for LOCKOK, with timeout - Read the TPV response and return it
* mpm: n3xx: Fix TCA GPIO read functionMartin Braun2017-12-221-1/+1
| | | | Used to always return None, now returns the actual pin value.
* mpm: n3xx: Change default state for TCA GPIOsMartin Braun2017-12-221-1/+3
| | | | | | This makes the GPS reset go high by default (i.e., takes it out of reset by default) and the init survey pin go high (i.e., take it out of survey mode).
* n3xx bist: Added LV compat modeMartin Braun2017-12-221-0/+96
|
* n3xx bist: Minor refactoring of GPIO codeMartin Braun2017-12-221-15/+15
|
* n3xx bist: Better pass/fail conditions, flattened resultsMartin Braun2017-12-221-15/+15
| | | | | | To placate fussy JSON consumers, we now avoid nested dictionaries. The dry-run results now return a more accurate representation of the N310 system responses.
* n310: enable CLK-MGT156MHz at init n310 callTrung N Tran2017-12-221-1/+1
|
* n310: add init value for sysfs_gpioTrung N Tran2017-12-221-3/+10
|
* mpm: Check rpc server has matching lock release/acquiresMartin Braun2017-12-221-1/+2
|
* n310/eiscat: Removed 20 MHz as a valid ref clock frequencyMartin Braun2017-12-223-9/+18
|
* eiscat: Change sync pin configuration to switch to CD in case of errorDerek Kozel2017-12-221-17/+49
|
* n3xx mpm: Refactored peripheral init codeMartin Braun2017-12-221-15/+24
|