apm821xx: WNDAP6x0: enumerate PCIe in device-tree
authorChristian Lamparter <chunkeey@gmail.com>
Wed, 12 Aug 2020 16:05:06 +0000 (18:05 +0200)
committerChristian Lamparter <chunkeey@gmail.com>
Sat, 29 Aug 2020 15:14:31 +0000 (17:14 +0200)
This patch adds the pcie-switch and bridge configuration of the
WNDAP620 and WNDAP660.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
target/linux/apm821xx/dts/netgear-wndap620.dts
target/linux/apm821xx/dts/netgear-wndap660.dts

index 87b4e51a812b878be020e5b619c28cb1a0b4ea75..b01c2a5d62b06c40b8ca1dcb7ae614be305e739c 100644 (file)
                gpios = <&GPIO0 10 GPIO_ACTIVE_HIGH>;
        };
 };
+
+&PCIE0 {
+       /*
+        * 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 5GHz */
+                       compatible = "pci168c,0030";
+                       reg = <0x00410000 0 0 0 0>;
+               };
+       };
+};
index 3e5daac835e84f308f13df2619c9e2112384a16d..5d8fd50b6ab522b6bf0180a9cc9575d096270eca 100644 (file)
                gpios = <&GPIO0 10 GPIO_ACTIVE_HIGH>;
        };
 };
+
+&PCIE0 {
+       /*
+        * relevant lspci topology:
+        *
+        *      -+-[0000:40]---00.0-[41-7f]----00.0-[42-45]--+-02.0-[43]----00.0
+        *                                                   +-03.0-[44]----00.0
+        *
+        */
+
+       bridge@64,0 {
+               reg = <0x00400000 0 0 0 0>;
+               #address-cells = <3>;
+               #size-cells = <2>;
+               ranges;
+
+               bridge@65,0 {
+                       /* IDT PES3T3 PCI Express Switch */
+                       compatible = "pci111d,8039";
+                       reg = <0x00410000 0 0 0 0>;
+                       #address-cells = <3>;
+                       #size-cells = <2>;
+                       ranges;
+
+                       bridge@66,2 {
+                               compatible = "pci111d,8039";
+                               reg = <0x00421000 0 0 0 0>;
+                               #address-cells = <3>;
+                               #size-cells = <2>;
+                               ranges;
+
+                               wifi0: wifi@67,0 {
+                                       /* Atheros AR9380 2.4/5GHz */
+                                       compatible = "pci168c,0030";
+                                       reg = <0x00430000 0 0 0 0>;
+                               };
+                       };
+
+                       bridge@66,3 {
+                               compatible = "pci111d,8039";
+                               reg = <0x00421800 0 0 0 0>;
+                               #address-cells = <3>;
+                               #size-cells = <2>;
+                               ranges;
+
+                               wifi1: wifi@68,0 {
+                                       /* Atheros AR9380 2.4/5GHz */
+                                       compatible = "pci168c,0030";
+                                       reg = <0x00440000 0 0 0 0>;
+                               };
+                       };
+               };
+       };
+};