All of lore.kernel.org
 help / color / mirror / Atom feed
From: Amit Singh Tomar <amittomer25@gmail.com>
To: u-boot@lists.denx.de
Subject: [PATCH v3 00/21] Actions S700 SoC support
Date: Sat, 25 Jan 2020 17:52:42 +0530	[thread overview]
Message-ID: <1579954983-11329-1-git-send-email-amittomer25@gmail.com> (raw)

Hi, 

This is continuation of work[1], submitted(v2) almost a year back.

It adds Cubieboard7[1] support based on Action Semi's S700 SoC[2], It's Quad-core ARMv8 SoC
with Cortex-A53 cores. Peripheral like UART seems to be compatible with S900 SoC(basic support
for it is alreay present in u-boot).

First few patches(from 1/21 to 3/21) consolidates Actions Semiconductor SoCs support in u-boot(mostly insprired
by SUXNI as suggested by Andre). Idea is to move every bit out from board/ucRobotics into arch/arm/mach-owl.
It allows different SoCs to be driven by single "soc and Kconfig" file. It also includes common clock driver
for S700 and S900. Patches(from 4/21 to 6/21 and 10/21 to 12/21) enables S700 SoC support alongwith 
Cubieboard7 board.

While at it, took the opportunity to sync S900 DT sources and bindings(patches from 7/21 to 8/21) with 
Linux(tag v5.5-rc6) and it is compiled-tested.

Patch(9/21) uses same name for ethernet clock binding and if it's ok, would like to send it to LKML
as well.

Patches(from 13/21 to 14/21) adds support for RTL 8201F PHY module and introduce configuration option
"RTL8201F_PHY_S700_RMII_TIMINGS" to fulfill specific timing requirements for S700.

Patches(from 15/21 to 17/21) adds support for generic reset controller, originally used for NEXELL[3]
series but never gets merged and it can be used for S700.

