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/leds/common.h>
8 #include <dt-bindings/mtd/partitions/uimage.h>
11 compatible = "dlink,dwr-922-e2", "ralink,mt7620n-soc";
12 model = "D-Link DWR-922 E2";
15 led-boot = &sstrengthg;
16 led-failsafe = &sstrengthg;
20 compatible = "gpio-keys";
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;
41 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
45 function = LED_FUNCTION_LAN;
46 color = <LED_COLOR_ID_GREEN>;
47 gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
50 sstrengthg: sstrengthg {
51 label = "green:sigstrength";
52 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
56 label = "red:sigstrength";
57 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
62 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
67 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
72 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
77 compatible = "gpio-export";
81 gpio-export,name = "lte_modem_enable";
82 gpio-export,output = <1>;
83 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
104 compatible = "jedec,spi-nor";
106 spi-max-frequency = <10000000>;
109 compatible = "fixed-partitions";
110 #address-cells = <1>;
120 compatible = "openwrt,uimage", "denx,uimage";
121 openwrt,ih-magic = <IH_MAGIC_OKLI>;
122 openwrt,offset = <0x10000>;
124 reg = <0x10000 0xfe0000>;
129 reg = <0xff0000 0x10000>;
146 groups = "spi refclk", "i2c", "ephy", "wled";