From patchwork Sat May 9 14:25:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Tomer X-Patchwork-Id: 245341 List-Id: U-Boot discussion From: amittomer25 at gmail.com (Amit Singh Tomar) Date: Sat, 9 May 2020 19:55:08 +0530 Subject: [PATCH v1 0/7] add Ethernet support for S700 Message-ID: <1589034315-19722-1-git-send-email-amittomer25@gmail.com> This series adds Ethernet Support Actions Semi OWL S700 SoC. First patch(1/7) series adds Ethernet clock for S900 and S700, S900 part is just compiled tested. Patches(from 2/7 and 3/7) adds support for RTL 8201F PHY module and introduce configuration option "RTL8201F_PHY_S700_RMII_TIMINGS" to fulfil specific timing requirements for S700. Patches(from 4/21 to 7/21) are there to enable Ethenet support in S700, MAC is based on Designware IP. These patches re-uses the existing driver(drivers/net/designware.c) and programs SoC specific bits to enable ethernet. SoC specific glue code is kept in dwmac_s700.c file, did it this way as found it more cleaner but having done that I am not really sure, if it's bit of a overkill to have it place in glue code or we can keep this glue code somewhere in machine file ? Series is tested on Cubieboard7-lite by tftping all the images needed to boot Linux. Amit Singh Tomar (7): clk: actions: Add Ethernet clocks net: phy: realtek: Add support for RTL8201F PHY module. net: phy: realtek: Introduce PHY_RTL8201F_S700_RMII_TIMINGS to adjust rx/tx timings net: designware: s700: Add glue code for S700 mac arm: dts: s700: add node for ethernet controller owl: Kconfig: Enable DM eth for OWL platform configs: Enable mac and phy configs arch/arm/Kconfig | 1 + arch/arm/dts/s700-u-boot.dtsi | 13 ++++++ arch/arm/include/asm/arch-owl/regs_s700.h | 8 ++++ arch/arm/include/asm/arch-owl/regs_s900.h | 4 ++ configs/cubieboard7_defconfig | 4 ++ drivers/clk/owl/clk_owl.c | 9 +++++ drivers/clk/owl/clk_owl.h | 2 - drivers/net/Kconfig | 7 ++++ drivers/net/Makefile | 1 + drivers/net/dwmac_s700.c | 66 +++++++++++++++++++++++++++++++ drivers/net/phy/Kconfig | 9 +++++ drivers/net/phy/realtek.c | 55 ++++++++++++++++++++++++++ 12 files changed, 177 insertions(+), 2 deletions(-) create mode 100644 drivers/net/dwmac_s700.c