Skip to contentSkip to conversation

riscv: dts: thead: convert isa detection to new properties

PATCH Applied Jisheng Zhang 3 participants 4 messages Oct 22, 2023 – Oct 23, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 riscv: dts: thead: convert isa detection to new properties

From: Conor Dooley <[email protected]>

Convert the th1520 devicetrees to use the new properties "riscv,isa-base" & "riscv,isa-extensions".
For compatibility with other projects, "riscv,isa" remains.

---

Hi Arnd,

This is the only one thead patch for v6.7, could you please apply it directly?

Thanks in advance

 arch/riscv/boot/dts/thead/th1520.dtsi | 12 ++++++++++++
 1 file changed, 12 insertions(+)
arch/riscv/boot/dts/thead/th1520.dtsi +12 -0
index ce708183b6f6..723f65487246 100644
@@ -20,6 +20,9 @@ c910_0: cpu@0 {
 			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 @@ c910_1: cpu@1 {
 			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 @@ c910_2: cpu@2 {
 			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 @@ c910_3: cpu@3 {
 			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>;
Signature · 1 line
2.40.0
#1 lore raw
Quoted 9 lines · Jisheng Zhang

From: Conor Dooley <[email protected]>

Convert the th1520 devicetrees to use the new properties "riscv,isa-base" & "riscv,isa-extensions".
For compatibility with other projects, "riscv,isa" remains.

Quoted 6 lines

---

Hi Arnd,

This is the only one thead patch for v6.7, could you please apply it directly?

FYI, this is missing your signoff, since you are resending my patch.

Cheers,
Conor.

#2 lore raw
Quoted 12 lines · Conor Dooley
Quoted 11 lines · Jisheng Zhang

From: Conor Dooley <[email protected]>

Convert the th1520 devicetrees to use the new properties "riscv,isa-base" & "riscv,isa-extensions".
For compatibility with other projects, "riscv,isa" remains.

---

Quoted 7 lines
Quoted 4 lines

Hi Arnd,

This is the only one thead patch for v6.7, could you please apply it directly?

FYI, this is missing your signoff, since you are resending my patch.

Hi Conor,

Today I noticed that Arnd has tagged for-next for 6.7, so I guess I missed the 6.7 PR, sorry. And I also noticed that Arnd has queued the thead dma-noncoherent patch for 6.7(which is expected in rc7 :) because I didn't explictly mark the target. I will take care this kind of PR/directly_merge target in future.

I expected a large dt and driver changes in the comming development window, for example, usb/eth/emmc and so on, so I'll queue your patch into my for-next tree once linux6.7-rc1 is released.

Thanks

#3 lore raw
In reply to Jisheng Zhang
This patch was applied to soc/soc.git (for-next) by Arnd Bergmann <[email protected]>:

Hello:

This patch was applied to soc/soc.git (for-next)
by Arnd Bergmann <[email protected]>:

Quoted 11 lines · On Sun, 22 Oct 2023 23:41:35 +0800 you wrote:

From: Conor Dooley <[email protected]>

Convert the th1520 devicetrees to use the new properties "riscv,isa-base" & "riscv,isa-extensions".
For compatibility with other projects, "riscv,isa" remains.

[...]

Here is the summary with links:
- riscv: dts: thead: convert isa detection to new properties

    https://git.kernel.org/soc/soc/c/0804f3bec9e9

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html