1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8 #include <dt-bindings/leds/common.h>
11 compatible = "tplink,hc220-g5-v1", "mediatek,mt7621-soc";
12 model = "TP-Link HC220 G5 v1";
15 device_type = "memory";
16 reg = <0x00000000 0x08000000>;
20 bootargs = "earlycon console=ttyS0,115200";
24 compatible = "gpio-keys";
28 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_RESTART>;
34 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_WPS_BUTTON>;
40 compatible = "gpio-leds";
43 color = <LED_COLOR_ID_RED>;
44 function = LED_FUNCTION_FAULT;
45 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
49 color = <LED_COLOR_ID_GREEN>;
50 function = LED_FUNCTION_POWER;
51 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
52 linux,default-trigger = "default-on";
56 color = <LED_COLOR_ID_BLUE>;
57 function = LED_FUNCTION_WPS;
58 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;