ramips: fix pci/pcie related dtc warnings

Add the ranges property to the PCI bridges where missing. Add the unit
address to PCI bridge where missing.

Rework the complete rt3883 pci node. Drop the PCI unit nodes from the
dtsi. They are not used by any dts file and should be rather in the dts
than in the SoC dtsi. Express the PCI-PCI bridge in a clean devicetree
syntax. The ralink,pci-slot isn't used by any driver, drop it. Move the
pci interrupt controller out of the pci node. It doesn't share the same
reg and therefore should be an independent/SoC child node.

Move the pci related rt3883 pinctrl setting to the dtsi instead of
defining the very same for each rt3883 board.

If the device_type property is used for PCI units, the unit is treated
as pci bridge which it isn't. Drop it for PCI units.

Reference pci-bridges or the pci node defined in the dtsi instead of
recreating the whole node hierarchy. It allows to change the referenced
node in the dtsi without the need to touch all dts.

Fix the PCI(e) wireless unit addresses. All our PCI(e) wireless chips
are the first device on the bus. The unit address has to be the bus
address instead of the PCI vendor/device id.

Signed-off-by: Mathias Kresin <dev@kresin.me>
This commit is contained in:
Mathias Kresin 2018-07-21 16:19:46 +02:00
parent d8e7a526a3
commit f9b8328d79
66 changed files with 573 additions and 682 deletions

View file

@ -110,11 +110,11 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie-bridge { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x8000>; mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
@ -123,7 +123,6 @@
led-active-low; led-active-low;
}; };
}; };
};
}; };
&pinctrl { &pinctrl {

View file

@ -171,12 +171,11 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie-bridge { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&radio 0x8000>; mediatek,mtd-eeprom = <&radio 0x8000>;
}; };
};
}; };

View file

@ -142,12 +142,11 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie-bridge { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&radio 32768>; mediatek,mtd-eeprom = <&radio 32768>;
}; };
};
}; };

View file

@ -178,15 +178,14 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie-bridge { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&radio 0x8000>; mediatek,mtd-eeprom = <&radio 0x8000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
mtd-mac-address = <&rom 0xf100>; mtd-mac-address = <&rom 0xf100>;
mtd-mac-address-increment = <(-1)>; mtd-mac-address-increment = <(-1)>;
}; };
};
}; };

View file

@ -91,15 +91,14 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie-bridge { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x28000>; mediatek,mtd-eeprom = <&factory 0x28000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
mtd-mac-address = <&factory 0xf100>; mtd-mac-address = <&factory 0xf100>;
mtd-mac-address-increment = <(-1)>; mtd-mac-address-increment = <(-1)>;
}; };
};
}; };

View file

@ -177,15 +177,14 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie-bridge { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&radio 32768>; mediatek,mtd-eeprom = <&radio 32768>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
mtd-mac-address = <&rom 0xf100>; mtd-mac-address = <&rom 0xf100>;
mtd-mac-address-increment = <(-1)>; mtd-mac-address-increment = <(-1)>;
}; };
};
}; };

View file

@ -84,15 +84,14 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie-bridge { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x28000>; mediatek,mtd-eeprom = <&factory 0x28000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
mtd-mac-address = <&factory 0xf100>; mtd-mac-address = <&factory 0xf100>;
mtd-mac-address-increment = <(-1)>; mtd-mac-address-increment = <(-1)>;
}; };
};
}; };

View file

@ -187,12 +187,11 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie-bridge { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&radio 32768>; mediatek,mtd-eeprom = <&radio 32768>;
}; };
};
}; };

View file

