Skip to contentSkip to conversation

riscv: sophgo: Introduce SG2044 SRD3-10 board support

PATCH Applied Inochi Amaoto 5 participants 32 messages Apr 7, 2025 – May 15, 2025

Subsystems (10)

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore

Inochi Amaoto

author maintainer
#0 lore raw

cover riscv: sophgo: Introduce SG2044 SRD3-10 board support

Sophgo SG2044 SRD3-10 is an ATX board bases on Sophgo SG2044 SoC. This board includes 5 uart ports, 5 pcie x8 slots, 1 1G Ethernet port, 1 microSD slot.

Introduce basic support for this board and Sophgo SG2044 SoC

Inochi Amaoto (9):
dt-bindings: timer: Add Sophgo SG2044 ACLINT timer
dt-bindings: interrupt-controller: Add Sophgo SG2044 CLINT mswi
dt-bindings: interrupt-controller: Add Sophgo SG2044 PLIC
dt-bindings: reset: sophgo: Add SG2044 bindings.
dt-bindings: hwmon: Add Sophgo SG2044 external hardware monitor
support
dt-bindings: mmc: sdhci-of-dwcmhsc: Add Sophgo SG2044 support
dt-bindings: i2c: dw: Add Sophgo SG2044 SoC I2C controller
dt-bindings: riscv: sophgo: Add SG2044 compatible string
riscv: dts: sophgo: Add initial device tree of Sophgo SRD3-10

 .../hwmon/sophgo,sg2042-hwmon-mcu.yaml        |    6 +-
 .../bindings/i2c/snps,designware-i2c.yaml     |    4 +
 .../sifive,plic-1.0.0.yaml                    |    1 +
 .../thead,c900-aclint-mswi.yaml               |    1 +
 .../bindings/mmc/snps,dwcmshc-sdhci.yaml      |    7 +-
 .../bindings/reset/sophgo,sg2042-reset.yaml   |    7 +-
 .../devicetree/bindings/riscv/sophgo.yaml     |    4 +
 .../timer/thead,c900-aclint-mtimer.yaml       |    1 +
 arch/riscv/boot/dts/sophgo/Makefile           |    1 +
 arch/riscv/boot/dts/sophgo/sg2044-cpus.dtsi   | 3002 +++++++++++++++++
 arch/riscv/boot/dts/sophgo/sg2044-reset.h     |  128 +
 .../boot/dts/sophgo/sg2044-sophgo-srd3-10.dts |   32 +
 arch/riscv/boot/dts/sophgo/sg2044.dtsi        |   86 +
 13 files changed, 3277 insertions(+), 3 deletions(-)
 create mode 100644 arch/riscv/boot/dts/sophgo/sg2044-cpus.dtsi
 create mode 100644 arch/riscv/boot/dts/sophgo/sg2044-reset.h
 create mode 100644 arch/riscv/boot/dts/sophgo/sg2044-sophgo-srd3-10.dts
 create mode 100644 arch/riscv/boot/dts/sophgo/sg2044.dtsi

--
2.49.0

author maintainer
#1 lore raw

PATCH 1/9 dt-bindings: timer: Add Sophgo SG2044 ACLINT timer

Like SG2042, SG2044 implements an enhanced ACLINT, so add necessary compatible string for SG2044 SoC.

---
 .../devicetree/bindings/timer/thead,c900-aclint-mtimer.yaml      | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/timer/thead,c900-aclint-mtimer.yaml +1 -0
index 2e92bcdeb423..4ed30efe4052 100644
@@ -14,6 +14,7 @@ properties:
     items:
       - enum:
           - sophgo,sg2042-aclint-mtimer
+          - sophgo,sg2044-aclint-mtimer
       - const: thead,c900-aclint-mtimer
 
   reg:
Signature · 1 line
2.49.0
#3 lore raw

Re: [PATCH 1/9] dt-bindings: timer: Add Sophgo SG2044 ACLINT timer

In reply to Inochi Amaoto
Quoted 5 lines · Inochi Amaoto

Like SG2042, SG2044 implements an enhanced ACLINT, so add necessary compatible string for SG2044 SoC.

---

Applied, thanks

Signature · 5 lines
 <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
#4 lore raw

Re: [PATCH 1/9] dt-bindings: timer: Add Sophgo SG2044 ACLINT timer

