apm821xx: MX60W: enumerate PCIe in device-tree
authorChristian Lamparter <chunkeey@gmail.com>
Wed, 12 Aug 2020 20:03:27 +0000 (22:03 +0200)
committerChristian Lamparter <chunkeey@gmail.com>
Sat, 29 Aug 2020 15:14:55 +0000 (17:14 +0200)
This patch adds the pcie-switch and bridge configuration for
the Meraki MX60W.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
target/linux/apm821xx/dts/meraki-mx60.dts

index 3620005e4d250bdd76bef574ccc9b5947ff1fbf0..5998f6960a1300fb224608d0eba313daa0975ca2 100644 (file)
 &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@64,0 {
+               reg = <0x00400000 0 0 0 0>;
+               #address-cells = <3>;
+               #size-cells = <2>;
+               ranges;
+
+               wifi0: wifi@65,0 {
+                       /* Atheros AR9380 2.4/5GHz */
+                       compatible = "pci168c,0030";
+                       reg = <0x00410000 0 0 0 0>;
+               };
+       };
 };
 
 &MSI {