@ -150,18 +150,9 @@
&pci { &pci {
status = "okay"; status = "okay";
pinctrl-names = "default"; };
pinctrl-0 = <&pci_pins>;
pci_pins: pci { &pci1 {
pci {
ralink,group = "pci";
ralink,function = "pci-fnc";
};
};
host-bridge {
pci-bridge@1 {
status = "okay"; status = "okay";
wifi@0,0 { wifi@0,0 {
@ -170,8 +161,6 @@
ralink,5ghz = <0>; ralink,5ghz = <0>;
ralink,mtd-eeprom = <&factory 0x8000>; ralink,mtd-eeprom = <&factory 0x8000>;
}; };
};
};
}; };
&ehci { &ehci {

View file

@ -118,18 +118,9 @@
&pci { &pci {
status = "okay"; status = "okay";
pinctrl-names = "default"; };
pinctrl-0 = <&pci_pins>;
pci_pins: pci { &pci1 {
pci {
ralink,group = "pci";
ralink,function = "pci-fnc";
};
};
host-bridge {
pci-bridge@1 {
status = "okay"; status = "okay";
wifi@0,0 { wifi@0,0 {
@ -138,8 +129,6 @@
ralink,5ghz = <0>; ralink,5ghz = <0>;
ralink,mtd-eeprom = <&factory 0x2000>; ralink,mtd-eeprom = <&factory 0x2000>;
}; };
};
};
}; };
&wmac { &wmac {

View file

@ -116,24 +116,22 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie0 { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&radio 0x2000>; mediatek,mtd-eeprom = <&radio 0x2000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
}; };
}; };
pcie1 { &pcie1 {
mt76@1,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&radio 0>; mediatek,mtd-eeprom = <&radio 0>;
ieee80211-freq-limit = <2400000 2500000>; ieee80211-freq-limit = <2400000 2500000>;
}; };
};
}; };
&pinctrl { &pinctrl {

View file

@ -98,24 +98,22 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie0 { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x8000>; mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
}; };
}; };
pcie1 { &pcie1 {
mt76@1,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x0000>; mediatek,mtd-eeprom = <&factory 0x0000>;
ieee80211-freq-limit = <2400000 2500000>; ieee80211-freq-limit = <2400000 2500000>;
}; };
};
}; };
&ethernet { &ethernet {

View file

@ -137,15 +137,14 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie-bridge { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0 >; reg = <0x0000 0 0 0 0 >;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x8000>; mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
}; };
};
}; };
&ethernet { &ethernet {

View file

@ -15,10 +15,6 @@
led-status = &led_wired_blue; led-status = &led_wired_blue;
}; };
pci@440000 {
status = "ok";
};
cfi@1f000000 { cfi@1f000000 {
compatible = "cfi-flash"; compatible = "cfi-flash";
reg = <0xbc400000 0x800000>; reg = <0xbc400000 0x800000>;
@ -209,6 +205,10 @@
}; };
}; };
&pci {
status = "okay";
};
&wmac { &wmac {
status = "okay"; status = "okay";
ralink,mtd-eeprom = <&factory 0x0>; ralink,mtd-eeprom = <&factory 0x0>;

View file

@ -93,24 +93,22 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie0 { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x8000>; mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
}; };
}; };
pcie1 { &pcie1 {
mt76@1,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x0000>; mediatek,mtd-eeprom = <&factory 0x0000>;
ieee80211-freq-limit = <2400000 2500000>; ieee80211-freq-limit = <2400000 2500000>;
}; };
};
}; };
&ethernet { &ethernet {

View file

@ -136,14 +136,13 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie-bridge { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x8000>; mediatek,mtd-eeprom = <&factory 0x8000>;
}; };
};
}; };
&pinctrl { &pinctrl {

View file

@ -122,24 +122,22 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie0 { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x0000>; mediatek,mtd-eeprom = <&factory 0x0000>;
ieee80211-freq-limit = <2400000 2500000>; ieee80211-freq-limit = <2400000 2500000>;
}; };
}; };
pcie1 { &pcie1 {
mt76@1,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x8000>; mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
}; };
};
}; };
&pinctrl { &pinctrl {

View file

@ -122,15 +122,14 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie-bridge { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x8000>; mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
}; };
};
}; };
&wmac { &wmac {

View file

@ -99,14 +99,13 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie0 { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x0>; mediatek,mtd-eeprom = <&factory 0x0>;
}; };
};
}; };
&ethernet { &ethernet {

View file

@ -89,12 +89,12 @@
&pcie { &pcie {
status = "okay"; status = "okay";
pcie-bridge { };
&pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&art 0x1000>; mediatek,mtd-eeprom = <&art 0x1000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
}; };
};
}; };

View file

