1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include "mt7620n.dtsi"
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
10 compatible = "dlink,dwr-922-e2", "ralink,mt7620n-soc";
11 model = "D-Link DWR-922 E2";
14 led-boot = &sstrengthg;
15 led-failsafe = &sstrengthg;
19 compatible = "gpio-keys";
23 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
24 linux,code = <KEY_WPS_BUTTON>;
29 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_RESTART>;
35 compatible = "gpio-leds";
36 led-boot = &sstrengthg;
39 label = "dwr-922-e2:green:sms";
40 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
44 label = "dwr-922-e2:green:lan";
45 gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
48 sstrengthg: sstrengthg {
49 label = "dwr-922-e2:green:sigstrength";
50 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
54 label = "dwr-922-e2:red:sigstrength";
55 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
59 label = "dwr-922-e2:green:4g";
60 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
64 label = "dwr-922-e2:green:3g";
65 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
69 label = "dwr-922-e2:green:wifi";
70 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
75 compatible = "gpio-export";
79 gpio-export,name = "lte_modem_enable";
80 gpio-export,output = <1>;
81 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
102 compatible = "jedec,spi-nor";
104 spi-max-frequency = <10000000>;
107 compatible = "fixed-partitions";
108 #address-cells = <1>;
118 compatible = "amit,jimage";
120 reg = <0x10000 0xfe0000>;
123 config: partition@ff0000 {
125 reg = <0xff0000 0x10000>;
148 ralink,group = "spi refclk", "i2c", "ephy", "wled";
149 ralink,function = "gpio";