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>;
88 compatible = "fixed-layout";
92 eeprom_factory_0: eeprom@0 {
96 macaddr_factory_28: macaddr@28 {
104 reg = <0x50000 0x10000>;
108 fwconcat1: partition@60000 {
110 reg = <0x60000 0x170000>;
114 label = "u-boot-env";
115 reg = <0x1d0000 0x10000>;
118 fwconcat2: partition@1e0000 {
120 reg = <0x1e0000 0x20000>;
123 fwconcat0: partition@200000 {
125 reg = <0x200000 0x600000>;
140 nvmem-cells = <&macaddr_factory_28>;
141 nvmem-cell-names = "mac-address";
145 nvmem-cells = <&eeprom_factory_0>;
146 nvmem-cell-names = "eeprom";
151 groups = "wled", "ephy";