0001 # SPDX-License-Identifier: GPL-2.0-only
0002 config NET_DSA_SJA1105
0003 tristate "NXP SJA1105 Ethernet switch family support"
0004 depends on NET_DSA && SPI
0005 depends on PTP_1588_CLOCK_OPTIONAL
0006 select NET_DSA_TAG_SJA1105
0007 select PCS_XPCS
0008 select PACKING
0009 select CRC32
0010 help
0011 This is the driver for the NXP SJA1105 (5-port) and SJA1110 (10-port)
0012 automotive Ethernet switch family. These are managed over an SPI
0013 interface. Probing is handled based on OF bindings and so is the
0014 linkage to PHYLINK. The driver supports the following revisions:
0015 - SJA1105E (Gen. 1, No TT-Ethernet)
0016 - SJA1105T (Gen. 1, TT-Ethernet)
0017 - SJA1105P (Gen. 2, No SGMII, No TT-Ethernet)
0018 - SJA1105Q (Gen. 2, No SGMII, TT-Ethernet)
0019 - SJA1105R (Gen. 2, SGMII, No TT-Ethernet)
0020 - SJA1105S (Gen. 2, SGMII, TT-Ethernet)
0021 - SJA1110A (Gen. 3, SGMII, TT-Ethernet, 100base-TX PHY, 10 ports)
0022 - SJA1110B (Gen. 3, SGMII, TT-Ethernet, 100base-TX PHY, 9 ports)
0023 - SJA1110C (Gen. 3, SGMII, TT-Ethernet, 100base-TX PHY, 7 ports)
0024 - SJA1110D (Gen. 3, SGMII, TT-Ethernet, no 100base-TX PHY, 7 ports)
0025
0026 config NET_DSA_SJA1105_PTP
0027 bool "Support for the PTP clock on the NXP SJA1105 Ethernet switch"
0028 depends on NET_DSA_SJA1105
0029 depends on PTP_1588_CLOCK
0030 help
0031 This enables support for timestamping and PTP clock manipulations in
0032 the SJA1105 DSA driver.
0033
0034 config NET_DSA_SJA1105_TAS
0035 bool "Support for the Time-Aware Scheduler on NXP SJA1105"
0036 depends on NET_DSA_SJA1105 && NET_SCH_TAPRIO
0037 depends on NET_SCH_TAPRIO=y || NET_DSA_SJA1105=m
0038 depends on NET_DSA_SJA1105_PTP
0039 help
0040 This enables support for the TTEthernet-based egress scheduling
0041 engine in the SJA1105 DSA driver, which is controlled using a
0042 hardware offload of the tc-tqprio qdisc.
0043
0044 config NET_DSA_SJA1105_VL
0045 bool "Support for Virtual Links on NXP SJA1105"
0046 depends on NET_DSA_SJA1105_TAS
0047 help
0048 This enables support for flow classification using capable devices
0049 (SJA1105T, SJA1105Q, SJA1105S). The following actions are supported:
0050 - redirect, trap, drop
0051 - time-based ingress policing, via the tc-gate action