@ -167,24 +167,24 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie0 { &pcie0 {
wifi@14c3,7603 { wifi@0,0 {
compatible = "pci14c3,7603"; compatible = "pci14c3,7603";
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x0000>; mediatek,mtd-eeprom = <&factory 0x0000>;
ieee80211-freq-limit = <2400000 2500000>; ieee80211-freq-limit = <2400000 2500000>;
}; };
}; };
pcie1 { &pcie1 {
wifi@14c3,7662 { wifi@0,0 {
compatible = "pci14c3,7662"; compatible = "pci14c3,7662";
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>; mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
}; };
};
}; };
&ethernet { &ethernet {

View file

@ -135,15 +135,14 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie-bridge { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x8000>; mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
}; };
};
}; };
&pinctrl { &pinctrl {

View file

@ -121,12 +121,11 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie-bridge { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x8000>; mediatek,mtd-eeprom = <&factory 0x8000>;
}; };
};
}; };

View file

@ -142,12 +142,11 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie-bridge { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x8000>; mediatek,mtd-eeprom = <&factory 0x8000>;
}; };
};
}; };

View file

@ -117,23 +117,21 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie0 { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x8000>; mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
}; };
}; };
pcie1 { &pcie1 {
mt76@1,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x0000>; mediatek,mtd-eeprom = <&factory 0x0000>;
}; };
};
}; };
&ethernet { &ethernet {

View file

@ -130,23 +130,21 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie0 { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x8000>; mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
}; };
}; };
pcie1 { &pcie1 {
mt76@1,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x0000>; mediatek,mtd-eeprom = <&factory 0x0000>;
}; };
};
}; };
&ethernet { &ethernet {

View file

@ -149,23 +149,21 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie0 { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x8000>; mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
}; };
}; };
pcie1 { &pcie1 {
mt76@1,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x0000>; mediatek,mtd-eeprom = <&factory 0x0000>;
}; };
};
}; };
&ethernet { &ethernet {

View file

@ -102,15 +102,14 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie-bridge { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x8000>; mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
}; };
};
}; };
&wmac { &wmac {

View file

@ -61,15 +61,14 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie-bridge { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x8000>; mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
}; };
};
}; };
&wmac { &wmac {

View file

@ -128,24 +128,22 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie0 { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x8000>; mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
}; };
}; };
pcie1 { &pcie1 {
mt76@1,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x0000>; mediatek,mtd-eeprom = <&factory 0x0000>;
ieee80211-freq-limit = <2400000 2500000>; ieee80211-freq-limit = <2400000 2500000>;
}; };
};
}; };
&ethernet { &ethernet {

View file

@ -131,27 +131,25 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie0 { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&radio 0>; mediatek,mtd-eeprom = <&radio 0>;
mtd-mac-address = <&config 0x10008>; mtd-mac-address = <&config 0x10008>;
mtd-mac-address-increment = <1>; mtd-mac-address-increment = <1>;
}; };
}; };
pcie1 { &pcie1 {
mt76@1,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&radio 0x8000>; mediatek,mtd-eeprom = <&radio 0x8000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
mtd-mac-address = <&config 0x10008>; mtd-mac-address = <&config 0x10008>;
mtd-mac-address-increment = <2>; mtd-mac-address-increment = <2>;
}; };
};
}; };
&ethernet { &ethernet {

View file

@ -103,24 +103,22 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie0 { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x0000>; mediatek,mtd-eeprom = <&factory 0x0000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
}; };
}; };
pcie1 { &pcie1 {
mt76@1,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x8000>; mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <2400000 2500000>; ieee80211-freq-limit = <2400000 2500000>;
}; };
};
}; };
&ethernet { &ethernet {

View file

@ -163,13 +163,13 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie-bridge { &pcie0 {
wifi@1814,5592 { wifi@1814,5592 {
compatible = "pci1814,5592"; compatible = "pci1814,5592";
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
ralink,2ghz = <0>; ralink,2ghz = <0>;
ralink,mtd-eeprom = <&factory 0x8000>; ralink,mtd-eeprom = <&factory 0x8000>;
}; };
};
}; };

View file

@ -118,27 +118,16 @@
&pci { &pci {
status = "okay"; status = "okay";
pinctrl-names = "default"; };
pinctrl-0 = <&pci_pins>;
pci_pins: pci { &pci1 {
pci {
ralink,group = "pci";
ralink,function = "pci-fnc";
};
};
host-bridge {
pci-bridge@1 {
status = "okay"; status = "okay";
wifi@1814,3091 { wifi@0,0 {
compatible = "pci1814,3091"; compatible = "pci1814,3091";
reg = <0x10000 0 0 0 0>; reg = <0x10000 0 0 0 0>;
ralink,mtd-eeprom = <&factory 0x8000>; ralink,mtd-eeprom = <&factory 0x8000>;
}; };
};
};
}; };
&wmac { &wmac {

View file

@ -95,24 +95,22 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie0 { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x8000>; mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
}; };
}; };
pcie1 { &pcie1 {
mt76@1,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x0000>; mediatek,mtd-eeprom = <&factory 0x0000>;
ieee80211-freq-limit = <2400000 2500000>; ieee80211-freq-limit = <2400000 2500000>;
}; };
};
}; };
&ethernet { &ethernet {

View file

@ -91,23 +91,21 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie0 { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x8000>; mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
}; };
}; };
pcie1 { &pcie1 {
mt76@1,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x0000>; mediatek,mtd-eeprom = <&factory 0x0000>;
}; };
};
}; };
&ethernet { &ethernet {

View file

@ -124,18 +124,9 @@
&pci { &pci {
status = "okay"; status = "okay";
pinctrl-names = "default"; };
pinctrl-0 = <&pci_pins>;
pci_pins: pci { &pci1 {
pci {
ralink,group = "pci";
ralink,function = "pci-fnc";
};
};
host-bridge {
pci-bridge@1 {
status = "okay"; status = "okay";
wifi@0,0 { wifi@0,0 {
@ -143,8 +134,6 @@
reg = < 0x10000 0 0 0 0 >; reg = < 0x10000 0 0 0 0 >;
ralink,2ghz = <0>; ralink,2ghz = <0>;
}; };
};
};
}; };
&wmac { &wmac {

View file

@ -98,15 +98,14 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie-bridge { &pcie0 {
mt76@1,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x28000>; mediatek,mtd-eeprom = <&factory 0x28000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
mtd-mac-address = <&factory 0xf100>; mtd-mac-address = <&factory 0xf100>;
mtd-mac-address-increment = <(-1)>; mtd-mac-address-increment = <(-1)>;
}; };
};
}; };

View file

@ -13,16 +13,6 @@
led-status = &led_status; led-status = &led_status;
}; };
pci@440000 {
status = "okay";
host-bridge {
pci-bridge@1 {
status = "okay";
};
};
};
nor-flash@1c000000 { nor-flash@1c000000 {
compatible = "cfi-flash"; compatible = "cfi-flash";
reg = <0x1c000000 0x800000>; reg = <0x1c000000 0x800000>;
@ -85,6 +75,10 @@
status = "okay"; status = "okay";
}; };
&pci {
status = "okay";
};
&wmac { &wmac {
ralink,mtd-eeprom = <&factory 0>; ralink,mtd-eeprom = <&factory 0>;
}; };

