Skip to contentSkip to conversation

Initial device tree support for StarFive JH8100 SoC

PATCH Superseded Sia Jee Heng 4 participants 23 messages Nov 29, 2023 – Dec 1, 2023

Subsystems (7)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

v2 cover Initial device tree support for StarFive JH8100 SoC

StarFive JH8100 SoC consists of 4 RISC-V performance Cores (Dubhe-90) and 2 RISC-V energy efficient cores (Dubhe-80). It also features various interfaces such as DDR4, Gbit-Ether, CAN, USB 3.2, SD/MMC, etc., making it ideal for high-performance computing scenarios.

This patch series introduces initial SoC DTSI support for the StarFive JH8100 SoC. The relevant dt-binding documentation has been updated accordingly. Below is the list of IP blocks added in the initial SoC DTSI, which can be used for booting via initramfs on FPGA:

- StarFive Dubhe-80 CPU
- StarFive Dubhe-90 CPU
- PLIC
- CLINT
- UART

The primary goal is to include foundational patches so that additional drivers can be built on top of this framework.

Changes since v1:
- Dropped patch 5.
- Moved timebase-frequency from .dts to .dtsi.
- Moved soc node from .dts to .dtsi.
- Revised the title for the dt-binding document by removing Xilinx wording.
- Added a full stop to the end of the commit messages.
- Removed extra blank lines.
- Used hyphen for a node name.
- Added more recipients to the mailing list.

Sia Jee Heng (6):
dt-bindings: riscv: Add StarFive Dubhe compatibles
dt-bindings: riscv: Add StarFive JH8100 SoC
dt-bindings: timer: Add StarFive JH8100 clint
dt-bindings: interrupt-controller: Add StarFive JH8100 plic
dt-bindings: serial: cdns: Add new compatible string for StarFive

    JH8100 UART

riscv: dts: starfive: Add initial StarFive JH8100 device tree

 .../sifive,plic-1.0.0.yaml                    |   1 +
 .../devicetree/bindings/riscv/cpus.yaml       |   2 +
 .../devicetree/bindings/riscv/starfive.yaml   |   5 +-
 .../devicetree/bindings/serial/cdns,uart.yaml |   4 +
 .../bindings/timer/sifive,clint.yaml          |   1 +
 arch/riscv/boot/dts/starfive/Makefile         |   1 +
 arch/riscv/boot/dts/starfive/jh8100-evb.dts   |  28 ++
 arch/riscv/boot/dts/starfive/jh8100.dtsi      | 378 ++++++++++++++++++
 8 files changed, 419 insertions(+), 1 deletion(-)
 create mode 100644 arch/riscv/boot/dts/starfive/jh8100-evb.dts
 create mode 100644 arch/riscv/boot/dts/starfive/jh8100.dtsi

base-commit: 18d46e76d7c2eedd8577fae67e3f1d4db25018b0

Signature · 1 line
2.34.1
#1 lore raw

PATCH v2 1/6 dt-bindings: riscv: Add StarFive Dubhe compatibles

Add new compatible strings for Dubhe-80 and Dubhe-90. These are RISC-V cpu core from StarFive Technology and are used in StarFive JH8100 SoC.

---
 Documentation/devicetree/bindings/riscv/cpus.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/riscv/cpus.yaml +2 -0
index f392e367d673..493972b29a22 100644
@@ -48,6 +48,8 @@ properties:
               - thead,c906
               - thead,c910
               - thead,c920
+              - starfive,dubhe-80
+              - starfive,dubhe-90
           - const: riscv
       - items:
           - enum:
Signature · 1 line
2.34.1
maintainer
#2 lore raw

Re: [PATCH v2 1/6] dt-bindings: riscv: Add StarFive Dubhe compatibles

Quoted 15 lines · Sia Jee Heng

Add new compatible strings for Dubhe-80 and Dubhe-90. These are RISC-V cpu core from StarFive Technology and are used in StarFive JH8100 SoC.

---
 Documentation/devicetree/bindings/riscv/cpus.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/riscv/cpus.yaml +0 -0
index f392e367d673..493972b29a22 100644

Documentation/devicetree/bindings/riscv/cpus.yaml properties: · line 52

Quoted 5 lines
Documentation/devicetree/bindings/riscv/cpus.yaml +2 -0
@@ -48,6 +48,8 @@ properties:
               - thead,c906
               - thead,c910
               - thead,c920
