1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "mt7620n.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/mtd/partitions/uimage.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;
40 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
45 gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
48 sstrengthg: sstrengthg {
49 label = "green:sigstrength";
50 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
54 label = "red:sigstrength";
55 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
60 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
65 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
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 = "openwrt,uimage", "denx,uimage";
119 openwrt,ih-magic = <IH_MAGIC_OKLI>;
120 openwrt,offset = <0x10000>;
122 reg = <0x10000 0xfe0000>;
125 config: partition@ff0000 {
127 reg = <0xff0000 0x10000>;
144 groups = "spi refclk", "i2c", "ephy", "wled";