ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9563_tplink_deco-m4r-v1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
6
7 #include "qca956x.dtsi"
8
9 / {
10 compatible = "tplink,deco-m4r-v1", "qca,qca9563";
11 model = "TP-Link Deco M4R v1";
12
13 aliases {
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 wlan2g {
24 label = "red:wlan2g";
25 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
26 linux,default-trigger = "phy1tpt";
27 };
28
29 led_power: power {
30 function = LED_FUNCTION_POWER;
31 color = <LED_COLOR_ID_GREEN>;
32 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
33 default-state = "on";
34 };
35
36 wlan5g {
37 label = "blue:wlan5g";
38 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
39 linux,default-trigger = "phy0tpt";
40 };
41 };
42
43
44 keys {
45 compatible = "gpio-keys";
46
47 reset {
48 label = "Reset button";
49 linux,code = <KEY_RESTART>;
50 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
51 debounce-interval = <60>;
52 };
53 };
54 };
55
56 &pcie {
57 status = "okay";
58
59 wifi@0,0 {
60 compatible = "qcom,ath10k";
61 reg = <0x0000 0 0 0 0>;
62 nvmem-cells = <&precal_art_5000>, <&macaddr_config_8 (-1)>;
63 nvmem-cell-names = "pre-calibration", "mac-address";
64 };
65 };
66
67 &mdio0 {
68 status = "okay";
69
70 phy0: ethernet-phy@0 {
71 reg = <0>;
72 phy-mode = "sgmii";
73 qca,mib-poll-interval = <500>;
74
75 qca,ar8327-initvals = <
76 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
77 0x7c 0x0000007e /* PORT0_STATUS */
78 >;
79 };
80 };
81
82 &spi {
83 status = "okay";
84 num-cs = <1>;
85
86 flash@0 {
87 compatible = "jedec,spi-nor";
88 reg = <0>;
89 spi-max-frequency = <25000000>;
90
91 partitions {
92 compatible = "fixed-partitions";
93 #address-cells = <1>;
94 #size-cells = <1>;
95
96 uboot: partition@0 {
97 label = "u-boot";
98 reg = <0x000000 0x080000>;
99 read-only;
100 };
101
102 partition@80000 {
103 compatible = "denx,uimage";
104 label = "firmware";
105 reg = <0x080000 0xe00000>;
106 };
107
108 partition@e80000 {
109 label = "product-info";
110 reg = <0xe80000 0x05000>;
111 read-only;
112 };
113
114 config: partition@e85000 {
115 label = "config";
116 reg = <0xe85000 0x16b000>;
117 read-only;
118
119 nvmem-layout {
120 compatible = "fixed-layout";
121 #address-cells = <1>;
122 #size-cells = <1>;
123
124 macaddr_config_8: macaddr@8 {
125 compatible = "mac-base";
126 reg = <0x8 0x6>;
127 #nvmem-cell-cells = <1>;
128 };
129 };
130 };
131
132 art: partition@ff0000 {
133 label = "art";
134 reg = <0xff0000 0x010000>;
135 read-only;
136
137 nvmem-layout {
138 compatible = "fixed-layout";
139 #address-cells = <1>;
140 #size-cells = <1>;
141
142 precal_art_5000: pre-calibration@5000 {
143 reg = <0x5000 0x2f20>;
144 };
145 };
146 };
147 };
148 };
149 };
150
151 &eth0 {
152 status = "okay";
153
154 phy-mode = "sgmii";
155 phy-handle = <&phy0>;
156
157 nvmem-cells = <&macaddr_config_8 0>;
158 nvmem-cell-names = "mac-address";
159 };
160
161 &wmac {
162 status = "okay";
163
164 mtd-cal-data = <&art 0x1000>;
165 nvmem-cells = <&macaddr_config_8 0>;
166 nvmem-cell-names = "mac-address";
167 };