ath79: remove redundant mtd-mac-address for wmac
[oweals/openwrt.git] / target / linux / ath79 / dts / ar9344_pcs_cr5000.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "ar9344.dtsi"
8
9 / {
10         model = "PowerCloud Systems CR5000";
11         compatible = "pcs,cr5000", "qca,ar9344";
12
13         aliases {
14                 serial0 = &uart;
15                 led-boot = &status;
16                 led-failsafe = &status;
17                 led-running = &status;
18                 led-upgrade = &status;
19         };
20
21         keys {
22                 compatible = "gpio-keys";
23
24                 pinctrl-names = "default";
25                 pinctrl-0 = <&jtag_disable_pins>;
26
27                 reset {
28                         label = "Reset button";
29                         linux,code = <KEY_RESTART>;
30                         gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
31                         debounce-interval = <60>;
32                 };
33
34                 wps {
35                         label = "WPS button";
36                         linux,code = <KEY_WPS_BUTTON>;
37                         gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
38                         debounce-interval = <60>;
39                 };
40         };
41
42         leds {
43                 compatible = "gpio-leds";
44
45                 status: power {
46                         label = "pcs:amber:power";
47                         gpios = <&gpio 2 GPIO_ACTIVE_LOW>,
48                                 <&gpio 4 GPIO_ACTIVE_LOW>;
49                         default-state = "on";
50                 };
51
52                 wlan2g {
53                         label = "pcs:blue:wlan";
54                         gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
55                         linux,default-trigger = "phy0tpt";
56                 };
57
58                 wps_white {
59                         label = "pcs:white:wps";
60                         gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
61                 };
62         };
63 };
64
65 &ref {
66         clock-frequency = <25000000>;
67 };
68
69 &uart {
70         status = "okay";
71 };
72
73 &gpio {
74         status = "okay";
75 };
76
77 &spi {
78         num-cs = <1>;
79
80         status = "okay";
81
82         flash@0 {
83                 compatible = "jedec,spi-nor";
84                 reg = <0>;
85                 spi-max-frequency = <25000000>;
86
87                 partitions {
88                         compatible = "fixed-partitions";
89                         #address-cells = <1>;
90                         #size-cells = <1>;
91
92                         uboot: partition@0 {
93                                 label = "u-boot";
94                                 reg = <0x000000 0x040000>;
95                                 read-only;
96                         };
97
98                         partition@40000 {
99                                 label = "u-boot-env";
100                                 reg = <0x040000 0x010000>;
101                                 read-only;
102                         };
103
104                         partition@50000 {
105                                 compatible = "denx,uimage";
106                                 label = "firmware";
107                                 reg = <0x050000 0x07a0000>;
108                         };
109
110                         art: partition@7f0000 {
111                                 label = "art";
112                                 reg = <0x7f0000 0x010000>;
113                                 read-only;
114                         };
115                 };
116         };
117 };
118
119 &usb {
120         status = "okay";
121         #address-cells = <1>;
122         #size-cells = <0>;
123
124         hub_port1: port@1 {
125                 reg = <1>;
126                 #trigger-source-cells = <0>;
127         };
128 };
129
130 &usb_phy {
131         status = "okay";
132 };
133
134 &pcie {
135         status = "okay";
136
137         ath9k: wifi@0,0 {
138                 compatible = "pci168c,0030";
139                 reg = <0x0000 0 0 0 0>;
140                 mtd-mac-address = <&art 0x5002>;
141                 #gpio-cells = <2>;
142                 gpio-controller;
143         };
144 };
145
146 &mdio0 {
147         status = "okay";
148
149         phy-mask = <0>;
150
151         phy0: ethernet-phy@0 {
152                 reg = <0>;
153                 phy-mode = "rgmii";
154                 qca,ar8327-initvals = <
155                         0x04 0x07600000 /* PORT0 PAD MODE CTRL */
156                         0x10 0x81000080 /* POWER_ON_STRAP */
157                         0x50 0xcc35cc35 /* LED_CTRL0 */
158                         0x54 0xca35ca35 /* LED_CTRL1 */
159                         0x58 0xc935c935 /* LED_CTRL2 */
160                         0x5c 0x03ffff00 /* LED_CTRL3 */
161                         0x7c 0x0000007e /* PORT0_STATUS */
162                 >;
163         };
164 };
165
166 &eth0 {
167         #address-cells = <1>;
168         #size-cells = <0>;
169         status = "okay";
170
171         /* default for ar934x, except for 1000M */
172         pll-data = <0x06000000 0x00000101 0x00001616>;
173
174         mtd-mac-address = <&art 0x0>;
175
176         phy-mode = "rgmii";
177         phy-handle = <&phy0>;
178
179         aliases {
180                 ag0 = &eth1;
181         };
182
183         port@0 {
184                 compatible = "swconfig,port";
185                 reg = <0>;
186                 swconfig,segment = "lan";
187                 swconfig,portmap = <1 1>;
188         };
189
190         port@1 {
191                 compatible = "swconfig,port";
192                 reg = <1>;
193                 swconfig,segment = "lan";
194                 swconfig,portmap = <2 2>;
195         };
196
197         port@2 {
198                 compatible = "swconfig,port";
199                 reg = <2>;
200                 swconfig,segment = "lan";
201                 swconfig,portmap = <3 3>;
202         };
203
204         port@3 {
205                 compatible = "swconfig,port";
206                 reg = <3>;
207                 swconfig,segment = "lan";
208                 swconfig,portmap = <4 4>;
209         };
210
211         port@4 {
212                 compatible = "swconfig,port";
213                 reg = <4>;
214                 swconfig,segment = "wan";
215                 swconfig,portmap = <5 5>;
216         };
217 };
218
219 &wmac {
220         status = "okay";
221
222         mtd-cal-data = <&art 0x1000>;
223 };