View file

@ -72,23 +72,23 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie0 { &pcie0 {
wifi@14c3,7603 { wifi@0,0 {
compatible = "pci14c3,7603"; compatible = "pci14c3,7603";
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x0000>; mediatek,mtd-eeprom = <&factory 0x0000>;
}; };
}; };
pcie1 { &pcie1 {
wifi@14c3,7662 { wifi@0,0 {
compatible = "pci14c3,7662"; compatible = "pci14c3,7662";
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>; mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
}; };
};
}; };
&ethernet { &ethernet {

View file

@ -99,14 +99,14 @@
&pcie { &pcie {
status = "okay"; status = "okay";
pcie-bridge { };
&pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x8000>; mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
}; };
};
}; };
&pinctrl { &pinctrl {

View file

@ -113,12 +113,13 @@
&pcie { &pcie {
status = "okay"; status = "okay";
pcie-bridge { };
&pcie0 {
wifi@14c3,7662 { wifi@14c3,7662 {
compatible = "pci14c3,7662"; compatible = "pci14c3,7662";
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>; mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
}; };
};
}; };

View file

@ -85,24 +85,22 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie0 { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x8000>; mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
}; };
}; };
pcie1 { &pcie1 {
mt76@1,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x0000>; mediatek,mtd-eeprom = <&factory 0x0000>;
ieee80211-freq-limit = <2400000 2500000>; ieee80211-freq-limit = <2400000 2500000>;
}; };
};
}; };
&ethernet { &ethernet {

View file

@ -164,13 +164,13 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie-bridge { &pcie0 {
wifi@0,0 { wifi@0,0 {
compatible = "pci0,0"; compatible = "pci0,0";
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>; mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
}; };
};
}; };

View file

@ -151,12 +151,12 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie-bridge { &pcie0 {
wifi@1814,5592 { wifi@1814,5592 {
compatible = "pci1814,5592"; compatible = "pci1814,5592";
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
ralink,mtd-eeprom = <&factory 0x8000>; ralink,mtd-eeprom = <&factory 0x8000>;
}; };
};
}; };

