18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
28c2ecf20Sopenharmony_ciconfig NET_DSA_SJA1105
38c2ecf20Sopenharmony_citristate "NXP SJA1105 Ethernet switch family support"
48c2ecf20Sopenharmony_ci	depends on NET_DSA && SPI
58c2ecf20Sopenharmony_ci	select NET_DSA_TAG_SJA1105
68c2ecf20Sopenharmony_ci	select PACKING
78c2ecf20Sopenharmony_ci	select CRC32
88c2ecf20Sopenharmony_ci	help
98c2ecf20Sopenharmony_ci	  This is the driver for the NXP SJA1105 automotive Ethernet switch
108c2ecf20Sopenharmony_ci	  family. These are 5-port devices and are managed over an SPI
118c2ecf20Sopenharmony_ci	  interface. Probing is handled based on OF bindings and so is the
128c2ecf20Sopenharmony_ci	  linkage to PHYLINK. The driver supports the following revisions:
138c2ecf20Sopenharmony_ci	    - SJA1105E (Gen. 1, No TT-Ethernet)
148c2ecf20Sopenharmony_ci	    - SJA1105T (Gen. 1, TT-Ethernet)
158c2ecf20Sopenharmony_ci	    - SJA1105P (Gen. 2, No SGMII, No TT-Ethernet)
168c2ecf20Sopenharmony_ci	    - SJA1105Q (Gen. 2, No SGMII, TT-Ethernet)
178c2ecf20Sopenharmony_ci	    - SJA1105R (Gen. 2, SGMII, No TT-Ethernet)
188c2ecf20Sopenharmony_ci	    - SJA1105S (Gen. 2, SGMII, TT-Ethernet)
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ciconfig NET_DSA_SJA1105_PTP
218c2ecf20Sopenharmony_ci	bool "Support for the PTP clock on the NXP SJA1105 Ethernet switch"
228c2ecf20Sopenharmony_ci	depends on NET_DSA_SJA1105
238c2ecf20Sopenharmony_ci	depends on PTP_1588_CLOCK
248c2ecf20Sopenharmony_ci	help
258c2ecf20Sopenharmony_ci	  This enables support for timestamping and PTP clock manipulations in
268c2ecf20Sopenharmony_ci	  the SJA1105 DSA driver.
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ciconfig NET_DSA_SJA1105_TAS
298c2ecf20Sopenharmony_ci	bool "Support for the Time-Aware Scheduler on NXP SJA1105"
308c2ecf20Sopenharmony_ci	depends on NET_DSA_SJA1105 && NET_SCH_TAPRIO
318c2ecf20Sopenharmony_ci	depends on NET_SCH_TAPRIO=y || NET_DSA_SJA1105=m
328c2ecf20Sopenharmony_ci	depends on NET_DSA_SJA1105_PTP
338c2ecf20Sopenharmony_ci	help
348c2ecf20Sopenharmony_ci	  This enables support for the TTEthernet-based egress scheduling
358c2ecf20Sopenharmony_ci	  engine in the SJA1105 DSA driver, which is controlled using a
368c2ecf20Sopenharmony_ci	  hardware offload of the tc-tqprio qdisc.
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_ciconfig NET_DSA_SJA1105_VL
398c2ecf20Sopenharmony_ci	bool "Support for Virtual Links on NXP SJA1105"
408c2ecf20Sopenharmony_ci	depends on NET_DSA_SJA1105_TAS
418c2ecf20Sopenharmony_ci	help
428c2ecf20Sopenharmony_ci	  This enables support for flow classification using capable devices
438c2ecf20Sopenharmony_ci	  (SJA1105T, SJA1105Q, SJA1105S). The following actions are supported:
448c2ecf20Sopenharmony_ci	  - redirect, trap, drop
458c2ecf20Sopenharmony_ci	  - time-based ingress policing, via the tc-gate action
46