+              - starfive,dubhe-80
+              - starfive,dubhe-90

s goes before t.

Cheers,
Conor.

Quoted 6 lines
Documentation/devicetree/bindings/riscv/cpus.yaml +0 -0
           - const: riscv
       - items:
           - enum:
Signature · 1 line
2.34.1
#3 lore raw

RE: [PATCH v2 1/6] dt-bindings: riscv: Add StarFive Dubhe compatibles

Quoted 24 lines

-----Original Message-----
From: Conor Dooley <[email protected]>
Sent: Wednesday, November 29, 2023 10:46 PM
To: JeeHeng Sia <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Michael Zhu <[email protected]>; [email protected]; [email protected]; [email protected]; linux- [email protected]; Leyfoon Tan <[email protected]>
Subject: Re: [PATCH v2 1/6] dt-bindings: riscv: Add StarFive Dubhe compatibles

Quoted 10 lines · Sia Jee Heng

Add new compatible strings for Dubhe-80 and Dubhe-90. These are RISC-V cpu core from StarFive Technology and are used in StarFive JH8100 SoC.

---
 Documentation/devicetree/bindings/riscv/cpus.yaml | 2 ++
 1 file changed, 2 insertions(+)
Quoted 12 lines

Documentation/devicetree/bindings/riscv/cpus.yaml properties: · line 52

Quoted 10 lines
Documentation/devicetree/bindings/riscv/cpus.yaml +2 -0
index f392e367d673..493972b29a22 100644
@@ -48,6 +48,8 @@ properties:
               - thead,c906
               - thead,c910
               - thead,c920
+              - starfive,dubhe-80
+              - starfive,dubhe-90

s goes before t.

Noted. Will fix it.

Quoted 10 lines

Cheers,
Conor.

Quoted 6 lines
Documentation/devicetree/bindings/riscv/cpus.yaml +0 -1
           - const: riscv
       - items:
           - enum:
--

2.34.1

maintainer Acked-by
#4 lore raw

Re: [PATCH v2 1/6] dt-bindings: riscv: Add StarFive Dubhe compatibles

Quoted 36 lines · JeeHeng Sia
Quoted 24 lines

-----Original Message-----
From: Conor Dooley <[email protected]>
Sent: Wednesday, November 29, 2023 10:46 PM
To: JeeHeng Sia <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Michael Zhu <[email protected]>; [email protected]; [email protected]; [email protected]; linux- [email protected]; Leyfoon Tan <[email protected]>
Subject: Re: [PATCH v2 1/6] dt-bindings: riscv: Add StarFive Dubhe compatibles

Quoted 10 lines · Sia Jee Heng

Add new compatible strings for Dubhe-80 and Dubhe-90. These are RISC-V cpu core from StarFive Technology and are used in StarFive JH8100 SoC.

---
 Documentation/devicetree/bindings/riscv/cpus.yaml | 2 ++
 1 file changed, 2 insertions(+)
Quoted 12 lines

Documentation/devicetree/bindings/riscv/cpus.yaml properties: · line 52

Quoted 10 lines
Documentation/devicetree/bindings/riscv/cpus.yaml +2 -0
index f392e367d673..493972b29a22 100644
@@ -48,6 +48,8 @@ properties:
               - thead,c906
               - thead,c910
               - thead,c920
+              - starfive,dubhe-80
+              - starfive,dubhe-90

s goes before t.

Quoted 1 line

Noted. Will fix it.

With the re-order,

Cheers,
Conor.

#5 lore raw

PATCH v2 2/6 dt-bindings: riscv: Add StarFive JH8100 SoC

In reply to Sia Jee Heng

Add device tree bindings for the StarFive JH8100 RISC-V SoC.

---
 Documentation/devicetree/bindings/riscv/starfive.yaml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/riscv/starfive.yaml +4 -1
index cc4d92f0a1bf..7e2da9eef3db 100644
@@ -29,7 +29,10 @@ properties:
               - starfive,visionfive-2-v1.2a
               - starfive,visionfive-2-v1.3b
           - const: starfive,jh7110
-
+      - items:
+          - enum:
+              - starfive,jh8100-evb
+          - const: starfive,jh8100
 additionalProperties: true
 
 ...
