From da55758cc58a2e6f0570eacd4bb9c2d4792572a6 Mon Sep 17 00:00:00 2001 From: David Bauer Date: Wed, 17 Feb 2021 05:53:32 +0100 Subject: [PATCH] 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 --- target/linux/ath79/dts/ar7100.dtsi | 2 ++ target/linux/ath79/dts/ar724x.dtsi | 2 ++ target/linux/ath79/dts/ar9344.dtsi | 2 ++ target/linux/ath79/dts/qca953x.dtsi | 2 ++ target/linux/ath79/dts/qca955x.dtsi | 4 ++++ target/linux/ath79/dts/qca956x.dtsi | 2 ++ 6 files changed, 14 insertions(+) diff --git a/target/linux/ath79/dts/ar7100.dtsi b/target/linux/ath79/dts/ar7100.dtsi index 2617c685218..64702f2df23 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 e9daae06787..a078712e01d 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 e99d962933b..fb23c53d41e 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 1c2c1350f72..1a64b013002 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 f910d2a8221..9817843edf2 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 6489efbf0b0..30ede3e55b5 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"; -- 2.30.2