1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "mt7620n.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/mtd/partitions/uimage.h>
11 label-mac-device = ðernet;
15 compatible = "gpio-keys";
19 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
20 linux,code = <KEY_RESTART>;
25 compatible = "mtd-concat";
27 devices = <&fwconcat0 &fwconcat1 &fwconcat2>;
30 compatible = "fixed-partitions";
35 compatible = "openwrt,uimage", "denx,uimage";
36 openwrt,ih-magic = <IH_MAGIC_OKLI>;
60 compatible = "jedec,spi-nor";
62 spi-max-frequency = <50000000>;
66 compatible = "fixed-partitions";
78 reg = <0x30000 0x10000>;
82 factory: partition@40000 {
84 reg = <0x40000 0x10000>;
90 reg = <0x50000 0x10000>;
94 fwconcat1: partition@60000 {
96 reg = <0x60000 0x170000>;
100 label = "u-boot-env";
101 reg = <0x1d0000 0x10000>;
104 fwconcat2: partition@1e0000 {
106 reg = <0x1e0000 0x20000>;
109 fwconcat0: partition@200000 {
111 reg = <0x200000 0x600000>;
126 nvmem-cells = <&macaddr_factory_28>;
127 nvmem-cell-names = "mac-address";
131 ralink,mtd-eeprom = <&factory 0x0>;
136 groups = "wled", "ephy";
142 compatible = "nvmem-cells";
143 #address-cells = <1>;
146 macaddr_factory_28: macaddr@28 {