generic: ar8216: fix unknown packet flooding for ar8229/ar8236
[oweals/openwrt.git] / target / linux / ath79 / dts / ar1022_sitecom_wlr-7100.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 = "Sitecom WLR-7100 v1 002 (X7 AC1200)";
11         compatible = "sitecom,wlr-7100", "qca,ar9344";
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         keys {
21                 compatible = "gpio-keys";
22
23                 wlan2g {
24                         label = "2.4GHz";
25                         gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
26                         linux,code = <KEY_RESTART>;
27                 };
28
29                 wlan5g {
30                         label = "5GHz";
31                         gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
32                         linux,code = <KEY_WPS_BUTTON>;
33                 };
34         };
35
36         leds {
37                 compatible = "gpio-leds";
38
39                 ops {
40                         label = "wlr-7100:white:ops";
41                         gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
42                 };
43
44                 led_power: power {
45                         label = "wlr-7100:amber:power";
46                         gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
47                         default-state = "on";
48                 };
49
50                 wlan2g {
51                         label = "wlr-7100:blue:wlan2g";
52                         gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
53                         linux,default-trigger = "phy1tpt";
54                 };
55         };
56 };
57
58 &eth0 {
59         status = "okay";
60
61         pll-data = <0x06000000 0x00000101 0x00001616>;
62
63         phy-mode = "rgmii";
64         phy-handle = <&phy0>;
65
66         gmac-config {
67                 device = <&gmac>;
68                 rgmii-gmac0 = <1>;
69         };
70 };
71
72 &mdio0 {
73         status = "okay";
74
75         phy0: ethernet-phy@0 {
76                 reg = <0>;
77                 phy-mode = "rgmii";
78
79                 qca,ar8327-initvals = <
80                         0x04 0x87a00000 /* PORT0 PAD Mode */
81                         0x0c 0x01000000 /* PORT6 PAD Mode */
82                         0x10 0x80000000 /* PWS_REG_VALUE */
83                         0x7c 0x000000fe /* PORT0_STATUS */
84                         0x94 0x000000fe /* PORT6_STATUS */
85                 >;
86         };
87 };
88
89 &pcie {
90         status = "okay";
91
92         wifi@0,0 {
93                 compatible = "qcom,ath10k";
94                 reg = <0x0000 0 0 0 0>;
95         };
96 };
97
98 &ref {
99         clock-frequency = <25000000>;
100 };
101
102 &spi {
103         status = "okay";
104
105         num-cs = <1>;
106
107         flash@0 {
108                 compatible = "jedec,spi-nor";
109                 reg = <0>;
110                 spi-max-frequency = <25000000>;
111
112                 partitions {
113                         compatible = "fixed-partitions";
114                         #address-cells = <1>;
115                         #size-cells = <1>;
116
117                         partition@0 {
118                                 label = "u-boot";
119                                 reg = <0x000000 0x030000>;
120                                 read-only;
121                         };
122
123                         uenv: partition@30000 {
124                                 label = "u-boot-env";
125                                 reg = <0x030000 0x010000>;
126                                 read-only;
127                         };
128
129                         partition@40000 {
130                                 compatible = "denx,uimage";
131                                 label = "firmware";
132                                 reg = <0x040000 0x750000>;
133                         };
134
135                         partition@790000 {
136                                 label = "backup";
137                                 reg = <0x790000 0x010000>;
138                                 read-only;
139                         };
140
141                         partition@7a0000 {
142                                 label = "storage";
143                                 reg = <0x7a0000 0x050000>;
144                                 read-only;
145                         };
146
147                         art: partition@7f0000 {
148                                 label = "art";
149                                 reg = <0x7f0000 0x010000>;
150                                 read-only;
151                         };
152                 };
153         };
154 };
155
156 &uart {
157         status = "okay";
158 };
159
160 &usb {
161         status = "okay";
162 };
163
164 &usb_phy {
165         status = "okay";
166 };
167
168 &wmac {
169         status = "okay";
170
171         qca,no-eeprom;
172 };