Patches(from 18/21 to 21/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 said that I am not really sure, if it's bit of a overkill to have it) or we can keep
this glue code somewhere in machine file?

S700 support is tested[4] on Cubieboard7 board and S900 support is just compiled tested.

Also, patches are rebased upon following commit:
2c871f9e084b2c03d1961884228a6901387ab8d6 Merge branch '2020-01-22-master-imports'

Thanks
-Amit

[1]: https://patchwork.ozlabs.org/cover/1020286/
[2]: http://www.actions-semi.com/en/productview.aspx?id=225
[3]: https://lists.denx.de/pipermail/u-boot/2017-November/313135.html
[4]: https://paste.ubuntu.com/p/GkFPn2xJfn/

Amit Singh Tomar (21):
  arm: actions: Add common framework for Actions Semi SoCs
  arm: actions: rename sysmap-s900 to sysmap-owl
  clk: actions: Add common clock driver
  arm: add support Actions Semi S700
  arm: actions: add S700 SoC device tree
  actions:s700: add u-boot specific dts file
  arm: dts: sync dts for Action Semi S900
  actions: s900: add u-boot specific dts file
  arm: dts: Use consistent name "CLK_ETHERNET" for the Ethernet clock
    binding
  serial: actions: add uart support for s700
  arm: add Cubieboard7 board support
  actions: add Cubieboard7 README
  net: phy: realtek: Add support for RTL8201F PHY module.
  net: phy: realtek: Introduce PHY_RTL8201F_S700_RMII_TIMINGS to adjust
    rx/tx timings
  reset: add driver for generic reset controllers
  arm: dts: s700: add node for reset controller
  owl: Kconfig: Enable dm reset and generic reset
  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

 MAINTAINERS                                    |   2 +
 arch/arm/Kconfig                               |   8 +-
 arch/arm/dts/Makefile                          |   6 +-
 arch/arm/dts/s700-cubieboard7.dts              |  39 +++
 arch/arm/dts/s700-u-boot.dtsi                  |  39 +++
 arch/arm/dts/s700.dtsi                         | 248 +++++++++++++++++++
 arch/arm/dts/s900-u-boot.dtsi                  |  17 ++
 arch/arm/dts/s900.dtsi                         | 322 +++++++++++++++++++++++--
 arch/arm/include/asm/arch-owl/clk_s900.h       |  57 -----
 arch/arm/include/asm/arch-owl/regs_s700.h      |  62 +++++
 arch/arm/mach-owl/Kconfig                      |  35 +--
 arch/arm/mach-owl/Makefile                     |   3 +-
 arch/arm/mach-owl/README.cubieboard7           |  88 +++++++
 arch/arm/mach-owl/soc.c                        |  57 +++++
 arch/arm/mach-owl/sysmap-owl.c                 |  32 +++
 arch/arm/mach-owl/sysmap-s900.c                |  32 ---
 board/ucRobotics/bubblegum_96/Kconfig          |  15 --
 board/ucRobotics/bubblegum_96/MAINTAINERS      |   6 -
 board/ucRobotics/bubblegum_96/Makefile         |   3 -
 board/ucRobotics/bubblegum_96/bubblegum_96.c   |  57 -----
 configs/bubblegum_96_defconfig                 |   7 +-
 configs/cubieboard7_defconfig                  |  20 ++
 drivers/clk/owl/Kconfig                        |   8 +-
 drivers/clk/owl/Makefile                       |   2 +-
 drivers/clk/owl/clk_owl.c                      | 159 ++++++++++++
 drivers/clk/owl/clk_owl.h                      |  65 +++++
 drivers/clk/owl/clk_s900.c                     | 137 -----------
 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 +++++
 drivers/reset/Kconfig                          |   6 +
 drivers/reset/Makefile                         |   1 +
 drivers/reset/reset-generic.c                  | 111 +++++++++
 drivers/serial/serial_owl.c                    |   1 +
 include/configs/bubblegum_96.h                 |  40 ---
 include/configs/owl-common.h                   |  40 +++
 include/configs/s700.h                         |  13 +
 include/configs/s900.h                         |  16 ++
 include/dt-bindings/clock/actions,s700-cmu.h   | 118 +++++++++
 include/dt-bindings/clock/actions,s900-cmu.h   | 129 ++++++++++
 include/dt-bindings/clock/s900_cmu.h           |  77 ------
 include/dt-bindings/reset/actions,s700-reset.h |  34 +++
 include/dt-bindings/reset/actions,s900-reset.h |  65 +++++
 45 files changed, 1835 insertions(+), 480 deletions(-)
 create mode 100644 arch/arm/dts/s700-cubieboard7.dts
 create mode 100644 arch/arm/dts/s700-u-boot.dtsi
 create mode 100644 arch/arm/dts/s700.dtsi
 create mode 100644 arch/arm/dts/s900-u-boot.dtsi
 delete mode 100644 arch/arm/include/asm/arch-owl/clk_s900.h
 create mode 100644 arch/arm/include/asm/arch-owl/regs_s700.h
 create mode 100644 arch/arm/mach-owl/README.cubieboard7
 create mode 100644 arch/arm/mach-owl/soc.c
 create mode 100644 arch/arm/mach-owl/sysmap-owl.c
 delete mode 100644 arch/arm/mach-owl/sysmap-s900.c
 delete mode 100644 board/ucRobotics/bubblegum_96/Kconfig
 delete mode 100644 board/ucRobotics/bubblegum_96/MAINTAINERS
 delete mode 100644 board/ucRobotics/bubblegum_96/Makefile
 delete mode 100644 board/ucRobotics/bubblegum_96/bubblegum_96.c
 create mode 100644 configs/cubieboard7_defconfig
 create mode 100644 drivers/clk/owl/clk_owl.c
 create mode 100644 drivers/clk/owl/clk_owl.h
 delete mode 100644 drivers/clk/owl/clk_s900.c
 create mode 100644 drivers/net/dwmac_s700.c
 create mode 100644 drivers/reset/reset-generic.c
 delete mode 100644 include/configs/bubblegum_96.h
 create mode 100644 include/configs/owl-common.h
 create mode 100644 include/configs/s700.h
 create mode 100644 include/configs/s900.h
 create mode 100644 include/dt-bindings/clock/actions,s700-cmu.h
 create mode 100644 include/dt-bindings/clock/actions,s900-cmu.h
 delete mode 100644 include/dt-bindings/clock/s900_cmu.h
 create mode 100644 include/dt-bindings/reset/actions,s700-reset.h
 create mode 100644 include/dt-bindings/reset/actions,s900-reset.h

-- 
2.7.4

             reply	other threads:[~2020-01-25 12:22 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-25 12:22 Amit Singh Tomar [this message]
2020-01-25 12:22 ` [PATCH v3 01/21] arm: actions: Add common framework for Actions Owl Semi SoCs Amit Singh Tomar
2020-02-23 17:13   ` Manivannan Sadhasivam
2020-01-25 12:22 ` [PATCH v3 02/21] arm: actions: rename sysmap-s900 to sysmap-owl Amit Singh Tomar
2020-02-23 17:15   ` Manivannan Sadhasivam
2020-01-25 12:22 ` [PATCH v3 03/21] clk: actions: Add common clock driver Amit Singh Tomar
2020-02-23 17:25   ` Manivannan Sadhasivam
2020-03-03  8:23     ` Amit Tomer
2020-03-03 10:20     ` Andre Przywara
2020-03-03 10:38       ` Amit Tomer
2020-01-25 12:22 ` [PATCH v3 04/21] arm: add support Actions Semi S700 Amit Singh Tomar
2020-02-23 17:27   ` Manivannan Sadhasivam
2020-01-25 12:22 ` [PATCH v3 05/21] arm: actions: add S700 SoC device tree Amit Singh Tomar
2020-02-23 17:29   ` Manivannan Sadhasivam
2020-01-25 12:22 ` [PATCH v3 06/21] actions:s700: add u-boot specific dts file Amit Singh Tomar
2020-02-23 17:32   ` Manivannan Sadhasivam
2020-01-25 12:22 ` [PATCH v3 07/21] arm: dts: sync dts for Action Semi S900 Amit Singh Tomar
2020-02-23 17:34   ` Manivannan Sadhasivam
2020-01-25 12:22 ` [PATCH v3 08/21] actions: s900: add u-boot specific dts file Amit Singh Tomar
2020-02-23 17:37   ` Manivannan Sadhasivam
2020-01-25 12:22 ` [PATCH v3 09/21] arm: dts: Use consistent name "CLK_ETHERNET" for the Ethernet clock binding Amit Singh Tomar
2020-02-23 17:38   ` Manivannan Sadhasivam
2020-02-24 14:37     ` Andre Przywara
2020-02-24 14:48       ` Manivannan Sadhasivam
2020-03-03  8:28       ` Amit Tomer
2020-01-25 12:22 ` [PATCH v3 10/21] serial: actions: add uart support for s700 Amit Singh Tomar
2020-02-23 17:39   ` Manivannan Sadhasivam
2020-01-25 12:22 ` [PATCH v3 11/21] arm: add Cubieboard7 board support Amit Singh Tomar
2020-02-23 17:41   ` Manivannan Sadhasivam
2020-01-25 12:22 ` [PATCH v3 12/21] actions: add Cubieboard7 README Amit Singh Tomar
2020-02-11 15:54   ` Tom Rini
2020-01-25 12:22 ` [PATCH v3 13/21] net: phy: realtek: Add support for RTL8201F PHY module Amit Singh Tomar
2020-01-25 12:22 ` [PATCH v3 14/21] net: phy: realtek: Introduce PHY_RTL8201F_S700_RMII_TIMINGS to adjust rx/tx timings Amit Singh Tomar
2020-01-25 12:22 ` [PATCH v3 15/21] reset: add driver for generic reset controllers Amit Singh Tomar
2020-02-23 17:45   ` Manivannan Sadhasivam
2020-02-24 14:52   ` Andre Przywara
2020-03-03 10:21   ` Andre Przywara
2020-01-25 12:22 ` [PATCH v3 16/21] arm: dts: s700: add node for reset controller Amit Singh Tomar
2020-01-25 12:22 ` [PATCH v3 17/21] owl: Kconfig: Enable dm reset and generic reset Amit Singh Tomar
2020-01-25 12:23 ` [PATCH v3 18/21] net: designware: s700: Add glue code for S700 mac Amit Singh Tomar
2020-01-25 12:23 ` [PATCH v3 19/21] arm: dts: s700: add node for ethernet controller Amit Singh Tomar
2020-01-25 12:23 ` [PATCH v3 20/21] owl: Kconfig: Enable dm eth for OWL platform Amit Singh Tomar
2020-01-25 12:23 ` [PATCH v3 21/21] configs: Enable mac and phy configs Amit Singh Tomar
2020-02-11 16:05 ` [PATCH v3 00/21] Actions S700 SoC support Manivannan Sadhasivam
2020-02-13 11:09   ` Amit Tomer
2020-02-23 17:51 ` Manivannan Sadhasivam

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=1579954983-11329-1-git-send-email-amittomer25@gmail.com \
    --to=amittomer25@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.