ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9561_tplink_eap225-wall-v2.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca956x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 compatible = "tplink,eap225-wall-v2", "qca,qca9561";
11 model = "TP-Link EAP225-Wall v2";
12
13 aliases {
14 label-mac-device = &eth1;
15 led-boot = &led_status;
16 led-failsafe = &led_status;
17 led-running = &led_status;
18 led-upgrade = &led_status;
19 };
20
21 keys {
22 compatible = "gpio-keys";
23
24 reset {
25 label = "Reset button";
26 linux,code = <KEY_RESTART>;
27 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
28 debounce-interval = <60>;
29 };
30
31 led {
32 label = "LED button";
33 linux,code = <KEY_LIGHTS_TOGGLE>;
34 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
35 debounce-interval = <60>;
36 };
37 };
38
39 leds {
40 compatible = "gpio-leds";
41
42 led_status: status {
43 function = LED_FUNCTION_STATUS;
44 color = <LED_COLOR_ID_WHITE>;
45 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
46 default-state = "on";
47 };
48 };
49
50 gpio-export {
51 compatible = "gpio-export";
52
53 poe_passthrough {
54 gpio-export,name = "tp-link:poe-passthrough:enable";
55 gpio-export,output = <0>;
56 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
57 };
58 };
59 };
60
61 &pcie {
62 status = "okay";
63
64 wifi@0,0 {
65 compatible = "qcom,ath10k";
66 reg = <0 0 0 0 0>;
67
68 nvmem-cells = <&macaddr_info_8 1>, <&precalibration_ath10k>;
69 nvmem-cell-names = "mac-address", "pre-calibration";
70 };
71 };
72
73 &spi {
74 status = "okay";
75
76 flash@0 {
77 compatible = "jedec,spi-nor";
78 reg = <0>;
79 spi-max-frequency = <25000000>;
80
81 partitions {
82 compatible = "fixed-partitions";
83 #address-cells = <1>;
84 #size-cells = <1>;
85
86 partition@0 {
87 label = "u-boot";
88 reg = <0x000000 0x020000>;
89 read-only;
90 };
91
92 partition@20000 {
93 label = "partition-table";
94 reg = <0x020000 0x010000>;
95 read-only;
96 };
97
98 info: partition@30000 {
99 label = "info";
100 reg = <0x030000 0x010000>;
101 read-only;
102
103 nvmem-layout {
104 compatible = "fixed-layout";
105 #address-cells = <1>;
106 #size-cells = <1>;
107
108 macaddr_info_8: macaddr@8 {
109 compatible = "mac-base";
110 reg = <0x8 0x6>;
111 #nvmem-cell-cells = <1>;
112 };
113 };
114 };
115
116 partition@40000 {
117 compatible = "openwrt,elf";
118 label = "firmware";
119 reg = <0x040000 0xd80000>;
120 };
121
122 partition@dc0000 {
123 label = "config";
124 reg = <0xdc0000 0x030000>;
125 read-only;
126 };
127
128 /* df0000-f30000 undefined in vendor firmware */
129
130 partition@f30000 {
131 label = "mutil-log";
132 reg = <0xf30000 0x080000>;
133 read-only;
134 };
135
136 partition@fb0000 {
137 label = "oops";
138 reg = <0xfb0000 0x040000>;
139 read-only;
140 };
141
142 art: partition@ff0000 {
143 label = "art";
144 reg = <0xff0000 0x010000>;
145 read-only;
146
147 nvmem-layout {
148 compatible = "fixed-layout";
149 #address-cells = <1>;
150 #size-cells = <1>;
151
152 calibration_ath9k: calibration@1000 {
153 reg = <0x1000 0x440>;
154 };
155
156 precalibration_ath10k: pre-calibration@5000 {
157 reg = <0x5000 0x2f20>;
158 };
159 };
160 };
161 };
162 };
163 };
164
165 &eth1 {
166 status = "okay";
167
168 nvmem-cells = <&macaddr_info_8 0>;
169 nvmem-cell-names = "mac-address";
170 };
171
172 &wmac {
173 status = "okay";
174
175 nvmem-cells = <&macaddr_info_8 0>, <&calibration_ath9k>;
176 nvmem-cell-names = "mac-address", "calibration";
177 };