1 // SPDX-License-Identifier: GPL-2.0-only
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "tplink,deco-m4r-v4", "mediatek,mt7621-soc";
10 model = "TP-Link Deco M4R v4";
13 label-mac-device = &gmac0;
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
21 bootargs = "console=ttyS0,115200n8";
25 compatible = "gpio-keys";
29 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
30 debounce-interval = <60>;
31 linux,code = <KEY_WPS_BUTTON>;
36 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
37 debounce_interval = <60>;
38 linux,code = <KEY_BRIGHTNESS_TOGGLE>;
43 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
44 debounce-interval = <60>;
45 linux,code = <KEY_RESTART>;
50 compatible = "gpio-leds";
54 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
59 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
64 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
68 label = "green:wifi2g";
69 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
70 linux,default-trigger = "phy0tpt";
75 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
76 /* match usage in v1 and v2 */
77 linux,default-trigger = "phy0tpt";
82 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
83 /* match usage in v1 and v2 */
84 linux,default-trigger = "phy1tpt";
88 led_power: logo_green {
90 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
91 /* match usage in v1 and v2 */
99 groups = "i2c", "uart2", "uart3", "jtag", "wdt";
108 compatible = "jedec,spi-nor";
110 spi-max-frequency = <40000000>;
113 compatible = "fixed-partitions";
114 #address-cells = <1>;
125 compatible = "denx,uimage";
126 reg = <0x40000 0xf60000>;
129 config: partition@fa0000 {
131 reg = <0xfa0000 0x010000>;
134 compatible = "nvmem-cells";
135 #address-cells = <1>;
138 macaddr_config_8: macaddr@8 {
145 reg = <0xfb0000 0x040000>;
149 radio: partition@ff0000 {
151 reg = <0xff0000 0x10000>;
159 pinctrl-names = "default";
160 pinctrl-0 = <&rgmii1_pins &mdio_pins>;
164 nvmem-cells = <&macaddr_config_8>;
165 nvmem-cell-names = "mac-address";
189 compatible = "mediatek,mt76";
190 reg = <0x0000 0 0 0 0>;
191 mediatek,mtd-eeprom = <&radio 0x0>;
192 ieee80211-freq-limit = <2400000 2500000>;
198 compatible = "mediatek,mt76";
199 reg = <0x0000 0 0 0 0>;
200 mediatek,mtd-eeprom = <&radio 0x8000>;
201 ieee80211-freq-limit = <5000000 6000000>;