Hi, Daniel,

Just a kindly reminder. There is a v2 of this patcheset [1], and I see [1/9] of v2 has been picked by Andi [2].

Please double check if anything wrong or conflicted.

Thanks,

Chen

Quoted 8 lines · Daniel Lezcano
Quoted 5 lines · Inochi Amaoto

Like SG2042, SG2044 implements an enhanced ACLINT, so add necessary compatible string for SG2044 SoC.

---

Applied, thanks

#5 lore raw

Re: [PATCH 1/9] dt-bindings: timer: Add Sophgo SG2044 ACLINT timer

Quoted 5 lines · Chen Wang

Hi, Daniel,

Just a kindly reminder. There is a v2 of this patcheset [1], and I see [1/9] of v2 has been picked by Andi [2].

Please double check if anything wrong or conflicted.

Thanks for the heads up

I think it is ok, I have the right version in my tree.

If you want to double check, it is here:

https://git.linaro.org/plugins/gitiles/people/daniel.lezcano/linux/+/refs/heads/timers/drivers/next

Quoted 13 lines
Link https://lore.kernel.org/linux-riscv/ egkwz23tyr3psl3eaqhzdhmvxlufem5vqdlwvl4y6henyeazuz@ch3oflv4ekw7/ [2]
Quoted 7 lines · Daniel Lezcano
Quoted 5 lines · Inochi Amaoto

Like SG2042, SG2044 implements an enhanced ACLINT, so add necessary compatible string for SG2044 SoC.

---

Applied, thanks

Signature · 5 lines
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
author maintainer
#6 lore raw

PATCH 2/9 dt-bindings: interrupt-controller: Add Sophgo SG2044 CLINT mswi

In reply to Inochi Amaoto

As SG2044 also implements an enhanced ACLINT as SG204, add necessary compatible string for SG2044 SoC.

---
 .../bindings/interrupt-controller/thead,c900-aclint-mswi.yaml    | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/interrupt-controller/thead,c900-aclint-mswi.yaml +1 -0
index 065f2544b63b..d6fb08a54167 100644
@@ -14,6 +14,7 @@ properties:
     items:
       - enum:
           - sophgo,sg2042-aclint-mswi
+          - sophgo,sg2044-aclint-mswi
       - const: thead,c900-aclint-mswi
 
   reg:
Signature · 1 line
2.49.0
maintainer Acked-by on v1 2/9
#7 lore raw

Re: [PATCH 2/9] dt-bindings: interrupt-controller: Add Sophgo SG2044 CLINT mswi

Quoted 8 lines · Inochi Amaoto

As SG2044 also implements an enhanced ACLINT as SG204, add necessary compatible string for SG2044 SoC.

---
 .../bindings/interrupt-controller/thead,c900-aclint-mswi.yaml    | 1 +
 1 file changed, 1 insertion(+)
#8 lore raw

Re: [PATCH 2/9] dt-bindings: interrupt-controller: Add Sophgo SG2044 CLINT mswi

In reply to Inochi Amaoto
Quoted 1 line · Inochi Amaoto

As SG2044 also implements an enhanced ACLINT as SG204, add necessary

SG204 -> SG2024

[......]

author maintainer
#9 lore raw

PATCH 3/9 dt-bindings: interrupt-controller: Add Sophgo SG2044 PLIC

In reply to Inochi Amaoto

The SG2044 implement a standard T-HEAD C900 PLIC, which is already supported by the kernel.

Add compatible string for Sophgo SG2044 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 3dfe425909d1..ffc4768bad06 100644
@@ -70,6 +70,7 @@ properties:
               - sophgo,cv1812h-plic
               - sophgo,sg2002-plic
               - sophgo,sg2042-plic
+              - sophgo,sg2044-plic
               - thead,th1520-plic
           - const: thead,c900-plic
       - items:
Signature · 1 line
2.49.0
maintainer Acked-by on v1 3/9
#10 lore raw

Re: [PATCH 3/9] dt-bindings: interrupt-controller: Add Sophgo SG2044 PLIC

Quoted 10 lines · Inochi Amaoto

The SG2044 implement a standard T-HEAD C900 PLIC, which is already supported by the kernel.

Add compatible string for Sophgo SG2044 plic.

