1 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
2 Date: Fri, 5 Mar 2021 13:36:25 +0100
3 Subject: [PATCH] arm64: dts: broadcom: bcm4908: add TP-Link Archer C2300 V1
5 Archer C2300 V1 is a home router based on the BCM4906 (2 CPU cores). It
6 has 512 MiB of RAM, NAND flash, USB 2.0 and USB 3.0 ports, 4 LAN ports,
9 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
11 arch/arm64/boot/dts/broadcom/bcm4908/Makefile | 1 +
12 .../bcm4906-tplink-archer-c2300-v1.dts | 182 ++++++++++++++++++
13 2 files changed, 183 insertions(+)
14 create mode 100644 arch/arm64/boot/dts/broadcom/bcm4908/bcm4906-tplink-archer-c2300-v1.dts
16 --- a/arch/arm64/boot/dts/broadcom/bcm4908/Makefile
17 +++ b/arch/arm64/boot/dts/broadcom/bcm4908/Makefile
19 # SPDX-License-Identifier: GPL-2.0
20 dtb-$(CONFIG_ARCH_BCM4908) += bcm4906-netgear-r8000p.dtb
21 +dtb-$(CONFIG_ARCH_BCM4908) += bcm4906-tplink-archer-c2300-v1.dtb
22 dtb-$(CONFIG_ARCH_BCM4908) += bcm4908-asus-gt-ac5300.dtb
24 +++ b/arch/arm64/boot/dts/broadcom/bcm4908/bcm4906-tplink-archer-c2300-v1.dts
26 +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
28 +#include <dt-bindings/gpio/gpio.h>
29 +#include <dt-bindings/input/input.h>
30 +#include <dt-bindings/leds/common.h>
32 +#include "bcm4906.dtsi"
35 + compatible = "tplink,archer-c2300-v1", "brcm,bcm4906", "brcm,bcm4908";
36 + model = "TP-Link Archer C2300 V1";
39 + device_type = "memory";
40 + reg = <0x00 0x00 0x00 0x20000000>;
44 + compatible = "gpio-leds";
47 + function = LED_FUNCTION_POWER;
48 + color = <LED_COLOR_ID_BLUE>;
49 + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
54 + color = <LED_COLOR_ID_BLUE>;
55 + gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
60 + color = <LED_COLOR_ID_BLUE>;
61 + gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
65 + function = LED_FUNCTION_WAN;
66 + color = <LED_COLOR_ID_AMBER>;
67 + gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
71 + function = LED_FUNCTION_WAN;
72 + color = <LED_COLOR_ID_BLUE>;
73 + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
77 + function = LED_FUNCTION_LAN;
78 + color = <LED_COLOR_ID_BLUE>;
79 + gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
83 + function = LED_FUNCTION_WPS;
84 + color = <LED_COLOR_ID_BLUE>;
85 + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
90 + color = <LED_COLOR_ID_BLUE>;
91 + gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
95 + function = "usbdown";
96 + color = <LED_COLOR_ID_BLUE>;
97 + gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
101 + function = LED_FUNCTION_BACKLIGHT;
102 + color = <LED_COLOR_ID_WHITE>;
103 + gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
108 + compatible = "gpio-keys-polled";
109 + poll-interval = <100>;
113 + linux,code = <KEY_BRIGHTNESS_ZERO>;
114 + gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
119 + linux,code = <KEY_WPS_BUTTON>;
120 + gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
125 + linux,code = <KEY_RFKILL>;
126 + gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
131 + linux,code = <KEY_RESTART>;
132 + gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
173 + phy-mode = "internal";
174 + phy-handle = <&phy12>;
180 + nand-ecc-strength = <4>;
181 + nand-ecc-step-size = <512>;
184 + #address-cells = <1>;
188 + compatible = "brcm,bcm4908-partitions";
189 + #address-cells = <1>;
194 + reg = <0x0 0x100000>;
198 + compatible = "brcm,bcm4908-firmware";
199 + reg = <0x100000 0x3900000>;
202 + partition@5800000 {
203 + compatible = "brcm,bcm4908-firmware";
204 + reg = <0x3a00000 0x3900000>;