ar71xx: Fix network setup for TP-Link Archer C25 v1
[openwrt/openwrt.git] / target / linux / gemini / patches-4.14 / 0015-ARM-dts-Add-PCI-to-WBD111-and-WBD222.patch
1 From dec551d2301f71a692ed1729a323c8259d36f849 Mon Sep 17 00:00:00 2001
2 From: Linus Walleij <linus.walleij@linaro.org>
3 Date: Wed, 11 Oct 2017 19:49:13 +0200
4 Subject: [PATCH 15/31] ARM: dts: Add PCI to WBD111 and WBD222
5
6 These two boards have mini-PCI card slots, so enable PCI
7 on both of them.
8
9 Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
10 ---
11 arch/arm/boot/dts/gemini-wbd111.dts | 22 ++++++++++++++++++++++
12 arch/arm/boot/dts/gemini-wbd222.dts | 22 ++++++++++++++++++++++
13 2 files changed, 44 insertions(+)
14
15 --- a/arch/arm/boot/dts/gemini-wbd111.dts
16 +++ b/arch/arm/boot/dts/gemini-wbd111.dts
17 @@ -138,5 +138,27 @@
18 pinctrl-names = "default";
19 pinctrl-0 = <&gpio0_default_pins>;
20 };
21 +
22 + pci@50000000 {
23 + status = "okay";
24 + interrupt-map-mask = <0xf800 0 0 7>;
25 + interrupt-map =
26 + <0x4800 0 0 1 &pci_intc 0>, /* Slot 9 */
27 + <0x4800 0 0 2 &pci_intc 1>,
28 + <0x4800 0 0 3 &pci_intc 2>,
29 + <0x4800 0 0 4 &pci_intc 3>,
30 + <0x5000 0 0 1 &pci_intc 1>, /* Slot 10 */
31 + <0x5000 0 0 2 &pci_intc 2>,
32 + <0x5000 0 0 3 &pci_intc 3>,
33 + <0x5000 0 0 4 &pci_intc 0>,
34 + <0x5800 0 0 1 &pci_intc 2>, /* Slot 11 */
35 + <0x5800 0 0 2 &pci_intc 3>,
36 + <0x5800 0 0 3 &pci_intc 0>,
37 + <0x5800 0 0 4 &pci_intc 1>,
38 + <0x6000 0 0 1 &pci_intc 3>, /* Slot 12 */
39 + <0x6000 0 0 2 &pci_intc 0>,
40 + <0x6000 0 0 3 &pci_intc 1>,
41 + <0x6000 0 0 4 &pci_intc 2>;
42 + };
43 };
44 };
45 --- a/arch/arm/boot/dts/gemini-wbd222.dts
46 +++ b/arch/arm/boot/dts/gemini-wbd222.dts
47 @@ -143,5 +143,27 @@
48 pinctrl-names = "default";
49 pinctrl-0 = <&gpio0_default_pins>;
50 };
51 +
52 + pci@50000000 {
53 + status = "okay";
54 + interrupt-map-mask = <0xf800 0 0 7>;
55 + interrupt-map =
56 + <0x4800 0 0 1 &pci_intc 0>, /* Slot 9 */
57 + <0x4800 0 0 2 &pci_intc 1>,
58 + <0x4800 0 0 3 &pci_intc 2>,
59 + <0x4800 0 0 4 &pci_intc 3>,
60 + <0x5000 0 0 1 &pci_intc 1>, /* Slot 10 */
61 + <0x5000 0 0 2 &pci_intc 2>,
62 + <0x5000 0 0 3 &pci_intc 3>,
63 + <0x5000 0 0 4 &pci_intc 0>,
64 + <0x5800 0 0 1 &pci_intc 2>, /* Slot 11 */
65 + <0x5800 0 0 2 &pci_intc 3>,
66 + <0x5800 0 0 3 &pci_intc 0>,
67 + <0x5800 0 0 4 &pci_intc 1>,
68 + <0x6000 0 0 1 &pci_intc 3>, /* Slot 12 */
69 + <0x6000 0 0 2 &pci_intc 0>,
70 + <0x6000 0 0 3 &pci_intc 1>,
71 + <0x6000 0 0 4 &pci_intc 2>;
72 + };
73 };
74 };