1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "mt7620a.dtsi"
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/gpio/gpio.h>
9 compatible = "dlink,dwr-960", "ralink,mt7620a-soc";
10 model = "D-Link DWR-960";
13 led-boot = &led_status;
14 led-failsafe = &led_status;
15 led-running = &led_status;
16 led-upgrade = &led_status;
20 compatible = "gpio-keys";
24 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
25 linux,code = <KEY_RESTART>;
30 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_WPS_BUTTON>;
36 compatible = "gpio-leds";
39 label = "dwr-960:green:status";
40 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
44 label = "dwr-960:green:wan";
45 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
49 label = "dwr-960:green:lan";
50 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
54 label = "dwr-960:green:sms";
55 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
59 label = "dwr-960:green:signal";
60 gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>;
64 label = "dwr-960:red:signal";
65 gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
69 label = "dwr-960:green:4g";
70 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
74 label = "dwr-960:green:3g";
75 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
79 label = "dwr-960:green:wlan5g";
80 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
81 linux,default-trigger = "phy0tpt";
85 label = "dwr-960:green:wlan2g";
86 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
87 linux,default-trigger = "phy1tpt";
93 pinctrl-names = "default";
94 pinctrl-0 = <&rgmii2_pins &mdio_pins>;
96 mediatek,portmap = "wllll";
100 phy-mode = "rgmii-txid";
101 phy-handle = <&phy7>;
107 phy7: ethernet-phy@7 {
109 phy-mode = "rgmii-id";
130 compatible = "jedec,spi-nor";
132 spi-max-frequency = <50000000>;
135 compatible = "fixed-partitions";
136 #address-cells = <1>;
146 compatible = "amit,jimage";
148 reg = <0x10000 0xfe0000>;
151 config: partition@ff0000 {
153 reg = <0xff0000 0x10000>;
174 compatible = "mediatek,mt76";
175 reg = <0x0000 0 0 0 0>;
176 ieee80211-freq-limit = <5000000 6000000>;
177 mediatek,mtd-eeprom = <&config 0xe08e>;
178 mtd-mac-address = <&config 0xe50e>;
179 mtd-mac-address-increment = <2>;
185 groups = "i2c", "wled", "spi refclk", "uartf", "ephy";