Signature · 1 line
2.34.1
#6 lore raw

Re: [PATCH v2 2/6] dt-bindings: riscv: Add StarFive JH8100 SoC

Quoted 13 lines · Sia Jee Heng

Add device tree bindings for the StarFive JH8100 RISC-V SoC.

---
 Documentation/devicetree/bindings/riscv/starfive.yaml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/riscv/starfive.yaml +0 -0
index cc4d92f0a1bf..7e2da9eef3db 100644

Documentation/devicetree/bindings/riscv/starfive.yaml properties: · line 35

Quoted 8 lines
Documentation/devicetree/bindings/riscv/starfive.yaml +4 -1
@@ -29,7 +29,10 @@ properties:
               - starfive,visionfive-2-v1.2a
               - starfive,visionfive-2-v1.3b
           - const: starfive,jh7110
-
+      - items:
+          - enum:
+              - starfive,jh8100-evb
+          - const: starfive,jh8100

Why did you remove the blank line? No need for doing that.

Documentation/devicetree/bindings/riscv/starfive.yaml properties: · line 37

Quoted 3 lines
Documentation/devicetree/bindings/riscv/starfive.yaml +0 -0
 additionalProperties: true
 
...

Best regards,
Krzysztof

#7 lore raw

RE: [PATCH v2 2/6] dt-bindings: riscv: Add StarFive JH8100 SoC

Quoted 22 lines

-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Wednesday, November 29, 2023 4:27 PM
To: JeeHeng Sia <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Michael Zhu <[email protected]>; [email protected]
Cc: [email protected]; [email protected]; [email protected]; Leyfoon Tan <[email protected]>
Subject: Re: [PATCH v2 2/6] dt-bindings: riscv: Add StarFive JH8100 SoC

Quoted 8 lines · Sia Jee Heng

Add device tree bindings for the StarFive JH8100 RISC-V SoC.

---
 Documentation/devicetree/bindings/riscv/starfive.yaml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Quoted 15 lines

Documentation/devicetree/bindings/riscv/starfive.yaml properties: · line 35

Quoted 13 lines
Documentation/devicetree/bindings/riscv/starfive.yaml +4 -1
index cc4d92f0a1bf..7e2da9eef3db 100644
@@ -29,7 +29,10 @@ properties:
               - starfive,visionfive-2-v1.2a
               - starfive,visionfive-2-v1.3b
           - const: starfive,jh7110
-
+      - items:
+          - enum:
+              - starfive,jh8100-evb
+          - const: starfive,jh8100

Why did you remove the blank line? No need for doing that.

Noted. Will fix it.

Quoted 7 lines

Documentation/devicetree/bindings/riscv/starfive.yaml properties: · line 37

Quoted 4 lines
Documentation/devicetree/bindings/riscv/starfive.yaml +0 -0
 additionalProperties: true
 
...

Best regards,
Krzysztof

#10 lore raw

PATCH v2 3/6 dt-bindings: timer: Add StarFive JH8100 clint

In reply to Sia Jee Heng

Add compatible string for the StarFive JH8100 clint.

---
 Documentation/devicetree/bindings/timer/sifive,clint.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/timer/sifive,clint.yaml +1 -0
index e8be6c470364..01254261e156 100644
@@ -33,6 +33,7 @@ properties:
               - sifive,fu540-c000-clint # SiFive FU540
               - starfive,jh7100-clint   # StarFive JH7100
               - starfive,jh7110-clint   # StarFive JH7110
+              - starfive,jh8100-clint   # StarFive JH8100
           - const: sifive,clint0        # SiFive CLINT v0 IP block
       - items:
           - enum:
Signature · 1 line
2.34.1
#12 lore raw

PATCH v2 4/6 dt-bindings: interrupt-controller: Add StarFive JH8100 plic

In reply to Sia Jee Heng

Add compatible string for StarFive JH8100 plic.

---
 .../bindings/interrupt-controller/sifive,plic-1.0.0.yaml         | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml +1 -0
index 0c07e8dda445..8f5c6044cef7 100644
@@ -61,6 +61,7 @@ properties:
               - sifive,fu540-c000-plic
               - starfive,jh7100-plic
               - starfive,jh7110-plic
+              - starfive,jh8100-plic
           - const: sifive,plic-1.0.0
       - items:
           - enum:
