1 // SPDX-License-Identifier: GPL-2.0-only
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 compatible = "tplink,deco-m4r-v4", "mediatek,mt7621-soc";
11 model = "TP-Link Deco M4R v4";
14 label-mac-device = &gmac0;
15 led-boot = &led_power;
16 led-failsafe = &led_power;
17 led-running = &led_power;
18 led-upgrade = &led_power;
22 bootargs = "console=ttyS0,115200n8";
26 compatible = "gpio-keys";
30 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
31 debounce-interval = <60>;
32 linux,code = <KEY_WPS_BUTTON>;
37 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
38 debounce_interval = <60>;
39 linux,code = <KEY_BRIGHTNESS_TOGGLE>;
44 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
45 debounce-interval = <60>;
46 linux,code = <KEY_RESTART>;
51 compatible = "gpio-leds";
55 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
59 function = LED_FUNCTION_LAN;
60 color = <LED_COLOR_ID_GREEN>;
61 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
66 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
70 label = "green:wifi2g";
71 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
72 linux,default-trigger = "phy0tpt";
77 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
78 /* match usage in v1 and v2 */
79 linux,default-trigger = "phy0tpt";
84 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
85 /* match usage in v1 and v2 */
86 linux,default-trigger = "phy1tpt";
90 led_power: logo_green {
92 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
93 /* match usage in v1 and v2 */
101 groups = "i2c", "uart2", "uart3", "jtag", "wdt";
110 compatible = "jedec,spi-nor";
112 spi-max-frequency = <40000000>;
115 compatible = "fixed-partitions";
116 #address-cells = <1>;
127 compatible = "denx,uimage";
128 reg = <0x40000 0xf60000>;
131 config: partition@fa0000 {
133 reg = <0xfa0000 0x010000>;
137 compatible = "fixed-layout";
138 #address-cells = <1>;
141 macaddr_config_8: macaddr@8 {
149 reg = <0xfb0000 0x040000>;
153 radio: partition@ff0000 {
155 reg = <0xff0000 0x10000>;
159 compatible = "fixed-layout";
160 #address-cells = <1>;
163 eeprom_radio_0: eeprom@0 {
167 eeprom_radio_8000: eeprom@8000 {
168 reg = <0x8000 0x4da8>;
177 pinctrl-names = "default";
178 pinctrl-0 = <&rgmii1_pins &mdio_pins>;
182 nvmem-cells = <&macaddr_config_8>;
183 nvmem-cell-names = "mac-address";
207 compatible = "mediatek,mt76";
208 reg = <0x0000 0 0 0 0>;
209 nvmem-cells = <&eeprom_radio_0>;
210 nvmem-cell-names = "eeprom";
211 ieee80211-freq-limit = <2400000 2500000>;
217 compatible = "mediatek,mt76";
218 reg = <0x0000 0 0 0 0>;
219 nvmem-cells = <&eeprom_radio_8000>;
220 nvmem-cell-names = "eeprom";
221 ieee80211-freq-limit = <5000000 6000000>;