xref: /OK3568_Linux_fs/kernel/drivers/net/dsa/sja1105/Kconfig (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0-only
2*4882a593Smuzhiyunconfig NET_DSA_SJA1105
3*4882a593Smuzhiyuntristate "NXP SJA1105 Ethernet switch family support"
4*4882a593Smuzhiyun	depends on NET_DSA && SPI
5*4882a593Smuzhiyun	select NET_DSA_TAG_SJA1105
6*4882a593Smuzhiyun	select PACKING
7*4882a593Smuzhiyun	select CRC32
8*4882a593Smuzhiyun	help
9*4882a593Smuzhiyun	  This is the driver for the NXP SJA1105 automotive Ethernet switch
10*4882a593Smuzhiyun	  family. These are 5-port devices and are managed over an SPI
11*4882a593Smuzhiyun	  interface. Probing is handled based on OF bindings and so is the
12*4882a593Smuzhiyun	  linkage to PHYLINK. The driver supports the following revisions:
13*4882a593Smuzhiyun	    - SJA1105E (Gen. 1, No TT-Ethernet)
14*4882a593Smuzhiyun	    - SJA1105T (Gen. 1, TT-Ethernet)
15*4882a593Smuzhiyun	    - SJA1105P (Gen. 2, No SGMII, No TT-Ethernet)
16*4882a593Smuzhiyun	    - SJA1105Q (Gen. 2, No SGMII, TT-Ethernet)
17*4882a593Smuzhiyun	    - SJA1105R (Gen. 2, SGMII, No TT-Ethernet)
18*4882a593Smuzhiyun	    - SJA1105S (Gen. 2, SGMII, TT-Ethernet)
19*4882a593Smuzhiyun
20*4882a593Smuzhiyunconfig NET_DSA_SJA1105_PTP
21*4882a593Smuzhiyun	bool "Support for the PTP clock on the NXP SJA1105 Ethernet switch"
22*4882a593Smuzhiyun	depends on NET_DSA_SJA1105
23*4882a593Smuzhiyun	depends on PTP_1588_CLOCK
24*4882a593Smuzhiyun	help
25*4882a593Smuzhiyun	  This enables support for timestamping and PTP clock manipulations in
26*4882a593Smuzhiyun	  the SJA1105 DSA driver.
27*4882a593Smuzhiyun
28*4882a593Smuzhiyunconfig NET_DSA_SJA1105_TAS
29*4882a593Smuzhiyun	bool "Support for the Time-Aware Scheduler on NXP SJA1105"
30*4882a593Smuzhiyun	depends on NET_DSA_SJA1105 && NET_SCH_TAPRIO
31*4882a593Smuzhiyun	depends on NET_SCH_TAPRIO=y || NET_DSA_SJA1105=m
32*4882a593Smuzhiyun	depends on NET_DSA_SJA1105_PTP
33*4882a593Smuzhiyun	help
34*4882a593Smuzhiyun	  This enables support for the TTEthernet-based egress scheduling
35*4882a593Smuzhiyun	  engine in the SJA1105 DSA driver, which is controlled using a
36*4882a593Smuzhiyun	  hardware offload of the tc-tqprio qdisc.
37*4882a593Smuzhiyun
38*4882a593Smuzhiyunconfig NET_DSA_SJA1105_VL
39*4882a593Smuzhiyun	bool "Support for Virtual Links on NXP SJA1105"
40*4882a593Smuzhiyun	depends on NET_DSA_SJA1105_TAS
41*4882a593Smuzhiyun	help
42*4882a593Smuzhiyun	  This enables support for flow classification using capable devices
43*4882a593Smuzhiyun	  (SJA1105T, SJA1105Q, SJA1105S). The following actions are supported:
44*4882a593Smuzhiyun	  - redirect, trap, drop
45*4882a593Smuzhiyun	  - time-based ingress policing, via the tc-gate action
46