This patch series is based on next-20220915. Add minimal support for R-Car S4-8 Etherent Switch. This hardware supports a lot of features. But, this driver only supports it as act as an ethernet controller for now. - patch [1/8] is for CCF. - patch [2/8] and [3/8] are for Generic PHY. - patch [4/8] through [6/8] are for Network Ethernet. - patch [7/8] and [8/8] are for Renesas ARM64 SoC. Changes from v1: https://lore.kernel.org/all/20220909132614.1967276-1-yoshihiro.shimoda.uh@xxxxxxxxxxx/ - Separate Ethernet SERDES hardware block so that made a Generic PHY driver. - Separate PTP support into a patch as patch [6/8]. - Fix dt-bindings of Ethernet Switch. - Remove module parameters from Ethernet Switch driver. - Wrote reverse christmas tree about local variables in all the code. - Improve error path handlings. - Add comment about the current hardware limitation. - Add comment about magic numbers about SERDES settings. Yoshihiro Shimoda (8): clk: renesas: r8a779f0: Add Ethernet Switch clocks dt-bindings: phy: renesas: Document Renesas Ethernet SERDES phy: renesas: Add Renesas Ethernet SERDES driver for R-Car S4-8 dt-bindings: net: renesas: Document Renesas Ethernet Switch net: ethernet: renesas: Add Ethernet Switch driver net: ethernet: renesas: rswitch: Add R-Car Gen4 gPTP support arm64: dts: renesas: r8a779f0: Add Ethernet Switch and SERDES nodes arm64: dts: renesas: r8a779f0: spider: Enable Ethernet Switch and SERDES .../bindings/net/renesas,etherswitch.yaml | 286 +++ .../bindings/phy/renesas,ether-serdes.yaml | 54 + .../dts/renesas/r8a779f0-spider-ethernet.dtsi | 54 + arch/arm64/boot/dts/renesas/r8a779f0.dtsi | 111 + drivers/clk/renesas/r8a779f0-cpg-mssr.c | 2 + drivers/net/ethernet/renesas/Kconfig | 11 + drivers/net/ethernet/renesas/Makefile | 4 + drivers/net/ethernet/renesas/rcar_gen4_ptp.c | 151 ++ drivers/net/ethernet/renesas/rcar_gen4_ptp.h | 71 + drivers/net/ethernet/renesas/rswitch.c | 1779 +++++++++++++++++ drivers/net/ethernet/renesas/rswitch.h | 967 +++++++++ drivers/phy/renesas/Kconfig | 7 + drivers/phy/renesas/Makefile | 2 +- drivers/phy/renesas/r8a779f0-ether-serdes.c | 303 +++ 14 files changed, 3801 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/net/renesas,etherswitch.yaml create mode 100644 Documentation/devicetree/bindings/phy/renesas,ether-serdes.yaml create mode 100644 drivers/net/ethernet/renesas/rcar_gen4_ptp.c create mode 100644 drivers/net/ethernet/renesas/rcar_gen4_ptp.h create mode 100644 drivers/net/ethernet/renesas/rswitch.c create mode 100644 drivers/net/ethernet/renesas/rswitch.h create mode 100644 drivers/phy/renesas/r8a779f0-ether-serdes.c -- 2.25.1