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-boot = &led_internet;
14 led-failsafe = &led_internet;
18 compatible = "gpio-keys";
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";
108 compatible = "amit,jimage";
110 reg = <0x10000 0xfe0000>;
113 config: partition@ff0000 {
115 reg = <0xff0000 0x10000>;
132 ralink,group = "ephy", "uartf", "spi refclk", "wled";
133 ralink,function = "gpio";
143 reg = <0x0000 0 0 0 0>;
144 ieee80211-freq-limit = <5000000 6000000>;
145 mtd-mac-address = <&config 0xe4a8>;
146 mtd-mac-address-increment = <(2)>;
157 mediatek,portmap = "wllll";
158 pinctrl-names = "default";
159 pinctrl-0 = <&rgmii1_pins &mdio_pins>;
163 phy-handle = <&phy0>;
170 phy0: ethernet-phy@0 {
172 phy-mode = "rgmii-rxid";
178 mediatek,port4 = "gmac";
179 mediatek,ephy-base-address = /bits/ 16 < 2 >;