1 From 6a30934a5470a0ce7ea32b0c6b600accfae94b1a Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
3 Date: Wed, 10 Mar 2021 08:46:03 +0100
4 Subject: [PATCH] arm64: dts: broadcom: bcm4908: add TP-Link Archer C2300 V1
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 Archer C2300 V1 is a home router based on the BCM4906 (2 CPU cores). It
10 has 512 MiB of RAM, NAND flash, USB 2.0 and USB 3.0 ports, 4 LAN ports,
13 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
14 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
16 arch/arm64/boot/dts/broadcom/bcm4908/Makefile | 1 +
17 .../bcm4906-tplink-archer-c2300-v1.dts | 182 ++++++++++++++++++
18 2 files changed, 183 insertions(+)
19 create mode 100644 arch/arm64/boot/dts/broadcom/bcm4908/bcm4906-tplink-archer-c2300-v1.dts
21 --- a/arch/arm64/boot/dts/broadcom/bcm4908/Makefile
22 +++ b/arch/arm64/boot/dts/broadcom/bcm4908/Makefile
24 # SPDX-License-Identifier: GPL-2.0
25 dtb-$(CONFIG_ARCH_BCM4908) += bcm4906-netgear-r8000p.dtb
26 +dtb-$(CONFIG_ARCH_BCM4908) += bcm4906-tplink-archer-c2300-v1.dtb
27 dtb-$(CONFIG_ARCH_BCM4908) += bcm4908-asus-gt-ac5300.dtb
29 +++ b/arch/arm64/boot/dts/broadcom/bcm4908/bcm4906-tplink-archer-c2300-v1.dts
31 +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
33 +#include <dt-bindings/gpio/gpio.h>
34 +#include <dt-bindings/input/input.h>
35 +#include <dt-bindings/leds/common.h>
37 +#include "bcm4906.dtsi"
40 + compatible = "tplink,archer-c2300-v1", "brcm,bcm4906", "brcm,bcm4908";
41 + model = "TP-Link Archer C2300 V1";
44 + device_type = "memory";
45 + reg = <0x00 0x00 0x00 0x20000000>;
49 + compatible = "gpio-leds";
52 + function = LED_FUNCTION_POWER;
53 + color = <LED_COLOR_ID_BLUE>;
54 + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
59 + color = <LED_COLOR_ID_BLUE>;
60 + gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
65 + color = <LED_COLOR_ID_BLUE>;
66 + gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
70 + function = LED_FUNCTION_WAN;
71 + color = <LED_COLOR_ID_AMBER>;
72 + gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
76 + function = LED_FUNCTION_WAN;
77 + color = <LED_COLOR_ID_BLUE>;
78 + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
82 + function = LED_FUNCTION_LAN;
83 + color = <LED_COLOR_ID_BLUE>;
84 + gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
88 + function = LED_FUNCTION_WPS;
89 + color = <LED_COLOR_ID_BLUE>;
90 + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
95 + color = <LED_COLOR_ID_BLUE>;
96 + gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
100 + function = "usbd3";
101 + color = <LED_COLOR_ID_BLUE>;
102 + gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
106 + function = LED_FUNCTION_BACKLIGHT;
107 + color = <LED_COLOR_ID_WHITE>;
108 + gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
113 + compatible = "gpio-keys-polled";
114 + poll-interval = <100>;
118 + linux,code = <KEY_BRIGHTNESS_ZERO>;
119 + gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
124 + linux,code = <KEY_WPS_BUTTON>;
125 + gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
130 + linux,code = <KEY_RFKILL>;
131 + gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
136 + linux,code = <KEY_RESTART>;
137 + gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
178 + phy-mode = "internal";
179 + phy-handle = <&phy12>;
185 + nand-ecc-strength = <4>;
186 + nand-ecc-step-size = <512>;
189 + #address-cells = <1>;
193 + compatible = "brcm,bcm4908-partitions";
194 + #address-cells = <1>;
199 + reg = <0x0 0x100000>;
203 + compatible = "brcm,bcm4908-firmware";
204 + reg = <0x100000 0x3900000>;
207 + partition@5800000 {
208 + compatible = "brcm,bcm4908-firmware";
209 + reg = <0x3a00000 0x3900000>;