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 = "sercomm,na502", "mediatek,mt7621-soc";
11 model = "SERCOMM NA502";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
21 compatible = "gpio-leds";
24 function = LED_FUNCTION_POWER;
25 color = <LED_COLOR_ID_GREEN>;
26 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
30 label = "green:internet";
31 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
36 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
37 linux,default-trigger = "phy0tpt";
41 label = "green:zwave";
42 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
46 label = "green:service";
47 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
51 label = "green:zigbee";
52 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
56 function = LED_FUNCTION_BLUETOOTH;
57 color = <LED_COLOR_ID_GREEN>;
58 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
63 compatible = "gpio-keys";
67 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
68 linux,code = <KEY_RESTART>;
73 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
79 gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
80 linux,code = <KEY_RFKILL>;
85 compatible = "gpio-export";
88 gpio-export,name = "zwave_reset";
89 gpio-export,output = <1>;
90 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
94 gpio-export,name = "zigbee_reset";
95 gpio-export,output = <1>;
96 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
102 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
106 nvmem-cells = <&macaddr_factory_e000 0>;
107 nvmem-cell-names = "mac-address";
114 compatible = "fixed-partitions";
115 #address-cells = <1>;
126 reg = <0x80000 0x80000>;
132 reg = <0x100000 0x40000>;
135 compatible = "fixed-layout";
136 #address-cells = <1>;
139 eeprom_factory_0: eeprom@0 {
143 eeprom_factory_8000: eeprom@8000 {
144 reg = <0x8000 0x200>;
147 macaddr_factory_e000: macaddr@e000 {
148 compatible = "mac-base";
150 #nvmem-cell-cells = <1>;
157 reg = <0x140000 0x1400000>;
162 reg = <0x1540000 0x400000>;
167 reg = <0x1940000 0x1000000>;
171 label = "user_storage";
172 reg = <0x2940000 0x100000>;
177 reg = <0x2a40000 0x1000000>;
182 reg = <0x3a40000 0x3200000>;
187 reg = <0x6c40000 0x1340000>;
198 compatible = "mediatek,mt76";
199 reg = <0x0000 0 0 0 0>;
200 nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_e000 1>;
201 nvmem-cell-names = "eeprom", "mac-address";
202 ieee80211-freq-limit = <5000000 6000000>;
208 compatible = "mediatek,mt76";
210 nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_e000 2>;
211 nvmem-cell-names = "eeprom", "mac-address";
212 ieee80211-freq-limit = <2400000 2500000>;
218 groups = "jtag", "rgmii2";