Jonathan Lemon
05fc65f3f5
ptp: ocp: Fix PTP_PF_* verification requests
Update and check functionality for pin configuration requests:
PTP_PF_NONE: requests "IN: None", disabling the pin.
# testptp -d /dev/ptp3 -L3,0 -i1
set pin function okay
# cat sma4
IN: None
PTP_PF_EXTTS: should configure external timestamps, but since the
timecard can steer inputs to multiple inputs as well as timestamps,
allow the request, but don't change configurations.
# testptp -d /dev/ptp3 -L3,1 -i1
set pin function okay
(no functional or configuration change here yet)
PTP_PF_PEROUT: Channel 0 is the PHC, at 1PPS. Channels 1-4 are
the programmable frequency generators.
# fails because period is not 1PPS.
# testptp -d /dev/ptp3 -L3,2 -i0 -p 500000000
PTP_PEROUT_REQUEST: Invalid argument
# testptp -d /dev/ptp3 -L3,2 -i0 -p 1000000000
periodic output request okay
# cat sma4
OUT: PHC
# testptp -d /dev/ptp3 -L3,2 -i1 -p 500000000 -w 200000000
periodic output request okay
# cat sma4
OUT: GEN1
# cat gen1/signal
500000000 40 0 1 2022-03-10T23:55:26 TAI
# cat gen1/running
1
# testptp -d /dev/ptp3 -L3,2 -i1 -p 0
periodic output request okay
# cat gen1/running
0
Signed-off-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Link: https://lore.kernel.org/r/20220315194626.1895-1-jonathan.lemon@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2022-03-17 10:35:47 +01:00
..
2021-09-20 11:11:54 +01:00
2021-07-01 13:08:18 -07:00
2020-08-05 12:06:44 -07:00
2022-02-03 14:00:57 +00:00
2021-11-12 19:58:10 -08:00
2021-09-27 12:16:48 +01:00
2019-10-10 16:21:13 -07:00
2022-03-09 19:50:57 -08:00
2022-03-09 19:50:57 -08:00
2021-12-14 12:28:24 +00:00
2021-04-07 16:33:20 +01:00
2021-04-20 17:17:55 +01:00
2021-10-15 11:19:25 +01:00
2022-03-17 10:35:47 +01:00
2022-02-08 21:04:32 -08:00
2021-07-01 13:08:18 -07:00
2019-02-12 12:58:48 -05:00
2021-03-24 12:10:03 -07:00
2022-01-27 14:05:35 +00:00
2022-02-03 14:00:58 +00:00
2020-03-05 17:25:07 -08:00