Searched hist:b325af3cfab970efa59b69cbcd9890be54713cef (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/ptp/ |
H A D | ptp_ocp.c | diff b325af3cfab970efa59b69cbcd9890be54713cef Thu Mar 10 14:19:08 CST 2022 Jonathan Lemon <jonathan.lemon@gmail.com> ptp: ocp: Add signal generators and update sysfs nodes
Newer firmware provides 4 programmable signal generators, add support for those here. The signal generators provide the ability to set the period, duty cycle, phase offset, and polarity, with new values defaulting to prior values.
The period and phase offset are specified in nanoseconds.
E.g: period [duty [phase [polarity]]]
echo 500000000 > signal # 1/2 second period echo 1000000 40 100 > signal # 1ms period, 40% on, offset 100ns echo 0 > signal # turn off generator
Signed-off-by: Jonathan Lemon <jonathan.lemon@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|