mbox series

[0/5] Add initial Bitmain BM1880 SoC/Board support

Message ID 20190126041041.13173-1-manivannan.sadhasivam@linaro.org
Headers show
Series Add initial Bitmain BM1880 SoC/Board support | expand

Message

Manivannan Sadhasivam Jan. 26, 2019, 4:10 a.m. UTC
Hello,

This patchset adds initial support for Bitmain BM1880 SoC and Sophon
Edge board. BM1880 SoC consists of a Dual Core ARM Cortex A53 Application
processor subsystem, a single core RISC-V subsystem and a Tensor
Processor subsystem. This patchset adds support for only ARM Cortex
A53 Application processor subsystem with UART, which enables the board to
boot into initramfs with 2 CPUs.

Thanks,
Mani

Manivannan Sadhasivam (5):
  dt-bindings: arm: Document Bitmain BM1880 SoC
  arm64: Add ARCH_BITMAIN platform
  arm64: dts: bitmain: Add BM1880 SoC support
  arm64: dts: bitmain: Add Sophon Egde board support
  MAINTAINERS: Add entry for Bitmain SoC platform

 .../devicetree/bindings/arm/bitmain.yaml      |  18 +++
 MAINTAINERS                                   |   7 ++
 arch/arm64/Kconfig.platforms                  |   5 +
 arch/arm64/boot/dts/Makefile                  |   1 +
 arch/arm64/boot/dts/bitmain/Makefile          |   3 +
 .../boot/dts/bitmain/bm1880-sophon-edge.dts   |  50 ++++++++
 arch/arm64/boot/dts/bitmain/bm1880.dtsi       | 119 ++++++++++++++++++
 7 files changed, 203 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/arm/bitmain.yaml
 create mode 100644 arch/arm64/boot/dts/bitmain/Makefile
 create mode 100644 arch/arm64/boot/dts/bitmain/bm1880-sophon-edge.dts
 create mode 100644 arch/arm64/boot/dts/bitmain/bm1880.dtsi

-- 
2.17.1

Comments

Andrew Lunn Jan. 26, 2019, 3:03 p.m. UTC | #1
On Sat, Jan 26, 2019 at 09:40:36AM +0530, Manivannan Sadhasivam wrote:
> Hello,

> 

> This patchset adds initial support for Bitmain BM1880 SoC and Sophon

> Edge board. BM1880 SoC consists of a Dual Core ARM Cortex A53 Application

> processor subsystem, a single core RISC-V subsystem and a Tensor

> Processor subsystem.


Hi Manivannan

Interesting combination of CPUs. 

> This patchset adds support for only ARM Cortex A53 Application

> processor subsystem with UART, which enables the board to boot into

> initramfs with 2 CPUs.


Looking forward, what sharing do you expect at the device tree level?

Looking at 

https://sophon-file.bitmain.com.cn/sophon-prod/drive/18/11/06/19/BM1880%20product%20brief%20V0.04_Chinese%20versionV0.06.pdf

it appears all the devices can be shared between the CPUs. So do you
plan to have a shared .dtsi file somewhere? 

Is ARCH_BITMAIN going to be both ARM64 and RISC-V?

   Thanks
	Andrew
Manivannan Sadhasivam Jan. 26, 2019, 3:17 p.m. UTC | #2
Hi Andrew,

On Sat, Jan 26, 2019 at 04:03:20PM +0100, Andrew Lunn wrote:
> On Sat, Jan 26, 2019 at 09:40:36AM +0530, Manivannan Sadhasivam wrote:

> > Hello,

> > 

> > This patchset adds initial support for Bitmain BM1880 SoC and Sophon

> > Edge board. BM1880 SoC consists of a Dual Core ARM Cortex A53 Application

> > processor subsystem, a single core RISC-V subsystem and a Tensor

> > Processor subsystem.

> 

> Hi Manivannan

> 

> Interesting combination of CPUs. 

> 

> > This patchset adds support for only ARM Cortex A53 Application

> > processor subsystem with UART, which enables the board to boot into

> > initramfs with 2 CPUs.

> 

> Looking forward, what sharing do you expect at the device tree level?

> 

> Looking at 

> 

> https://sophon-file.bitmain.com.cn/sophon-prod/drive/18/11/06/19/BM1880%20product%20brief%20V0.04_Chinese%20versionV0.06.pdf

> 

> it appears all the devices can be shared between the CPUs. So do you

