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";
15 led-failsafe = &power;
21 bootargs = "console=ttyS0,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 = <&gpio0 12 GPIO_ACTIVE_HIGH>;
41 gpio-export,name = "sim-select";
42 gpio-export,output = <0>;
43 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
47 gpio-export,name = "sim1-detect";
48 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
52 gpio-export,name = "sim2-detect";
53 gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
58 compatible = "gpio-keys";
62 linux,code = <KEY_RESTART>;
63 gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
64 debounce-interval = <60>;
69 compatible = "gpio-leds";
72 label = "tube-e4g:green:4g";
73 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
77 label = "tube-e4g:blue:lan";
78 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
82 label = "tube-e4g:green:power";
83 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
84 default-state = "keep";
88 label = "tube-e4g:green:sim1";
89 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
90 default-state = "keep";
94 label = "tube-e4g:green:sim2";
95 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
96 default-state = "keep";
106 mtd-mac-address = <&factory 0x28>;
122 mediatek,port4 = "ephy";
134 state_default: pinctrl0 {
136 ralink,group = "ephy", "nd_sd", "pcie", "uartf";
137 ralink,function = "gpio";
146 compatible = "jedec,spi-nor";
148 spi-max-frequency = <50000000>;
152 compatible = "fixed-partitions";
153 #address-cells = <1>;
163 label = "u-boot-env";
164 reg = <0x30000 0x1000>;
169 reg = <0x31000 0xf000>;
173 factory: partition@40000 {
175 reg = <0x40000 0x10000>;
180 compatible = "denx,uimage";
182 reg = <0x50000 0xfb0000>;