[openwrt/openwrt] ath79: specify device-type for PCI controllers

LEDE Commits lede-commits at lists.infradead.org
Fri Feb 19 19:28:22 EST 2021


blocktrron pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/da55758cc58a2e6f0570eacd4bb9c2d4792572a6

commit da55758cc58a2e6f0570eacd4bb9c2d4792572a6
Author: David Bauer <mail at david-bauer.net>
AuthorDate: Wed Feb 17 05:53:32 2021 +0100

    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 <mail at david-bauer.net>
---
 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 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";
 



More information about the lede-commits mailing list