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";
48 compatible = "nvmem-cells";
55 macaddr_uboot_1fc00: macaddr@1fc00 {
61 compatible = "tplink,firmware";
63 reg = <0x20000 0x7c0000>;
68 reg = <0x7e0000 0x10000>;
72 radio: partition@7f0000 {
73 compatible = "nvmem-cells";
75 reg = <0x7f0000 0x10000>;
80 eeprom_radio_0: eeprom@0 {
84 eeprom_radio_8000: eeprom@8000 {
93 nvmem-cells = <&macaddr_uboot_1fc00>;
94 nvmem-cell-names = "mac-address";
98 nvmem-cells = <&eeprom_radio_0>, <&macaddr_uboot_1fc00>;
99 nvmem-cell-names = "eeprom", "mac-address";
108 reg = <0x0000 0 0 0 0>;
109 ieee80211-freq-limit = <5000000 6000000>;
110 nvmem-cells = <&eeprom_radio_8000>, <&macaddr_uboot_1fc00>;
111 nvmem-cell-names = "eeprom", "mac-address";
112 mac-address-increment = <2>;