---
 .../bindings/interrupt-controller/sifive,plic-1.0.0.yaml         | 1 +
 1 file changed, 1 insertion(+)
author maintainer
#11 lore raw

PATCH 4/9 dt-bindings: reset: sophgo: Add SG2044 bindings.

In reply to Inochi Amaoto

The SG2044 shares the same reset controller as SG2042, so it is just enough to use the compatible string of SG2042 as a basis.

Add compatible string for the reset controller of SG2044.

---
 .../devicetree/bindings/reset/sophgo,sg2042-reset.yaml     | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/reset/sophgo,sg2042-reset.yaml +6 -1
index 76e1931f0908..1d1b84575960 100644
@@ -11,7 +11,12 @@ maintainers:
 
 properties:
   compatible:
-    const: sophgo,sg2042-reset
+    oneOf:
+      - items:
+          - enum:
+              - sophgo,sg2044-reset
+          - const: sophgo,sg2042-reset
+      - const: sophgo,sg2042-reset
 
   reg:
     maxItems: 1
Signature · 1 line
2.49.0
maintainer Acked-by on v1 4/9
#12 lore raw

Re: [PATCH 4/9] dt-bindings: reset: sophgo: Add SG2044 bindings.

Quoted 3 lines · Inochi Amaoto

The SG2044 shares the same reset controller as SG2042, so it is just enough to use the compatible string of SG2042 as a basis.

You can drop 'binding.' from the subject.

Quoted 7 lines

Add compatible string for the reset controller of SG2044.

---
 .../devicetree/bindings/reset/sophgo,sg2042-reset.yaml     | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
Reviewed-by on v1 4/9
#13 lore raw

Re: [PATCH 4/9] dt-bindings: reset: sophgo: Add SG2044 bindings.

In reply to Inochi Amaoto
Quoted 7 lines · Inochi Amaoto

The SG2044 shares the same reset controller as SG2042, so it is just enough to use the compatible string of SG2042 as a basis.

Add compatible string for the reset controller of SG2044.

Quoted 22 lines
---
  .../devicetree/bindings/reset/sophgo,sg2042-reset.yaml     | 7 ++++++-
  1 file changed, 6 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/reset/sophgo,sg2042-reset.yaml +6 -1
index 76e1931f0908..1d1b84575960 100644
@@ -11,7 +11,12 @@ maintainers:
 
  properties:
    compatible:
-    const: sophgo,sg2042-reset
+    oneOf:
+      - items:
+          - enum:
+              - sophgo,sg2044-reset
+          - const: sophgo,sg2042-reset
+      - const: sophgo,sg2042-reset
 
    reg:
      maxItems: 1
author maintainer
#14 lore raw

PATCH 5/9 dt-bindings: hwmon: Add Sophgo SG2044 external hardware monitor support

In reply to Inochi Amaoto

The MCU device on SG2044 exposes the same interface as SG2042, which is already supported by the kernel.

Add compatible string for monitor device of SG2044.

---
 .../devicetree/bindings/hwmon/sophgo,sg2042-hwmon-mcu.yaml  | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/hwmon/sophgo,sg2042-hwmon-mcu.yaml +5 -1
index f0667ac41d75..b76805d39427 100644
@@ -11,7 +11,11 @@ maintainers:
 
 properties:
   compatible:
-    const: sophgo,sg2042-hwmon-mcu
+    oneOf:
+      - items:
+          - const: sophgo,sg2044-hwmon-mcu
+          - const: sophgo,sg2042-hwmon-mcu
+      - const: sophgo,sg2042-hwmon-mcu
 
   reg:
     maxItems: 1
Signature · 1 line
2.49.0
#15 lore raw

Re: [PATCH 5/9] dt-bindings: hwmon: Add Sophgo SG2044 external hardware monitor support

Hi Inochi:

Quoted 15 lines · Inochi Amaoto

The MCU device on SG2044 exposes the same interface as SG2042, which is already supported by the kernel.

Add compatible string for monitor device of SG2044.

---
 .../devicetree/bindings/hwmon/sophgo,sg2042-hwmon-mcu.yaml  | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/hwmon/sophgo,sg2042-hwmon-mcu.yaml +0 -0
index f0667ac41d75..b76805d39427 100644

Documentation/devicetree/bindings/hwmon/sophgo,sg2042-hwmon-mcu.yaml maintainers: · line 18

