1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "mt7620a.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "dlink,dwr-118-a1", "ralink,mt7620a-soc";
10 model = "D-Link DWR-118 A1";
13 led-boot = &led_internet;
14 led-failsafe = &led_internet;
15 led-upgrade = &led_internet;
19 compatible = "gpio-keys";
23 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
24 linux,code = <KEY_WPS_BUTTON>;
29 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_RESTART>;
35 compatible = "gpio-leds";
39 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
42 led_internet: internet {
43 label = "green:internet";
44 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
49 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
53 label = "green:wlan2g";
54 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
59 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
60 trigger-sources = <&ohci_port1>, <&ehci_port1>;
61 linux,default-trigger = "usbport";
66 compatible = "gpio-export";
70 gpio-export,name = "usb";
71 gpio-export,output = <0>;
72 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
93 compatible = "jedec,spi-nor";
95 spi-max-frequency = <80000000>;
98 compatible = "fixed-partitions";
109 compatible = "amit,jimage";
111 reg = <0x10000 0xfe0000>;
114 config: partition@ff0000 {
116 reg = <0xff0000 0x10000>;
133 groups = "ephy", "uartf", "spi refclk", "wled";
144 reg = <0x0000 0 0 0 0>;
145 mtd-mac-address = <&config 0xe496>;
146 mtd-mac-address-increment = <(2)>;
147 mediatek,mtd-eeprom = <&config 0xe083>;
157 pinctrl-names = "default";
158 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
162 phy-handle = <&phy4>;
168 phy-handle = <&phy5>;
175 phy4: ethernet-phy@4 {
177 phy-mode = "rgmii-rxid";
180 phy5: ethernet-phy@5 {
182 phy-mode = "rgmii-rxid";
188 mediatek,port4 = "gmac";