Skip to content

Commit ece6874

Browse files
dliviutsbogend
authored andcommitted
mips: dts: ralink: Add support for TP-Link HC220 G5 v1 board
This WiFi AP is based on a MT7621 SoC with 128MiB RAM, 128MiB NAND, a MT7603 2.4GHz WiFi and a MT7613 5GHz WiFi chips integrated on the board, connected to the main SoC over PCIe. The device uses NMBM over NAND, which is not currently supported in the mainline, so NAND node is skipped in this revision. Signed-off-by: Liviu Dudau <[email protected]> Reviewed-by: Arınç ÜNAL <[email protected]> Acked-by: Sergio Paracuellos <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent 0daf939 commit ece6874

File tree

2 files changed

+86
-1
lines changed

2 files changed

+86
-1
lines changed

arch/mips/boot/dts/ralink/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ dtb-$(CONFIG_DTB_VOCORE2) += vocore2.dtb
88

99
dtb-$(CONFIG_SOC_MT7621) += \
1010
mt7621-gnubee-gb-pc1.dtb \
11-
mt7621-gnubee-gb-pc2.dtb
11+
mt7621-gnubee-gb-pc2.dtb \
12+
mt7621-tplink-hc220-g5-v1.dtb
1213

1314
obj-$(CONFIG_BUILTIN_DTB) += $(addsuffix .o, $(dtb-y))
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
/dts-v1/;
3+
4+
#include "mt7621.dtsi"
5+
6+
#include <dt-bindings/gpio/gpio.h>
7+
#include <dt-bindings/input/input.h>
8+
#include <dt-bindings/leds/common.h>
9+
10+
/ {
11+
compatible = "tplink,hc220-g5-v1", "mediatek,mt7621-soc";
12+
model = "TP-Link HC220 G5 v1";
13+
14+
memory@0 {
15+
device_type = "memory";
16+
reg = <0x00000000 0x08000000>;
17+
};
18+
19+
chosen {
20+
bootargs = "earlycon console=ttyS0,115200";
21+
};
22+
23+
gpio-keys {
24+
compatible = "gpio-keys";
25+
26+
key-reset {
27+
label = "reset";
28+
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
29+
linux,code = <KEY_RESTART>;
30+
};
31+
32+
key-wps {
33+
label = "wps";
34+
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
35+
linux,code = <KEY_WPS_BUTTON>;
36+
};
37+
};
38+
39+
leds {
40+
compatible = "gpio-leds";
41+
42+
led-fault {
43+
color = <LED_COLOR_ID_RED>;
44+
function = LED_FUNCTION_FAULT;
45+
gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
46+
};
47+
48+
led-power {
49+
color = <LED_COLOR_ID_GREEN>;
50+
function = LED_FUNCTION_POWER;
51+
gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
52+
linux,default-trigger = "default-on";
53+
};
54+
55+
led-wps {
56+
color = <LED_COLOR_ID_BLUE>;
57+
function = LED_FUNCTION_WPS;
58+
gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
59+
};
60+
};
61+
};
62+
63+
&pcie {
64+
status = "okay";
65+
};
66+
67+
&switch0 {
68+
ports {
69+
port@0 {
70+
status = "okay";
71+
label = "lan2";
72+
};
73+
74+
port@1 {
75+
status = "okay";
76+
label = "lan1";
77+
};
78+
79+
port@2 {
80+
status = "okay";
81+
label = "wan";
82+
};
83+
};
84+
};

0 commit comments

Comments
 (0)