Quoted 9 lines
Documentation/devicetree/bindings/hwmon/sophgo,sg2042-hwmon-mcu.yaml +5 -1
@@ -11,7 +11,11 @@ maintainers:
 
 properties:
   compatible:
-    const: sophgo,sg2042-hwmon-mcu
+    oneOf:
+      - items:
+          - const: sophgo,sg2044-hwmon-mcu
+          - const: sophgo,sg2042-hwmon-mcu
+      - const: sophgo,sg2042-hwmon-mcu

the compatible added here but not used in dts (or driver), e.g 9/9 patch I'd personally prefer to add it when actually being used
(so it can be validated in the real use cases..)

another concern is whether better to just use 'enum'? (maybe not) but I got your idea to fallback to compatible of sophgo,sg2042-hwmon-mcu..

same with mmc, i2c..

Quoted 6 lines
Documentation/devicetree/bindings/hwmon/sophgo,sg2042-hwmon-mcu.yaml +0 -0
   reg:
     maxItems: 1
Signature · 1 line
2.49.0
Signature · 3 lines
Yixun Lan (dlan)
Gentoo Linux Developer
GPG Key ID AABEFD55
author maintainer
#16 lore raw

Re: [PATCH 5/9] dt-bindings: hwmon: Add Sophgo SG2044 external hardware monitor support

Quoted 19 lines · Yixun Lan

Hi Inochi:

Quoted 16 lines · Inochi Amaoto

The MCU device on SG2044 exposes the same interface as SG2042, which is already supported by the kernel.

Add compatible string for monitor device of SG2044.

---
 .../devicetree/bindings/hwmon/sophgo,sg2042-hwmon-mcu.yaml  | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/hwmon/sophgo,sg2042-hwmon-mcu.yaml +0 -0
index f0667ac41d75..b76805d39427 100644
@@ -11,7 +11,11 @@ maintainers:
 
Quoted 13 lines

Documentation/devicetree/bindings/hwmon/sophgo,sg2042-hwmon-mcu.yaml maintainers: · line 18

Quoted 8 lines
Documentation/devicetree/bindings/hwmon/sophgo,sg2042-hwmon-mcu.yaml +5 -1
 properties:
   compatible:
-    const: sophgo,sg2042-hwmon-mcu
+    oneOf:
+      - items:
+          - const: sophgo,sg2044-hwmon-mcu
+          - const: sophgo,sg2042-hwmon-mcu
+      - const: sophgo,sg2042-hwmon-mcu

the compatible added here but not used in dts (or driver), e.g 9/9 patch I'd personally prefer to add it when actually being used
(so it can be validated in the real use cases..)

The dts patch is blocked by the dependency (in most case, it is the clk). I choose to sumbit these binding patch as they can be reviewed in early stage so I can throw the dts patch only when the clk is ready.

In fact, these binding changes are trivial so I think it is okay to go with the initial patch.

Quoted 5 lines

another concern is whether better to just use 'enum'? (maybe not) but I got your idea to fallback to compatible of sophgo,sg2042-hwmon-mcu..

same with mmc, i2c..

I do not think it is a good idea to use enum. It lost the fallback info.

Regards,
Inochi

maintainer Acked-by on v1 5/9
#17 lore raw

Re: [PATCH 5/9] dt-bindings: hwmon: Add Sophgo SG2044 external hardware monitor support

In reply to Inochi Amaoto
Quoted 10 lines · Inochi Amaoto

The MCU device on SG2044 exposes the same interface as SG2042, which is already supported by the kernel.

Add compatible string for monitor device of SG2044.

---
 .../devicetree/bindings/hwmon/sophgo,sg2042-hwmon-mcu.yaml  | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
author maintainer
#18 lore raw

PATCH 6/9 dt-bindings: mmc: sdhci-of-dwcmhsc: Add Sophgo SG2044 support

In reply to Inochi Amaoto

The sdhci IP of SG2044 is similar to it of SG2042. They share the same clock and controller configuration.

Add compatible string for SG2044.

---
 .../devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml        | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml +6 -1
index e6e604072d3c..47b5fc1b8e07 100644
@@ -19,6 +19,9 @@ properties:
               - rockchip,rk3562-dwcmshc
               - rockchip,rk3576-dwcmshc
           - const: rockchip,rk3588-dwcmshc
