1 // SPDX-License-Identifier: GPL-2.0-or-later
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 compatible = "zyxel,lte5398-m904", "mediatek,mt7621-soc";
11 model = "ZyXEL LTE5398-M904";
14 label-mac-device = &gmac0;
15 led-boot = &led_power_green;
16 led-failsafe = &led_power_green;
17 led-running = &led_power_green;
18 led-upgrade = &led_power_green;
22 compatible = "gpio-keys";
26 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_WPS_BUTTON>;
32 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
33 linux,code = <KEY_RESTART>;
38 compatible = "gpio-leds";
40 led_power_green: power_green {
41 function = LED_FUNCTION_POWER;
42 color = <LED_COLOR_ID_GREEN>;
43 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
47 function = LED_FUNCTION_POWER;
48 color = <LED_COLOR_ID_BLUE>;
49 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
50 linux,default-trigger = "usbport";
51 trigger-sources = <&ehci_port2>;
55 label = "green:internet";
56 gpios = <&gpio 23 GPIO_ACTIVE_HIGH>;
61 gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;
62 linux,default-trigger = "phy0tpt";
66 label = "green:voice";
67 gpios = <&gpio 25 GPIO_ACTIVE_HIGH>;
72 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
77 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
82 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
87 compatible = "gpio-export";
91 gpio-export,name = "lte_power";
92 gpio-export,output = <0>;
93 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
97 gpio-export,name = "usb_power";
98 gpio-export,output = <1>;
99 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
108 compatible = "fixed-partitions";
109 #address-cells = <1>;
113 label = "Bootloader";
120 reg = <0x80000 0x80000>;
123 factory: partition@100000 {
125 reg = <0x100000 0x40000>;
129 compatible = "fixed-layout";
130 #address-cells = <1>;
133 eeprom_factory_0: eeprom@0 {
137 eeprom_factory_8000: eeprom@8000 {
138 reg = <0x8000 0x4da8>;
141 macaddr_factory_fe6e: macaddr@fe6e {
149 reg = <0x140000 0x1ec0000>;
154 reg = <0x540000 0x1ac0000>;
159 reg = <0x2140000 0x1ec0000>;
164 reg = <0x4000000 0x100000>;
169 reg = <0x4100000 0x1000000>;
174 reg = <0x5100000 0x100000>;
180 reg = <0x5200000 0x80000>;
190 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
195 groups = "i2c", "rgmii2", "uart3", "jtag", "wdt";
201 nvmem-cells = <&macaddr_factory_fe6e>;
202 nvmem-cell-names = "mac-address";
220 compatible = "mediatek,mt76";
221 reg = <0x0000 0 0 0 0>;
222 nvmem-cells = <&eeprom_factory_0>;
223 nvmem-cell-names = "eeprom";
229 compatible = "mediatek,mt76";
230 reg = <0x0000 0 0 0 0>;
231 nvmem-cells = <&eeprom_factory_8000>;
232 nvmem-cell-names = "eeprom";