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>;
132 compatible = "fixed-layout";
133 #address-cells = <1>;
136 eeprom_factory_0: eeprom@0 {
140 eeprom_factory_8000: eeprom@8000 {
141 reg = <0x8000 0x200>;
144 macaddr_factory_e000: macaddr@e000 {
152 reg = <0x140000 0x1400000>;
157 reg = <0x1540000 0x400000>;
162 reg = <0x1940000 0x1000000>;
166 label = "user_storage";
167 reg = <0x2940000 0x100000>;
172 reg = <0x2a40000 0x1000000>;
177 reg = <0x3a40000 0x3200000>;
182 reg = <0x6c40000 0x1340000>;
193 compatible = "mediatek,mt76";
194 reg = <0x0000 0 0 0 0>;
195 nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_e000>;
196 nvmem-cell-names = "eeprom", "mac-address";
197 mac-address-increment = <1>;
198 ieee80211-freq-limit = <5000000 6000000>;
204 compatible = "mediatek,mt76";
206 nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_e000>;
207 nvmem-cell-names = "eeprom", "mac-address";
208 mac-address-increment = <2>;
209 ieee80211-freq-limit = <2400000 2500000>;
215 groups = "jtag", "rgmii2";