+      - items:
+          - const: sophgo,sg2044-dwcmshc
+          - const: sophgo,sg2042-dwcmshc
       - enum:
           - rockchip,rk3568-dwcmshc
           - rockchip,rk3588-dwcmshc
@@ -74,7 +77,9 @@ allOf:
       properties:
         compatible:
           contains:
-            const: sophgo,sg2042-dwcmshc
+            enum:
+              - sophgo,sg2042-dwcmshc
+              - sophgo,sg2044-dwcmshc
 
     then:
       properties:
Signature · 1 line
2.49.0
maintainer
#19 lore raw

Re: [PATCH 6/9] dt-bindings: mmc: sdhci-of-dwcmhsc: Add Sophgo SG2044 support

Quoted 25 lines · Inochi Amaoto

The sdhci IP of SG2044 is similar to it of SG2042. They share the same clock and controller configuration.

Add compatible string for SG2044.

---
 .../devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml        | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml +3 -0
index e6e604072d3c..47b5fc1b8e07 100644
@@ -19,6 +19,9 @@ properties:
               - rockchip,rk3562-dwcmshc
               - rockchip,rk3576-dwcmshc
           - const: rockchip,rk3588-dwcmshc
+      - items:
+          - const: sophgo,sg2044-dwcmshc
+          - const: sophgo,sg2042-dwcmshc
       - enum:
           - rockchip,rk3568-dwcmshc
           - rockchip,rk3588-dwcmshc

Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml allOf: · line 82

Quoted 7 lines
Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml +3 -1
@@ -74,7 +77,9 @@ allOf:
       properties:
         compatible:
           contains:
-            const: sophgo,sg2042-dwcmshc
+            enum:
+              - sophgo,sg2042-dwcmshc
+              - sophgo,sg2044-dwcmshc

No need for this hunk because the new one has sophgo,sg2042-dwcmshc already.

Rob

author maintainer
#20 lore raw

Re: [PATCH 6/9] dt-bindings: mmc: sdhci-of-dwcmhsc: Add Sophgo SG2044 support

Quoted 37 lines · Rob Herring
Quoted 25 lines · Inochi Amaoto

The sdhci IP of SG2044 is similar to it of SG2042. They share the same clock and controller configuration.

Add compatible string for SG2044.

---
 .../devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml        | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml +3 -0
index e6e604072d3c..47b5fc1b8e07 100644
@@ -19,6 +19,9 @@ properties:
               - rockchip,rk3562-dwcmshc
               - rockchip,rk3576-dwcmshc
           - const: rockchip,rk3588-dwcmshc
+      - items:
+          - const: sophgo,sg2044-dwcmshc
+          - const: sophgo,sg2042-dwcmshc
       - enum:
           - rockchip,rk3568-dwcmshc
           - rockchip,rk3588-dwcmshc

Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml allOf: · line 82

Quoted 7 lines
Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml +3 -1
@@ -74,7 +77,9 @@ allOf:
       properties:
         compatible:
           contains:
-            const: sophgo,sg2042-dwcmshc
+            enum:
+              - sophgo,sg2042-dwcmshc
+              - sophgo,sg2044-dwcmshc

No need for this hunk because the new one has sophgo,sg2042-dwcmshc already.

Quoted 1 line

Rob

Thanks, I will remove it.

Regards,
Inochi

author maintainer
#21 lore raw

PATCH 7/9 dt-bindings: i2c: dw: Add Sophgo SG2044 SoC I2C controller

In reply to Inochi Amaoto

Add compatible string for Sophgo SG2044 SoC I2C controller which can be used specifically for the SG2044 SoC.

---
 .../devicetree/bindings/i2c/snps,designware-i2c.yaml          | 4 ++++
 1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml +4 -0
index bc5d0fb5abfe..677b39865af0 100644
@@ -38,6 +38,10 @@ properties:
           - const: snps,designware-i2c
       - description: Baikal-T1 SoC System I2C controller
         const: baikal,bt1-sys-i2c
+      - description: Sophgo SoCs I2C controller
+        items:
+          - const: sophgo,sg2044-i2c
+          - const: snps,designware-i2c
       - description: T-HEAD TH1520 SoCs I2C controller
         items:
           - const: thead,th1520-i2c
