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