> plan to have a shared .dtsi file somewhere? 

> 

> Is ARCH_BITMAIN going to be both ARM64 and RISC-V?

> 


We don't have any plan to add support for RISC-V subsystem. Moreover,
from the SoC product brief it look like the RISC-V core is a MCU grade
core, so I doubt whether we can run linux on it! It might be a candidate
for RTOS.

For now, ARCH_BITMAIN is going to have only ARM64 support.

Thanks,
Mani

>    Thanks

> 	Andrew
Rob Herring Jan. 26, 2019, 7:47 p.m. UTC | #3
On Fri, Jan 25, 2019 at 10:11 PM Manivannan Sadhasivam
<manivannan.sadhasivam@linaro.org> wrote:
>

> Document Bitmain BM1880 SoC from Bitmain Technologies Ltd along with the

> Sophon Edge board.

>

> Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>

> ---

>  .../devicetree/bindings/arm/bitmain.yaml       | 18 ++++++++++++++++++

>  1 file changed, 18 insertions(+)

>  create mode 100644 Documentation/devicetree/bindings/arm/bitmain.yaml


Reviewed-by: Rob Herring <robh@kernel.org>
Arnd Bergmann Jan. 27, 2019, 9:24 a.m. UTC | #4
On Sat, Jan 26, 2019 at 5:11 AM Manivannan Sadhasivam
<manivannan.sadhasivam@linaro.org> wrote:
>

> Hello,

>

> This patchset adds initial support for Bitmain BM1880 SoC and Sophon

> Edge board. BM1880 SoC consists of a Dual Core ARM Cortex A53 Application

> processor subsystem, a single core RISC-V subsystem and a Tensor

> Processor subsystem. This patchset adds support for only ARM Cortex

> A53 Application processor subsystem with UART, which enables the board to

> boot into initramfs with 2 CPUs.


Nice work! All patches in this series

Acked-by: Arnd Bergmann <arnd@arndb.de>
Manivannan Sadhasivam Feb. 1, 2019, 3:50 a.m. UTC | #5
Hi Arnd,

On Sun, Jan 27, 2019 at 10:24:09AM +0100, Arnd Bergmann wrote:
> On Sat, Jan 26, 2019 at 5:11 AM Manivannan Sadhasivam

> <manivannan.sadhasivam@linaro.org> wrote:

> >

> > Hello,

> >

> > This patchset adds initial support for Bitmain BM1880 SoC and Sophon

> > Edge board. BM1880 SoC consists of a Dual Core ARM Cortex A53 Application

> > processor subsystem, a single core RISC-V subsystem and a Tensor

> > Processor subsystem. This patchset adds support for only ARM Cortex

> > A53 Application processor subsystem with UART, which enables the board to

> > boot into initramfs with 2 CPUs.

> 

> Nice work! All patches in this series

> 

> Acked-by: Arnd Bergmann <arnd@arndb.de>


Thanks. What is the merge strategy for this patchset? Shall I send a
Pull Request to arm@kernel.org with topic branches?

Regards,
Mani
Arnd Bergmann Feb. 1, 2019, 8:41 a.m. UTC | #6
On Fri, Feb 1, 2019, 04:50 Manivannan Sadhasivam
<manivannan.sadhasivam@linaro.org wrote:
> On Sun, Jan 27, 2019 at 10:24:09AM +0100, Arnd Bergmann wrote:

> > On Sat, Jan 26, 2019 at 5:11 AM Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> wrote:

> > >

> > > This patchset adds initial support for Bitmain BM1880 SoC and Sophon

> > > Edge board. BM1880 SoC consists of a Dual Core ARM Cortex A53 Application

> > > processor subsystem, a single core RISC-V subsystem and a Tensor

> > > Processor subsystem. This patchset adds support for only ARM Cortex

> > > A53 Application processor subsystem with UART, which enables the board to

> > > boot into initramfs with 2 CPUs.

> >

> > Nice work! All patches in this series

> >

> > Acked-by: Arnd Bergmann <arnd@arndb.de>

>

> Thanks. What is the merge strategy for this patchset? Shall I send a

> Pull Request to arm@kernel.org with topic branches?


I think we should take new platforms as a single topic branch separate
from the normal branches, so please send a single pull request for this
one.

Also, if you have drivers that are closely tied to this platform, that
branch include those as well, provided that you have an Ack from the
respective subsystem maintainers.

     Arnd