Signature · 1 line
2.34.1
#14 lore raw

PATCH v2 5/6 dt-bindings: serial: cdns: Add new compatible string for StarFive JH8100 UART

In reply to Sia Jee Heng

Add new compatible string for UART in the StarFive JH8100 SoC.

---
 Documentation/devicetree/bindings/serial/cdns,uart.yaml | 4 ++++
 1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/serial/cdns,uart.yaml +4 -0
index e35ad1109efc..0d05305778f2 100644
@@ -20,6 +20,10 @@ properties:
         items:
           - const: xlnx,zynqmp-uart
           - const: cdns,uart-r1p12
+      - description: UART controller for StarFive JH8100 SoC
+        items:
+          - const: starfive,jh8100-uart
+          - const: cdns,uart-r1p8
 
   reg:
     maxItems: 1
Signature · 1 line
2.34.1
#15 lore raw

Re: [PATCH v2 5/6] dt-bindings: serial: cdns: Add new compatible string for StarFive JH8100 UART

Quoted 4 lines · Sia Jee Heng

Add new compatible string for UART in the StarFive JH8100 SoC.

The patch is quite different than v1. Are you sure the review is applicable? If it was given for v2, where is it?

Documentation/devicetree/bindings/serial/cdns,uart.yaml properties: · line 23

Quoted 13 lines
---
 Documentation/devicetree/bindings/serial/cdns,uart.yaml | 4 ++++
 1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/serial/cdns,uart.yaml +1 -0
index e35ad1109efc..0d05305778f2 100644
@@ -20,6 +20,10 @@ properties:
         items:
           - const: xlnx,zynqmp-uart
           - const: cdns,uart-r1p12
+      - description: UART controller for StarFive JH8100 SoC

This is duplicating compatible, drop.

Documentation/devicetree/bindings/serial/cdns,uart.yaml properties: · line 26

Quoted 3 lines
Documentation/devicetree/bindings/serial/cdns,uart.yaml +3 -0
+        items:
+          - const: starfive,jh8100-uart
+          - const: cdns,uart-r1p8

Don't add things to the end of the list, but keep order. I would suggest to put it at the beginning, so before Xilinx.

Best regards,
Krzysztof

#16 lore raw

RE: [PATCH v2 5/6] dt-bindings: serial: cdns: Add new compatible string for StarFive JH8100 UART

Quoted 13 lines

-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Wednesday, November 29, 2023 4:26 PM
To: JeeHeng Sia <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Michael Zhu <[email protected]>; [email protected]
Cc: [email protected]; [email protected]; [email protected]; Leyfoon Tan <[email protected]>
Subject: Re: [PATCH v2 5/6] dt-bindings: serial: cdns: Add new compatible string for StarFive JH8100 UART

Quoted 8 lines
Quoted 4 lines · Sia Jee Heng

Add new compatible string for UART in the StarFive JH8100 SoC.

The patch is quite different than v1. Are you sure the review is applicable? If it was given for v2, where is it?

This patch is impacted by the comment suggesting the exclusion of patch 5 in V1. In V2, this patch adds compatible for cdns-uart-r1p8, allowing us to continue using the cdns uart.

Quoted 5 lines
Quoted 5 lines
---
 Documentation/devicetree/bindings/serial/cdns,uart.yaml | 4 ++++
 1 file changed, 4 insertions(+)
Quoted 11 lines

Documentation/devicetree/bindings/serial/cdns,uart.yaml properties: · line 23

Quoted 9 lines
Documentation/devicetree/bindings/serial/cdns,uart.yaml +1 -0
index e35ad1109efc..0d05305778f2 100644
@@ -20,6 +20,10 @@ properties:
         items:
           - const: xlnx,zynqmp-uart
           - const: cdns,uart-r1p12
+      - description: UART controller for StarFive JH8100 SoC

This is duplicating compatible, drop.

Do you mean drop compatible for starfive,jh8100-uart ?

Quoted 7 lines

Documentation/devicetree/bindings/serial/cdns,uart.yaml properties: · line 26

Quoted 4 lines
Documentation/devicetree/bindings/serial/cdns,uart.yaml +3 -0
+        items:
+          - const: starfive,jh8100-uart
+          - const: cdns,uart-r1p8

Don't add things to the end of the list, but keep order. I would suggest to put it at the beginning, so before Xilinx.

