1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
10 compatible = "alfa-network,quad-e4g", "mediatek,mt7621-soc";
11 model = "ALFA Network Quad-E4G";
14 led-boot = &led_system;
15 led-failsafe = &led_system;
16 led-running = &led_system;
17 led-upgrade = &led_system;
21 bootargs = "console=ttyS0,115200";
25 compatible = "gpio-export";
29 gpio-export,name = "m2-enable";
30 gpio-export,output = <1>;
31 gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
35 gpio-export,name = "minipcie0-enable";
36 gpio-export,output = <1>;
37 gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
41 gpio-export,name = "minipcie0-reset";
42 gpio-export,output = <0>;
43 gpios = <&gpio0 23 GPIO_ACTIVE_HIGH>;
47 gpio-export,name = "minipcie1-enable";
48 gpio-export,output = <1>;
49 gpios = <&gpio0 30 GPIO_ACTIVE_HIGH>;
53 gpio-export,name = "minipcie1-reset";
54 gpio-export,output = <0>;
55 gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>;
59 gpio-export,name = "minipcie2-enable";
60 gpio-export,output = <1>;
61 gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;
65 gpio-export,name = "minipcie2-reset";
66 gpio-export,output = <0>;
67 gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
71 gpio-export,name = "pcie-perst-enable";
72 gpio-export,output = <0>;
73 gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>;
77 gpio-export,name = "sim-select";
78 gpio-export,output = <1>;
79 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
83 gpio-export,name = "watchdog-enable";
84 gpio-export,output = <1>;
85 gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
90 compatible = "gpio-keys";
94 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
95 linux,code = <KEY_RESTART>;
100 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
101 linux,code = <BTN_0>;
106 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
107 linux,code = <BTN_1>;
112 compatible = "gpio-leds";
115 label = "quad-e4g:red:system";
116 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
117 default-state = "keep";
121 label = "quad-e4g:orange:m2";
122 gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
126 label = "quad-e4g:orange:minipcie0";
127 gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
131 label = "quad-e4g:orange:minipcie1";
132 gpios = <&gpio0 27 GPIO_ACTIVE_LOW>;
136 label = "quad-e4g:orange:minipcie2";
137 gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
142 device_type = "memory";
143 reg = <0x0 0x10000000>;
147 compatible = "linux,wdt-gpio";
148 gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
150 hw_margin_ms = <25000>;
156 mtd-mac-address = <&factory 0xe000>;
163 compatible = "ti,bq32000";
173 state_default: pinctrl0 {
175 ralink,group = "jtag", "rgmii2", "wdt";
176 ralink,function = "gpio";
189 compatible = "jedec,spi-nor";
191 spi-max-frequency = <50000000>;
195 compatible = "fixed-partitions";
196 #address-cells = <1>;
205 label = "u-boot-env";
206 reg = <0x30000 0x1000>;
211 reg = <0x31000 0xf000>;
215 factory: partition@40000 {
217 reg = <0x40000 0x10000>;
222 compatible = "denx,uimage";
224 reg = <0x50000 0xfb0000>;