ath79: qca: remove mac-address-increment
[openwrt/staging/jow.git] / target / linux / ath79 / dts / qca9563_tplink_eap245-v3.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,eap245-v3", "qca,qca9563";
10 model = "TP-Link EAP245 v3 / EAP265 HD v1";
11
12 aliases {
13 led-boot = &led_status_green;
14 led-failsafe = &led_status_amber;
15 led-running = &led_status_green;
16 led-upgrade = &led_status_amber;
17 label-mac-device = &eth0;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 led_status_green: status_green {
24 label = "green:status";
25 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
26 default-state = "on";
27 };
28
29 led_status_amber: status_amber {
30 label = "amber:status";
31 gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
32 };
33 };
34
35 keys {
36 compatible = "gpio-keys";
37
38 reset {
39 label = "Reset button";
40 linux,code = <KEY_RESTART>;
41 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
42 debounce-interval = <60>;
43 };
44 };
45 };
46
47 &pcie {
48 status = "okay";
49
50 wifi@0,0 {
51 compatible = "qcom,ath10k";
52 reg = <0 0 0 0 0>;
53
54 nvmem-cells = <&macaddr_info_8 1>, <&calibration_ath10k>;
55 nvmem-cell-names = "mac-address", "pre-calibration";
56 };
57 };
58
59 &spi {
60 status = "okay";
61
62 flash@0 {
63 compatible = "jedec,spi-nor";
64 reg = <0>;
65 spi-max-frequency = <25000000>;
66
67 partitions {
68 compatible = "fixed-partitions";
69 #address-cells = <1>;
70 #size-cells = <1>;
71
72 partition@0 {
73 label = "factory-boot";
74 reg = <0x000000 0x040000>;
75 read-only;
76 };
77
78 partition@40000 {
79 label = "u-boot";
80 reg = <0x040000 0x040000>;
81 read-only;
82 };
83
84 partition@80000 {
85 label = "partition-table";
86 reg = <0x080000 0x010000>;
87 read-only;
88 };
89
90 info: partition@90000 {
91 label = "info";
92 reg = <0x090000 0x010000>;
93 read-only;
94
95 nvmem-layout {
96 compatible = "fixed-layout";
97 #address-cells = <1>;
98 #size-cells = <1>;
99
100 macaddr_info_8: macaddr@8 {
101 compatible = "mac-base";
102 reg = <0x8 0x6>;
103 #nvmem-cell-cells = <1>;
104 };
105 };
106 };
107
108 partition@a0000 {
109 label = "art";
110 reg = <0x0a0000 0x010000>;
111 read-only;
112
113 nvmem-layout {
114 compatible = "fixed-layout";
115 #address-cells = <1>;
116 #size-cells = <1>;
117
118 calibration_ath9k: calibration@1000 {
119 reg = <0x1000 0x440>;
120 };
121
122 calibration_ath10k: calibration@5000 {
123 reg = <0x5000 0x2f20>;
124 };
125 };
126 };
127
128 partition@b0000 {
129 label = "extra-para";
130 reg = <0x0b0000 0x010000>;
131 read-only;
132 };
133
134 partition@c0000 {
135 compatible = "openwrt,elf";
136 label = "firmware";
137 reg = <0x0c0000 0xe40000>;
138 };
139
140 partition@f00000 {
141 label = "config";
142 reg = <0xf00000 0x030000>;
143 read-only;
144 };
145
146 partition@f30000 {
147 label = "mutil-log";
148 reg = <0xf30000 0x080000>;
149 read-only;
150 };
151
152 partition@fb0000 {
153 label = "oops";
154 reg = <0xfb0000 0x040000>;
155 read-only;
156 };
157 };
158 };
159 };
160
161 &mdio0 {
162 status = "okay";
163
164 phy0: ethernet-phy@0 {
165 reg = <0>;
166 phy-mode = "sgmii";
167 qca,ar8327-initvals = <
168 0x04 0x00080080 /* PAD0 */
169 0x7c 0x0000007e /* PORT0_STATUS */
170 0xe0 0xc74164de /* SGMII_CTRL */
171 >;
172 };
173 };
174
175 &eth0 {
176 status = "okay";
177
178 phy-handle = <&phy0>;
179 phy-mode = "sgmii";
180
181 nvmem-cells = <&macaddr_info_8 0>;
182 nvmem-cell-names = "mac-address";
183 };
184
185 &wmac {
186 status = "okay";
187
188 nvmem-cells = <&macaddr_info_8 0>, <&calibration_ath9k>;
189 nvmem-cell-names = "mac-address", "calibration";
190 };