Skip to content

Add network support for Ocelots SoCs

Gregory CLEMENT u-boot 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 0 repliesNew
  2. v24 patches 0 repliesSuperseded
  3. v14 patches 0 repliesSuperseded

Changes in v3 from the cover letter

- Use wait_for_bit_le32() whenever it is possible instead of timer_get_us() (Suggested by Daniel Schwierzeck)
- Remove ocelot_ofdata_to_platdata() and get the resources directly from the probe function (Suggested by Daniel Schwierzeck)
- Use dev_remap_addr_name() to simplify the address mapping (Suggested by Daniel Schwierzeck)
- Simplify the mdio initialization by only manage the internal PHY for now

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4MIPS: mscc: ocelot: Add ethernet nodes for Ocelotarch/mips/dts/mscc,ocelot.dtsi arch/mips/dts/ocelot_pcb123.dts+117 -00 replies
2/4net: add MSCC Ocelot switch supportMAINTAINERS drivers/net/Kconfig drivers/net/Makefile +1 more+774 -01 reply
3/4MIPS: mscc: ocelot: add switch reset supportboard/mscc/ocelot/ocelot.c+24 -00 replies
4/4configs: mscc_ocelot: add network supportconfigs/mscc_ocelot_defconfig+1 -00 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchDaniel Schwierzeck
1/4
2/4R-b
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [U-Boot] [PATCH v3 0/4] Add network support for Ocelots SoCs

Hello,

this the third version of a series allowing to use the switch component of the Ocelots SoC as a network interface.

The binding used is exactly the same of the one already used by Linux.

There is also a patch adding a workaround needed on the Ocelot based
boards: indeed the pin connected to the DDR reset is part of the switch subsystem. So we need ensure that the DDR is not reset during the switch reset.

Gregory

Changelog:
v2 -> v3:

- Use wait_for_bit_le32() whenever it is possible instead of timer_get_us() (Suggested by Daniel Schwierzeck)
- Remove ocelot_ofdata_to_platdata() and get the resources directly from the probe function (Suggested by Daniel Schwierzeck)
- Use dev_remap_addr_name() to simplify the address mapping (Suggested by Daniel Schwierzeck)
- Simplify the mdio initialization by only manage the internal PHY for now

v1 -> v2:
- Use wait_for_bit_le32() (suggested by Stefan Roese)
- Use debug() instead of printf() for the debug messages in mscc_switch_reset.

Gregory CLEMENT (4):
MIPS: mscc: ocelot: Add ethernet nodes for Ocelot
net: add MSCC Ocelot switch support
MIPS: mscc: ocelot: add switch reset support
configs: mscc_ocelot: add network support

 MAINTAINERS                     |   1 +
 arch/mips/dts/mscc,ocelot.dtsi  |  97 ++++
 arch/mips/dts/ocelot_pcb123.dts |  20 +
 board/mscc/ocelot/ocelot.c      |  24 +
 configs/mscc_ocelot_defconfig   |   1 +
 drivers/net/Kconfig             |   7 +
 drivers/net/Makefile            |   1 +
 drivers/net/ocelot_switch.c     | 765 ++++++++++++++++++++++++++++++++
 8 files changed, 916 insertions(+)
 create mode 100644 drivers/net/ocelot_switch.c
Signature · 1 line
2.20.1