3 #include "mt7620n.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "dlink,dwr-921-c1", "ralink,mt7620n-soc";
10 model = "D-Link DWR-921 C1";
13 led-boot = &led_sstrenghg;
14 led-failsafe = &led_sstrenghg;
15 led-running = &led_sstrenghg;
16 led-upgrade = &led_sstrenghg;
20 compatible = "gpio-keys-polled";
25 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_WPS_BUTTON>;
31 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_RESTART>;
37 compatible = "gpio-leds";
40 label = "dwr-921-c1:green:sms";
41 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
45 label = "dwr-921-c1:green:lan";
46 gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
49 led_sstrenghg: sstrengthg {
50 label = "dwr-921-c1:green:sigstrength";
51 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
55 label = "dwr-921-c1:red:sigstrength";
56 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
60 label = "dwr-921-c1:green:4g";
61 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
65 label = "dwr-921-c1:green:3g";
66 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
70 label = "dwr-921-c1: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>;
120 reg = <0x10000 0xfe0000>;
123 config: partition@ff0000 {
125 reg = <0xff0000 0x10000>;
147 state_default: pinctrl0 {
149 ralink,group = "spi refclk", "i2c", "ephy", "wled";
150 ralink,function = "gpio";