I'm trying to get what you're asking, but it's a bit confusing for me. So, I thought it might be easier if I just share the code below. Please let me know if this addresses your comment? properties:
compatible:
oneOf:
- description: UART controller for StarFive JH8100 SoC
items:
- const: cdns,uart-r1p8
- description: UART controller for Zynq-7xxx SoC
items:
- const: xlnx,xuartps
- const: cdns,uart-r1p8
- description: UART controller for Zynq Ultrascale+ MPSoC
items:
- const: xlnx,zynqmp-uart
- const: cdns,uart-r1p12

Quoted 4 lines

Best regards,
Krzysztof

#17 lore raw

Re: [PATCH v2 5/6] dt-bindings: serial: cdns: Add new compatible string for StarFive JH8100 UART

Quoted 14 lines · JeeHeng Sia
Quoted 14 lines

-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Wednesday, November 29, 2023 4:26 PM
To: JeeHeng Sia <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Michael Zhu <[email protected]>; [email protected]
Cc: [email protected]; [email protected]; [email protected]; Leyfoon Tan <[email protected]>
Subject: Re: [PATCH v2 5/6] dt-bindings: serial: cdns: Add new compatible string for StarFive JH8100 UART

On 29/11/2023 07:00, Sia Jee Heng wrote:

Quoted 8 lines
Quoted 7 lines
Quoted 4 lines

Add new compatible string for UART in the StarFive JH8100 SoC.

The patch is quite different than v1. Are you sure the review is applicable? If it was given for v2, where is it?

This patch is impacted by the comment suggesting the exclusion of patch 5 in V1. In V2, this patch adds compatible for cdns-uart-r1p8, allowing us to continue using the cdns uart.

Please wrap your replies.

How does this answer my concern about review tag?

Do you understand that my comments are inline under the exact line which is questioned?

Quoted 16 lines
Quoted 5 lines
Quoted 5 lines
---
 Documentation/devicetree/bindings/serial/cdns,uart.yaml | 4 ++++
 1 file changed, 4 insertions(+)
Quoted 11 lines

Documentation/devicetree/bindings/serial/cdns,uart.yaml properties: · line 23

Quoted 9 lines
Documentation/devicetree/bindings/serial/cdns,uart.yaml +1 -0
index e35ad1109efc..0d05305778f2 100644
@@ -20,6 +20,10 @@ properties:
         items:
           - const: xlnx,zynqmp-uart
           - const: cdns,uart-r1p12
+      - description: UART controller for StarFive JH8100 SoC

This is duplicating compatible, drop.

Quoted 1 line

Do you mean drop compatible for starfive,jh8100-uart ?

No, drop description and use directly " - items"

Quoted 7 lines
Quoted 7 lines

Documentation/devicetree/bindings/serial/cdns,uart.yaml properties: · line 26

Quoted 4 lines
Documentation/devicetree/bindings/serial/cdns,uart.yaml +3 -0
+        items:
+          - const: starfive,jh8100-uart
+          - const: cdns,uart-r1p8

Don't add things to the end of the list, but keep order. I would suggest to put it at the beginning, so before Xilinx.

Quoted 7 lines

I'm trying to get what you're asking, but it's a bit confusing for me. So, I thought it might be easier if I just share the code below. Please let me know if this addresses your comment? properties:
compatible:
oneOf:
- description: UART controller for StarFive JH8100 SoC
items:
- const: cdns,uart-r1p8

Order is fixed, thanks. But drop description and bring back specific compatible. You must have specific compatibles, always.

Best regards,
Krzysztof

#18 lore raw

RE: [PATCH v2 5/6] dt-bindings: serial: cdns: Add new compatible string for StarFive JH8100 UART

Quoted 33 lines

-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Wednesday, November 29, 2023 6:53 PM
To: JeeHeng Sia <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Michael Zhu <[email protected]>; [email protected]
Cc: [email protected]; [email protected]; [email protected]; Leyfoon Tan <[email protected]>
Subject: Re: [PATCH v2 5/6] dt-bindings: serial: cdns: Add new compatible string for StarFive JH8100 UART

Quoted 19 lines · JeeHeng Sia
Quoted 19 lines