Signature · 1 line
2.49.0
maintainer
#22 lore raw

Re: [PATCH 7/9] dt-bindings: i2c: dw: Add Sophgo SG2044 SoC I2C controller

Quoted 13 lines · Inochi Amaoto

Add compatible string for Sophgo SG2044 SoC I2C controller which can be used specifically for the SG2044 SoC.

---
 .../devicetree/bindings/i2c/snps,designware-i2c.yaml          | 4 ++++
 1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml +0 -0
index bc5d0fb5abfe..677b39865af0 100644

Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml properties: · line 44

Quoted 7 lines
Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml +4 -0
@@ -38,6 +38,10 @@ properties:
           - const: snps,designware-i2c
       - description: Baikal-T1 SoC System I2C controller
         const: baikal,bt1-sys-i2c
+      - description: Sophgo SoCs I2C controller
+        items:
+          - const: sophgo,sg2044-i2c
+          - const: snps,designware-i2c

This is not a great pattern we've started. T-HEAD, Ocelot, and this should all be combined into 1 enum. The description here is not that useful.

Quoted 6 lines
Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml +0 -0
       - description: T-HEAD TH1520 SoCs I2C controller
         items:
           - const: thead,th1520-i2c
Signature · 1 line
2.49.0
author maintainer
#23 lore raw

Re: [PATCH 7/9] dt-bindings: i2c: dw: Add Sophgo SG2044 SoC I2C controller

Quoted 9 lines · Rob Herring
Quoted 8 lines · Inochi Amaoto

Add compatible string for Sophgo SG2044 SoC I2C controller which can be used specifically for the SG2044 SoC.

---
 .../devicetree/bindings/i2c/snps,designware-i2c.yaml          | 4 ++++
 1 file changed, 4 insertions(+)
Quoted 17 lines

Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml properties: · line 44

Quoted 12 lines
Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml +4 -0
index bc5d0fb5abfe..677b39865af0 100644
@@ -38,6 +38,10 @@ properties:
           - const: snps,designware-i2c
       - description: Baikal-T1 SoC System I2C controller
         const: baikal,bt1-sys-i2c
+      - description: Sophgo SoCs I2C controller
+        items:
+          - const: sophgo,sg2044-i2c
+          - const: snps,designware-i2c

This is not a great pattern we've started. T-HEAD, Ocelot, and this should all be combined into 1 enum. The description here is not that useful.

I agree and am fine to do this.

Regard,
Inochi

author maintainer
#24 lore raw

PATCH 8/9 dt-bindings: riscv: sophgo: Add SG2044 compatible string

In reply to Inochi Amaoto

Add compatible string for the Sophgo SG2044 SoC and the SRD3-10 board.

---
 Documentation/devicetree/bindings/riscv/sophgo.yaml | 4 ++++
 1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/riscv/sophgo.yaml +4 -0
index a14cb10ff3f0..b4c4d7a7d7ad 100644
@@ -35,6 +35,10 @@ properties:
           - enum:
               - milkv,pioneer
           - const: sophgo,sg2042
+      - items:
+          - enum:
+              - sophgo,srd3-10
+          - const: sophgo,sg2044
 
 additionalProperties: true
 
Signature · 1 line
2.49.0
Reviewed-by on v1 8/9
#26 lore raw

Re: [PATCH 8/9] dt-bindings: riscv: sophgo: Add SG2044 compatible string

In reply to Inochi Amaoto
Quoted 13 lines · Inochi Amaoto

Add compatible string for the Sophgo SG2044 SoC and the SRD3-10 board.

---
  Documentation/devicetree/bindings/riscv/sophgo.yaml | 4 ++++
  1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/riscv/sophgo.yaml +0 -0
index a14cb10ff3f0..b4c4d7a7d7ad 100644

Documentation/devicetree/bindings/riscv/sophgo.yaml properties: · line 44

Quoted 10 lines
Documentation/devicetree/bindings/riscv/sophgo.yaml +4 -0
@@ -35,6 +35,10 @@ properties:
            - enum:
                - milkv,pioneer
            - const: sophgo,sg2042
+      - items:
+          - enum:
+              - sophgo,srd3-10
+          - const: sophgo,sg2044
 
  additionalProperties: true
 
author maintainer
#27 lore raw

