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 = "sercomm,na502", "mediatek,mt7621-soc";
10 model = "SERCOMM NA502";
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
20 compatible = "gpio-leds";
23 label = "green:power";
24 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
28 label = "green:internet";
29 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
34 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
35 linux,default-trigger = "phy0tpt";
39 label = "green:zwave";
40 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
44 label = "green:service";
45 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
49 label = "green:zigbee";
50 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
54 label = "green:bluetooth";
55 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
60 compatible = "gpio-keys";
64 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
65 linux,code = <KEY_RESTART>;
70 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
76 gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
77 linux,code = <KEY_RFKILL>;
82 compatible = "gpio-export";
85 gpio-export,name = "zwave_reset";
86 gpio-export,output = <1>;
87 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
91 gpio-export,name = "zigbee_reset";
92 gpio-export,output = <1>;
93 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
99 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
103 nvmem-cells = <&macaddr_factory_e000>;
104 nvmem-cell-names = "mac-address";
111 compatible = "fixed-partitions";
112 #address-cells = <1>;
123 reg = <0x80000 0x80000>;
127 factory: partition@100000 {
129 reg = <0x100000 0x40000>;
134 reg = <0x140000 0x1400000>;
139 reg = <0x1540000 0x400000>;
144 reg = <0x1940000 0x1000000>;
148 label = "user_storage";
149 reg = <0x2940000 0x100000>;
154 reg = <0x2a40000 0x1000000>;
159 reg = <0x3a40000 0x3200000>;
164 reg = <0x6c40000 0x1340000>;
175 compatible = "mediatek,mt76";
176 reg = <0x0000 0 0 0 0>;
177 mediatek,mtd-eeprom = <&factory 0x8000>;
178 nvmem-cells = <&macaddr_factory_e000>;
179 nvmem-cell-names = "mac-address";
180 mac-address-increment = <1>;
181 ieee80211-freq-limit = <5000000 6000000>;
187 compatible = "mediatek,mt76";
189 mediatek,mtd-eeprom = <&factory 0x0000>;
190 nvmem-cells = <&macaddr_factory_e000>;
191 nvmem-cell-names = "mac-address";
192 mac-address-increment = <2>;
193 ieee80211-freq-limit = <2400000 2500000>;
199 groups = "jtag", "rgmii2";
222 compatible = "nvmem-cells";
223 #address-cells = <1>;
226 macaddr_factory_e000: macaddr@e000 {