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>
10 label-mac-device = ðernet;
14 bootargs = "console=ttyS0,57600n8";
18 compatible = "gpio-keys";
22 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_RESTART>;
28 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_WPS_BUTTON>;
38 compatible = "jedec,spi-nor";
40 spi-max-frequency = <50000000>;
43 compatible = "fixed-partitions";
53 compatible = "fixed-layout";
57 macaddr_uboot_1fc00: macaddr@1fc00 {
58 compatible = "mac-base";
60 #nvmem-cell-cells = <1>;
66 compatible = "tplink,firmware";
68 reg = <0x20000 0x7c0000>;
73 reg = <0x7e0000 0x10000>;
79 reg = <0x7f0000 0x10000>;
83 compatible = "fixed-layout";
87 eeprom_radio_0: eeprom@0 {
91 eeprom_radio_8000: eeprom@8000 {
101 nvmem-cells = <&macaddr_uboot_1fc00 0>;
102 nvmem-cell-names = "mac-address";
106 nvmem-cells = <&eeprom_radio_0>, <&macaddr_uboot_1fc00 0>;
107 nvmem-cell-names = "eeprom", "mac-address";
116 reg = <0x0000 0 0 0 0>;
117 ieee80211-freq-limit = <5000000 6000000>;
118 nvmem-cells = <&eeprom_radio_8000>, <&macaddr_uboot_1fc00 2>;
119 nvmem-cell-names = "eeprom", "mac-address";