Add Sophgo x8/x4 EVB Board support
Subsystems (3)
cover Add Sophgo x8/x4 EVB Board support
Sophgo x8/x4 EVB [1][2] is a prototype board based on SOPHON SG2042 [3]. There are many of these two boards in the hands of developers.
Currently supports serial port, sdcard/emmc, pwm, fan speed control.
Added ethernet support based on [4].
Thanks,
Han
[1]: https://github.com/sophgo/sophgo-hardware/tree/master/SG2042/SG2042-x8-EVB
[2]: https://github.com/sophgo/sophgo-hardware/tree/master/SG2042/SG2042-x4-EVB
[3]: https://en.sophgo.com/product/introduce/sg2042.html
[4]: https://lore.kernel.org/all/[email protected]/
Han Gao (4):
dt-bindings: riscv: add Sophgo x8 EVB bindings
riscv: dts: sophgo: add Sophgo x8 EVB board device tree
dt-bindings: riscv: add Sophgo x4 EVB bindings
riscv: dts: sophgo: add Sophgo x4 EVB board device tree
.../devicetree/bindings/riscv/sophgo.yaml | 2 + arch/riscv/boot/dts/sophgo/Makefile | 2 + .../boot/dts/sophgo/sg2042-sophgo-x4evb.dts | 235 +++++++++++++++++ .../boot/dts/sophgo/sg2042-sophgo-x8evb.dts | 247 ++++++++++++++++++ 4 files changed, 486 insertions(+) create mode 100644 arch/riscv/boot/dts/sophgo/sg2042-sophgo-x4evb.dts create mode 100644 arch/riscv/boot/dts/sophgo/sg2042-sophgo-x8evb.dts
base-commit: 550de367614f7a9a0c1d40d7e19764aa9305009a
prerequisite-patch-id: 7a82e319b011e5d0486a6ef4216d931d671c9f53
prerequisite-patch-id: 5a30fb99ec483c1f5a8dca97df862c3a042c9027
prerequisite-patch-id: e0da79790a934916d9fc39c18e8e98c9596d27ab
prerequisite-patch-id: 84d1e1637549f632729eaeb7cf935ca78a642fe3
Signature · 1 line
2.47.2
PATCH 1/4 dt-bindings: riscv: add Sophgo x8 EVB bindings
Add DT binding documentation for the Sophgo x8 EVB board [1].
--- Documentation/devicetree/bindings/riscv/sophgo.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/riscv/sophgo.yaml +1 -0
@@ -34,6 +34,7 @@ properties: - items: - enum: - milkv,pioneer + - sophgo,sg2042-x8evb - const: sophgo,sg2042 additionalProperties: true
Signature · 1 line
2.47.2
Re: [PATCH 1/4] dt-bindings: riscv: add Sophgo x8 EVB bindings
Quoted 14 lines · Han Gao
Add DT binding documentation for the Sophgo x8 EVB board [1].
Signed-off-by Han Gao <[email protected]>--- Documentation/devicetree/bindings/riscv/sophgo.yaml | 1 + 1 file changed, 1 insertion(+)Documentation/devicetree/bindings/riscv/sophgo.yaml +0
-0
Documentation/devicetree/bindings/riscv/sophgo.yaml properties: · line 37
Quoted 4 lines
Documentation/devicetree/bindings/riscv/sophgo.yaml +1
-0@@ -34,6 +34,7 @@ properties: - items: - enum: - milkv,pioneer + - sophgo,sg2042-x8evb
I wonder the product name is x8evb or sg2042-x8evb?
The same question to x4evb.
Regards,
Chen
Quoted 3 lines
Documentation/devicetree/bindings/riscv/sophgo.yaml +0
-0- const: sophgo,sg2042 additionalProperties: true
Re: [PATCH 1/4] dt-bindings: riscv: add Sophgo x8 EVB bindings
I hope it is sg2042-x8evb.
Sophgo is also making EVB boards for sg2044.
I think a distinction needs to be made here.
Regards,
Han
Quoted 33 lines · Chen Wang
Quoted 14 lines · Han Gao
Add DT binding documentation for the Sophgo x8 EVB board [1].
Signed-off-by Han Gao <[email protected]>--- Documentation/devicetree/bindings/riscv/sophgo.yaml | 1 + 1 file changed, 1 insertion(+)Documentation/devicetree/bindings/riscv/sophgo.yaml +0
-0Documentation/devicetree/bindings/riscv/sophgo.yaml properties: · line 37
Quoted 4 lines
Documentation/devicetree/bindings/riscv/sophgo.yaml +1
-0@@ -34,6 +34,7 @@ properties: - items: - enum: - milkv,pioneer + - sophgo,sg2042-x8evbI wonder the product name is x8evb or sg2042-x8evb?
The same question to x4evb.
Regards,
Chen
Quoted 3 lines
Documentation/devicetree/bindings/riscv/sophgo.yaml +0
-0- const: sophgo,sg2042 additionalProperties: true
Inochi Amaoto
maintainerRe: [PATCH 1/4] dt-bindings: riscv: add Sophgo x8 EVB bindings
Quoted 6 lines · Han Gao
I hope it is sg2042-x8evb.
Sophgo is also making EVB boards for sg2044.
I think a distinction needs to be made here.
SG2044 evb has a formal name like srd3-10, but I think it should have a sg2044 prefix. as the name printing on the board has a sg2042 prefix.
But there is something needed to be checked, like whether the "x8evb" should be "evb-1.0" and "x4evb" should be "evb-2.0".
Regards,
Inochi
Re: [PATCH 1/4] dt-bindings: riscv: add Sophgo x8 EVB bindings
Quoted 10 lines · Inochi Amaoto
Quoted 6 lines · Han Gao
I hope it is sg2042-x8evb.
Sophgo is also making EVB boards for sg2044.
I think a distinction needs to be made here.
SG2044 evb has a formal name like srd3-10, but I think it should have a sg2044 prefix. as the name printing on the board has a sg2042 prefix.
sg2042 prefix? :)
Quoted 6 lines
But there is something needed to be checked, like whether the "x8evb" should be "evb-1.0" and "x4evb" should be "evb-2.0".
Regards,
Inochi
Agreed. To avoid confusion, it is best not to define the official product name yourself, but to confirm with the vendor (here is sophgo) or have them provide it, just like "srd3-10", we contacted sophgo's marketing staff and they provided it.
Chen
Inochi Amaoto
maintainerRe: [PATCH 1/4] dt-bindings: riscv: add Sophgo x8 EVB bindings
Quoted 5 lines · Chen Wang
Quoted 3 lines · Inochi Amaoto
Quoted 2 lines · Han Gao
I hope it is sg2042-x8evb.
Quoted 8 lines
Quoted 7 lines
Quoted 4 lines
Sophgo is also making EVB boards for sg2044.
I think a distinction needs to be made here.
SG2044 evb has a formal name like srd3-10, but I think it should have a sg2044 prefix. as the name printing on the board has a sg2042 prefix.
sg2042 prefix? :)
Yeah, it prints SG2042_EVB_V2_0.
Inochi Amaoto
maintainerRe: [PATCH 1/4] dt-bindings: riscv: add Sophgo x8 EVB bindings
In reply to Chen WangQuoted 5 lines · Chen Wang
Quoted 3 lines · Inochi Amaoto
Quoted 2 lines · Han Gao
I hope it is sg2042-x8evb.
Quoted 8 lines
Quoted 7 lines
Quoted 4 lines
Sophgo is also making EVB boards for sg2044.
I think a distinction needs to be made here.
SG2044 evb has a formal name like srd3-10, but I think it should have a sg2044 prefix. as the name printing on the board has a sg2042 prefix.
sg2042 prefix? :)
You are right, I have make a mistake.
PATCH 2/4 riscv: dts: sophgo: add Sophgo x8 EVB board device tree
In reply to Han GaoSophgo x8 EVB [1] is a prototype development board based on SG2042
Currently supports serial port, sdcard/emmc, pwm, fan speed control.
--- arch/riscv/boot/dts/sophgo/Makefile | 1 + .../boot/dts/sophgo/sg2042-sophgo-x8evb.dts | 247 ++++++++++++++++++ 2 files changed, 248 insertions(+) create mode 100644 arch/riscv/boot/dts/sophgo/sg2042-sophgo-x8evb.dts
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) += sg2042-sophgo-x8evb.dtb
arch/riscv/boot/dts/sophgo/sg2042-sophgo-x8evb.dts new file +247 -0
247 lines not on this page · raw message
Signature · 1 line
2.47.2
PATCH 3/4 dt-bindings: riscv: add Sophgo x4 EVB bindings
In reply to Han GaoAdd DT binding documentation for the Sophgo x4 EVB board [1].
--- Documentation/devicetree/bindings/riscv/sophgo.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/riscv/sophgo.yaml +1 -0
@@ -35,6 +35,7 @@ properties: - enum: - milkv,pioneer - sophgo,sg2042-x8evb + - sophgo,sg2042-x4evb - const: sophgo,sg2042 additionalProperties: true
Signature · 1 line
2.47.2
Inochi Amaoto
maintainerRe: [PATCH 3/4] dt-bindings: riscv: add Sophgo x4 EVB bindings
Quoted 24 lines · Han Gao
Add DT binding documentation for the Sophgo x4 EVB board [1].
Signed-off-by Han Gao <[email protected]>--- Documentation/devicetree/bindings/riscv/sophgo.yaml | 1 + 1 file changed, 1 insertion(+)Documentation/devicetree/bindings/riscv/sophgo.yaml +1
-0@@ -35,6 +35,7 @@ properties: - enum: - milkv,pioneer - sophgo,sg2042-x8evb + - sophgo,sg2042-x4evb - const: sophgo,sg2042 additionalProperties: trueSignature · 1 line
2.47.2
Please keep alphabetical order.
Regards,
Inochi
Re: [PATCH 3/4] dt-bindings: riscv: add Sophgo x4 EVB bindings
Quoted 21 lines · Inochi Amaoto
Quoted 20 lines · Han Gao
Add DT binding documentation for the Sophgo x4 EVB board [1].
Signed-off-by Han Gao <[email protected]>--- Documentation/devicetree/bindings/riscv/sophgo.yaml | 1 + 1 file changed, 1 insertion(+)Documentation/devicetree/bindings/riscv/sophgo.yaml +1
-0@@ -35,6 +35,7 @@ properties: - enum: - milkv,pioneer - sophgo,sg2042-x8evb + - sophgo,sg2042-x4evb - const: sophgo,sg2042
Quoted 6 lines
Quoted 4 lines
Documentation/devicetree/bindings/riscv/sophgo.yaml +0
-0additionalProperties: trueSignature · 1 line
2.47.2Please keep alphabetical order.
Additionally, I think it'd be pretty reasonable to add both of these compatibles at the same time since they're variants p much.
PATCH 4/4 riscv: dts: sophgo: add Sophgo x4 EVB board device tree
In reply to Han GaoSophgo x4 EVB [1] is a prototype development board based on SG2042
Currently supports serial port, sdcard/emmc, pwm, fan speed control.
--- arch/riscv/boot/dts/sophgo/Makefile | 1 + .../boot/dts/sophgo/sg2042-sophgo-x4evb.dts | 235 ++++++++++++++++++ 2 files changed, 236 insertions(+) create mode 100644 arch/riscv/boot/dts/sophgo/sg2042-sophgo-x4evb.dts
arch/riscv/boot/dts/sophgo/Makefile +1 -0
@@ -4,3 +4,4 @@ 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) += sg2042-sophgo-x8evb.dtb +dtb-$(CONFIG_ARCH_SOPHGO) += sg2042-sophgo-x4evb.dtb
arch/riscv/boot/dts/sophgo/sg2042-sophgo-x4evb.dts new file +235 -0
235 lines not on this page · raw message
Signature · 1 line
2.47.2