riscv: dts: sophgo: sg2044: add PCIe device node
Subsystems (3)
Inochi Amaoto
maintainercover 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
Inochi Amaoto
maintainerPATCH 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
@@ -63,6 +63,10 @@ mcu: syscon@17 { }; }; +&msi { + status = "okay"; +}; + &pwm { status = "okay"; };
arch/riscv/boot/dts/sophgo/sg2044.dtsi +11 -0
@@ -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
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.
Signed-off-by Inochi Amaoto <[email protected]>--- 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@@ -63,6 +63,10 @@ mcu: syscon@17 { }; }; +&msi { + status = "okay"; +}; + &pwm { status = "okay"; };arch/riscv/boot/dts/sophgo/sg2044.dtsi +4
-0@@ -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>;
Inochi Amaoto
maintainerPATCH 2/2 riscv: dts: sophgo: sg2044: add PCIe device support for SG2044
In reply to Inochi AmaotoAdd 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
@@ -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
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