]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: Fix Kendryte K210 device tree
authorDamien Le Moal <damien.lemoal@wdc.com>
Wed, 16 Sep 2020 07:59:41 +0000 (16:59 +0900)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Sat, 19 Sep 2020 20:20:14 +0000 (13:20 -0700)
commite26624b895e80a3abdbe41b5b64951cef30d7ddd
treef0cda442e01447d30cd9ad1e16f81588f42d67ca
parent769c87de137ad946a8176db2ec193f3b17f1e448
riscv: Fix Kendryte K210 device tree

The Kendryte K210 SoC CLINT is compatible with Sifive clint v0
(sifive,clint0). Fix the Kendryte K210 device tree clint entry to be
inline with the sifive timer definition documented in
Documentation/devicetree/bindings/timer/sifive,clint.yaml.
The device tree clint entry is renamed similarly to u-boot device tree
definition to improve compatibility with u-boot defined device tree.
To ensure correct initialization, the interrup-cells attribute is added
and the interrupt-extended attribute definition fixed.

This fixes boot failures with Kendryte K210 SoC boards.

Note that the clock referenced is kept as K210_CLK_ACLK, which does not
necessarilly match the clint MTIME increment rate. This however does not
seem to cause any problem for now.

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/boot/dts/kendryte/k210.dtsi