apm821xx: fix pcie node numbers

The values provides are correct if after the @ it would be the bus
number and then device number. But it's actually, device and then
function for pcie devices.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19425
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
Rosen Penev 2025-07-15 15:44:25 -07:00 committed by Christian Marangi
parent 66a7e04e9e
commit dc420acc77
No known key found for this signature in database
GPG Key ID: AC001D09ADBFEAD7
5 changed files with 24 additions and 24 deletions

View File

@ -227,13 +227,13 @@
*
*/
bridge@64,0 {
bridge@0,0 {
reg = <0x00400000 0 0 0 0>;
#address-cells = <3>;
#size-cells = <2>;
ranges;
bridge@65,0 {
bridge@0,0 {
/* IDT PES3T3 PCI Express Switch */
compatible = "pci111d,8039";
reg = <0x00410000 0 0 0 0>;
@ -241,14 +241,14 @@
#size-cells = <2>;
ranges;
bridge@66,2 {
bridge@2,0 {
compatible = "pci111d,8039";
reg = <0x00421000 0 0 0 0>;
#address-cells = <3>;
#size-cells = <2>;
ranges;
wifi0: wifi@67,0 {
wifi0: wifi@0,0 {
/* Atheros AR9380 2.4GHz */
compatible = "pci168c,0030";
reg = <0x00430000 0 0 0 0>;
@ -256,14 +256,14 @@
};
};
bridge@66,3 {
bridge@3,0 {
compatible = "pci111d,8039";
reg = <0x00421800 0 0 0 0>;
#address-cells = <3>;
#size-cells = <2>;
ranges;
wifi1: wifi@68,0 {
wifi1: wifi@0,0 {
/* Atheros AR9380 5GHz */
compatible = "pci168c,0030";
reg = <0x00440000 0 0 0 0>;

View File

@ -443,13 +443,13 @@
* -+-[0000:40]---00.0-[41-7f]----00.0
*/
bridge@64,0 {
bridge@0,0 {
reg = <0x00400000 0 0 0 0>;
#address-cells = <3>;
#size-cells = <2>;
ranges;
wifi0: wifi@65,0 {
wifi0: wifi@0,0 {
/* Atheros AR9380 2.4/5GHz */
compatible = "pci168c,0030";
reg = <0x00410000 0 0 0 0>;

View File

@ -31,13 +31,13 @@
* -+-[0000:40]---00.0-[41-7f]----00.0
*/
bridge@64,0 {
bridge@0,0 {
reg = <0x00400000 0 0 0 0>;
#address-cells = <3>;
#size-cells = <2>;
ranges;
wifi0: wifi@65,0 {
wifi0: wifi@0,0 {
/* Atheros AR9380 5GHz */
compatible = "pci168c,0030";
reg = <0x00410000 0 0 0 0>;

View File

@ -48,13 +48,13 @@
*
*/
bridge@64,0 {
bridge@0,0 {
reg = <0x00400000 0 0 0 0>;
#address-cells = <3>;
#size-cells = <2>;
ranges;
bridge@65,0 {
bridge@0,0 {
/* IDT PES3T3 PCI Express Switch */
compatible = "pci111d,8039";
reg = <0x00410000 0 0 0 0>;
@ -62,14 +62,14 @@
#size-cells = <2>;
ranges;
bridge@66,2 {
bridge@2,0 {
compatible = "pci111d,8039";
reg = <0x00421000 0 0 0 0>;
#address-cells = <3>;
#size-cells = <2>;
ranges;
wifi0: wifi@67,0 {
wifi0: wifi@0,0 {
/* Atheros AR9380 2.4/5GHz */
compatible = "pci168c,0030";
reg = <0x00430000 0 0 0 0>;
@ -77,14 +77,14 @@
};
};
bridge@66,3 {
bridge@3,0 {
compatible = "pci111d,8039";
reg = <0x00421800 0 0 0 0>;
#address-cells = <3>;
#size-cells = <2>;
ranges;
wifi1: wifi@68,0 {
wifi1: wifi@0,0 {
/* Atheros AR9380 2.4/5GHz */
compatible = "pci168c,0030";
reg = <0x00440000 0 0 0 0>;

View File

@ -568,13 +568,13 @@
*
*/
bridge@64,0 {
bridge@0,0 {
reg = <0x00400000 0 0 0 0>;
#address-cells = <3>;
#size-cells = <2>;
ranges;
bridge@65,0 {
bridge@0,0 {
/* IDT PES4T4 PCI Express Switch */
compatible = "pci111d,803a";
reg = <0x00410000 0 0 0 0>;
@ -582,14 +582,14 @@
#size-cells = <2>;
ranges;
bridge@66,2 {
bridge@2,0 {
compatible = "pci111d,803a";
reg = <0x00421000 0 0 0 0>;
#address-cells = <3>;
#size-cells = <2>;
ranges;
wifi0: wifi@67,0 {
wifi0: wifi@0,0 {
/* Atheros AR9380 5GHz */
compatible = "pci168c,0030";
reg = <0x00430000 0 0 0 0>;
@ -605,14 +605,14 @@
};
};
bridge@66,3 {
bridge@3,0 {
compatible = "pci111d,803a";
reg = <0x00421800 0 0 0 0>;
#address-cells = <3>;
#size-cells = <2>;
ranges;
wifi1: wifi@68,0 {
wifi1: wifi@0,0 {
/* Atheros AR9381 2.4GHz */
compatible = "pci168c,0033";
reg = <0x00440000 0 0 0 0>;
@ -622,14 +622,14 @@
};
};
bridge@66,4 {
bridge@4,0 {
compatible = "pci111d,803a";
reg = <0x00422000 0 0 0 0>;
#address-cells = <3>;
#size-cells = <2>;
ranges;
usb1: usb@69,0 {
usb1: usb@0,0 {
/* Renesas uPD720202 */
compatible = "pci1912,0015";
reg = <0x00450000 0 0 0 0>;