PATCH 9/9 riscv: dts: sophgo: Add initial device tree of Sophgo SRD3-10

In reply to Inochi Amaoto

Sophgo SG2044 SRD3-10 board bases on Sophgo SG2044 SoC. This board includes 5 uart ports, 5 pcie x8 slots, 1 1G Ethernet port, 1 microSD slot.

Add initial device tree of this board with uart support.

---
 arch/riscv/boot/dts/sophgo/Makefile           |    1 +
 arch/riscv/boot/dts/sophgo/sg2044-cpus.dtsi   | 3002 +++++++++++++++++
 arch/riscv/boot/dts/sophgo/sg2044-reset.h     |  128 +
 .../boot/dts/sophgo/sg2044-sophgo-srd3-10.dts |   32 +
 arch/riscv/boot/dts/sophgo/sg2044.dtsi        |   86 +
 5 files changed, 3249 insertions(+)
 create mode 100644 arch/riscv/boot/dts/sophgo/sg2044-cpus.dtsi
 create mode 100644 arch/riscv/boot/dts/sophgo/sg2044-reset.h
 create mode 100644 arch/riscv/boot/dts/sophgo/sg2044-sophgo-srd3-10.dts
 create mode 100644 arch/riscv/boot/dts/sophgo/sg2044.dtsi
arch/riscv/boot/dts/sophgo/Makefile +1 -0
index 47d4243a8f35..85966306801e 100644
@@ -3,3 +3,4 @@ dtb-$(CONFIG_ARCH_SOPHGO) += cv1800b-milkv-duo.dtb
 dtb-$(CONFIG_ARCH_SOPHGO) += cv1812h-huashan-pi.dtb
 dtb-$(CONFIG_ARCH_SOPHGO) += sg2002-licheerv-nano-b.dtb
 dtb-$(CONFIG_ARCH_SOPHGO) += sg2042-milkv-pioneer.dtb
+dtb-$(CONFIG_ARCH_SOPHGO) += sg2044-sophgo-srd3-10.dtb
arch/riscv/boot/dts/sophgo/sg2044-cpus.dtsi new file +3002 -0

2,996 lines not on this page · raw message

arch/riscv/boot/dts/sophgo/sg2044-reset.h new file +128 -0

128 lines not on this page · raw message

arch/riscv/boot/dts/sophgo/sg2044-sophgo-srd3-10.dts new file +32 -0
new file mode 100644
index 000000000000..3cca0ef89e0b

Lines of this file are not shown. View the raw message.

arch/riscv/boot/dts/sophgo/sg2044.dtsi new file +86 -0

86 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.49.0

Part of the diff is not shown here. View the raw message.

#28 lore raw

Re: [PATCH 9/9] riscv: dts: sophgo: Add initial device tree of Sophgo SRD3-10

Quoted 19 lines · Inochi Amaoto

Sophgo SG2044 SRD3-10 board bases on Sophgo SG2044 SoC. This board includes 5 uart ports, 5 pcie x8 slots, 1 1G Ethernet port, 1 microSD slot.

Add initial device tree of this board with uart support.

---
 arch/riscv/boot/dts/sophgo/Makefile           |    1 +
 arch/riscv/boot/dts/sophgo/sg2044-cpus.dtsi   | 3002 +++++++++++++++++
 arch/riscv/boot/dts/sophgo/sg2044-reset.h     |  128 +
 .../boot/dts/sophgo/sg2044-sophgo-srd3-10.dts |   32 +
 arch/riscv/boot/dts/sophgo/sg2044.dtsi        |   86 +
 5 files changed, 3249 insertions(+)
 create mode 100644 arch/riscv/boot/dts/sophgo/sg2044-cpus.dtsi
 create mode 100644 arch/riscv/boot/dts/sophgo/sg2044-reset.h
 create mode 100644 arch/riscv/boot/dts/sophgo/sg2044-sophgo-srd3-10.dts
 create mode 100644 arch/riscv/boot/dts/sophgo/sg2044.dtsi

..

arch/riscv/boot/dts/sophgo/sg2044-reset.h line 3

