1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "mt7620a.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 compatible = "netcore,nw5212", "ralink,mt7620a-soc";
11 model = "Netcore NW5212";
14 label-mac-device = ðernet;
18 compatible = "gpio-leds";
22 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
27 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
32 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
37 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
41 function = LED_FUNCTION_WAN;
42 color = <LED_COLOR_ID_GREEN>;
43 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
47 label = "green:wlan2g";
48 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
49 linux,default-trigger = "phy0tpt";
54 compatible = "gpio-keys";
58 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
59 linux,code = <KEY_RESTART>;
76 compatible = "jedec,spi-nor";
78 spi-max-frequency = <70000000>;
82 compatible = "fixed-partitions";
94 reg = <0x30000 0x10000>;
99 reg = <0x40000 0x10000>;
103 compatible = "fixed-layout";
104 #address-cells = <1>;
107 eeprom_factory_0: eeprom@0 {
111 macaddr_factory_28: macaddr@28 {
118 compatible = "denx,uimage";
120 reg = <0x50000 0xfb0000>;
128 groups = "uartf", "wled", "ephy";
134 mediatek,portmap = "llllw";
135 nvmem-cells = <&macaddr_factory_28>;
136 nvmem-cell-names = "mac-address";
148 nvmem-cells = <&eeprom_factory_0>;
149 nvmem-cell-names = "eeprom";