From: Sean Anderson <seanga2@gmail.com>
To: u-boot@lists.denx.de
Subject: [PATCH v3 00/12] riscv: Add Sipeed Maix support
Date: Sun, 2 Feb 2020 14:56:54 -0500 [thread overview]
Message-ID: <fa3c1376-1e39-5bee-8a37-31cf004c5b44@gmail.com> (raw)
This patch series adds support for Sipeed Maix boards and the
Kendryte K210 CPU. Currently, only the Maix Bit V2.0 is supported,
however other models are similar. This series depends on
<https://patchwork.ozlabs.org/patch/1215327/>
(clk: Include missing headers for linux/clk-provider.h).
In addition, there are optional dependencies on
<https://patchwork.ozlabs.org/project/uboot/list/?series=156377>
<https://patchwork.ozlabs.org/project/uboot/list/?series=156381> and
<https://patchwork.ozlabs.org/patch/1232422/>
(wdt: Add DM support for Designware WDT)
(riscv: Try to get cpu frequency from device tree)
(serial: Set baudrate on boot)
To flash u-boot to a maix bit, run
kflash -tp /dev/<your tty here> -B bit_mic u-boot-dtb.bin
Boot output should look like the following:
U-Boot 2020.01-00455-gad03fd83e1 (Jan 15 2020 - 17:10:24 -0500)
DRAM: 8 MiB
MMC: spi at 52000000:slot at 0: 0
In: serial at 38000000
Out: serial at 38000000
Err: serial at 38000000
=>
Note that spi does not work! I am trying to figure out what the problem is, but
for the moment the only way to boot something is to transfer it over serial.
Changes for v3:
Remove patch to set RV64I as default.
Remove patch for a separate sysctl driver.
Split off cpu frequency patch into its own series.
Reorder support/devicetree patches to come last.
Add patch for reset driver.
Add simple-pm-bus for busses with their own clocks.
Add additional documentation.
Reword mcounteren patch to refer to the RISC-V priv spec 1.9.1.
Many devicetree changes
Switch to "make savedefconfig" to generate the config
Changes for v2:
Many bugfixes for the device tree.
Modify the config to build without errors.
Add support for keeping internal PLL frequencies in-range.
Fix several rebase-induced artifacts.
Sean Anderson (12):
clk: Always use the supplied struct clk
clk: Check that ops of composite clock components exist before calling
clk: Unconditionally recursively en-/dis-able clocks
reset: Add generic reset driver
dm: Add support for simple-pm-bus
riscv: Add headers for asm/global_data.h
riscv: Add option to support RISC-V privileged spec 1.9.1
riscv: Allow use of reset drivers
riscv: Add K210 pll support
riscv: Add K210 clock support
riscv: Add device tree for K210
riscv: Add initial Sipeed Maix support
arch/riscv/Kconfig | 14 +
arch/riscv/cpu/cpu.c | 6 +
arch/riscv/dts/Makefile | 1 +
arch/riscv/dts/k210-maix-bit.dts | 42 ++
arch/riscv/dts/k210.dtsi | 496 ++++++++++++++
arch/riscv/include/asm/csr.h | 6 +
arch/riscv/include/asm/global_data.h | 2 +
arch/riscv/lib/reset.c | 2 +
board/sipeed/maix/Kconfig | 51 ++
board/sipeed/maix/MAINTAINERS | 10 +
board/sipeed/maix/Makefile | 5 +
board/sipeed/maix/maix.c | 9 +
configs/sipeed_maix_bitm_defconfig | 10 +
doc/board/index.rst | 1 +
doc/board/kendryte/index.rst | 9 +
doc/board/kendryte/k210.rst | 46 ++
.../bus/simple-pm-bus.txt | 44 ++
.../reset/syscon-reset.txt | 36 ++
doc/imx/clk/ccf.txt | 63 +-
drivers/clk/Kconfig | 1 +
drivers/clk/Makefile | 1 +
drivers/clk/clk-composite.c | 65 +-
drivers/clk/clk-divider.c | 6 +-
drivers/clk/clk-fixed-factor.c | 3 +-
drivers/clk/clk-gate.c | 6 +-
drivers/clk/clk-mux.c | 12 +-
drivers/clk/clk-uclass.c | 58 +-
drivers/clk/imx/clk-gate2.c | 4 +-
drivers/clk/kendryte/Kconfig | 12 +
drivers/clk/kendryte/Makefile | 1 +
drivers/clk/kendryte/clk.c | 390 +++++++++++
drivers/clk/kendryte/clk.h | 27 +
drivers/clk/kendryte/pll.c | 607 ++++++++++++++++++
drivers/clk/kendryte/pll.h | 38 ++
drivers/core/simple-bus.c | 57 +-
drivers/reset/Kconfig | 6 +-
drivers/reset/Makefile | 1 +
drivers/reset/reset-syscon.c | 79 +++
include/configs/sipeed-maix.h | 19 +
include/dt-bindings/clock/k210-sysctl.h | 53 ++
include/dt-bindings/mfd/k210-sysctl.h | 38 ++
include/dt-bindings/reset/k210-sysctl.h | 38 ++
42 files changed, 2266 insertions(+), 109 deletions(-)
create mode 100644 arch/riscv/dts/k210-maix-bit.dts
create mode 100644 arch/riscv/dts/k210.dtsi
create mode 100644 board/sipeed/maix/Kconfig
create mode 100644 board/sipeed/maix/MAINTAINERS
create mode 100644 board/sipeed/maix/Makefile
create mode 100644 board/sipeed/maix/maix.c
create mode 100644 configs/sipeed_maix_bitm_defconfig
create mode 100644 doc/board/kendryte/index.rst
create mode 100644 doc/board/kendryte/k210.rst
create mode 100644 doc/device-tree-bindings/bus/simple-pm-bus.txt
create mode 100644 doc/device-tree-bindings/reset/syscon-reset.txt
create mode 100644 drivers/clk/kendryte/Kconfig
create mode 100644 drivers/clk/kendryte/Makefile
create mode 100644 drivers/clk/kendryte/clk.c
create mode 100644 drivers/clk/kendryte/clk.h
create mode 100644 drivers/clk/kendryte/pll.c
create mode 100644 drivers/clk/kendryte/pll.h
create mode 100644 drivers/reset/reset-syscon.c
create mode 100644 include/configs/sipeed-maix.h
create mode 100644 include/dt-bindings/clock/k210-sysctl.h
create mode 100644 include/dt-bindings/mfd/k210-sysctl.h
create mode 100644 include/dt-bindings/reset/k210-sysctl.h
--
2.25.0
next reply other threads:[~2020-02-02 19:56 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-02 19:56 Sean Anderson [this message]
2020-02-02 19:58 ` [PATCH v3 01/12] clk: Always use the supplied struct clk Sean Anderson
2020-02-06 21:21 ` Lukasz Majewski
[not found] ` <752D002CFF5D0F4FA35C0100F1D73F3FA46D30F5@ATCPCS16.andestech.com>
2020-02-12 1:23 ` Rick Chen
2020-02-02 19:58 ` [PATCH v3 02/12] clk: Check that ops of composite clock components, exist before calling Sean Anderson
2020-02-06 21:41 ` Lukasz Majewski
2020-02-02 19:59 ` [PATCH v3 03/12] clk: Unconditionally recursively en-/dis-able clocks Sean Anderson
2020-02-06 21:45 ` Lukasz Majewski
2020-02-02 20:01 ` [PATCH v3 04/12] reset: Add generic reset driver Sean Anderson
2020-02-03 0:04 ` Simon Glass
2020-02-03 23:14 ` Sean Anderson
2020-02-04 11:06 ` Bin Meng
2020-02-04 14:14 ` Sean Anderson
2020-02-02 20:02 ` [PATCH v3 05/12] dm: Add support for simple-pm-bus Sean Anderson
2020-02-03 0:04 ` Simon Glass
2020-02-03 23:15 ` Sean Anderson
2020-02-05 0:16 ` Simon Glass
2020-02-04 11:13 ` Bin Meng
2020-02-02 20:04 ` [PATCH v3 06/12] riscv: Add headers for asm/global_data.h Sean Anderson
2020-02-04 11:17 ` Bin Meng
2020-02-02 20:05 ` [PATCH v3 07/12] riscv: Add option to support RISC-V privileged spec 1.9.1 Sean Anderson
2020-02-04 11:21 ` Bin Meng
2020-02-04 14:19 ` Sean Anderson
2020-02-04 14:38 ` Bin Meng
2020-02-04 14:48 ` Sean Anderson
2020-02-04 16:04 ` Bin Meng
2020-02-04 16:07 ` Sean Anderson
2020-02-02 20:06 ` [PATCH v3 08/12] riscv: Allow use of reset drivers Sean Anderson
2020-02-04 11:22 ` Bin Meng
2020-02-02 20:07 ` [PATCH v3 09/12] riscv: Add K210 pll support Sean Anderson
2020-02-02 20:07 ` [PATCH v3 10/12] riscv: Add K210 clock support Sean Anderson
2020-02-06 21:51 ` Lukasz Majewski
2020-02-02 20:10 ` [PATCH v3 11/12] riscv: Add device tree for K210 Sean Anderson
2020-02-04 11:32 ` Bin Meng
2020-02-04 14:23 ` Sean Anderson
2020-02-04 14:40 ` Bin Meng
2020-02-02 20:10 ` [PATCH v3 12/12] riscv: Add initial Sipeed Maix support Sean Anderson
2020-02-04 11:38 ` Bin Meng
2020-02-04 14:26 ` Sean Anderson
2020-02-04 14:42 ` Bin Meng
2020-02-04 14:49 ` Sean Anderson
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=fa3c1376-1e39-5bee-8a37-31cf004c5b44@gmail.com \
--to=seanga2@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox