1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
6 #include "qca956x.dtsi"
9 compatible = "tplink,deco-m4r-v1", "qca,qca9563";
10 model = "TP-Link Deco M4R v1";
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
20 compatible = "gpio-leds";
24 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
25 linux,default-trigger = "phy1tpt";
29 label = "green:power";
30 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
35 label = "blue:wlan5g";
36 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
37 linux,default-trigger = "phy0tpt";
43 compatible = "gpio-keys";
46 label = "Reset button";
47 linux,code = <KEY_RESTART>;
48 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
49 debounce-interval = <60>;
61 phy0: ethernet-phy@0 {
64 qca,mib-poll-interval = <500>;
66 qca,ar8327-initvals = <
67 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
68 0x7c 0x0000007e /* PORT0_STATUS */
78 compatible = "jedec,spi-nor";
80 spi-max-frequency = <25000000>;
83 compatible = "fixed-partitions";
89 reg = <0x000000 0x080000>;
94 compatible = "denx,uimage";
96 reg = <0x080000 0xe00000>;
100 label = "product-info";
101 reg = <0xe80000 0x05000>;
105 config: partition@e85000 {
107 reg = <0xe85000 0x16b000>;
111 art: partition@ff0000 {
113 reg = <0xff0000 0x010000>;
124 phy-handle = <&phy0>;
126 nvmem-cells = <&macaddr_config_8>;
127 nvmem-cell-names = "mac-address";
133 mtd-cal-data = <&art 0x1000>;
134 nvmem-cells = <&macaddr_config_8>;
135 nvmem-cell-names = "mac-address";
139 compatible = "nvmem-cells";
140 #address-cells = <1>;
143 macaddr_config_8: macaddr@8 {