-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Wednesday, November 29, 2023 4:26 PM
To: JeeHeng Sia <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Michael Zhu <[email protected]>; [email protected]
Cc: [email protected]; [email protected]; [email protected]; Leyfoon Tan <[email protected]>
Subject: Re: [PATCH v2 5/6] dt-bindings: serial: cdns: Add new compatible string for StarFive JH8100 UART

Quoted 4 lines · Sia Jee Heng

Add new compatible string for UART in the StarFive JH8100 SoC.

Quoted 6 lines
Quoted 3 lines
Quoted 2 lines

The patch is quite different than v1. Are you sure the review is applicable? If it was given for v2, where is it?

This patch is impacted by the comment suggesting the exclusion of patch 5 in V1. In V2, this patch adds compatible for cdns-uart-

r1p8, allowing us to continue using the cdns uart.

Please wrap your replies.

I am sorry, but may I know the preferred length of characters?

Quoted 2 lines

How does this answer my concern about review tag?

My bad. I should have obtained your consensus before proceeding with the changes to this patch, especially after dropping patch 5 as requested in version 1.

Quoted 3 lines

Do you understand that my comments are inline under the exact line which is questioned?

Yes, lesson learned.

Quoted 18 lines
Quoted 7 lines
Quoted 7 lines

Review

Quoted 7 lines

---
 Documentation/devicetree/bindings/serial/cdns,uart.yaml | 4 ++++
 1 file changed, 4 insertions(+)
(quoted diff) +0 -0

b/Documentation/devicetree/bindings/serial/cdns,uart.yaml

Quoted 10 lines
Quoted 10 lines

Documentation/devicetree/bindings/serial/cdns,uart.yaml properties: · line 23

Quoted 8 lines

index e35ad1109efc..0d05305778f2 100644

Documentation/devicetree/bindings/serial/cdns,uart.yaml +1 -0
@@ -20,6 +20,10 @@ properties:
         items:
           - const: xlnx,zynqmp-uart
           - const: cdns,uart-r1p12
+      - description: UART controller for StarFive JH8100 SoC

This is duplicating compatible, drop.

Quoted 3 lines
Quoted 1 line

Do you mean drop compatible for starfive,jh8100-uart ?

No, drop description and use directly " - items"

Ok.

Quoted 17 lines
Quoted 9 lines
Quoted 8 lines

Documentation/devicetree/bindings/serial/cdns,uart.yaml properties: · line 26

Quoted 5 lines
Documentation/devicetree/bindings/serial/cdns,uart.yaml +3 -0
+        items:
+          - const: starfive,jh8100-uart
+          - const: cdns,uart-r1p8

Don't add things to the end of the list, but keep order. I would suggest to put it at the beginning, so before Xilinx.

I'm trying to get what you're asking, but it's a bit confusing for me. So, I thought it might be easier if I just share the code below.

Please let me know if this addresses your comment?

Quoted 6 lines

properties:
compatible:
oneOf:
- description: UART controller for StarFive JH8100 SoC items:
- const: cdns,uart-r1p8

Quoted 2 lines

Order is fixed, thanks. But drop description and bring back specific compatible. You must have specific compatibles, always.

Noted.

Quoted 5 lines

Best regards,
Krzysztof

#19 lore raw

PATCH v2 6/6 riscv: dts: starfive: Add initial StarFive JH8100 device tree

In reply to Sia Jee Heng

Add initial device tree for the StarFive JH8100 RISC-V SoC.

---
 arch/riscv/boot/dts/starfive/Makefile       |   1 +
 arch/riscv/boot/dts/starfive/jh8100-evb.dts |  28 ++
 arch/riscv/boot/dts/starfive/jh8100.dtsi    | 378 ++++++++++++++++++++
 3 files changed, 407 insertions(+)
 create mode 100644 arch/riscv/boot/dts/starfive/jh8100-evb.dts
 create mode 100644 arch/riscv/boot/dts/starfive/jh8100.dtsi
arch/riscv/boot/dts/starfive/Makefile +1 -0
index 0141504c0f5c..fbb0dc619102 100644
@@ -10,3 +10,4 @@ dtb-$(CONFIG_ARCH_STARFIVE) += jh7100-starfive-visionfive-v1.dtb
 
 dtb-$(CONFIG_ARCH_STARFIVE) += jh7110-starfive-visionfive-2-v1.2a.dtb
 dtb-$(CONFIG_ARCH_STARFIVE) += jh7110-starfive-visionfive-2-v1.3b.dtb
