ramips: fix pci/pcie related dtc warnings
authorMathias Kresin <dev@kresin.me>
Sat, 21 Jul 2018 14:19:46 +0000 (16:19 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 18 Dec 2018 16:47:43 +0000 (17:47 +0100)
commit259890e9924112b65d5388417ac209f248083da5
treee42b397649403e3910bdafc425c1cba0f3c56cdc
parent30c844f84a1bcd4c12e1164558b6ba1d7bec7ce5
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>
(backported from f9b8328d794473fcd044197ec64abf87761793e4)
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