Thomas Gleixner | ec8f24b | 2019-05-19 13:07:45 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
Richard Cochran | d94ba80 | 2011-04-22 12:03:08 +0200 | [diff] [blame] | 2 | # |
| 3 | # PTP clock support configuration |
| 4 | # |
| 5 | |
| 6 | menu "PTP clock support" |
| 7 | |
Richard Cochran | d94ba80 | 2011-04-22 12:03:08 +0200 | [diff] [blame] | 8 | config PTP_1588_CLOCK |
| 9 | tristate "PTP clock support" |
Nicolas Pitre | baa73d9 | 2016-11-11 00:10:10 -0500 | [diff] [blame] | 10 | depends on NET && POSIX_TIMERS |
Arnd Bergmann | e5f3155 | 2021-08-12 20:33:58 +0200 | [diff] [blame] | 11 | default ETHERNET |
Ben Hutchings | 42a7cce | 2012-10-31 15:32:44 +0000 | [diff] [blame] | 12 | select PPS |
Daniel Borkmann | 408eccc | 2014-04-01 16:20:23 +0200 | [diff] [blame] | 13 | select NET_PTP_CLASSIFY |
Richard Cochran | d94ba80 | 2011-04-22 12:03:08 +0200 | [diff] [blame] | 14 | help |
| 15 | The IEEE 1588 standard defines a method to precisely |
| 16 | synchronize distributed clocks over Ethernet networks. The |
| 17 | standard defines a Precision Time Protocol (PTP), which can |
| 18 | be used to achieve synchronization within a few dozen |
| 19 | microseconds. In addition, with the help of special hardware |
| 20 | time stamping units, it can be possible to achieve |
| 21 | synchronization to within a few hundred nanoseconds. |
| 22 | |
| 23 | This driver adds support for PTP clocks as character |
| 24 | devices. If you want to use a PTP clock, then you should |
| 25 | also enable at least one clock driver as well. |
| 26 | |
| 27 | To compile this driver as a module, choose M here: the module |
| 28 | will be called ptp. |
| 29 | |
Arnd Bergmann | e5f3155 | 2021-08-12 20:33:58 +0200 | [diff] [blame] | 30 | config PTP_1588_CLOCK_OPTIONAL |
| 31 | tristate |
| 32 | default y if PTP_1588_CLOCK=n |
| 33 | default PTP_1588_CLOCK |
| 34 | help |
| 35 | Drivers that can optionally use the PTP_1588_CLOCK framework |
| 36 | should depend on this symbol to prevent them from being built |
| 37 | into vmlinux while the PTP support itself is in a loadable |
| 38 | module. |
| 39 | If PTP support is disabled, this dependency will still be |
| 40 | met, and drivers refer to dummy helpers. |
| 41 | |
Arun Parameswaran | 8a56aa1 | 2017-06-12 13:26:01 -0700 | [diff] [blame] | 42 | config PTP_1588_CLOCK_DTE |
| 43 | tristate "Broadcom DTE as PTP clock" |
| 44 | depends on PTP_1588_CLOCK |
| 45 | depends on NET && HAS_IOMEM |
| 46 | depends on ARCH_BCM_MOBILE || (ARCH_BCM_IPROC && !(ARCH_BCM_NSP || ARCH_BCM_5301X)) || COMPILE_TEST |
| 47 | default y |
| 48 | help |
| 49 | This driver adds support for using the Digital timing engine |
| 50 | (DTE) in the Broadcom SoC's as a PTP clock. |
| 51 | |
| 52 | The clock can be used in both wired and wireless networks |
| 53 | for PTP purposes. |
| 54 | |
| 55 | To compile this driver as a module, choose M here: the module |
| 56 | will be called ptp_dte. |
| 57 | |
Yangbo Lu | ceefc71d | 2018-05-25 12:40:34 +0800 | [diff] [blame] | 58 | config PTP_1588_CLOCK_QORIQ |
| 59 | tristate "Freescale QorIQ 1588 timer as PTP clock" |
Yangbo Lu | 8099d7c | 2019-06-14 18:40:50 +0800 | [diff] [blame] | 60 | depends on GIANFAR || FSL_DPAA_ETH || FSL_DPAA2_ETH || FSL_ENETC || FSL_ENETC_VF || COMPILE_TEST |
Nicolas Pitre | d1cbfd7 | 2016-11-11 00:10:07 -0500 | [diff] [blame] | 61 | depends on PTP_1588_CLOCK |
Ben Hutchings | a24006e | 2012-10-31 15:33:52 +0000 | [diff] [blame] | 62 | default y |
Richard Cochran | c78275f | 2011-04-22 12:03:54 +0200 | [diff] [blame] | 63 | help |
Yangbo Lu | ceefc71d | 2018-05-25 12:40:34 +0800 | [diff] [blame] | 64 | This driver adds support for using the Freescale QorIQ 1588 |
| 65 | timer as a PTP clock. This clock is only useful if your PTP |
| 66 | programs are getting hardware time stamps on the PTP Ethernet |
| 67 | packets using the SO_TIMESTAMPING API. |
Richard Cochran | c78275f | 2011-04-22 12:03:54 +0200 | [diff] [blame] | 68 | |
| 69 | To compile this driver as a module, choose M here: the module |
Yangbo Lu | 19df751 | 2019-01-21 18:41:42 +0800 | [diff] [blame] | 70 | will be called ptp-qoriq. |
Richard Cochran | c78275f | 2011-04-22 12:03:54 +0200 | [diff] [blame] | 71 | |
Richard Cochran | cb646e2 | 2011-04-22 12:04:55 +0200 | [diff] [blame] | 72 | comment "Enable PHYLIB and NETWORK_PHY_TIMESTAMPING to see the additional clocks." |
Ben Hutchings | a24006e | 2012-10-31 15:33:52 +0000 | [diff] [blame] | 73 | depends on PHYLIB=n || NETWORK_PHY_TIMESTAMPING=n |
Richard Cochran | cb646e2 | 2011-04-22 12:04:55 +0200 | [diff] [blame] | 74 | |
| 75 | config DP83640_PHY |
| 76 | tristate "Driver for the National Semiconductor DP83640 PHYTER" |
Richard Cochran | cb646e2 | 2011-04-22 12:04:55 +0200 | [diff] [blame] | 77 | depends on NETWORK_PHY_TIMESTAMPING |
| 78 | depends on PHYLIB |
Nicolas Pitre | d1cbfd7 | 2016-11-11 00:10:07 -0500 | [diff] [blame] | 79 | depends on PTP_1588_CLOCK |
Arnd Bergmann | f9d6f94 | 2021-01-03 22:36:18 +0100 | [diff] [blame] | 80 | select CRC32 |
Masahiro Yamada | a7f7f62 | 2020-06-14 01:50:22 +0900 | [diff] [blame] | 81 | help |
Richard Cochran | cb646e2 | 2011-04-22 12:04:55 +0200 | [diff] [blame] | 82 | Supports the DP83640 PHYTER with IEEE 1588 features. |
| 83 | |
| 84 | This driver adds support for using the DP83640 as a PTP |
| 85 | clock. This clock is only useful if your PTP programs are |
| 86 | getting hardware time stamps on the PTP Ethernet packets |
| 87 | using the SO_TIMESTAMPING API. |
| 88 | |
| 89 | In order for this to work, your MAC driver must also |
Masanari Iida | 6b2aac4 | 2012-04-14 00:14:11 +0900 | [diff] [blame] | 90 | implement the skb_tx_timestamp() function. |
Richard Cochran | cb646e2 | 2011-04-22 12:04:55 +0200 | [diff] [blame] | 91 | |
Richard Cochran | bad1eaa | 2019-12-25 18:16:20 -0800 | [diff] [blame] | 92 | config PTP_1588_CLOCK_INES |
| 93 | tristate "ZHAW InES PTP time stamping IP core" |
| 94 | depends on NETWORK_PHY_TIMESTAMPING |
Randy Dunlap | 1f685e6 | 2021-01-05 20:25:31 -0800 | [diff] [blame] | 95 | depends on HAS_IOMEM |
Richard Cochran | bad1eaa | 2019-12-25 18:16:20 -0800 | [diff] [blame] | 96 | depends on PHYLIB |
| 97 | depends on PTP_1588_CLOCK |
| 98 | help |
| 99 | This driver adds support for using the ZHAW InES 1588 IP |
| 100 | core. This clock is only useful if the MII bus of your MAC |
| 101 | is wired up to the core. |
| 102 | |
Takahiro Shimizu | 863d08e | 2012-03-07 22:16:26 +0000 | [diff] [blame] | 103 | config PTP_1588_CLOCK_PCH |
| 104 | tristate "Intel PCH EG20T as PTP clock" |
Jean Delvare | bc56151 | 2014-06-17 11:59:20 +0200 | [diff] [blame] | 105 | depends on X86_32 || COMPILE_TEST |
Andy Shevchenko | 55c8fca1 | 2021-08-13 20:33:27 +0300 | [diff] [blame] | 106 | depends on HAS_IOMEM && PCI |
| 107 | depends on NET |
Arnd Bergmann | e5f3155 | 2021-08-12 20:33:58 +0200 | [diff] [blame] | 108 | depends on PTP_1588_CLOCK |
Takahiro Shimizu | 863d08e | 2012-03-07 22:16:26 +0000 | [diff] [blame] | 109 | help |
| 110 | This driver adds support for using the PCH EG20T as a PTP |
Takahiro Shimizu | 358dfb6 | 2012-04-20 18:50:34 +0000 | [diff] [blame] | 111 | clock. The hardware supports time stamping of PTP packets |
Antonio Borneo | 503c9ad | 2019-10-07 17:43:02 +0200 | [diff] [blame] | 112 | when using the end-to-end delay (E2E) mechanism. The peer |
| 113 | delay mechanism (P2P) is not supported. |
Takahiro Shimizu | 358dfb6 | 2012-04-20 18:50:34 +0000 | [diff] [blame] | 114 | |
| 115 | This clock is only useful if your PTP programs are getting |
| 116 | hardware time stamps on the PTP Ethernet packets using the |
| 117 | SO_TIMESTAMPING API. |
Takahiro Shimizu | 863d08e | 2012-03-07 22:16:26 +0000 | [diff] [blame] | 118 | |
| 119 | To compile this driver as a module, choose M here: the module |
| 120 | will be called ptp_pch. |
| 121 | |
Marcelo Tosatti | a0e136d | 2017-01-24 15:09:42 -0200 | [diff] [blame] | 122 | config PTP_1588_CLOCK_KVM |
| 123 | tristate "KVM virtual PTP clock" |
| 124 | depends on PTP_1588_CLOCK |
Jianyong Wu | 300bb1f | 2020-12-09 14:09:30 +0800 | [diff] [blame] | 125 | depends on (KVM_GUEST && X86) || (HAVE_ARM_SMCCC_DISCOVERY && ARM_ARCH_TIMER) |
Marcelo Tosatti | a0e136d | 2017-01-24 15:09:42 -0200 | [diff] [blame] | 126 | default y |
| 127 | help |
| 128 | This driver adds support for using kvm infrastructure as a PTP |
| 129 | clock. This clock is only useful if you are using KVM guests. |
| 130 | |
| 131 | To compile this driver as a module, choose M here: the module |
| 132 | will be called ptp_kvm. |
| 133 | |
Min Li | 57a10d8 | 2020-02-21 15:03:51 -0500 | [diff] [blame] | 134 | config PTP_1588_CLOCK_IDT82P33 |
| 135 | tristate "IDT 82P33xxx PTP clock" |
| 136 | depends on PTP_1588_CLOCK && I2C |
| 137 | default n |
| 138 | help |
| 139 | This driver adds support for using the IDT 82P33xxx as a PTP |
| 140 | clock. This clock is only useful if your time stamping MAC |
| 141 | is connected to the IDT chip. |
| 142 | |
| 143 | To compile this driver as a module, choose M here: the module |
| 144 | will be called ptp_idt82p33. |
| 145 | |
Vincent Cheng | 3a6ba7d | 2019-10-31 23:20:07 -0400 | [diff] [blame] | 146 | config PTP_1588_CLOCK_IDTCM |
| 147 | tristate "IDT CLOCKMATRIX as PTP clock" |
Arnd Bergmann | 03b06e3 | 2019-12-10 20:56:34 +0100 | [diff] [blame] | 148 | depends on PTP_1588_CLOCK && I2C |
Vincent Cheng | 3a6ba7d | 2019-10-31 23:20:07 -0400 | [diff] [blame] | 149 | default n |
| 150 | help |
| 151 | This driver adds support for using IDT CLOCKMATRIX(TM) as a PTP |
| 152 | clock. This clock is only useful if your time stamping MAC |
| 153 | is connected to the IDT chip. |
| 154 | |
| 155 | To compile this driver as a module, choose M here: the module |
| 156 | will be called ptp_clockmatrix. |
| 157 | |
Vivek Thampi | 7d10001 | 2020-02-28 05:32:46 +0000 | [diff] [blame] | 158 | config PTP_1588_CLOCK_VMW |
| 159 | tristate "VMware virtual PTP clock" |
| 160 | depends on ACPI && HYPERVISOR_GUEST && X86 |
| 161 | depends on PTP_1588_CLOCK |
| 162 | help |
| 163 | This driver adds support for using VMware virtual precision |
| 164 | clock device as a PTP clock. This is only useful in virtual |
| 165 | machines running on VMware virtual infrastructure. |
| 166 | |
| 167 | To compile this driver as a module, choose M here: the module |
| 168 | will be called ptp_vmw. |
| 169 | |
Jonathan Lemon | a7e1aba | 2020-12-03 19:51:28 -0800 | [diff] [blame] | 170 | config PTP_1588_CLOCK_OCP |
| 171 | tristate "OpenCompute TimeCard as PTP clock" |
| 172 | depends on PTP_1588_CLOCK |
| 173 | depends on HAS_IOMEM && PCI |
Jonathan Lemon | bc8e05d | 2021-08-25 14:17:33 -0700 | [diff] [blame] | 174 | depends on I2C && MTD |
| 175 | depends on SERIAL_8250 |
Randy Dunlap | 944f510 | 2021-08-13 13:30:26 -0700 | [diff] [blame] | 176 | depends on !S390 |
Arnd Bergmann | 42a99a0 | 2021-09-20 11:57:49 +0200 | [diff] [blame] | 177 | depends on COMMON_CLK |
Jonathan Lemon | d79500e | 2021-08-16 15:13:36 -0700 | [diff] [blame] | 178 | select NET_DEVLINK |
Jonathan Lemon | a7e1aba | 2020-12-03 19:51:28 -0800 | [diff] [blame] | 179 | help |
| 180 | This driver adds support for an OpenCompute time card. |
| 181 | |
| 182 | The OpenCompute time card is an atomic clock along with |
| 183 | a GPS receiver that provides a Grandmaster clock source |
| 184 | for a PTP enabled network. |
| 185 | |
| 186 | More information is available at http://www.timingcard.com/ |
| 187 | |
Richard Cochran | d94ba80 | 2011-04-22 12:03:08 +0200 | [diff] [blame] | 188 | endmenu |