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,tube-e4g", "ralink,mt7620a-soc";
11 model = "ALFA Network Tube-E4G";
14 label-mac-device = ðernet;
16 led-failsafe = &power;
22 bootargs = "console=ttyS0,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 = <&gpio0 12 GPIO_ACTIVE_HIGH>;
42 gpio-export,name = "sim-select";
43 gpio-export,output = <0>;
44 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
48 gpio-export,name = "sim1-detect";
49 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
53 gpio-export,name = "sim2-detect";
54 gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
59 compatible = "gpio-keys";
63 linux,code = <KEY_RESTART>;
64 gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
65 debounce-interval = <60>;
70 compatible = "gpio-leds";
74 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
78 function = LED_FUNCTION_LAN;
79 color = <LED_COLOR_ID_BLUE>;
80 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
84 function = LED_FUNCTION_POWER;
85 color = <LED_COLOR_ID_GREEN>;
86 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
87 default-state = "keep";
92 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
93 default-state = "keep";
98 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
99 default-state = "keep";
109 nvmem-cells = <&macaddr_factory_28>;
110 nvmem-cell-names = "mac-address";
131 groups = "ephy", "nd_sd", "pcie", "uartf";
140 compatible = "jedec,spi-nor";
142 spi-max-frequency = <50000000>;
146 compatible = "fixed-partitions";
147 #address-cells = <1>;
157 label = "u-boot-env";
158 reg = <0x30000 0x1000>;
163 reg = <0x31000 0xf000>;
169 reg = <0x40000 0x10000>;
173 compatible = "fixed-layout";
174 #address-cells = <1>;
177 macaddr_factory_28: macaddr@28 {
184 compatible = "denx,uimage";
186 reg = <0x50000 0xfb0000>;