3 #include "mt7620a.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "dlink,dwr-118-a2", "ralink,mt7620a-soc";
10 model = "D-Link DWR-118 A2";
13 led-status = &led_internet;
17 compatible = "gpio-keys-polled";
22 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_WPS_BUTTON>;
28 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_RESTART>;
34 compatible = "gpio-leds";
37 label = "dwr-118-a2:green:wan";
38 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
41 led_internet: internet {
42 label = "dwr-118-a2:green:internet";
43 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
47 label = "dwr-118-a2:green:lan";
48 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
52 label = "dwr-118-a2:green:wlan2g";
53 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
57 label = "dwr-118-a2:green:usb";
58 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
59 trigger-sources = <&ohci_port1>, <&ehci_port1>;
60 linux,default-trigger = "usbport";
65 compatible = "gpio-export";
69 gpio-export,name = "usb";
70 gpio-export,output = <1>;
71 gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
92 compatible = "jedec,spi-nor";
94 spi-max-frequency = <50000000>;
97 compatible = "fixed-partitions";
109 reg = <0x10000 0xfe0000>;
112 config: partition@ff0000 {
114 reg = <0xff0000 0x10000>;
130 state_default: pinctrl0 {
132 ralink,group = "ephy", "uartf", "spi refclk", "wled";
133 ralink,function = "gpio";
144 reg = <0x0000 0 0 0 0>;
145 ieee80211-freq-limit = <5000000 6000000>;
146 mtd-mac-address = <&config 0xe4a8>;
147 mtd-mac-address-increment = <(2)>;
158 pinctrl-names = "default";
159 pinctrl-0 = <&rgmii1_pins &mdio_pins>;
163 phy-handle = <&phy4>;
170 phy4: ethernet-phy@4 {
178 mediatek,port4 = "gmac";