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 label-mac-device = ðernet;
15 led-boot = &led_system;
16 led-failsafe = &led_system;
17 led-running = &led_system;
18 led-upgrade = &led_system;
22 bootargs = "console=ttyS0,115200";
26 compatible = "gpio-export";
30 gpio-export,name = "m2-enable";
31 gpio-export,output = <1>;
32 gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
36 gpio-export,name = "minipcie0-enable";
37 gpio-export,output = <1>;
38 gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
42 gpio-export,name = "minipcie0-reset";
43 gpio-export,output = <0>;
44 gpios = <&gpio0 23 GPIO_ACTIVE_HIGH>;
48 gpio-export,name = "minipcie1-enable";
49 gpio-export,output = <1>;
50 gpios = <&gpio0 30 GPIO_ACTIVE_HIGH>;
54 gpio-export,name = "minipcie1-reset";
55 gpio-export,output = <0>;
56 gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>;
60 gpio-export,name = "minipcie2-enable";
61 gpio-export,output = <1>;
62 gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;
66 gpio-export,name = "minipcie2-reset";
67 gpio-export,output = <0>;
68 gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
72 gpio-export,name = "pcie-perst-enable";
73 gpio-export,output = <0>;
74 gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>;
78 gpio-export,name = "sim-select";
79 gpio-export,output = <1>;
80 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
84 gpio-export,name = "watchdog-enable";
85 gpio-export,output = <1>;
86 gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
91 compatible = "gpio-keys";
95 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
96 linux,code = <KEY_RESTART>;
101 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
102 linux,code = <BTN_0>;
107 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
108 linux,code = <BTN_1>;
113 compatible = "gpio-leds";
116 label = "quad-e4g:red:system";
117 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
118 default-state = "keep";
122 label = "quad-e4g:orange:m2";
123 gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
127 label = "quad-e4g:orange:minipcie0";
128 gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
132 label = "quad-e4g:orange:minipcie1";
133 gpios = <&gpio0 27 GPIO_ACTIVE_LOW>;
137 label = "quad-e4g:orange:minipcie2";
138 gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
143 compatible = "linux,wdt-gpio";
144 gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
146 hw_margin_ms = <25000>;
152 mtd-mac-address = <&factory 0xe000>;
159 compatible = "ti,bq32000";
169 state_default: pinctrl0 {
171 ralink,group = "jtag", "rgmii2", "wdt";
172 ralink,function = "gpio";
185 compatible = "jedec,spi-nor";
187 spi-max-frequency = <50000000>;
191 compatible = "fixed-partitions";
192 #address-cells = <1>;
201 label = "u-boot-env";
202 reg = <0x30000 0x1000>;
207 reg = <0x31000 0xf000>;
211 factory: partition@40000 {
213 reg = <0x40000 0x10000>;
218 compatible = "denx,uimage";
220 reg = <0x50000 0xfb0000>;