Quoted 9 lines
arch/riscv/boot/dts/sophgo/sg2044-reset.h new file +3 -0
new file mode 100644
index 000000000000..94ed1e3777c3
@@ -0,0 +1,128 @@
+/* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */
+/*
+ * Copyright (C) 2025 Inochi Amaoto <[email protected]>

you might want to use your gmail suffix? IIRC your outlook account isn't preferable? besides, it's better cosistent with your signed-off

Signature · 3 lines
Yixun Lan (dlan)
Gentoo Linux Developer
GPG Key ID AABEFD55
author maintainer
#29 lore raw

Re: [PATCH 9/9] riscv: dts: sophgo: Add initial device tree of Sophgo SRD3-10

Quoted 22 lines · Yixun Lan
Quoted 19 lines · Inochi Amaoto

Sophgo SG2044 SRD3-10 board bases on Sophgo SG2044 SoC. This board includes 5 uart ports, 5 pcie x8 slots, 1 1G Ethernet port, 1 microSD slot.

Add initial device tree of this board with uart support.

---
 arch/riscv/boot/dts/sophgo/Makefile           |    1 +
 arch/riscv/boot/dts/sophgo/sg2044-cpus.dtsi   | 3002 +++++++++++++++++
 arch/riscv/boot/dts/sophgo/sg2044-reset.h     |  128 +
 .../boot/dts/sophgo/sg2044-sophgo-srd3-10.dts |   32 +
 arch/riscv/boot/dts/sophgo/sg2044.dtsi        |   86 +
 5 files changed, 3249 insertions(+)
 create mode 100644 arch/riscv/boot/dts/sophgo/sg2044-cpus.dtsi
 create mode 100644 arch/riscv/boot/dts/sophgo/sg2044-reset.h
 create mode 100644 arch/riscv/boot/dts/sophgo/sg2044-sophgo-srd3-10.dts
 create mode 100644 arch/riscv/boot/dts/sophgo/sg2044.dtsi

..

Quoted 12 lines

arch/riscv/boot/dts/sophgo/sg2044-reset.h line 3

Quoted 9 lines
arch/riscv/boot/dts/sophgo/sg2044-reset.h new file +3 -0
new file mode 100644
index 000000000000..94ed1e3777c3
@@ -0,0 +1,128 @@
+/* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */
+/*
+ * Copyright (C) 2025 Inochi Amaoto <[email protected]>

you might want to use your gmail suffix? IIRC your outlook account isn't preferable? besides, it's better cosistent with your signed-off

Yeah, I forgot to change the copyright since this patch is wrote several months ago. I will update the copyright for this patch.

Thanks for reminder.

Regards,
Inochi

#30 lore raw

Re: [PATCH 9/9] riscv: dts: sophgo: Add initial device tree of Sophgo SRD3-10

In reply to Inochi Amaoto

Hi,

I see reset ID in sg2044-reset.h is continous, can we move this file to include/dt-bindings/reset ?

Chen

Quoted 18 lines · Inochi Amaoto

Sophgo SG2044 SRD3-10 board bases on Sophgo SG2044 SoC. This board includes 5 uart ports, 5 pcie x8 slots, 1 1G Ethernet port, 1 microSD slot.

Add initial device tree of this board with uart support.

---
  arch/riscv/boot/dts/sophgo/Makefile           |    1 +
  arch/riscv/boot/dts/sophgo/sg2044-cpus.dtsi   | 3002 +++++++++++++++++
  arch/riscv/boot/dts/sophgo/sg2044-reset.h     |  128 +
  .../boot/dts/sophgo/sg2044-sophgo-srd3-10.dts |   32 +
  arch/riscv/boot/dts/sophgo/sg2044.dtsi        |   86 +
  5 files changed, 3249 insertions(+)

create mode 100644 arch/riscv/boot/dts/sophgo/sg2044-cpus.dtsi create mode 100644 arch/riscv/boot/dts/sophgo/sg2044-reset.h create mode 100644 arch/riscv/boot/dts/sophgo/sg2044-sophgo-srd3-10.dts create mode 100644 arch/riscv/boot/dts/sophgo/sg2044.dtsi

[......]

author maintainer
#31 lore raw

Re: [PATCH 9/9] riscv: dts: sophgo: Add initial device tree of Sophgo SRD3-10

Quoted 7 lines · Chen Wang

Hi,

I see reset ID in sg2044-reset.h is continous, can we move this file to include/dt-bindings/reset ?

Chen

I do not prefer to move, although the id is continous, it describes the hardware abi not the software one.

Regards,
Inochi