View file

@ -79,26 +79,24 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie0 { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x8000>; mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
mtd-mac-address = <&factory 0xe000>; mtd-mac-address = <&factory 0xe000>;
}; };
}; };
pcie1 { &pcie1 {
mt76@1,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x0000>; mediatek,mtd-eeprom = <&factory 0x0000>;
ieee80211-freq-limit = <2400000 2500000>; ieee80211-freq-limit = <2400000 2500000>;
mtd-mac-address = <&factory 0xe000>; mtd-mac-address = <&factory 0xe000>;
}; };
};
}; };
&ethernet { &ethernet {

View file

@ -72,14 +72,14 @@
&pcie { &pcie {
status = "okay"; status = "okay";
pcie-bridge { };
&pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x8000>; mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
}; };
};
}; };
&spi0 { &spi0 {

View file

@ -153,27 +153,16 @@
&pci { &pci {
status = "okay"; status = "okay";
pinctrl-names = "default"; };
pinctrl-0 = <&pci_pins>;
pci_pins: pci { &pci1 {
pci {
ralink,group = "pci";
ralink,function = "pci-fnc";
};
};
host-bridge {
pci-bridge@1 {
status = "okay"; status = "okay";
wifi@1814,3091 { wifi@0,0 {
compatible = "pci1814,3091"; compatible = "pci1814,3091";
reg = <0x10000 0 0 0 0>; reg = <0x10000 0 0 0 0>;
ralink,mtd-eeprom = <&factory 0x8000>; ralink,mtd-eeprom = <&factory 0x8000>;
}; };
};
};
}; };
&wmac { &wmac {

View file

@ -145,23 +145,21 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie0 { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&iNIC_rf 0x0>; mediatek,mtd-eeprom = <&iNIC_rf 0x0>;
}; };
}; };
pcie1 { &pcie1 {
mt76@1,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&Factory 0x0>; mediatek,mtd-eeprom = <&Factory 0x0>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
}; };
};
}; };
&xhci { &xhci {

View file

@ -145,14 +145,13 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie0 { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&Factory 0x0>; mediatek,mtd-eeprom = <&Factory 0x0>;
}; };
};
}; };
&xhci { &xhci {

View file

@ -111,23 +111,21 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie0 { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x8000>; mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
}; };
}; };
pcie1 { &pcie1 {
mt76@1,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x0000>; mediatek,mtd-eeprom = <&factory 0x0000>;
}; };
};
}; };
&ethernet { &ethernet {

View file

@ -105,19 +105,18 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie0 { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x0000>; mediatek,mtd-eeprom = <&factory 0x0000>;
}; };
}; };
pcie1 { &pcie1 {
mt76@1,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x8000>; mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
@ -126,7 +125,6 @@
led-active-low; led-active-low;
}; };
}; };
};
}; };
&ethernet { &ethernet {

View file

@ -170,23 +170,21 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie0 { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x8000>; mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
}; };
}; };
pcie1 { &pcie1 {
mt76@1,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x0000>; mediatek,mtd-eeprom = <&factory 0x0000>;
}; };
};
}; };
&xhci { &xhci {

View file

@ -165,22 +165,20 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie0 { &pcie0 {
rt5592@0,0 { rt5592@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
ralink,mtd-eeprom = <&factory 0x8000>; ralink,mtd-eeprom = <&factory 0x8000>;
}; };
}; };
pcie1 { &pcie1 {
mt76@1,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x0000>; mediatek,mtd-eeprom = <&factory 0x0000>;
}; };
};
}; };
&xhci { &xhci {

View file

@ -15,10 +15,6 @@
led-status = &led_router; led-status = &led_router;
}; };
pci@440000 {
status = "ok";
};
cfi@1f000000 { cfi@1f000000 {
compatible = "cfi-flash"; compatible = "cfi-flash";
reg = <0x1f000000 0x800000>; reg = <0x1f000000 0x800000>;
@ -138,6 +134,10 @@
}; };
}; };
&pci {
status = "okay";
};
&wmac { &wmac {
ralink,mtd-eeprom = <&factory 0>; ralink,mtd-eeprom = <&factory 0>;
}; };

