1 #include "mt7620a.dtsi"
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/mtd/partitions/uimage.h>
8 compatible = "dlink,dwr-118-a2", "ralink,mt7620a-soc";
9 model = "D-Link DWR-118 A2";
12 led-boot = &led_internet;
13 led-failsafe = &led_internet;
17 compatible = "gpio-keys";
21 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
22 linux,code = <KEY_WPS_BUTTON>;
27 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
28 linux,code = <KEY_RESTART>;
33 compatible = "gpio-leds";
37 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
40 led_internet: internet {
41 label = "green:internet";
42 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
47 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
51 label = "green:wlan2g";
52 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
57 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
58 trigger-sources = <&ohci_port1>, <&ehci_port1>;
59 linux,default-trigger = "usbport";
64 compatible = "gpio-export";
68 gpio-export,name = "usb";
69 gpio-export,output = <1>;
70 gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
91 compatible = "jedec,spi-nor";
93 spi-max-frequency = <50000000>;
96 compatible = "fixed-partitions";
107 compatible = "openwrt,uimage", "denx,uimage";
108 openwrt,ih-magic = <IH_MAGIC_OKLI>;
109 openwrt,offset = <0x10000>;
111 reg = <0x10000 0xfe0000>;
114 config: partition@ff0000 {
116 reg = <0xff0000 0x10000>;
120 compatible = "fixed-layout";
121 #address-cells = <1>;
124 macaddr_config_e4a8: macaddr@e4a8 {
125 compatible = "mac-base";
127 #nvmem-cell-cells = <1>;
145 groups = "ephy", "uartf", "spi refclk", "wled";
156 reg = <0x0000 0 0 0 0>;
157 ieee80211-freq-limit = <5000000 6000000>;
158 nvmem-cells = <&macaddr_config_e4a8 2>;
159 nvmem-cell-names = "mac-address";
169 pinctrl-names = "default";
170 pinctrl-0 = <&rgmii1_pins &mdio_pins>;
172 mediatek,portmap = "wllll";
176 phy-handle = <&phy0>;
183 phy0: ethernet-phy@0 {
185 phy-mode = "rgmii-rxid";
192 mediatek,ephy-base = /bits/ 8 <2>;