[openwrt/openwrt] apm821xx: MX60W: enumerate PCIe in device-tree

LEDE Commits lede-commits at lists.infradead.org
Sat Aug 29 11:16:03 EDT 2020


chunkeey pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/4ea5d443dbe6e7b38f942d3049080dd4644e63f0

commit 4ea5d443dbe6e7b38f942d3049080dd4644e63f0
Author: Christian Lamparter <chunkeey at gmail.com>
AuthorDate: Wed Aug 12 22:03:27 2020 +0200

    apm821xx: MX60W: enumerate PCIe in device-tree
    
    This patch adds the pcie-switch and bridge configuration for
    the Meraki MX60W.
    
    Signed-off-by: Christian Lamparter <chunkeey at gmail.com>
---
 target/linux/apm821xx/dts/meraki-mx60.dts | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/target/linux/apm821xx/dts/meraki-mx60.dts b/target/linux/apm821xx/dts/meraki-mx60.dts
index 3620005e4d..5998f6960a 100644
--- a/target/linux/apm821xx/dts/meraki-mx60.dts
+++ b/target/linux/apm821xx/dts/meraki-mx60.dts
@@ -175,6 +175,25 @@
 &PCIE0 {
 	/* Leave this enabled as u-boot on the MX60 will disable it for us */
 	status = "okay";
+
+	/*
+	 * relevant lspci topology:
+	 *
+	 *	-+-[0000:40]---00.0-[41-7f]----00.0
+	 */
+
+	bridge at 64,0 {
+		reg = <0x00400000 0 0 0 0>;
+		#address-cells = <3>;
+		#size-cells = <2>;
+		ranges;
+
+		wifi0: wifi at 65,0 {
+			/* Atheros AR9380 2.4/5GHz */
+			compatible = "pci168c,0030";
+			reg = <0x00410000 0 0 0 0>;
+		};
+	};
 };
 
 &MSI {



More information about the lede-commits mailing list