1 // SPDX-License-Identifier: GPL-2.0-only OR MIT 2 3 /dts-v1/; 4 #include <dt-bindings/input/input.h> 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/leds/common.h> 7 8 #include "mt7981b.dtsi" 9 10 / { 11 compatible = "cudy,wr3000-v1", "mediatek,mt7981b"; 12 model = "Cudy WR3000 V1"; 13 14 memory@40000000 { 15 reg = <0 0x40000000 0 0x10000000>; 16 device_type = "memory"; 17 }; 18 19 keys { 20 compatible = "gpio-keys"; 21 22 key-wps { 23 label = "WPS"; 24 gpios = <&pio 0 GPIO_ACTIVE_LOW>; 25 linux,code = <KEY_WPS_BUTTON>; 26 }; 27 28 key-reset { 29 label = "RESET"; 30 gpios = <&pio 1 GPIO_ACTIVE_LOW>; 31 linux,code = <KEY_RESTART>; 32 }; 33 }; 34 35 leds { 36 compatible = "gpio-leds"; 37 38 led-0 { 39 color = <LED_COLOR_ID_BLUE>; 40 function = LED_FUNCTION_WAN; 41 gpios = <&pio 5 GPIO_ACTIVE_LOW>; 42 }; 43 44 led-1 { 45 color = <LED_COLOR_ID_BLUE>; 46 function = LED_FUNCTION_WLAN_2GHZ; 47 gpios = <&pio 6 GPIO_ACTIVE_LOW>; 48 }; 49 50 led-2 { 51 color = <LED_COLOR_ID_BLUE>; 52 function = LED_FUNCTION_WLAN_5GHZ; 53 gpios = <&pio 7 GPIO_ACTIVE_LOW>; 54 }; 55 56 led-3 { 57 color = <LED_COLOR_ID_BLUE>; 58 function = LED_FUNCTION_LAN; 59 gpios = <&pio 9 GPIO_ACTIVE_LOW>; 60 }; 61 62 led-4 { 63 color = <LED_COLOR_ID_BLUE>; 64 function = LED_FUNCTION_STATUS; 65 gpios = <&pio 10 GPIO_ACTIVE_LOW>; 66 }; 67 68 led-5 { 69 color = <LED_COLOR_ID_BLUE>; 70 function = LED_FUNCTION_WAN_ONLINE; 71 gpios = <&pio 11 GPIO_ACTIVE_LOW>; 72 }; 73 }; 74 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.