1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include "mt7620a.dtsi"
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
10 compatible = "dlink,dwr-118-a1", "ralink,mt7620a-soc";
11 model = "D-Link DWR-118 A1";
14 led-boot = &led_internet;
15 led-failsafe = &led_internet;
16 led-upgrade = &led_internet;
20 compatible = "gpio-keys-polled";
25 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_WPS_BUTTON>;
31 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_RESTART>;
37 compatible = "gpio-leds";
40 label = "dwr-118-a1:green:wan";
41 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
44 led_internet: internet {
45 label = "dwr-118-a1:green:internet";
46 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
50 label = "dwr-118-a1:green:lan";
51 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
55 label = "dwr-118-a1:green:wlan2g";
56 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
60 label = "dwr-118-a1:green:usb";
61 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
62 trigger-sources = <&ohci_port1>, <&ehci_port1>;
63 linux,default-trigger = "usbport";
68 compatible = "gpio-export";
72 gpio-export,name = "usb";
73 gpio-export,output = <0>;
74 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
95 compatible = "jedec,spi-nor";
97 spi-max-frequency = <80000000>;
100 compatible = "fixed-partitions";
101 #address-cells = <1>;
111 compatible = "amit,jimage";
113 reg = <0x10000 0xfe0000>;
116 config: partition@ff0000 {
118 reg = <0xff0000 0x10000>;
134 state_default: pinctrl0 {
136 ralink,group = "ephy", "uartf", "spi refclk", "wled";
137 ralink,function = "gpio";
148 reg = <0x0000 0 0 0 0>;
149 mtd-mac-address = <&config 0xe496>;
150 mtd-mac-address-increment = <(2)>;
151 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";