1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include "mt7620a.dtsi"
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.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";
85 label = "r36m-e4g:orange:4g";
86 gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
90 label = "r36m-e4g:green:lan";
91 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
95 label = "r36m-e4g:green:system";
96 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
97 default-state = "keep";
101 label = "r36m-e4g:green:sim1";
102 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
103 default-state = "keep";
107 label = "r36m-e4g:green:sim2";
108 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
109 default-state = "keep";
113 label = "r36m-e4g:green:wan";
114 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
118 label = "r36m-e4g:orange:wlan";
119 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
120 linux,default-trigger = "phy0radio";
130 mtd-mac-address = <&factory 0x28>;
146 mediatek,port4 = "ephy";
158 state_default: pinctrl0 {
160 ralink,group = "ephy", "pcie", "rgmii1", "wled";
161 ralink,function = "gpio";
170 compatible = "jedec,spi-nor";
172 spi-max-frequency = <50000000>;
176 compatible = "fixed-partitions";
177 #address-cells = <1>;
187 label = "u-boot-env";
188 reg = <0x30000 0x1000>;
193 reg = <0x31000 0xf000>;
197 factory: partition@40000 {
199 reg = <0x40000 0x10000>;
204 compatible = "denx,uimage";
206 reg = <0x50000 0xfb0000>;
217 ralink,mtd-eeprom = <&factory 0>;