+dtb-$(CONFIG_ARCH_STARFIVE) += jh8100-evb.dtb
arch/riscv/boot/dts/starfive/jh8100-evb.dts new file +28 -0
new file mode 100644
index 000000000000..39a11226731c
@@ -0,0 +1,28 @@
+// SPDX-License-Identifier: GPL-2.0 OR MIT
+/*
+ * Copyright (c) 2021-2023 StarFive Technology Co., Ltd.
+ */
+
+#include "jh8100.dtsi"
+
+/ {
+	model = "StarFive JH8100 EVB";
+	compatible = "starfive,jh8100-evb", "starfive,jh8100";
+
+	aliases {
+		serial0 = &uart0;
+	};
+
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
+
+	memory {
+		device_type = "memory";
+		reg = <0x0 0x40000000 0x2 0x00000000>;
+	};
+};
+
+&uart0 {
+	status = "okay";
+};
arch/riscv/boot/dts/starfive/jh8100.dtsi new file +378 -0

378 lines not on this page · raw message

Signature · 1 line
2.34.1
Reviewed-by on v2 6/6
#20 lore raw

RE: [PATCH v2 6/6] riscv: dts: starfive: Add initial StarFive JH8100 device tree

-----Original Message-----
From: JeeHeng Sia <[email protected]>
Sent: Wednesday, November 29, 2023 2:01 PM
To: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Michael Zhu <[email protected]>; [email protected]
Cc: [email protected]; [email protected]; [email protected]; JeeHeng Sia <[email protected]>; Leyfoon Tan <[email protected]>
Subject: [PATCH v2 6/6] riscv: dts: starfive: Add initial StarFive JH8100 device tree

Add initial device tree for the StarFive JH8100 RISC-V SoC.

---
 arch/riscv/boot/dts/starfive/Makefile       |   1 +
 arch/riscv/boot/dts/starfive/jh8100-evb.dts |  28 ++
 arch/riscv/boot/dts/starfive/jh8100.dtsi    | 378 ++++++++++++++++++++
 3 files changed, 407 insertions(+)
 create mode 100644 arch/riscv/boot/dts/starfive/jh8100-evb.dts
 create mode 100644 arch/riscv/boot/dts/starfive/jh8100.dtsi
arch/riscv/boot/dts/starfive/Makefile +1 -0
index 0141504c0f5c..fbb0dc619102 100644
@@ -10,3 +10,4 @@ dtb-$(CONFIG_ARCH_STARFIVE) += jh7100-starfive-visionfive-v1.dtb
 
 dtb-$(CONFIG_ARCH_STARFIVE) += jh7110-starfive-visionfive-2-v1.2a.dtb
 dtb-$(CONFIG_ARCH_STARFIVE) += jh7110-starfive-visionfive-2-v1.3b.dtb
+dtb-$(CONFIG_ARCH_STARFIVE) += jh8100-evb.dtb

Add empty line before this.

[....]

Regards
Ley Foon

#21 lore raw

RE: [PATCH v2 6/6] riscv: dts: starfive: Add initial StarFive JH8100 device tree

Quoted 46 lines

-----Original Message-----
From: Leyfoon Tan <[email protected]>
Sent: Friday, December 1, 2023 1:58 AM
To: JeeHeng Sia <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Michael Zhu <[email protected]>; [email protected]
Cc: [email protected]; [email protected]; [email protected]
Subject: RE: [PATCH v2 6/6] riscv: dts: starfive: Add initial StarFive JH8100 device tree

-----Original Message-----
From: JeeHeng Sia <[email protected]>
Sent: Wednesday, November 29, 2023 2:01 PM
To: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Michael Zhu <[email protected]>; [email protected]
Cc: [email protected]; [email protected]; [email protected]; JeeHeng Sia <[email protected]>; Leyfoon Tan <[email protected]>
Subject: [PATCH v2 6/6] riscv: dts: starfive: Add initial StarFive JH8100 device tree

Add initial device tree for the StarFive JH8100 RISC-V SoC.