View file

@ -81,15 +81,14 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie-bridge { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x8000>; mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
}; };
};
}; };
&wmac { &wmac {

View file

@ -121,15 +121,14 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie-bridge { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x8000>; mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
}; };
};
}; };
&pinctrl { &pinctrl {

View file

@ -83,24 +83,22 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie0 { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x8000>; mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
}; };
}; };
pcie1 { &pcie1 {
mt76@1,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x0000>; mediatek,mtd-eeprom = <&factory 0x0000>;
ieee80211-freq-limit = <2400000 2500000>; ieee80211-freq-limit = <2400000 2500000>;
}; };
};
}; };
&sdhci { &sdhci {

View file

@ -80,9 +80,10 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie0 { &pcie0 {
wifi@14c3,7662 { wifi@0,0 {
compatible = "pci14c3,7662"; compatible = "pci14c3,7662";
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>; mediatek,mtd-eeprom = <&factory 0x8000>;
@ -92,15 +93,14 @@
led-sources = <2>; led-sources = <2>;
}; };
}; };
}; };
pcie1 { &pcie1 {
wifi@14c3,7603 { wifi@0,0 {
compatible = "pci14c3,7603"; compatible = "pci14c3,7603";
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x0000>; mediatek,mtd-eeprom = <&factory 0x0000>;
}; };
};
}; };
&ethernet { &ethernet {

View file

@ -93,24 +93,22 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie0 { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x8000>; mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
}; };
}; };
pcie1 { &pcie1 {
mt76@1,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x0000>; mediatek,mtd-eeprom = <&factory 0x0000>;
ieee80211-freq-limit = <2400000 2500000>; ieee80211-freq-limit = <2400000 2500000>;
}; };
};
}; };
&ethernet { &ethernet {

View file

@ -89,23 +89,23 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie0 { &pcie0 {
wifi@14c3,7603 { wifi@0,0 {
compatible = "pci14c3,7603"; compatible = "pci14c3,7603";
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x0000>; mediatek,mtd-eeprom = <&factory 0x0000>;
}; };
}; };
pcie1 { &pcie1 {
wifi@14c3,7662 { wifi@0,0 {
compatible = "pci14c3,7662"; compatible = "pci14c3,7662";
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>; mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
}; };
};
}; };
&ethernet { &ethernet {

View file

@ -188,16 +188,15 @@
&pcie { &pcie {
status = "okay"; status = "okay";
};
pcie-bridge { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x8000>; mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
mtd-mac-address = <&factory 0x8004>; mtd-mac-address = <&factory 0x8004>;
}; };
};
}; };
&pinctrl { &pinctrl {

View file

@ -555,13 +555,15 @@
status = "disabled"; status = "disabled";
pcie-bridge { pcie0: pcie@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
#address-cells = <3>; #address-cells = <3>;
#size-cells = <2>; #size-cells = <2>;
device_type = "pci"; device_type = "pci";
ranges;
}; };
}; };

View file

