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>
9 compatible = "alfa-network,tube-e4g", "ralink,mt7620a-soc";
10 model = "ALFA Network Tube-E4G";
13 label-mac-device = ðernet;
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";
73 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
78 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
82 label = "green:power";
83 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
84 default-state = "keep";
89 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
90 default-state = "keep";
95 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
96 default-state = "keep";
106 nvmem-cells = <&macaddr_factory_28>;
107 nvmem-cell-names = "mac-address";
128 groups = "ephy", "nd_sd", "pcie", "uartf";
137 compatible = "jedec,spi-nor";
139 spi-max-frequency = <50000000>;
143 compatible = "fixed-partitions";
144 #address-cells = <1>;
154 label = "u-boot-env";
155 reg = <0x30000 0x1000>;
160 reg = <0x31000 0xf000>;
164 factory: partition@40000 {
166 reg = <0x40000 0x10000>;
171 compatible = "denx,uimage";
173 reg = <0x50000 0xfb0000>;
184 compatible = "nvmem-cells";
185 #address-cells = <1>;
188 macaddr_factory_28: macaddr@28 {