Skip to contentSkip to conversation

riscv: dts: sophgo: sg2044: add PCIe device node

PATCH Applied Inochi Amaoto 2 participants 5 messages Jun 18, 2025 – Jul 7, 2025

Subsystems (3)
lore
Share & tools
lore

Inochi Amaoto

author maintainer
#0 lore raw

cover riscv: dts: sophgo: sg2044: add PCIe device node

As the PCIe driver is merged, add device node of PCIe device and MSI device for SG2044.

Inochi Amaoto (2):
riscv: dts: sophgo: sg2044: add MSI device support for SG2044
riscv: dts: sophgo: sg2044: add PCIe device support for SG2044

 .../boot/dts/sophgo/sg2044-sophgo-srd3-10.dts |  34 ++++
 arch/riscv/boot/dts/sophgo/sg2044.dtsi        | 186 ++++++++++++++++++
 2 files changed, 220 insertions(+)

--
2.49.0

author maintainer
#1 lore raw

PATCH 1/2 riscv: dts: sophgo: sg2044: add MSI device support for SG2044

Add MSI device tree node for SG2044.

---
 arch/riscv/boot/dts/sophgo/sg2044-sophgo-srd3-10.dts |  4 ++++
 arch/riscv/boot/dts/sophgo/sg2044.dtsi               | 11 +++++++++++
 2 files changed, 15 insertions(+)
arch/riscv/boot/dts/sophgo/sg2044-sophgo-srd3-10.dts +4 -0
index b50c3a872d8b..c97bd62e5f06 100644
@@ -63,6 +63,10 @@ mcu: syscon@17 {
 	};
 };
 
+&msi {
+	status = "okay";
+};
+
 &pwm {
 	status = "okay";
 };
arch/riscv/boot/dts/sophgo/sg2044.dtsi +11 -0
index f88cabe75790..aae4539dea98 100644
@@ -32,6 +32,17 @@ soc {
 		#size-cells = <2>;
 		ranges;
 
+		msi: msi-controller@6d50000000 {
+			compatible = "sophgo,sg2044-msi";
+			reg = <0x6d 0x50000000 0x0 0x800>,
+			      <0x0 0x7ee00000 0x0 0x40>;
+			reg-names = "clr", "doorbell";
+			#msi-cells = <0>;
+			msi-controller;
+			msi-ranges = <&intc 352 IRQ_TYPE_LEVEL_HIGH 512>;
+			status = "disabled";
+		};
+
 		spifmc0: spi@7001000000 {
 			compatible = "sophgo,sg2044-spifmc-nor";
 			reg = <0x70 0x01000000 0x0 0x4000000>;
Signature · 1 line
2.49.0
Reviewed-by on v1 1/2
#2 lore raw

Re: [PATCH 1/2] riscv: dts: sophgo: sg2044: add MSI device support for SG2044

Quoted 35 lines · Inochi Amaoto

Add MSI device tree node for SG2044.

---
  arch/riscv/boot/dts/sophgo/sg2044-sophgo-srd3-10.dts |  4 ++++
  arch/riscv/boot/dts/sophgo/sg2044.dtsi               | 11 +++++++++++
  2 files changed, 15 insertions(+)
arch/riscv/boot/dts/sophgo/sg2044-sophgo-srd3-10.dts +4 -0
index b50c3a872d8b..c97bd62e5f06 100644
@@ -63,6 +63,10 @@ mcu: syscon@17 {
  	};
  };
 
+&msi {
+	status = "okay";
+};
+
  &pwm {
  	status = "okay";
  };
arch/riscv/boot/dts/sophgo/sg2044.dtsi +4 -0
index f88cabe75790..aae4539dea98 100644
@@ -32,6 +32,17 @@ soc {
  		#size-cells = <2>;
  		ranges;
 
+		msi: msi-controller@6d50000000 {
+			compatible = "sophgo,sg2044-msi";
+			reg = <0x6d 0x50000000 0x0 0x800>,
+			      <0x0 0x7ee00000 0x0 0x40>;

arch/riscv/boot/dts/sophgo/sg2044.dtsi soc { · line 48

Quoted 10 lines
arch/riscv/boot/dts/sophgo/sg2044.dtsi +7 -0
+			reg-names = "clr", "doorbell";
+			#msi-cells = <0>;
+			msi-controller;
+			msi-ranges = <&intc 352 IRQ_TYPE_LEVEL_HIGH 512>;
+			status = "disabled";
+		};
+
  		spifmc0: spi@7001000000 {
  			compatible = "sophgo,sg2044-spifmc-nor";
  			reg = <0x70 0x01000000 0x0 0x4000000>;
author maintainer
#3 lore raw

PATCH 2/2 riscv: dts: sophgo: sg2044: add PCIe device support for SG2044

In reply to Inochi Amaoto

Add PCIe device node for SG2044 and configuration for Sophgo SRD3-10.

---
 .../boot/dts/sophgo/sg2044-sophgo-srd3-10.dts |  30 +++
 arch/riscv/boot/dts/sophgo/sg2044.dtsi        | 175 ++++++++++++++++++
 2 files changed, 205 insertions(+)
arch/riscv/boot/dts/sophgo/sg2044-sophgo-srd3-10.dts +30 -0
index c97bd62e5f06..1ca5fb707061 100644
@@ -67,6 +67,36 @@ &msi {
 	status = "okay";
 };
 
+&pcie0 {
+	bus-range = <0x00 0xff>;
+	linux,pci-domain = <1>;
+	status = "okay";
+};
+
+&pcie1 {
+	bus-range = <0x00 0xff>;
+	linux,pci-domain = <0>;
+	status = "okay";
+};
+
+&pcie2 {
+	bus-range = <0x00 0xff>;
+	linux,pci-domain = <3>;
+	status = "okay";
+};
+
+&pcie3 {
+	bus-range = <0x00 0xff>;
+	linux,pci-domain = <2>;
+	status = "okay";
+};
+
+&pcie4 {
+	bus-range = <0x00 0xff>;
+	linux,pci-domain = <4>;
+	status = "okay";
+};
+
 &pwm {
 	status = "okay";
 };
arch/riscv/boot/dts/sophgo/sg2044.dtsi +175 -0

181 lines not on this page · raw message

Signature · 1 line
2.49.0
author maintainer Applied
#4 lore raw
In reply to Inochi Amaoto
Quoted 8 lines · Inochi Amaoto

As the PCIe driver is merged, add device node of PCIe device and MSI device for SG2044.

Inochi Amaoto (2):
riscv: dts: sophgo: sg2044: add MSI device support for SG2044
riscv: dts: sophgo: sg2044: add PCIe device support for SG2044

[...]

Applied to for-next, thanks!

[1/2] riscv: dts: sophgo: sg2044: add MSI device support for SG2044

      https://github.com/sophgo/linux/commit/29ce381d6bc61b23024c6ee42a5745d4becb28c1
[2/2] riscv: dts: sophgo: sg2044: add PCIe device support for SG2044
      https://github.com/sophgo/linux/commit/55fd09df36d7c6ae59d82a7df5072827f65a0eb4

Thanks,
Inochi