riscv: dts: thead: convert isa detection to new properties
authorConor Dooley <conor.dooley@microchip.com>
Sun, 22 Oct 2023 15:41:35 +0000 (23:41 +0800)
committerArnd Bergmann <arnd@arndb.de>
Mon, 23 Oct 2023 19:11:06 +0000 (21:11 +0200)
Convert the th1520 devicetrees to use the new properties
"riscv,isa-base" & "riscv,isa-extensions".
For compatibility with other projects, "riscv,isa" remains.

Reviewed-by: Jisheng Zhang <jszhang@kernel.org>
Acked-by: Guo Ren <guoren@kernel.org>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20231022154135.3746-1-jszhang@kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/riscv/boot/dts/thead/th1520.dtsi

index ce708183b6f655c74e6cd55515b6d68d72526e29..723f654872460ca444d29d42d8a87472d4d115a0 100644 (file)
@@ -20,6 +20,9 @@
                        compatible = "thead,c910", "riscv";
                        device_type = "cpu";
                        riscv,isa = "rv64imafdc";
+                       riscv,isa-base = "rv64i";
+                       riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zicntr", "zicsr",
+                                              "zifencei", "zihpm";
                        reg = <0>;
                        i-cache-block-size = <64>;
                        i-cache-size = <65536>;
@@ -41,6 +44,9 @@
                        compatible = "thead,c910", "riscv";
                        device_type = "cpu";
                        riscv,isa = "rv64imafdc";
+                       riscv,isa-base = "rv64i";
+                       riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zicntr", "zicsr",
+                                              "zifencei", "zihpm";
                        reg = <1>;
                        i-cache-block-size = <64>;
                        i-cache-size = <65536>;
@@ -62,6 +68,9 @@
                        compatible = "thead,c910", "riscv";
                        device_type = "cpu";
                        riscv,isa = "rv64imafdc";
+                       riscv,isa-base = "rv64i";
+                       riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zicntr", "zicsr",
+                                              "zifencei", "zihpm";
                        reg = <2>;
                        i-cache-block-size = <64>;
                        i-cache-size = <65536>;
@@ -83,6 +92,9 @@
                        compatible = "thead,c910", "riscv";
                        device_type = "cpu";
                        riscv,isa = "rv64imafdc";
+                       riscv,isa-base = "rv64i";
+                       riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zicntr", "zicsr",
+                                              "zifencei", "zihpm";
                        reg = <3>;
                        i-cache-block-size = <64>;
                        i-cache-size = <65536>;