FMC ADC 100M 14b 4cha - Software:v5.0.0.beta3 commitshttps://ohwr.org/project/fmc-adc-100m14b4cha-sw/commits/v5.0.0.beta32019-04-15T08:58:02Zhttps://ohwr.org/project/fmc-adc-100m14b4cha-sw/commit/5ac8381ebc5211f45fded3032d2d97a979c4805cadd SPDX tag ad create LICENSES directory2019-04-15T08:58:02ZFederico Vagafederico.vaga@cern.chSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9290"><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch"><img alt="Federico Vaga's avatar" src="https://secure.gravatar.com/avatar/4b8af29d6b4b6606c62b13d805ac22f7?s=32&d=identicon" class="avatar s16 avatar-inline" title="Federico Vaga"></a><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch">Federico Vaga</a> <<a href="mailto:federico.vaga@cern.ch" title="federico.vaga@cern.ch">federico.vaga@cern.ch</a>></span>https://ohwr.org/project/fmc-adc-100m14b4cha-sw/commit/c42e92d740729bf16f57c02543e4943408185f63sw:drv: allow to specify only Linux version2019-04-15T08:45:17ZFederico Vagafederico.vaga@cern.chSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9290"><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch"><img alt="Federico Vaga's avatar" src="https://secure.gravatar.com/avatar/4b8af29d6b4b6606c62b13d805ac22f7?s=32&d=identicon" class="avatar s16 avatar-inline" title="Federico Vaga"></a><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch">Federico Vaga</a> <<a href="mailto:federico.vaga@cern.ch" title="federico.vaga@cern.ch">federico.vaga@cern.ch</a>></span>https://ohwr.org/project/fmc-adc-100m14b4cha-sw/commit/1401c21347ba5d1cf67ff3eaeeafbfe2f76ad39atools: use sizeof to compute type size2019-02-19T16:20:14ZFederico Vagafederico.vaga@cern.chSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9290"><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch"><img alt="Federico Vaga's avatar" src="https://secure.gravatar.com/avatar/4b8af29d6b4b6606c62b13d805ac22f7?s=32&d=identicon" class="avatar s16 avatar-inline" title="Federico Vaga"></a><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch">Federico Vaga</a> <<a href="mailto:federico.vaga@cern.ch" title="federico.vaga@cern.ch">federico.vaga@cern.ch</a>></span>https://ohwr.org/project/fmc-adc-100m14b4cha-sw/commit/4056fd8e91f009c9cf0a85b5a8f50cab6a7181a5drv: fix calibration_data permission2019-02-19T13:57:10ZFederico Vagafederico.vaga@cern.chSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9290"><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch"><img alt="Federico Vaga's avatar" src="https://secure.gravatar.com/avatar/4b8af29d6b4b6606c62b13d805ac22f7?s=32&d=identicon" class="avatar s16 avatar-inline" title="Federico Vaga"></a><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch">Federico Vaga</a> <<a href="mailto:federico.vaga@cern.ch" title="federico.vaga@cern.ch">federico.vaga@cern.ch</a>></span>https://ohwr.org/project/fmc-adc-100m14b4cha-sw/commit/0713849d59a0a254a5884b17b12b2caec098e53ddoc: update documentation2019-02-19T09:59:33ZFederico Vagafederico.vaga@cern.chSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9290"><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch"><img alt="Federico Vaga's avatar" src="https://secure.gravatar.com/avatar/4b8af29d6b4b6606c62b13d805ac22f7?s=32&d=identicon" class="avatar s16 avatar-inline" title="Federico Vaga"></a><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch">Federico Vaga</a> <<a href="mailto:federico.vaga@cern.ch" title="federico.vaga@cern.ch">federico.vaga@cern.ch</a>></span>https://ohwr.org/project/fmc-adc-100m14b4cha-sw/commit/3fa4614e13a2dff598200e4657c25128df660cd4tools: show calibration temperature in Celsius2019-02-19T09:59:33ZFederico Vagafederico.vaga@cern.chSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9290"><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch"><img alt="Federico Vaga's avatar" src="https://secure.gravatar.com/avatar/4b8af29d6b4b6606c62b13d805ac22f7?s=32&d=identicon" class="avatar s16 avatar-inline" title="Federico Vaga"></a><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch">Federico Vaga</a> <<a href="mailto:federico.vaga@cern.ch" title="federico.vaga@cern.ch">federico.vaga@cern.ch</a>></span>https://ohwr.org/project/fmc-adc-100m14b4cha-sw/commit/fb2ff9c8eac4afba7bd18fbc69648a99c3830480drv: move calibration data attribute to device level2019-02-19T09:59:29ZFederico Vagafederico.vaga@cern.chSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9290"><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch"><img alt="Federico Vaga's avatar" src="https://secure.gravatar.com/avatar/4b8af29d6b4b6606c62b13d805ac22f7?s=32&d=identicon" class="avatar s16 avatar-inline" title="Federico Vaga"></a><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch">Federico Vaga</a> <<a href="mailto:federico.vaga@cern.ch" title="federico.vaga@cern.ch">federico.vaga@cern.ch</a>></span>https://ohwr.org/project/fmc-adc-100m14b4cha-sw/commit/79c32cd92147dad8a0ae825254cdcb4f4ba8c9f4drv:tools: fix endianess conversion2019-02-19T09:58:32ZFederico Vagafederico.vaga@cern.ch
All calibration values are stored as little endian. For this reason we
should convert all incoming and outcoming values from little endian to
the host endianess.
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9290"><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch"><img alt="Federico Vaga's avatar" src="https://secure.gravatar.com/avatar/4b8af29d6b4b6606c62b13d805ac22f7?s=32&d=identicon" class="avatar s16 avatar-inline" title="Federico Vaga"></a><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch">Federico Vaga</a> <<a href="mailto:federico.vaga@cern.ch" title="federico.vaga@cern.ch">federico.vaga@cern.ch</a>></span>https://ohwr.org/project/fmc-adc-100m14b4cha-sw/commit/b3ada1a44e69974e32e33bef3cea3134e2b4e662tools: fix file comment2019-02-19T08:23:52ZFederico Vagafederico.vaga@cern.chSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9290"><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch"><img alt="Federico Vaga's avatar" src="https://secure.gravatar.com/avatar/4b8af29d6b4b6606c62b13d805ac22f7?s=32&d=identicon" class="avatar s16 avatar-inline" title="Federico Vaga"></a><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch">Federico Vaga</a> <<a href="mailto:federico.vaga@cern.ch" title="federico.vaga@cern.ch">federico.vaga@cern.ch</a>></span>https://ohwr.org/project/fmc-adc-100m14b4cha-sw/commit/cf9bcbc4ab2901f3d99248bb08bd67dd30b2024bMerge branch 'feature/calibration' into develop2019-02-18T15:54:45ZFederico Vagafederico.vaga@cern.chhttps://ohwr.org/project/fmc-adc-100m14b4cha-sw/commit/1cf4b8e090b125f1e819b9ab590ef8fbb40ba5e7tools: add tool to load calibration data2019-02-18T14:30:49ZFederico Vagafederico.vaga@cern.ch
This program does nothing more than this:
dd if=eeprom of=calibration_data ibs=1 skip=256 count=108 obs=108
But it takes the shape of a C program so that we can validate input
and we can play with the offset (skip) based on our needs. And we can
print them in a more readable format
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9290"><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch"><img alt="Federico Vaga's avatar" src="https://secure.gravatar.com/avatar/4b8af29d6b4b6606c62b13d805ac22f7?s=32&d=identicon" class="avatar s16 avatar-inline" title="Federico Vaga"></a><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch">Federico Vaga</a> <<a href="mailto:federico.vaga@cern.ch" title="federico.vaga@cern.ch">federico.vaga@cern.ch</a>></span>https://ohwr.org/project/fmc-adc-100m14b4cha-sw/commit/fdf2ee652e75d0c84c9b1ee26b3b7ba8f929baaakernel: add the possibility to provide custum calibration2019-02-18T14:30:48ZFederico Vagafederico.vaga@cern.ch
Here we do a little hack because I'm already thinking about
a future verison of this driver.
Instead of providing a calibration binary attribute the driver
offers an eeprom_config binary attribute where you can write
data as if it was on the eeprom (calibration data included).
The driver will extract the calibration and configure the ADC.
I'm doing this because we plan to move to platform devices
instead of fmc devices. For this reason the access to the eeprom
will not be easy as today. To begin with we will have a binary
attrbibute where you can write your eeprom content.
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9290"><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch"><img alt="Federico Vaga's avatar" src="https://secure.gravatar.com/avatar/4b8af29d6b4b6606c62b13d805ac22f7?s=32&d=identicon" class="avatar s16 avatar-inline" title="Federico Vaga"></a><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch">Federico Vaga</a> <<a href="mailto:federico.vaga@cern.ch" title="federico.vaga@cern.ch">federico.vaga@cern.ch</a>></span>https://ohwr.org/project/fmc-adc-100m14b4cha-sw/commit/c8eccabe34b77efeaf549b4e0177a712bd6af648Declare bit for the alternate trigger input.2019-02-18T12:51:06ZTristan Gingoldtristan.gingold@cern.chhttps://ohwr.org/project/fmc-adc-100m14b4cha-sw/commit/ce6e2762571197384112237ed08ab7b7280a6238drv: add Makefile.specific support2019-02-18T09:50:16ZFederico Vagafederico.vaga@cern.chSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9290"><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch"><img alt="Federico Vaga's avatar" src="https://secure.gravatar.com/avatar/4b8af29d6b4b6606c62b13d805ac22f7?s=32&d=identicon" class="avatar s16 avatar-inline" title="Federico Vaga"></a><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch">Federico Vaga</a> <<a href="mailto:federico.vaga@cern.ch" title="federico.vaga@cern.ch">federico.vaga@cern.ch</a>></span>https://ohwr.org/project/fmc-adc-100m14b4cha-sw/commit/1c1620be310dcb5392b6cfc548252ad80cc0e0b5drv: bugfix offset computation overflow2019-02-18T09:50:16ZFederico Vagafederico.vaga@cern.ch
this patch indroduces an overflow bug:
<a href="/project/fmc-adc-100m14b4cha-sw/commit/bb859ef7697c308962f941ea0c5d4ae1d17aac72" data-original="bb859ef7" data-link="false" data-link-reference="false" data-project="10777" data-commit="bb859ef7697c308962f941ea0c5d4ae1d17aac72" data-reference-type="commit" data-container="body" data-placement="bottom" title="drv bugfix according to ZIO offset is uV" class="gfm gfm-commit has-tooltip">bb859ef7</a> drv bugfix according to ZIO offset is uV
hwval is 32bit, but since user values are now bigger (uV) the
multiplication can overflow. We use 64bit to avoid it.
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9290"><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch"><img alt="Federico Vaga's avatar" src="https://secure.gravatar.com/avatar/4b8af29d6b4b6606c62b13d805ac22f7?s=32&d=identicon" class="avatar s16 avatar-inline" title="Federico Vaga"></a><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch">Federico Vaga</a> <<a href="mailto:federico.vaga@cern.ch" title="federico.vaga@cern.ch">federico.vaga@cern.ch</a>></span>
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9340"><a href="https://ohwr.org/mmalczak" title="milosz.malczak@cern.ch"><img alt="Milosz Malczak's avatar" src="https://secure.gravatar.com/avatar/70ce4b1a165342f25ab45b1561e975e2?s=32&d=identicon" class="avatar s16 avatar-inline" title="Milosz Malczak"></a><a href="https://ohwr.org/mmalczak" title="milosz.malczak@cern.ch">Milosz Malczak</a> <<a href="mailto:milosz.malczak@cern.ch" title="milosz.malczak@cern.ch">milosz.malczak@cern.ch</a>></span>https://ohwr.org/project/fmc-adc-100m14b4cha-sw/commit/9e2809f213f6caa566033a712159b51328e39b13drv: remove unused variable2019-02-18T09:50:15ZFederico Vagafederico.vaga@cern.chSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9290"><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch"><img alt="Federico Vaga's avatar" src="https://secure.gravatar.com/avatar/4b8af29d6b4b6606c62b13d805ac22f7?s=32&d=identicon" class="avatar s16 avatar-inline" title="Federico Vaga"></a><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch">Federico Vaga</a> <<a href="mailto:federico.vaga@cern.ch" title="federico.vaga@cern.ch">federico.vaga@cern.ch</a>></span>https://ohwr.org/project/fmc-adc-100m14b4cha-sw/commit/927e6e49a393c5d79c1a7ea682cb3acd1dc55f3cMerge branch 'hotfix/sdb_find_device'2018-11-27T08:14:53ZFederico Vagafederico.vaga@cern.chhttps://ohwr.org/project/fmc-adc-100m14b4cha-sw/commit/a71418f3aeb193c15d20679750d8a79a6ae9fd86drv: fix SDB find_device_ext2018-11-27T08:09:51ZFederico Vagafederico.vaga@cern.ch
the current index variable was not correctly incremented, with
the consequence that under certain conditions the return value
was wrong.
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9290"><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch"><img alt="Federico Vaga's avatar" src="https://secure.gravatar.com/avatar/4b8af29d6b4b6606c62b13d805ac22f7?s=32&d=identicon" class="avatar s16 avatar-inline" title="Federico Vaga"></a><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch">Federico Vaga</a> <<a href="mailto:federico.vaga@cern.ch" title="federico.vaga@cern.ch">federico.vaga@cern.ch</a>></span>
Co-Developed: Dimitris Lampridis <Dimitris.Lampridis@cern.ch>https://ohwr.org/project/fmc-adc-100m14b4cha-sw/commit/63ccf42374c5767a74c5e70c76cd33d09aef75f2drv: handle also calibration ranges2018-10-22T12:23:57ZFederico Vagafederico.vaga@cern.chSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9290"><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch"><img alt="Federico Vaga's avatar" src="https://secure.gravatar.com/avatar/4b8af29d6b4b6606c62b13d805ac22f7?s=32&d=identicon" class="avatar s16 avatar-inline" title="Federico Vaga"></a><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch">Federico Vaga</a> <<a href="mailto:federico.vaga@cern.ch" title="federico.vaga@cern.ch">federico.vaga@cern.ch</a>></span>https://ohwr.org/project/fmc-adc-100m14b4cha-sw/commit/230900678fe0cef81b8e62b0ec64c6fc4704f523drv: add offset-zero value2018-10-22T08:30:56ZFederico Vagafederico.vaga@cern.chSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9290"><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch"><img alt="Federico Vaga's avatar" src="https://secure.gravatar.com/avatar/4b8af29d6b4b6606c62b13d805ac22f7?s=32&d=identicon" class="avatar s16 avatar-inline" title="Federico Vaga"></a><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch">Federico Vaga</a> <<a href="mailto:federico.vaga@cern.ch" title="federico.vaga@cern.ch">federico.vaga@cern.ch</a>></span>https://ohwr.org/project/fmc-adc-100m14b4cha-sw/commit/bb859ef7697c308962f941ea0c5d4ae1d17aac72drv bugfix according to ZIO offset is uV2018-10-19T14:13:10ZFederico Vagafederico.vaga@cern.chSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9290"><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch"><img alt="Federico Vaga's avatar" src="https://secure.gravatar.com/avatar/4b8af29d6b4b6606c62b13d805ac22f7?s=32&d=identicon" class="avatar s16 avatar-inline" title="Federico Vaga"></a><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch">Federico Vaga</a> <<a href="mailto:federico.vaga@cern.ch" title="federico.vaga@cern.ch">federico.vaga@cern.ch</a>></span>https://ohwr.org/project/fmc-adc-100m14b4cha-sw/commit/e9efa126ed1b1be318e0db97ffca9d4c79b3d23edrv: isolate DAC offset conversion2018-10-19T14:12:38ZFederico Vagafederico.vaga@cern.chSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9290"><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch"><img alt="Federico Vaga's avatar" src="https://secure.gravatar.com/avatar/4b8af29d6b4b6606c62b13d805ac22f7?s=32&d=identicon" class="avatar s16 avatar-inline" title="Federico Vaga"></a><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch">Federico Vaga</a> <<a href="mailto:federico.vaga@cern.ch" title="federico.vaga@cern.ch">federico.vaga@cern.ch</a>></span>https://ohwr.org/project/fmc-adc-100m14b4cha-sw/commit/80613102120947537c24e7abf0abf2866777e1d2drv: add function to just set the offset2018-10-19T13:16:57ZFederico Vagafederico.vaga@cern.chSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9290"><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch"><img alt="Federico Vaga's avatar" src="https://secure.gravatar.com/avatar/4b8af29d6b4b6606c62b13d805ac22f7?s=32&d=identicon" class="avatar s16 avatar-inline" title="Federico Vaga"></a><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch">Federico Vaga</a> <<a href="mailto:federico.vaga@cern.ch" title="federico.vaga@cern.ch">federico.vaga@cern.ch</a>></span>https://ohwr.org/project/fmc-adc-100m14b4cha-sw/commit/45aed88c1c8375701fbfa56560bec8095a86f759WIP drv: fix current value2018-10-18T12:22:54ZFederico Vagafederico.vaga@cern.chSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9290"><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch"><img alt="Federico Vaga's avatar" src="https://secure.gravatar.com/avatar/4b8af29d6b4b6606c62b13d805ac22f7?s=32&d=identicon" class="avatar s16 avatar-inline" title="Federico Vaga"></a><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch">Federico Vaga</a> <<a href="mailto:federico.vaga@cern.ch" title="federico.vaga@cern.ch">federico.vaga@cern.ch</a>></span>https://ohwr.org/project/fmc-adc-100m14b4cha-sw/commit/5f5454af53d494abccc2d76f67473b9b517088a3WIP drv: bugfix on open-drain configuration, voltage range is 1V2018-10-18T06:58:30ZFederico Vagafederico.vaga@cern.ch
We have always been useing an uncalibrated DAC value whenever
we were using 'test data' or the input configuration was in open-drain.
We recently discovered that this is not true, and actually the voltage
range on the input channel is 1V.
For this reason the DAC value still needs to be fixed with eeprom calibration
data.
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9290"><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch"><img alt="Federico Vaga's avatar" src="https://secure.gravatar.com/avatar/4b8af29d6b4b6606c62b13d805ac22f7?s=32&d=identicon" class="avatar s16 avatar-inline" title="Federico Vaga"></a><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch">Federico Vaga</a> <<a href="mailto:federico.vaga@cern.ch" title="federico.vaga@cern.ch">federico.vaga@cern.ch</a>></span>
Acked-by: <span data-trailer="Acked-by:"><a href="mailto:Dimitris.Lampridis@cern.ch" title="Dimitris.Lampridis@cern.ch"><img alt="'s avatar" src="https://ohwr.org/project/fmc-adc-100m14b4cha-sw/uploads/-/system/user/avatar/8937/avatar.png?width=16" class="avatar s16 avatar-inline"></a><a href="mailto:Dimitris.Lampridis@cern.ch" title="Dimitris.Lampridis@cern.ch">Dimitris Lampridis</a> <<a href="mailto:Dimitris.Lampridis@cern.ch" title="Dimitris.Lampridis@cern.ch">Dimitris.Lampridis@cern.ch</a>></span>https://ohwr.org/project/fmc-adc-100m14b4cha-sw/commit/0c8bfab7910f52203e934a115b9e27139c66e364WIP kernel: better support for test data2018-06-27T12:16:14ZFederico Vagafederico.vaga@cern.chSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9290"><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch"><img alt="Federico Vaga's avatar" src="https://secure.gravatar.com/avatar/4b8af29d6b4b6606c62b13d805ac22f7?s=32&d=identicon" class="avatar s16 avatar-inline" title="Federico Vaga"></a><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch">Federico Vaga</a> <<a href="mailto:federico.vaga@cern.ch" title="federico.vaga@cern.ch">federico.vaga@cern.ch</a>></span>https://ohwr.org/project/fmc-adc-100m14b4cha-sw/commit/8c78758f1c3aab689ab8eee175ad4c529d65e8d3kernel: bugfix hyst and thres order in word2018-06-27T12:14:11ZFederico Vagafederico.vaga@cern.chSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9290"><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch"><img alt="Federico Vaga's avatar" src="https://secure.gravatar.com/avatar/4b8af29d6b4b6606c62b13d805ac22f7?s=32&d=identicon" class="avatar s16 avatar-inline" title="Federico Vaga"></a><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch">Federico Vaga</a> <<a href="mailto:federico.vaga@cern.ch" title="federico.vaga@cern.ch">federico.vaga@cern.ch</a>></span>https://ohwr.org/project/fmc-adc-100m14b4cha-sw/commit/9120066f4d119342ef774c3054f5fff6a709a050kernel: reset last trigger on new acquisition2018-02-26T16:07:56ZFederico Vagafederico.vaga@cern.ch
This prevent to get confused about the value of this register.
Whenever the user starts a new acquisition we reset the
last triggered register. This guarantee that the value shown comes
from the last acquisition
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9290"><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch"><img alt="Federico Vaga's avatar" src="https://secure.gravatar.com/avatar/4b8af29d6b4b6606c62b13d805ac22f7?s=32&d=identicon" class="avatar s16 avatar-inline" title="Federico Vaga"></a><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch">Federico Vaga</a> <<a href="mailto:federico.vaga@cern.ch" title="federico.vaga@cern.ch">federico.vaga@cern.ch</a>></span>https://ohwr.org/project/fmc-adc-100m14b4cha-sw/commit/c05f4525c3d1f016eedc955020b596887e1c2ecadoc: port to Shpinx2018-02-26T13:10:09ZFederico Vagafederico.vaga@cern.chSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9290"><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch"><img alt="Federico Vaga's avatar" src="https://secure.gravatar.com/avatar/4b8af29d6b4b6606c62b13d805ac22f7?s=32&d=identicon" class="avatar s16 avatar-inline" title="Federico Vaga"></a><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch">Federico Vaga</a> <<a href="mailto:federico.vaga@cern.ch" title="federico.vaga@cern.ch">federico.vaga@cern.ch</a>></span>https://ohwr.org/project/fmc-adc-100m14b4cha-sw/commit/856497c13863b90044e22b9b00d2c40ebf491eb1remove lib and libtools2018-02-26T13:10:09ZFederico Vagafederico.vaga@cern.ch
The driver's users are supposed to use the generic `adc-lib`
library from OHWR.
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9290"><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch"><img alt="Federico Vaga's avatar" src="https://secure.gravatar.com/avatar/4b8af29d6b4b6606c62b13d805ac22f7?s=32&d=identicon" class="avatar s16 avatar-inline" title="Federico Vaga"></a><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch">Federico Vaga</a> <<a href="mailto:federico.vaga@cern.ch" title="federico.vaga@cern.ch">federico.vaga@cern.ch</a>></span>https://ohwr.org/project/fmc-adc-100m14b4cha-sw/commit/e3fc1b13bbfc61ec8f77245b781e2510c38f8045kernel: enable software trigger by default2018-02-26T13:10:08ZFederico Vagafederico.vaga@cern.ch
Enabling the software trigger by default it does not cause any harm and
it simplifies the code and the interface. The user is free to disable it
using the `source` attribute from sysfs.
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9290"><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch"><img alt="Federico Vaga's avatar" src="https://secure.gravatar.com/avatar/4b8af29d6b4b6606c62b13d805ac22f7?s=32&d=identicon" class="avatar s16 avatar-inline" title="Federico Vaga"></a><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch">Federico Vaga</a> <<a href="mailto:federico.vaga@cern.ch" title="federico.vaga@cern.ch">federico.vaga@cern.ch</a>></span>https://ohwr.org/project/fmc-adc-100m14b4cha-sw/commit/e3700a3a1af5307f43386c0b9d5e2d3e99cb8c8fkernel: gateware v5 updates2018-02-26T13:10:07ZFederico Vagafederico.vaga@cern.ch
The gateware version 5 does not have anymore the selection
between internal or external trigger. Instead, there is the
possibility to have more that one trigger source enabled.
Internals:
- the acquisition metadata now provides a whiterabbit timestamp
and information about the trigger source that started the acquisition
Registers change:
- one register to enable/disable all trigger sources
- one register to set the polarity on all the triggers
- threshould/hysteresis for each channel
- delay on the following triggers: ext, channel[1; 4]
Sysfs changes
- add attributes to configure threshould
- trigger "enable" will restore the last known enable statushttps://ohwr.org/project/fmc-adc-100m14b4cha-sw/commit/32ef6bfc09ee9446e8b28c7602b2abf02125954dkernel: do a proper reset of the FMC mezzanine2018-02-26T13:10:06ZFederico Vagafederico.vaga@cern.ch
In gateware version 5 the logic of the FMC reset bit change from active low
to active high: "reset: {1: reset, 0 unreset}".
Here with this patch we do a complete reset cycle of the FMC mezzanine.
The sleeping time between reset and unreset is huge but we do not care much,
this is just the initialization.
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9290"><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch"><img alt="Federico Vaga's avatar" src="https://secure.gravatar.com/avatar/4b8af29d6b4b6606c62b13d805ac22f7?s=32&d=identicon" class="avatar s16 avatar-inline" title="Federico Vaga"></a><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch">Federico Vaga</a> <<a href="mailto:federico.vaga@cern.ch" title="federico.vaga@cern.ch">federico.vaga@cern.ch</a>></span>https://ohwr.org/project/fmc-adc-100m14b4cha-sw/commit/2a258a4df099703f5be4ebc4d56735660d3b6523kernel: remove trigger delay compensation2018-02-14T08:08:49ZFederico Vagafederico.vaga@cern.ch
In gateware v5 all the necessary compensations are done in FPGA
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9290"><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch"><img alt="Federico Vaga's avatar" src="https://secure.gravatar.com/avatar/4b8af29d6b4b6606c62b13d805ac22f7?s=32&d=identicon" class="avatar s16 avatar-inline" title="Federico Vaga"></a><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch">Federico Vaga</a> <<a href="mailto:federico.vaga@cern.ch" title="federico.vaga@cern.ch">federico.vaga@cern.ch</a>></span>https://ohwr.org/project/fmc-adc-100m14b4cha-sw/commit/1fc6458e270432a2cc0361035c92ab49aa39a2f6kernel: rename decimation -> undersample2018-02-14T08:08:49ZFederico Vagafederico.vaga@cern.chSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9290"><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch"><img alt="Federico Vaga's avatar" src="https://secure.gravatar.com/avatar/4b8af29d6b4b6606c62b13d805ac22f7?s=32&d=identicon" class="avatar s16 avatar-inline" title="Federico Vaga"></a><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch">Federico Vaga</a> <<a href="mailto:federico.vaga@cern.ch" title="federico.vaga@cern.ch">federico.vaga@cern.ch</a>></span>https://ohwr.org/project/fmc-adc-100m14b4cha-sw/commit/d18cd552d8728aa54a45b522f0ab584301877440kernel: remove useless messages/actions2018-02-14T08:07:42ZFederico Vagafederico.vaga@cern.chSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9290"><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch"><img alt="Federico Vaga's avatar" src="https://secure.gravatar.com/avatar/4b8af29d6b4b6606c62b13d805ac22f7?s=32&d=identicon" class="avatar s16 avatar-inline" title="Federico Vaga"></a><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch">Federico Vaga</a> <<a href="mailto:federico.vaga@cern.ch" title="federico.vaga@cern.ch">federico.vaga@cern.ch</a>></span>https://ohwr.org/project/fmc-adc-100m14b4cha-sw/commit/c73a10994c625a13e372fa81c3711ecd9b1569d0kernel: add test-data from ADC chip2018-02-14T08:06:03ZFederico Vagafederico.vaga@cern.ch
The test data from the FPGA does not exercise the FPGA design.
With the test data directly from the ADC chip we can use the full
ADC design.
I decided to evaluate the test mode just before the start of the acquisition
in order to be able to change the test pattern at any time. Chaning the
test pattern is useful to identify the different acquisitions and being
able to validate the acquisition content.
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9290"><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch"><img alt="Federico Vaga's avatar" src="https://secure.gravatar.com/avatar/4b8af29d6b4b6606c62b13d805ac22f7?s=32&d=identicon" class="avatar s16 avatar-inline" title="Federico Vaga"></a><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch">Federico Vaga</a> <<a href="mailto:federico.vaga@cern.ch" title="federico.vaga@cern.ch">federico.vaga@cern.ch</a>></span>https://ohwr.org/project/fmc-adc-100m14b4cha-sw/commit/237563263f981c33898ba10629c621b428d22156kernel: move SPI register read-back to debugfs2018-02-13T16:18:57ZFederico Vagafederico.vaga@cern.ch
The debugfs is the right place for such output
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9290"><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch"><img alt="Federico Vaga's avatar" src="https://secure.gravatar.com/avatar/4b8af29d6b4b6606c62b13d805ac22f7?s=32&d=identicon" class="avatar s16 avatar-inline" title="Federico Vaga"></a><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch">Federico Vaga</a> <<a href="mailto:federico.vaga@cern.ch" title="federico.vaga@cern.ch">federico.vaga@cern.ch</a>></span>https://ohwr.org/project/fmc-adc-100m14b4cha-sw/commit/c7f8d72e6d825f24519a984a0d055d48aa3eff7ckernel: reset the ADC chip2018-02-13T16:18:18ZFederico Vagafederico.vaga@cern.ch
It is good practice to reset thing
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9290"><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch"><img alt="Federico Vaga's avatar" src="https://secure.gravatar.com/avatar/4b8af29d6b4b6606c62b13d805ac22f7?s=32&d=identicon" class="avatar s16 avatar-inline" title="Federico Vaga"></a><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch">Federico Vaga</a> <<a href="mailto:federico.vaga@cern.ch" title="federico.vaga@cern.ch">federico.vaga@cern.ch</a>></span>https://ohwr.org/project/fmc-adc-100m14b4cha-sw/commit/359ded655846e2cac6e1db6cdf5f7a089da10fd5kernel: add constant for the resolution bits2018-02-13T16:18:18ZFederico Vagafederico.vaga@cern.chSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9290"><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch"><img alt="Federico Vaga's avatar" src="https://secure.gravatar.com/avatar/4b8af29d6b4b6606c62b13d805ac22f7?s=32&d=identicon" class="avatar s16 avatar-inline" title="Federico Vaga"></a><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch">Federico Vaga</a> <<a href="mailto:federico.vaga@cern.ch" title="federico.vaga@cern.ch">federico.vaga@cern.ch</a>></span>