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>;
63 compatible = "gpio-export";
67 gpio-export,name = "usb";
68 gpio-export,output = <1>;
69 gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
90 compatible = "jedec,spi-nor";
92 spi-max-frequency = <50000000>;
95 compatible = "fixed-partitions";
107 reg = <0x10000 0xfe0000>;
110 config: partition@ff0000 {
112 reg = <0xff0000 0x10000>;
128 state_default: pinctrl0 {
130 ralink,group = "ephy", "uartf", "spi refclk", "wled";
131 ralink,function = "gpio";
142 reg = <0x0000 0 0 0 0>;
143 ieee80211-freq-limit = <5000000 6000000>;
144 mtd-mac-address = <&config 0xe4a8>;
145 mtd-mac-address-increment = <(2)>;
156 pinctrl-names = "default";
157 pinctrl-0 = <&rgmii1_pins &mdio_pins>;
161 phy-handle = <&phy4>;
168 phy4: ethernet-phy@4 {
176 mediatek,port4 = "gmac";