@ -459,25 +459,31 @@
clocks = <&clkctrl 24 &clkctrl 25 &clkctrl 26>; clocks = <&clkctrl 24 &clkctrl 25 &clkctrl 26>;
clock-names = "pcie0", "pcie1", "pcie2"; clock-names = "pcie0", "pcie1", "pcie2";
pcie0 { pcie0: pcie@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
#address-cells = <3>; #address-cells = <3>;
#size-cells = <2>; #size-cells = <2>;
ranges;
}; };
pcie1 { pcie1: pcie@1,0 {
reg = <0x0800 0 0 0 0>; reg = <0x0800 0 0 0 0>;
#address-cells = <3>; #address-cells = <3>;
#size-cells = <2>; #size-cells = <2>;
ranges;
}; };
pcie2 { pcie2: pcie@2,0 {
reg = <0x1000 0 0 0 0>; reg = <0x1000 0 0 0 0>;
#address-cells = <3>; #address-cells = <3>;
#size-cells = <2>; #size-cells = <2>;
ranges;
}; };
}; };
}; };

View file

@ -473,13 +473,15 @@
0x01000000 0 0x00000000 0x10160000 0 0x00010000 /* io space */ 0x01000000 0 0x00000000 0x10160000 0 0x00010000 /* io space */
>; >;
pcie-bridge { pcie0: pcie@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
#address-cells = <3>; #address-cells = <3>;
#size-cells = <2>; #size-cells = <2>;
device_type = "pci"; device_type = "pci";
ranges;
}; };
}; };

View file

@ -306,6 +306,13 @@
ralink,function = "uartlite"; ralink,function = "uartlite";
}; };
}; };
pci_pins: pci {
pci {
ralink,group = "pci";
ralink,function = "pci-fnc";
};
};
}; };
ethernet: ethernet@10100000 { ethernet: ethernet@10100000 {
@ -350,6 +357,9 @@
#size-cells = <1>; #size-cells = <1>;
ranges; /* direct mapping */ ranges; /* direct mapping */
pinctrl-names = "default";
pinctrl-0 = <&pci_pins>;
status = "disabled"; status = "disabled";
pciintc: interrupt-controller { pciintc: interrupt-controller {
@ -361,7 +371,7 @@
interrupts = <4>; interrupts = <4>;
}; };
host-bridge { pci@0 {
#address-cells = <3>; #address-cells = <3>;
#size-cells = <2>; #size-cells = <2>;
#interrupt-cells = <1>; #interrupt-cells = <1>;
@ -388,7 +398,7 @@
0x9000 0 0 4 &pciintc 19 0x9000 0 0 4 &pciintc 19
>; >;
pci-bridge@1 { pci1: pci@1 {
reg = <0x0800 0 0 0 0>; reg = <0x0800 0 0 0 0>;
device_type = "pci"; device_type = "pci";
#interrupt-cells = <1>; #interrupt-cells = <1>;
@ -397,33 +407,28 @@
status = "disabled"; status = "disabled";
ralink,pci-slot = <1>;
interrupt-map-mask = <0x0 0 0 0>; interrupt-map-mask = <0x0 0 0 0>;
interrupt-map = <0x0 0 0 0 &pciintc 20>; interrupt-map = <0x0 0 0 0 &pciintc 20>;
bus-range = <1 255>;
ranges;
}; };
pci-slot@17 { pci17: pci@11,0 {
reg = <0x8800 0 0 0 0>; reg = <0x8800 0 0 0 0>;
device_type = "pci";
#interrupt-cells = <1>; #interrupt-cells = <1>;
#address-cells = <3>; #address-cells = <3>;
#size-cells = <2>; #size-cells = <2>;
ralink,pci-slot = <17>;
status = "disabled"; status = "disabled";
}; };
pci-slot@18 { pci18: pci@12,0 {
reg = <0x9000 0 0 0 0>; reg = <0x9000 0 0 0 0>;
device_type = "pci";
#interrupt-cells = <1>; #interrupt-cells = <1>;
#address-cells = <3>; #address-cells = <3>;
#size-cells = <2>; #size-cells = <2>;
ralink,pci-slot = <18>;
status = "disabled"; status = "disabled";
}; };
}; };