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,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";
73 label = "tube-e4g:green:4g";
74 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
78 label = "tube-e4g:blue:lan";
79 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
83 label = "tube-e4g:green:power";
84 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
85 default-state = "keep";
89 label = "tube-e4g:green:sim1";
90 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
91 default-state = "keep";
95 label = "tube-e4g:green:sim2";
96 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
97 default-state = "keep";
107 mtd-mac-address = <&factory 0x28>;
123 mediatek,port4 = "ephy";
136 ralink,group = "ephy", "nd_sd", "pcie", "uartf";
137 ralink,function = "gpio";
145 compatible = "jedec,spi-nor";
147 spi-max-frequency = <50000000>;
151 compatible = "fixed-partitions";
152 #address-cells = <1>;
162 label = "u-boot-env";
163 reg = <0x30000 0x1000>;
168 reg = <0x31000 0xf000>;
172 factory: partition@40000 {
174 reg = <0x40000 0x10000>;
179 compatible = "denx,uimage";
181 reg = <0x50000 0xfb0000>;