1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include "mt7620a.dtsi"
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/gpio/gpio.h>
10 compatible = "dlink,dwr-960", "ralink,mt7620a-soc";
11 model = "D-Link DWR-960";
14 led-boot = &led_status;
15 led-failsafe = &led_status;
16 led-running = &led_status;
17 led-upgrade = &led_status;
21 compatible = "gpio-keys";
25 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_RESTART>;
31 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_WPS_BUTTON>;
37 compatible = "gpio-leds";
40 label = "dwr-960:green:status";
41 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
45 label = "dwr-960:green:wan";
46 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
50 label = "dwr-960:green:lan";
51 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
55 label = "dwr-960:green:sms";
56 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
60 label = "dwr-960:green:signal";
61 gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>;
65 label = "dwr-960:red:signal";
66 gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
70 label = "dwr-960:green:4g";
71 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
75 label = "dwr-960:green:3g";
76 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
80 label = "dwr-960:green:wlan5g";
81 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
82 linux,default-trigger = "phy0tpt";
86 label = "dwr-960:green:wlan2g";
87 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
88 linux,default-trigger = "phy1tpt";
96 pinctrl-names = "default";
97 pinctrl-0 = <&rgmii2_pins &mdio_pins>;
98 mediatek,portmap = "wllll";
102 phy-mode = "rgmii-txid";
103 phy-handle = <&phy7>;
109 phy7: ethernet-phy@7 {
111 phy-mode = "rgmii-id";
132 compatible = "jedec,spi-nor";
134 spi-max-frequency = <50000000>;
137 compatible = "fixed-partitions";
138 #address-cells = <1>;
148 compatible = "amit,jimage";
150 reg = <0x10000 0xfe0000>;
153 config: partition@ff0000 {
155 reg = <0xff0000 0x10000>;
176 compatible = "mediatek,mt76";
177 reg = <0x0000 0 0 0 0>;
178 ieee80211-freq-limit = <5000000 6000000>;
179 mediatek,mtd-eeprom = <&config 0xe08e>;
180 mtd-mac-address = <&config 0xe50e>;
181 mtd-mac-address-increment = <2>;
187 ralink,group = "i2c", "wled", "spi refclk", "uartf", "ephy";
188 ralink,function = "gpio";