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