All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vladimir Oltean <vladimir.oltean@nxp.com>
To: u-boot@lists.denx.de, Joe Hershberger <joe.hershberger@ni.com>,
	Ramon Fried <rfried.dev@gmail.com>
Cc: Priyanka Jain <priyanka.jain@nxp.com>,
	Bin Meng <bmeng.cn@gmail.com>, Michael Walle <michael@walle.cc>
Subject: [PATCH v2 00/10] Support the SJA1105 DSA switch on the NXP LS1021A-TSN board
Date: Wed, 29 Sep 2021 18:04:35 +0300	[thread overview]
Message-ID: <20210929150445.1593364-1-vladimir.oltean@nxp.com> (raw)

The NXP LS1021A-TSN board (and many others) contains an automotive
Ethernet switch. Some boards only have Ethernet ports routed through the
switch, and it is therefore desirable to have TFTP functional.

These patches add support for the SJA1105 and SJA1110 switch family
(tested on first-gen SJA1105T, second-gen SJA1105S, but not on third-gen
SJA1110A yet, the support for that is blind). Along the way, fixes and
improvements to the DSA framework are also made.

I have not added documentation for the device tree bindings, the driver
is compatible with the device tree bindings from Linux, for which a
YAML schema-based validator exists.

Changes in v2:
- split sja1105 driver in 2 patches: basic driver and SGMII support
- rebased on top of the "sgmii-2500" -> "2500base-x" change in felix
- improved the sja1105 xpcs initialization sequence to work with in-band
  autoneg enabled as well

Vladimir Oltean (10):
  net: tsec: add support for promiscuous mode
  include: import if_vlan.h from Linux
  net: dsa: allow drivers to get the port OF node
  net: introduce a helper to determine whether to use in-band autoneg
  net: dsa: felix: configure the in-band autoneg property based on OF
    node info
  net: dsa: add driver for NXP SJA1105 L2 switch
  net: dsa: sja1105: add support for SGMII
  arm: dts: ls1021a-tsn: add sja1105 and eth2 bindings
  configs: ls1021a-tsn: enable sja1105 switch driver
  configs: ls1021a-tsn: enable the generation of random Ethernet MAC
    addresses

 arch/arm/dts/ls1021a-tsn.dts            |  103 +
 configs/ls1021atsn_qspi_defconfig       |    3 +
 configs/ls1021atsn_sdcard_defconfig     |    3 +
 drivers/core/of_extra.c                 |   12 +
 drivers/net/Kconfig                     |   16 +
 drivers/net/Makefile                    |    1 +
 drivers/net/mscc_eswitch/felix_switch.c |   10 +-
 drivers/net/sja1105.c                   | 3376 +++++++++++++++++++++++
 drivers/net/tsec.c                      |   20 +-
 include/dm/of_extra.h                   |   14 +
 include/linux/if_vlan.h                 |   26 +
 include/net/dsa.h                       |   12 +
 include/tsec.h                          |    2 +
 net/dsa-uclass.c                        |   20 +
 14 files changed, 3608 insertions(+), 10 deletions(-)
 create mode 100644 drivers/net/sja1105.c
 create mode 100644 include/linux/if_vlan.h

-- 
2.25.1


             reply	other threads:[~2021-09-29 15:05 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-29 15:04 Vladimir Oltean [this message]
2021-09-29 15:04 ` [PATCH v2 01/10] net: tsec: add support for promiscuous mode Vladimir Oltean
2021-10-16 18:30   ` Ramon Fried
2021-10-28 18:45     ` Ramon Fried
2021-10-30  7:45       ` Ramon Fried
2021-09-29 15:04 ` [PATCH v2 02/10] include: import if_vlan.h from Linux Vladimir Oltean
2021-09-29 15:04 ` [PATCH v2 03/10] net: dsa: allow drivers to get the port OF node Vladimir Oltean
2021-09-29 15:04 ` [PATCH v2 04/10] net: introduce a helper to determine whether to use in-band autoneg Vladimir Oltean
2021-09-29 23:20   ` Bin Meng
2021-10-16 18:28     ` Ramon Fried
2021-09-29 15:04 ` [PATCH v2 05/10] net: dsa: felix: configure the in-band autoneg property based on OF node info Vladimir Oltean
2021-09-29 15:04 ` [PATCH v2 06/10] net: dsa: add driver for NXP SJA1105 L2 switch Vladimir Oltean
2021-09-29 15:04 ` [PATCH v2 07/10] net: dsa: sja1105: add support for SGMII Vladimir Oltean
2021-09-29 15:04 ` [PATCH v2 08/10] arm: dts: ls1021a-tsn: add sja1105 and eth2 bindings Vladimir Oltean
2021-09-29 15:04 ` [PATCH v2 09/10] configs: ls1021a-tsn: enable sja1105 switch driver Vladimir Oltean
2021-09-29 15:04 ` [PATCH v2 10/10] configs: ls1021a-tsn: enable the generation of random Ethernet MAC addresses Vladimir Oltean

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210929150445.1593364-1-vladimir.oltean@nxp.com \
    --to=vladimir.oltean@nxp.com \
    --cc=bmeng.cn@gmail.com \
    --cc=joe.hershberger@ni.com \
    --cc=michael@walle.cc \
    --cc=priyanka.jain@nxp.com \
    --cc=rfried.dev@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.