ramips: fix pci/pcie related dtc warnings
authorMathias Kresin <dev@kresin.me>
Sat, 21 Jul 2018 14:19:46 +0000 (16:19 +0200)
committerMathias Kresin <dev@kresin.me>
Sat, 4 Aug 2018 06:39:35 +0000 (08:39 +0200)
commitf9b8328d794473fcd044197ec64abf87761793e4
tree5923904609e5f5557b23716402bb4b9ae0307981
parentd8e7a526a38499e1d1368829a76e4a0e541893b0
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>
66 files changed:
target/linux/ramips/dts/AC1200RM.dts
target/linux/ramips/dts/ArcherC2-v1.dts
target/linux/ramips/dts/ArcherC20i.dts
target/linux/ramips/dts/ArcherC20v1.dts
target/linux/ramips/dts/ArcherC20v4.dts
target/linux/ramips/dts/ArcherC50.dts
target/linux/ramips/dts/ArcherC50V3.dts
target/linux/ramips/dts/ArcherMR200.dts
target/linux/ramips/dts/BR-6475ND.dts
target/linux/ramips/dts/CY-SWR1100.dts
target/linux/ramips/dts/DIR-860L-B1.dts
target/linux/ramips/dts/EW1200.dts
target/linux/ramips/dts/EX3700.dts
target/linux/ramips/dts/F5D8235_V1.dts
target/linux/ramips/dts/FIREWRT.dts
target/linux/ramips/dts/GL-MT750.dts
target/linux/ramips/dts/HC5962.dts
target/linux/ramips/dts/K2G.dts
target/linux/ramips/dts/K2P.dts
target/linux/ramips/dts/MAC1200RV2.dts
target/linux/ramips/dts/MIR3G.dts
target/linux/ramips/dts/MIWIFI-MINI.dts
target/linux/ramips/dts/MZK-750DHP.dts
target/linux/ramips/dts/MZK-EX750NP.dts
target/linux/ramips/dts/Newifi-D1.dts
target/linux/ramips/dts/Newifi-D2.dts
target/linux/ramips/dts/PBR-M1.dts
target/linux/ramips/dts/PSG1208.dts
target/linux/ramips/dts/PSG1218.dtsi
target/linux/ramips/dts/R6220.dts
target/linux/ramips/dts/RE350.dts
target/linux/ramips/dts/RE6500.dts
target/linux/ramips/dts/RP-N53.dts
target/linux/ramips/dts/RT-N56U.dts
target/linux/ramips/dts/SAP-G3200U3.dts
target/linux/ramips/dts/SK-WB8.dts
target/linux/ramips/dts/TEW-692GR.dts
target/linux/ramips/dts/TL-WR902ACV3.dts
target/linux/ramips/dts/V11STFE.dts
target/linux/ramips/dts/W2914NSV2.dtsi
target/linux/ramips/dts/WCR-1166DS.dts
target/linux/ramips/dts/WE1026-5G.dtsi
target/linux/ramips/dts/WF-2881.dts
target/linux/ramips/dts/WHR-1166D.dts
target/linux/ramips/dts/WHR-600D.dts
target/linux/ramips/dts/WITI.dtsi
target/linux/ramips/dts/WL-WN575A3.dts
target/linux/ramips/dts/WLR-6000.dts
target/linux/ramips/dts/WN-AX1167GR.dts
target/linux/ramips/dts/WN-GX300GR.dts
target/linux/ramips/dts/WNDR3700V5.dts
target/linux/ramips/dts/WR1200JS.dts
target/linux/ramips/dts/WSR-1166.dts
target/linux/ramips/dts/WSR-600.dts
target/linux/ramips/dts/WZR-AGL300NH.dts
target/linux/ramips/dts/Y1.dtsi
target/linux/ramips/dts/ZBT-APE522II.dts
target/linux/ramips/dts/ZBT-WE1326.dts
target/linux/ramips/dts/ZBT-WE3526.dts
target/linux/ramips/dts/ZBT-WG2626.dts
target/linux/ramips/dts/ZBT-WG3526.dtsi
target/linux/ramips/dts/ki_rb.dts
target/linux/ramips/dts/mt7620a.dtsi
target/linux/ramips/dts/mt7621.dtsi
target/linux/ramips/dts/mt7628an.dtsi
target/linux/ramips/dts/rt3883.dtsi