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