1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "mt7620a.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 compatible = "alfa-network,r36m-e4g", "ralink,mt7620a-soc";
11 model = "ALFA Network R36M-E4G";
14 label-mac-device = &wmac;
15 led-boot = &led_system;
16 led-failsafe = &led_system;
17 led-running = &led_system;
18 led-upgrade = &led_system;
22 bootargs = "console=ttyS1,115200";
26 compatible = "gpio-export";
30 gpio-export,name = "modem-enable";
31 gpio-export,output = <1>;
32 gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
36 gpio-export,name = "modem-rf-enable";
37 gpio-export,output = <1>;
38 gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
42 gpio-export,name = "rtc-enable";
43 gpio-export,output = <1>;
44 gpio-export,direction_may_change = <1>;
45 gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
49 gpio-export,name = "sim-select";
50 gpio-export,output = <0>;
51 gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
55 gpio-export,name = "sim1-detect";
56 gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
60 gpio-export,name = "sim2-detect";
61 gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
66 compatible = "gpio-keys";
70 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
71 linux,code = <KEY_RESTART>;
76 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
77 linux,code = <KEY_RFKILL>;
82 compatible = "gpio-leds";
86 gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
90 function = LED_FUNCTION_LAN;
91 color = <LED_COLOR_ID_GREEN>;
92 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
96 label = "green:system";
97 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
98 default-state = "keep";
102 label = "green:sim1";
103 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
104 default-state = "keep";
108 label = "green:sim2";
109 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
110 default-state = "keep";
114 function = LED_FUNCTION_WAN;
115 color = <LED_COLOR_ID_GREEN>;
116 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
120 function = LED_FUNCTION_WLAN;
121 color = <LED_COLOR_ID_ORANGE>;
122 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
123 linux,default-trigger = "phy0radio";
133 nvmem-cells = <&macaddr_factory_28>;
134 nvmem-cell-names = "mac-address";
159 groups = "ephy", "pcie", "rgmii1", "wled";
168 compatible = "jedec,spi-nor";
170 spi-max-frequency = <50000000>;
174 compatible = "fixed-partitions";
175 #address-cells = <1>;
185 label = "u-boot-env";
186 reg = <0x30000 0x1000>;
191 reg = <0x31000 0xf000>;
197 reg = <0x40000 0x10000>;
201 compatible = "fixed-layout";
202 #address-cells = <1>;
205 eeprom_factory_0: eeprom@0 {
209 macaddr_factory_28: macaddr@28 {
216 compatible = "denx,uimage";
218 reg = <0x50000 0xfb0000>;
229 nvmem-cells = <&eeprom_factory_0>;
230 nvmem-cell-names = "eeprom";