[PATCH v6 19/19] riscv: Add Sipeed Maix support

Rick Chen
2020-03-11T02:05:30Z

Hi Sean

> On 3/10/20 5:04 AM, Rick Chen wrote:
> > Hi Sean
> >
> >> The Sipeed Maix series is a collection of boards built around the RISC-V
> >> Kendryte K210 processor. This processor contains several peripherals to
> >> accelerate neural network processing and other "ai" tasks. This includes a
> >> "KPU" neural network processor, an audio processor supporting beamforming
> >> reception, and a digital video port supporting capture and output at VGA
> >> resolution. Other peripherals include 8M of sram (accessible with and
> >> without caching); remappable pins, including 40 GPIOs; AES, FFT, and SHA256
> >> accelerators; a DMA controller; and I2C, I2S, and SPI controllers. Maix
> >> peripherals vary, but include spi flash; on-board usb-serial bridges; ports
> >> for cameras, displays, and sd cards; and ESP32 chips. Currently, only the
> >> Sipeed Maix Bit V2.0 (bitm) is supported, but the boards are fairly
> >> similar.
> >>
> >> Documentation for Maix boards is located at
> >> <http://dl.sipeed.com/MAIX/HDK/>. Documentation for the Kendryte K210 is
> >> located at <https://kendryte.com/downloads/>. However, hardware details are
> >> rather lacking, so most technical reference has been taken from the
> >> standalone sdk located at
> >> <https://github.com/kendryte/kendryte-standalone-sdk>.
> >>
> >> Signed-off-by: Sean Anderson <seanga2@gmail.com>
> >> ---
> >
> > This patch applying fail
> >
> > Applying: riscv: Add Sipeed Maix support
> > error: patch failed: doc/board/index.rst:16
> > error: doc/board/index.rst: patch does not apply
> > Patch failed at 0001 riscv: Add Sipeed Maix support
> > The copy of the patch that failed is found in: .git/rebase-apply/patch
> > When you have resolved this problem, run "git am --continue".
> > If you prefer to skip this patch, run "git am --skip" instead.
> > To restore the original branch and stop patching, run "git am --abort".
> >
> > I have replied to you the same result in v5
> > [v5,33/33] riscv: Add Sipeed Maix support
> > https://patchwork.ozlabs.org/patch/1246869/#2376311
>
> As above, I just rebased against u-boot/master. I'm not sure what's
> causing the problem here.
>
> >
> > By the way,
> > you can not mix them (arch, board, configs, doc)together in a patch.
> > arch/riscv/Kconfig
> > board/sipeed/maix/ ...
> > configs/sipeed_maix_bitm_defconfig
> > doc/board/index.rst
>
> Is there a preferred order for adding these? I will split them for v7.

Maybe you can group them as two patchs

patch 19/20
arch/riscv/Kconfig
board/sipeed/maix/Kconfig
board/sipeed/maix/MAINTAINERS
board/sipeed/maix/Makefile
board/sipeed/maix/maix.c
configs/sipeed_maix_bitm_defconfig
include/configs/sipeed-maix.h

patch 19/20
doc/board/index.rst
doc/board/sipeed/index.rst
doc/board/sipeed/maix.rst

Thanks,
Rick

>
> > Thanks,
> > Rick
>