riscv: Fix Kendryte K210 device tree
authorDamien Le Moal <damien.lemoal@wdc.com>
Wed, 16 Sep 2020 07:59:41 +0000 (16:59 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Oct 2020 15:36:25 +0000 (17:36 +0200)
commit9a04354bdb3a57cd70734dcdc849ab90e2a1fb47
tree621c0e7dfdae078e7a9bd7c06dce7a6f54b18825
parentb05a20baaa2f2f24d5d10d6684bee7ad7124cc76
riscv: Fix Kendryte K210 device tree

[ Upstream commit f025d9d9934b84cd03b7796072d10686029c408e ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/riscv/boot/dts/kendryte/k210.dtsi