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>
9 compatible = "alfa-network,r36m-e4g", "ralink,mt7620a-soc";
10 model = "ALFA Network R36M-E4G";
13 label-mac-device = &wmac;
14 led-boot = &led_system;
15 led-failsafe = &led_system;
16 led-running = &led_system;
17 led-upgrade = &led_system;
21 bootargs = "console=ttyS1,115200";
25 compatible = "gpio-export";
29 gpio-export,name = "modem-enable";
30 gpio-export,output = <1>;
31 gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
35 gpio-export,name = "modem-rf-enable";
36 gpio-export,output = <1>;
37 gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
41 gpio-export,name = "rtc-enable";
42 gpio-export,output = <1>;
43 gpio-export,direction_may_change = <1>;
44 gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
48 gpio-export,name = "sim-select";
49 gpio-export,output = <0>;
50 gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
54 gpio-export,name = "sim1-detect";
55 gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
59 gpio-export,name = "sim2-detect";
60 gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
65 compatible = "gpio-keys";
69 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
70 linux,code = <KEY_RESTART>;
75 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
76 linux,code = <KEY_RFKILL>;
81 compatible = "gpio-leds";
85 gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
90 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
94 label = "green:system";
95 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
96 default-state = "keep";
100 label = "green:sim1";
101 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
102 default-state = "keep";
106 label = "green:sim2";
107 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
108 default-state = "keep";
113 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
117 label = "orange:wlan";
118 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
119 linux,default-trigger = "phy0radio";
129 nvmem-cells = <&macaddr_factory_28>;
130 nvmem-cell-names = "mac-address";
155 groups = "ephy", "pcie", "rgmii1", "wled";
164 compatible = "jedec,spi-nor";
166 spi-max-frequency = <50000000>;
170 compatible = "fixed-partitions";
171 #address-cells = <1>;
181 label = "u-boot-env";
182 reg = <0x30000 0x1000>;
187 reg = <0x31000 0xf000>;
191 factory: partition@40000 {
193 reg = <0x40000 0x10000>;
198 compatible = "denx,uimage";
200 reg = <0x50000 0xfb0000>;
211 ralink,mtd-eeprom = <&factory 0x0>;
215 compatible = "nvmem-cells";
216 #address-cells = <1>;
219 macaddr_factory_28: macaddr@28 {