brcm2708: Add support for raspberry pi 3 b+.
[openwrt/openwrt.git] / target / linux / bcm53xx / patches-4.9 / 030-0009-ARM-BCM5301X-Add-DT-for-TP-LINK-Archer-C9-V1.patch
1 From 41182beb217c47cfbaaf26a60f22a8b3943faa61 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
3 Date: Sun, 13 Nov 2016 11:12:09 +0100
4 Subject: [PATCH] ARM: BCM5301X: Add DT for TP-LINK Archer C9 V1
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 It's BCM4709A0 based device with 16 MiB flash, 128 MiB of RAM and two
10 PCIe based on-PCB BCM4360 chipsets.
11
12 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
13 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
14 ---
15 arch/arm/boot/dts/Makefile | 1 +
16 arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dts | 114 ++++++++++++++++++++++
17 2 files changed, 115 insertions(+)
18 create mode 100644 arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dts
19
20 --- a/arch/arm/boot/dts/Makefile
21 +++ b/arch/arm/boot/dts/Makefile
22 @@ -87,6 +87,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
23 bcm4709-buffalo-wxr-1900dhp.dtb \
24 bcm4709-netgear-r7000.dtb \
25 bcm4709-netgear-r8000.dtb \
26 + bcm4709-tplink-archer-c9-v1.dtb \
27 bcm47094-dlink-dir-885l.dtb \
28 bcm47094-luxul-xwr-3100.dtb \
29 bcm47094-netgear-r8500.dtb \
30 --- /dev/null
31 +++ b/arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dts
32 @@ -0,0 +1,114 @@
33 +/*
34 + * Copyright (C) 2016 Rafał Miłecki <rafal@milecki.pl>
35 + *
36 + * Licensed under the ISC license.
37 + */
38 +
39 +/dts-v1/;
40 +
41 +#include "bcm4709.dtsi"
42 +
43 +/ {
44 + compatible = "tplink,archer-c9-v1", "brcm,bcm4709", "brcm,bcm4708";
45 + model = "TP-LINK Archer C9 V1";
46 +
47 + chosen {
48 + bootargs = "console=ttyS0,115200 earlycon";
49 + };
50 +
51 + memory {
52 + reg = <0x00000000 0x08000000>;
53 + };
54 +
55 + leds {
56 + compatible = "gpio-leds";
57 +
58 + lan {
59 + label = "bcm53xx:blue:lan";
60 + gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>;
61 + linux,default-trigger = "default-off";
62 + };
63 +
64 + wps {
65 + label = "bcm53xx:blue:wps";
66 + gpios = <&chipcommon 2 GPIO_ACTIVE_HIGH>;
67 + linux,default-trigger = "default-off";
68 + };
69 +
70 + 2ghz {
71 + label = "bcm53xx:blue:2ghz";
72 + gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
73 + linux,default-trigger = "default-off";
74 + };
75 +
76 + 5ghz {
77 + label = "bcm53xx:blue:5ghz";
78 + gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
79 + linux,default-trigger = "default-off";
80 + };
81 +
82 + usb3 {
83 + label = "bcm53xx:blue:usb3";
84 + gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
85 + linux,default-trigger = "default-off";
86 + };
87 +
88 + usb2 {
89 + label = "bcm53xx:blue:usb2";
90 + gpios = <&chipcommon 7 GPIO_ACTIVE_HIGH>;
91 + linux,default-trigger = "default-off";
92 + };
93 +
94 + wan-blue {
95 + label = "bcm53xx:blue:wan";
96 + gpios = <&chipcommon 14 GPIO_ACTIVE_HIGH>;
97 + linux,default-trigger = "default-off";
98 + };
99 +
100 + wan-amber {
101 + label = "bcm53xx:amber:wan";
102 + gpios = <&chipcommon 15 GPIO_ACTIVE_HIGH>;
103 + linux,default-trigger = "default-off";
104 + };
105 +
106 + power {
107 + label = "bcm53xx:blue:power";
108 + gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
109 + linux,default-trigger = "default-on";
110 + };
111 + };
112 +
113 + gpio-keys {
114 + compatible = "gpio-keys";
115 + #address-cells = <1>;
116 + #size-cells = <0>;
117 +
118 + wps {
119 + label = "WPS";
120 + linux,code = <KEY_WPS_BUTTON>;
121 + gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
122 + };
123 +
124 + restart {
125 + label = "Reset";
126 + linux,code = <KEY_RESTART>;
127 + gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
128 + };
129 + };
130 +};
131 +
132 +&uart0 {
133 + status = "okay";
134 +};
135 +
136 +&usb2 {
137 + vcc-gpio = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
138 +};
139 +
140 +&usb3 {
141 + vcc-gpio = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
142 +};
143 +
144 +&spi_nor {
145 + status = "okay";
146 +};