1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
10 label-mac-device = &gmac0;
14 bootargs = "console=ttyS0,57600";
18 compatible = "gpio-keys";
22 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
23 debounce-interval = <60>;
24 linux,code = <KEY_WPS_BUTTON>;
29 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
30 debounce-interval = <60>;
31 linux,code = <KEY_POWER>;
36 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
37 debounce-interval = <60>;
38 linux,code = <KEY_LIGHTS_TOGGLE>;
43 gpios = <&gpio 31 GPIO_ACTIVE_LOW>;
44 debounce-interval = <60>;
45 linux,code = <KEY_RESTART>;
54 compatible = "jedec,spi-nor";
56 spi-max-frequency = <40000000>;
59 compatible = "fixed-partitions";
70 compatible = "tplink,firmware";
72 reg = <0x20000 0xde0000>;
75 config: partition@e00000 {
77 reg = <0xe00000 0x50000>;
81 /* range 0xe50000 to 0xff0000 is empty in vendor
82 * firmware, so we do not use it either
85 radio: partition@ff0000 {
87 reg = <0xff0000 0x10000>;
100 compatible = "mediatek,mt76";
101 reg = <0x0000 0 0 0 0>;
102 mediatek,mtd-eeprom = <&radio 0x0>;
103 mtd-mac-address = <&config 0x10008>;
104 mtd-mac-address-increment = <1>;
105 ieee80211-freq-limit = <2400000 2500000>;
111 compatible = "mediatek,mt76";
112 reg = <0x0000 0 0 0 0>;
113 mediatek,mtd-eeprom = <&radio 0x8000>;
114 mtd-mac-address = <&config 0x10008>;
115 mtd-mac-address-increment = <2>;
116 ieee80211-freq-limit = <5000000 6000000>;
121 mtd-mac-address = <&config 0x10008>;