Skip to content

Commit

Permalink
riscv: Update Canaan Kendryte K210 device tree
Browse files Browse the repository at this point in the history
Update the Canaan Kendryte K210 base device tree k210.dtsi to define
all supported peripherals of the SoC, their clocks and reset lines.
The device tree file k210.dts is renamed to k210_generic.dts and
becomes the default value selection of the configuration option
SOC_CANAAN_K210_DTB_BUILTIN_SOURCE. No device beside the serial console
is defined by this device tree. This makes this generic device tree
suitable for use with a builtin initramfs with all known K210 based
boards.

These changes result in the K210_CLK_ACLK clock ID to be unused and
removed from the dt-bindings k210-clk.h header file.

Most updates to the k210.dtsi file come from Sean Anderson's work on
U-Boot support for the K210.

Cc: Rob Herring <robh@kernel.org>
Cc: devicetree@vger.kernel.org
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
  • Loading branch information
Damien Le Moal authored and Palmer Dabbelt committed Feb 23, 2021
1 parent 13dcfae commit 67d9672
Show file tree
Hide file tree
Showing 5 changed files with 414 additions and 53 deletions.
2 changes: 1 addition & 1 deletion arch/riscv/Kconfig.socs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ config SOC_CANAAN_K210_DTB_SOURCE
string "Source file for the Canaan Kendryte K210 builtin DTB"
depends on SOC_CANAAN
depends on SOC_CANAAN_K210_DTB_BUILTIN
default "k210"
default "k210_generic"
help
Base name (without suffix, relative to arch/riscv/boot/dts/canaan)
for the DTS file that will be used to produce the DTB linked into the
Expand Down
23 changes: 0 additions & 23 deletions arch/riscv/boot/dts/canaan/k210.dts

This file was deleted.

Loading

0 comments on commit 67d9672

Please sign in to comment.