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-polled";
24 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
25 linux,code = <KEY_WPS_BUTTON>;
30 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_RESTART>;
36 compatible = "gpio-leds";
37 led-boot = &sstrengthg;
40 label = "dwr-922-e2:green:sms";
41 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
45 label = "dwr-922-e2:green:lan";
46 gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
49 sstrengthg: sstrengthg {
50 label = "dwr-922-e2:green:sigstrength";
51 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
55 label = "dwr-922-e2:red:sigstrength";
56 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
60 label = "dwr-922-e2:green:4g";
61 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
65 label = "dwr-922-e2:green:3g";
66 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
70 label = "dwr-922-e2:green:wifi";
71 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
76 compatible = "gpio-export";
80 gpio-export,name = "lte_modem_enable";
81 gpio-export,output = <1>;
82 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
103 compatible = "jedec,spi-nor";
105 spi-max-frequency = <10000000>;
108 compatible = "fixed-partitions";
109 #address-cells = <1>;
119 compatible = "amit,jimage";
121 reg = <0x10000 0xfe0000>;
124 config: partition@ff0000 {
126 reg = <0xff0000 0x10000>;
148 state_default: pinctrl0 {
150 ralink,group = "spi refclk", "i2c", "ephy", "wled";
151 ralink,function = "gpio";