riscv: sophgo: Introduce SG2044 SRD3-10 board support
Subsystems (10)
Inochi Amaoto
maintainercover 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
Inochi Amaoto
maintainerPATCH 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
@@ -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
Re: [PATCH 1/9] dt-bindings: timer: Add Sophgo SG2044 ACLINT timer
Quoted 8 lines · Inochi Amaoto
Like SG2042, SG2044 implements an enhanced ACLINT, so add necessary compatible string for SG2044 SoC.
Signed-off-by Inochi Amaoto <[email protected]>--- .../devicetree/bindings/timer/thead,c900-aclint-mtimer.yaml | 1 + 1 file changed, 1 insertion(+)
Daniel Lezcano
AppliedRe: [PATCH 1/9] dt-bindings: timer: Add Sophgo SG2044 ACLINT timer
In reply to Inochi AmaotoQuoted 5 lines · Inochi Amaoto
Like SG2042, SG2044 implements an enhanced ACLINT, so add necessary compatible string for SG2044 SoC.
Signed-off-by Inochi Amaoto <[email protected]>---
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
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.
Signed-off-by Inochi Amaoto <[email protected]>---
Applied, thanks
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.
Signed-off-by Inochi Amaoto <[email protected]>---
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
Inochi Amaoto
maintainerPATCH 2/9 dt-bindings: interrupt-controller: Add Sophgo SG2044 CLINT mswi
In reply to Inochi AmaotoAs 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
@@ -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
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.
Signed-off-by Inochi Amaoto <[email protected]>--- .../bindings/interrupt-controller/thead,c900-aclint-mswi.yaml | 1 + 1 file changed, 1 insertion(+)
Re: [PATCH 2/9] dt-bindings: interrupt-controller: Add Sophgo SG2044 CLINT mswi
In reply to Inochi AmaotoQuoted 1 line · Inochi Amaoto
As SG2044 also implements an enhanced ACLINT as SG204, add necessary
SG204 -> SG2024
[......]
Inochi Amaoto
maintainerPATCH 3/9 dt-bindings: interrupt-controller: Add Sophgo SG2044 PLIC
In reply to Inochi AmaotoThe 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
@@ -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
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.
Signed-off-by Inochi Amaoto <[email protected]>--- .../bindings/interrupt-controller/sifive,plic-1.0.0.yaml | 1 + 1 file changed, 1 insertion(+)
Inochi Amaoto
maintainerPATCH 4/9 dt-bindings: reset: sophgo: Add SG2044 bindings.
In reply to Inochi AmaotoThe 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
@@ -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
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.
Signed-off-by Inochi Amaoto <[email protected]>--- .../devicetree/bindings/reset/sophgo,sg2042-reset.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
Re: [PATCH 4/9] dt-bindings: reset: sophgo: Add SG2044 bindings.
In reply to Inochi AmaotoQuoted 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.
Signed-off-by Inochi Amaoto <[email protected]>
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@@ -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
Inochi Amaoto
maintainerPATCH 5/9 dt-bindings: hwmon: Add Sophgo SG2044 external hardware monitor support
In reply to Inochi AmaotoThe 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
@@ -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
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.
Signed-off-by Inochi Amaoto <[email protected]>--- .../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
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
-0reg: maxItems: 1Signature · 1 line
2.49.0
Signature · 3 lines
Yixun Lan (dlan) Gentoo Linux Developer GPG Key ID AABEFD55
Inochi Amaoto
maintainerRe: [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.
Signed-off-by Inochi Amaoto <[email protected]>--- .../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@@ -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
-1properties: compatible: - const: sophgo,sg2042-hwmon-mcu + oneOf: + - items: + - const: sophgo,sg2044-hwmon-mcu + - const: sophgo,sg2042-hwmon-mcu + - const: sophgo,sg2042-hwmon-mcuthe 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
Re: [PATCH 5/9] dt-bindings: hwmon: Add Sophgo SG2044 external hardware monitor support
In reply to Inochi AmaotoQuoted 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.
Signed-off-by Inochi Amaoto <[email protected]>--- .../devicetree/bindings/hwmon/sophgo,sg2042-hwmon-mcu.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
Inochi Amaoto
maintainerPATCH 6/9 dt-bindings: mmc: sdhci-of-dwcmhsc: Add Sophgo SG2044 support
In reply to Inochi AmaotoThe 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
@@ -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
Rob Herring
maintainerRe: [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.
Signed-off-by Inochi Amaoto <[email protected]>--- .../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@@ -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
Inochi Amaoto
maintainerRe: [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.
Signed-off-by Inochi Amaoto <[email protected]>--- .../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@@ -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-dwcmshcDocumentation/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-dwcmshcNo need for this hunk because the new one has sophgo,sg2042-dwcmshc already.
Quoted 1 line
Rob
Thanks, I will remove it.
Regards,
Inochi
Inochi Amaoto
maintainerPATCH 7/9 dt-bindings: i2c: dw: Add Sophgo SG2044 SoC I2C controller
In reply to Inochi AmaotoAdd 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
@@ -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
Rob Herring
maintainerRe: [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.
Signed-off-by Inochi Amaoto <[email protected]>--- .../devicetree/bindings/i2c/snps,designware-i2c.yaml | 4 ++++ 1 file changed, 4 insertions(+)Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml +0
-0
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-i2cSignature · 1 line
2.49.0
Inochi Amaoto
maintainerRe: [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.
Signed-off-by Inochi Amaoto <[email protected]>--- .../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@@ -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-i2cThis 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
Inochi Amaoto
maintainerPATCH 8/9 dt-bindings: riscv: sophgo: Add SG2044 compatible string
In reply to Inochi AmaotoAdd 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
@@ -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
Re: [PATCH 8/9] dt-bindings: riscv: sophgo: Add SG2044 compatible string
Quoted 8 lines · Inochi Amaoto
Add compatible string for the Sophgo SG2044 SoC and the SRD3-10 board.
Signed-off-by Inochi Amaoto <[email protected]>--- Documentation/devicetree/bindings/riscv/sophgo.yaml | 4 ++++ 1 file changed, 4 insertions(+)
Re: [PATCH 8/9] dt-bindings: riscv: sophgo: Add SG2044 compatible string
In reply to Inochi AmaotoQuoted 13 lines · Inochi Amaoto
Add compatible string for the Sophgo SG2044 SoC and the SRD3-10 board.
Signed-off-by Inochi Amaoto <[email protected]>--- Documentation/devicetree/bindings/riscv/sophgo.yaml | 4 ++++ 1 file changed, 4 insertions(+)Documentation/devicetree/bindings/riscv/sophgo.yaml +0
-0
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
Inochi Amaoto
maintainerPATCH 9/9 riscv: dts: sophgo: Add initial device tree of Sophgo SRD3-10
In reply to Inochi AmaotoSophgo 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
@@ -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
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.
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.
Signed-off-by Inochi Amaoto <[email protected]>--- 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@@ -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
Inochi Amaoto
maintainerRe: [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.
Signed-off-by Inochi Amaoto <[email protected]>--- 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@@ -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
Re: [PATCH 9/9] riscv: dts: sophgo: Add initial device tree of Sophgo SRD3-10
In reply to Inochi AmaotoHi,
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.
Signed-off-by Inochi Amaoto <[email protected]>--- 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.dtsicreate mode 100644arch/riscv/boot/dts/sophgo/sg2044-reset.hcreate mode 100644arch/riscv/boot/dts/sophgo/sg2044-sophgo-srd3-10.dtscreate mode 100644arch/riscv/boot/dts/sophgo/sg2044.dtsi
[......]
Inochi Amaoto
maintainerRe: [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.his continous, can we move this file toinclude/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