---
 arch/riscv/boot/dts/starfive/Makefile       |   1 +
 arch/riscv/boot/dts/starfive/jh8100-evb.dts |  28 ++
 arch/riscv/boot/dts/starfive/jh8100.dtsi    | 378 ++++++++++++++++++++
 3 files changed, 407 insertions(+)
 create mode 100644 arch/riscv/boot/dts/starfive/jh8100-evb.dts
 create mode 100644 arch/riscv/boot/dts/starfive/jh8100.dtsi
arch/riscv/boot/dts/starfive/Makefile +1 -0
index 0141504c0f5c..fbb0dc619102 100644
@@ -10,3 +10,4 @@ dtb-$(CONFIG_ARCH_STARFIVE) += jh7100-starfive-visionfive-v1.dtb
 
 dtb-$(CONFIG_ARCH_STARFIVE) += jh7110-starfive-visionfive-2-v1.2a.dtb
 dtb-$(CONFIG_ARCH_STARFIVE) += jh7110-starfive-visionfive-2-v1.3b.dtb
+dtb-$(CONFIG_ARCH_STARFIVE) += jh8100-evb.dtb
Quoted 1 line

Add empty line before this.

Ok, I can add an empty line here to distinguish between the platforms.

Quoted 5 lines

[....]

Regards
Ley Foon

#22 lore raw
In reply to Sia Jee Heng

Thank you, Krzysztof, Conor, and LeyFoon, for your comments. I will prepare version 3 to address all the feedback.

Quoted 66 lines

-----Original Message-----
From: JeeHeng Sia <[email protected]>
Sent: Wednesday, November 29, 2023 2:01 PM
To: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Michael Zhu <[email protected]>; [email protected]
Cc: [email protected]; [email protected]; [email protected]; JeeHeng Sia <[email protected]>; Leyfoon Tan <[email protected]>
Subject: [PATCH v2 0/6] Initial device tree support for StarFive JH8100 SoC

StarFive JH8100 SoC consists of 4 RISC-V performance Cores (Dubhe-90) and 2 RISC-V energy efficient cores (Dubhe-80). It also features various interfaces such as DDR4, Gbit-Ether, CAN, USB 3.2, SD/MMC, etc., making it ideal for high-performance computing scenarios.

This patch series introduces initial SoC DTSI support for the StarFive JH8100 SoC. The relevant dt-binding documentation has been updated accordingly. Below is the list of IP blocks added in the initial SoC DTSI, which can be used for booting via initramfs on FPGA:

- StarFive Dubhe-80 CPU
- StarFive Dubhe-90 CPU
- PLIC
- CLINT
- UART

The primary goal is to include foundational patches so that additional drivers can be built on top of this framework.

Changes since v1:
- Dropped patch 5.
- Moved timebase-frequency from .dts to .dtsi.
- Moved soc node from .dts to .dtsi.
- Revised the title for the dt-binding document by removing Xilinx wording.
- Added a full stop to the end of the commit messages.
- Removed extra blank lines.
- Used hyphen for a node name.
- Added more recipients to the mailing list.

Sia Jee Heng (6):
dt-bindings: riscv: Add StarFive Dubhe compatibles
dt-bindings: riscv: Add StarFive JH8100 SoC
dt-bindings: timer: Add StarFive JH8100 clint
dt-bindings: interrupt-controller: Add StarFive JH8100 plic
dt-bindings: serial: cdns: Add new compatible string for StarFive

    JH8100 UART

riscv: dts: starfive: Add initial StarFive JH8100 device tree

 .../sifive,plic-1.0.0.yaml                    |   1 +
 .../devicetree/bindings/riscv/cpus.yaml       |   2 +
 .../devicetree/bindings/riscv/starfive.yaml   |   5 +-
 .../devicetree/bindings/serial/cdns,uart.yaml |   4 +
 .../bindings/timer/sifive,clint.yaml          |   1 +
 arch/riscv/boot/dts/starfive/Makefile         |   1 +
 arch/riscv/boot/dts/starfive/jh8100-evb.dts   |  28 ++
 arch/riscv/boot/dts/starfive/jh8100.dtsi      | 378 ++++++++++++++++++
 8 files changed, 419 insertions(+), 1 deletion(-)
 create mode 100644 arch/riscv/boot/dts/starfive/jh8100-evb.dts
 create mode 100644 arch/riscv/boot/dts/starfive/jh8100.dtsi

base-commit: 18d46e76d7c2eedd8577fae67e3f1d4db25018b0 --
2.34.1