aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/WF-2881.dts
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2018-07-21 16:19:46 +0200
committerMathias Kresin <dev@kresin.me>2018-08-04 08:39:35 +0200
commitf9b8328d794473fcd044197ec64abf87761793e4 (patch)
tree5923904609e5f5557b23716402bb4b9ae0307981 /target/linux/ramips/dts/WF-2881.dts
parentd8e7a526a38499e1d1368829a76e4a0e541893b0 (diff)
downloadupstream-f9b8328d794473fcd044197ec64abf87761793e4.tar.gz
upstream-f9b8328d794473fcd044197ec64abf87761793e4.tar.bz2
upstream-f9b8328d794473fcd044197ec64abf87761793e4.zip
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>
Diffstat (limited to 'target/linux/ramips/dts/WF-2881.dts')
-rw-r--r--target/linux/ramips/dts/WF-2881.dts26
1 files changed, 12 insertions, 14 deletions
diff --git a/target/linux/ramips/dts/WF-2881.dts b/target/linux/ramips/dts/WF-2881.dts
index ed25cf607f..4e331f721f 100644
--- a/target/linux/ramips/dts/WF-2881.dts
+++ b/target/linux/ramips/dts/WF-2881.dts
@@ -85,23 +85,21 @@
&pcie {
status = "okay";
+};
- pcie0 {
- mt76@0,0 {
- reg = <0x0000 0 0 0 0>;
- device_type = "pci";
- mediatek,mtd-eeprom = <&factory 0x8000>;
- ieee80211-freq-limit = <5000000 6000000>;
- };
+&pcie0 {
+ mt76@0,0 {
+ reg = <0x0000 0 0 0 0>;
+ mediatek,mtd-eeprom = <&factory 0x8000>;
+ ieee80211-freq-limit = <5000000 6000000>;
};
+};
- pcie1 {
- mt76@1,0 {
- reg = <0x0000 0 0 0 0>;
- device_type = "pci";
- mediatek,mtd-eeprom = <&factory 0x0000>;
- ieee80211-freq-limit = <2400000 2500000>;
- };
+&pcie1 {
+ mt76@0,0 {
+ reg = <0x0000 0 0 0 0>;
+ mediatek,mtd-eeprom = <&factory 0x0000>;
+ ieee80211-freq-limit = <2400000 2500000>;
};
};