2021-04-28 13:49:13

by Xiaochuan Mao

[permalink] [raw]
Subject: [PATCH v2] MIPS:DTS:Correct device id of pcie for Loongnon-2K

from Loongson-2K user manual know that Loongson-2K have two
pcie controller pcie0 and pcie1, pcie0 have four port named port0~port3
and pcie1 have 2 port named port0~port1. the device id of port0 is 7a19
in each pcie controller and others are 7a09.

Signed-off-by: Xiaochuan Mao <[email protected]>
---
v1:
revert class code
---
.../boot/dts/loongson/loongson64-2k1000.dtsi | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/arch/mips/boot/dts/loongson/loongson64-2k1000.dtsi b/arch/mips/boot/dts/loongson/loongson64-2k1000.dtsi
index 569e814def83..912dcad361ef 100644
--- a/arch/mips/boot/dts/loongson/loongson64-2k1000.dtsi
+++ b/arch/mips/boot/dts/loongson/loongson64-2k1000.dtsi
@@ -163,8 +163,8 @@
};

pci_bridge@a,0 {
- compatible = "pci0014,7a19.0",
- "pci0014,7a19",
+ compatible = "pci0014,7a09.0",
+ "pci0014,7a09",
"pciclass060400",
"pciclass0604";

@@ -178,8 +178,8 @@
};

pci_bridge@b,0 {
- compatible = "pci0014,7a19.0",
- "pci0014,7a19",
+ compatible = "pci0014,7a09.0",
+ "pci0014,7a09",
"pciclass060400",
"pciclass0604";

@@ -193,8 +193,8 @@
};

pci_bridge@c,0 {
- compatible = "pci0014,7a19.0",
- "pci0014,7a19",
+ compatible = "pci0014,7a09.0",
+ "pci0014,7a09",
"pciclass060400",
"pciclass0604";

@@ -223,8 +223,8 @@
};

pci_bridge@e,0 {
- compatible = "pci0014,7a19.0",
- "pci0014,7a19",
+ compatible = "pci0014,7a09.0",
+ "pci0014,7a09",
"pciclass060400",
"pciclass0604";

--
2.17.1


2021-04-29 01:47:46

by Jiaxun Yang

[permalink] [raw]
Subject: Re: [PATCH v2] MIPS:DTS:Correct device id of pcie for Loongnon-2K


?? 2021/4/28 20:06, Xiaochuan Mao ะด??:
> from Loongson-2K user manual know that Loongson-2K have two
> pcie controller pcie0 and pcie1, pcie0 have four port named port0~port3
> and pcie1 have 2 port named port0~port1. the device id of port0 is 7a19
> in each pcie controller and others are 7a09.
>
> Signed-off-by: Xiaochuan Mao <[email protected]>

Reviewed-by: Jiaxun Yang <[email protected]>

> ---
> v1:
> revert class code
> ---
> .../boot/dts/loongson/loongson64-2k1000.dtsi | 16 ++++++++--------
[...]

2021-05-11 20:49:40

by Thomas Bogendoerfer

[permalink] [raw]
Subject: Re: [PATCH v2] MIPS:DTS:Correct device id of pcie for Loongnon-2K

On Wed, Apr 28, 2021 at 08:06:28PM +0800, Xiaochuan Mao wrote:
> from Loongson-2K user manual know that Loongson-2K have two
> pcie controller pcie0 and pcie1, pcie0 have four port named port0~port3
> and pcie1 have 2 port named port0~port1. the device id of port0 is 7a19
> in each pcie controller and others are 7a09.
>
> Signed-off-by: Xiaochuan Mao <[email protected]>
> ---
> v1:
> revert class code
> ---
> .../boot/dts/loongson/loongson64-2k1000.dtsi | 16 ++++++++--------
> 1 file changed, 8 insertions(+), 8 deletions(-)

applied to mips-next.

Thomas.

--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]