|
NAMEam335x_dmtpps —
RFC 2783 Pulse Per Second API driver for AM335x systems
SYNOPSISdevice am335x_dmtpps
Optional in /boot/loader.conf:
DESCRIPTIONTheam335x_dmtpps device driver provides a system time
counter that includes precise capture of Pulse Per Second (PPS) signals
emitted by GPS receivers and other timing devices. The
am335x_dmtpps driver may be compiled into the kernel
or loaded as a module.
The AM335x timer hardware captures the value of the system time counter on the leading edge of the PPS pulse. Because the capture is done by the hardware there is no interrupt latency in the measurement. The time counter runs at 24Mhz, providing a measurement resolution of 42 nanoseconds. To use the PPS timing information provided by this driver with ntpd(8), symlink the /dev/dmtpps device to /dev/pps0 and configure server 127.127.22.0 in ntp.conf(5) to configure a type 22 (ATOM) refclock. DRIVER CONFIGURATIONThe AM335x hardware provides four timer devices with a capture input pin, DMTimer4 through DMTimer7. Because it also provides the active system time counter, only one instance of theam335x_dmtpps driver
can be active at a time. The driver uses system pin configuration to determine
which hardware timer device to use. Configure the timer input pin in the
system's FDT data, or by supplying the pin name using a tunable variable in
loader.conf(5).
To use a standard kernel and FDT data, use
loader.conf(5)
to load the
To configure the &am33xx_pinmux { timer4_pins: timer4_pins { pinctrl-single,pins = <0x90 (PIN_INPUT | MUX_MODE2)>; }; }; Add pinctrl properties referencing timer4_pins to the standard timer4 device node (also defined in am33xx.dtsi) by referencing it in your dts file as follows: &timer4 { pinctrl-names = "default"; pinctrl-0 = <&timer4_pins>; }; FILES
SEE ALSOtimecounters(4), loader.conf(5), ntp.conf(5), ntpd(8)HISTORYTheam335x_dmtpps device driver first appeared in
FreeBSD 11.0.
AUTHORSTheam335x_dmtpps device driver and this manual page
were written by Ian Lepore
<ian@FreeBSD.org>.
Visit the GSP FreeBSD Man Page Interface. |