]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
riscv: Update Kendryte device tree for new CLINT driver
authorSean Anderson <seanga2@gmail.com>
Mon, 28 Sep 2020 14:52:28 +0000 (10:52 -0400)
committerAndes <uboot@andestech.com>
Wed, 30 Sep 2020 00:54:46 +0000 (08:54 +0800)
The interrupt controller property is removed from the clint binding because
the clint is not an interrupt-controller. That is, no other devices have an
interrupt which is controlled by the clint.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Bin Meng <bin.meng@windriver.com>
arch/riscv/dts/k210.dtsi

index 2546c7d4e0d5d92391d886dff1a74dccdf254f91..84cff51c3691acd64f20d090758b5b8045b7224d 100644 (file)
@@ -17,6 +17,8 @@
        compatible = "kendryte,k210";
 
        aliases {
+               cpu0 = &cpu0;
+               cpu1 = &cpu1;
                dma0 = &dmac0;
                gpio0 = &gpio0;
                gpio1 = &gpio1_0;
                        read-only;
                };
 
-               clint0: interrupt-controller@2000000 {
+               clint0: clint@2000000 {
                        #interrupt-cells = <1>;
                        compatible = "kendryte,k210-clint", "riscv,clint0";
                        reg = <0x2000000 0xC000>;
-                       interrupt-controller;
                        interrupts-extended = <&cpu0_intc 3>, <&cpu0_intc 7>,
                                              <&cpu1_intc 3>, <&cpu1_intc 7>;
-                       clocks = <&sysclk K210_CLK_CPU>;
+                       clocks = <&sysclk K210_CLK_CLINT>;
                };
 
                plic0: interrupt-controller@C000000 {