]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
timer: sifive_clint: Support the official clint DT bindings
authorBin Meng <bmeng.cn@gmail.com>
Sat, 27 Mar 2021 11:57:35 +0000 (19:57 +0800)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Thu, 8 Apr 2021 07:37:29 +0000 (15:37 +0800)
Linux kernel commit a2770b57d083 ("dt-bindings: timer: Add CLINT bindings")
adds the official DT bindings for CLINT, which uses "sifive,clint0"
as the compatible string. "riscv,clint0" is now legacy and has to
be kept for backward compatibility of legacy systems.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
drivers/timer/sifive_clint_timer.c

index de7b4b95c9e9a89a53d59d52186d2d8d70be2f0a..939b99d937d166127ff12087cb050563f3619605 100644 (file)
@@ -54,6 +54,7 @@ static int sifive_clint_probe(struct udevice *dev)
 
 static const struct udevice_id sifive_clint_ids[] = {
        { .compatible = "riscv,clint0" },
+       { .compatible = "sifive,clint0" },
        { }
 };