]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
riscv: Update SiFive device tree for new CLINT driver
authorSean Anderson <seanga2@gmail.com>
Mon, 28 Sep 2020 14:52:29 +0000 (10:52 -0400)
committerAndes <uboot@andestech.com>
Wed, 30 Sep 2020 00:54:46 +0000 (08:54 +0800)
We currently do this in a u-boot specific dts, but hopefully we can get
these bindings added in Linux in the future.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Pragnesh Patel <pragnesh.patel@openfive.com>
Reviewed-by: Bin Meng <bin.meng@windriver.com>
arch/riscv/dts/fu540-c000-u-boot.dtsi
arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi

index 5302677ee4bb65956478e2123d98f3a05660cc67..a06e1b11c639deea364fd580b85d0e5ebaafcbbb 100644 (file)
                        reg = <0x0 0x10070000 0x0 0x1000>;
                        fuse-count = <0x1000>;
                };
-               clint@2000000 {
+               clint: clint@2000000 {
                        compatible = "riscv,clint0";
-                       interrupts-extended = <&cpu0_intc 3 &cpu0_intc 7 &cpu1_intc 3 &cpu1_intc 7 &cpu2_intc 3 &cpu2_intc 7 &cpu3_intc 3 &cpu3_intc 7 &cpu4_intc 3 &cpu4_intc 7>;
+                       interrupts-extended = <&cpu0_intc 3 &cpu0_intc 7
+                                              &cpu1_intc 3 &cpu1_intc 7
+                                              &cpu2_intc 3 &cpu2_intc 7
+                                              &cpu3_intc 3 &cpu3_intc 7
+                                              &cpu4_intc 3 &cpu4_intc 7>;
                        reg = <0x0 0x2000000 0x0 0xc0000>;
                        u-boot,dm-spl;
                };
index 5d0c928b2964c70eee504b772f49ee0e09cb9d3d..1996149c95a8fb69d5b4194872d8d1b753ed65c4 100644 (file)
 
 };
 
+&clint {
+       clocks = <&rtcclk>;
+};
+
 &qspi0 {
        u-boot,dm-spl;