1 // SPDX-License-Identifier: GPL-2.0-or-later
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "zyxel,lte5398-m904", "mediatek,mt7621-soc";
10 model = "ZyXEL LTE5398-M904";
13 label-mac-device = &gmac0;
14 led-boot = &led_power_green;
15 led-failsafe = &led_power_green;
16 led-running = &led_power_green;
17 led-upgrade = &led_power_green;
21 compatible = "gpio-keys";
25 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_WPS_BUTTON>;
31 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_RESTART>;
37 compatible = "gpio-leds";
39 led_power_green: power_green {
40 label = "green:power";
41 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
46 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
47 linux,default-trigger = "usbport";
48 trigger-sources = <&ehci_port2>;
52 label = "green:internet";
53 gpios = <&gpio 23 GPIO_ACTIVE_HIGH>;
58 gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;
59 linux,default-trigger = "phy0tpt";
63 label = "green:voice";
64 gpios = <&gpio 25 GPIO_ACTIVE_HIGH>;
69 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
74 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
79 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
84 compatible = "gpio-export";
88 gpio-export,name = "lte_power";
89 gpio-export,output = <0>;
90 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
94 gpio-export,name = "usb_power";
95 gpio-export,output = <1>;
96 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
105 compatible = "fixed-partitions";
106 #address-cells = <1>;
110 label = "Bootloader";
117 reg = <0x80000 0x80000>;
120 factory: partition@100000 {
121 compatible = "nvmem-cells";
123 reg = <0x100000 0x40000>;
124 #address-cells = <1>;
128 eeprom_factory_0: eeprom@0 {
132 eeprom_factory_8000: eeprom@8000 {
133 reg = <0x8000 0x4da8>;
136 macaddr_factory_fe6e: macaddr@fe6e {
143 reg = <0x140000 0x1ec0000>;
148 reg = <0x540000 0x1ac0000>;
153 reg = <0x2140000 0x1ec0000>;
158 reg = <0x4000000 0x100000>;
163 reg = <0x4100000 0x1000000>;
168 reg = <0x5100000 0x100000>;
174 reg = <0x5200000 0x80000>;
184 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
189 groups = "i2c", "rgmii2", "uart3", "jtag", "wdt";
195 nvmem-cells = <&macaddr_factory_fe6e>;
196 nvmem-cell-names = "mac-address";
214 compatible = "mediatek,mt76";
215 reg = <0x0000 0 0 0 0>;
216 nvmem-cells = <&eeprom_factory_0>;
217 nvmem-cell-names = "eeprom";
223 compatible = "mediatek,mt76";
224 reg = <0x0000 0 0 0 0>;
225 nvmem-cells = <&eeprom_factory_8000>;
226 nvmem-cell-names = "eeprom";