From: David Bauer Date: Wed, 17 Feb 2021 04:53:32 +0000 (+0100) Subject: ath79: specify device-type for PCI controllers X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=da55758cc58a2e6f0570eacd4bb9c2d4792572a6;p=openwrt%2Fstaging%2Fnbd.git ath79: specify device-type for PCI controllers Specify the device_type property for PCI as well as PCIe controllers. Otherwise, the PCI range parser will not be selected when using kernel 5.10. Signed-off-by: David Bauer --- diff --git a/target/linux/ath79/dts/ar7100.dtsi b/target/linux/ath79/dts/ar7100.dtsi index 2617c68521..64702f2df2 100644 --- a/target/linux/ath79/dts/ar7100.dtsi +++ b/target/linux/ath79/dts/ar7100.dtsi @@ -118,6 +118,8 @@ ranges = <0x2000000 0 0x10000000 0x10000000 0 0x07000000 /* pci memory */ 0x1000000 0 0x00000000 0x0000000 0 0x000001>; /* io space */ + device_type = "pci"; + interrupt-parent = <&pci_intc>; interrupts = <4>; diff --git a/target/linux/ath79/dts/ar724x.dtsi b/target/linux/ath79/dts/ar724x.dtsi index e9daae0678..a078712e01 100644 --- a/target/linux/ath79/dts/ar724x.dtsi +++ b/target/linux/ath79/dts/ar724x.dtsi @@ -133,6 +133,8 @@ resets = <&rst 6>, <&rst 7>; reset-names = "hc", "phy"; + device_type = "pci"; + interrupt-controller; #interrupt-cells = <1>; diff --git a/target/linux/ath79/dts/ar9344.dtsi b/target/linux/ath79/dts/ar9344.dtsi index e99d962933..fb23c53d41 100644 --- a/target/linux/ath79/dts/ar9344.dtsi +++ b/target/linux/ath79/dts/ar9344.dtsi @@ -46,6 +46,8 @@ interrupt-parent = <&intc2>; interrupts = <1>; + device_type = "pci"; + resets = <&rst 6>, <&rst 7>; reset-names = "hc", "phy"; diff --git a/target/linux/ath79/dts/qca953x.dtsi b/target/linux/ath79/dts/qca953x.dtsi index 1c2c1350f7..1a64b01300 100644 --- a/target/linux/ath79/dts/qca953x.dtsi +++ b/target/linux/ath79/dts/qca953x.dtsi @@ -164,6 +164,8 @@ interrupt-parent = <&intc2>; interrupts = <1>; + device_type = "pci"; + resets = <&rst 6>, <&rst 7>; reset-names = "hc", "phy"; diff --git a/target/linux/ath79/dts/qca955x.dtsi b/target/linux/ath79/dts/qca955x.dtsi index f910d2a822..9817843edf 100644 --- a/target/linux/ath79/dts/qca955x.dtsi +++ b/target/linux/ath79/dts/qca955x.dtsi @@ -201,6 +201,8 @@ interrupt-parent = <&intc2>; interrupts = <1>; + device_type = "pci"; + resets = <&rst 6>, <&rst 7>; reset-names = "hc", "phy"; @@ -236,6 +238,8 @@ interrupt-parent = <&intc3>; interrupts = <0>; + device_type = "pci"; + resets = <&rst2 6>, <&rst2 7>; reset-names = "hc", "phy"; diff --git a/target/linux/ath79/dts/qca956x.dtsi b/target/linux/ath79/dts/qca956x.dtsi index 6489efbf0b..30ede3e55b 100644 --- a/target/linux/ath79/dts/qca956x.dtsi +++ b/target/linux/ath79/dts/qca956x.dtsi @@ -172,6 +172,8 @@ interrupt-parent = <&intc3>; interrupts = <0>; + device_type = "pci"; + resets = <&rst 6>, <&rst 7>; reset-names = "hc", "phy";