ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar1022_sitecom_wlr-7100.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9344.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 model = "Sitecom WLR-7100 (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 = "white:ops";
41 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
42 };
43
44 led_power: power {
45 function = LED_FUNCTION_POWER;
46 color = <LED_COLOR_ID_AMBER>;
47 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
48 default-state = "on";
49 };
50
51 wlan2g {
52 label = "blue:wlan2g";
53 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
54 linux,default-trigger = "phy1tpt";
55 };
56 };
57 };
58
59 &eth0 {
60 status = "okay";
61
62 pll-data = <0x06000000 0x00000101 0x00001616>;
63
64 phy-mode = "rgmii";
65 phy-handle = <&phy0>;
66
67 gmac-config {
68 device = <&gmac>;
69 rgmii-gmac0 = <1>;
70 rxdv-delay = <3>;
71 rxd-delay = <3>;
72 };
73 };
74
75 &mdio0 {
76 status = "okay";
77
78 phy0: ethernet-phy@0 {
79 reg = <0>;
80 phy-mode = "rgmii";
81
82 qca,ar8327-initvals = <
83 0x04 0x87a00000 /* PORT0 PAD Mode */
84 0x0c 0x01000000 /* PORT6 PAD Mode */
85 0x10 0x80000000 /* PWS_REG_VALUE */
86 0x7c 0x000000fe /* PORT0_STATUS */
87 0x94 0x000000fe /* PORT6_STATUS */
88 >;
89 };
90 };
91
92 &pcie {
93 status = "okay";
94
95 wifi@0,0 {
96 compatible = "qcom,ath10k";
97 reg = <0x0000 0 0 0 0>;
98 nvmem-cells = <&cal_art_5000>;
99 nvmem-cell-names = "calibration";
100 };
101 };
102
103 &ref {
104 clock-frequency = <25000000>;
105 };
106
107 &spi {
108 status = "okay";
109
110 flash@0 {
111 compatible = "jedec,spi-nor";
112 reg = <0>;
113 spi-max-frequency = <25000000>;
114
115 partitions {
116 compatible = "fixed-partitions";
117 #address-cells = <1>;
118 #size-cells = <1>;
119
120 partition@0 {
121 label = "u-boot";
122 reg = <0x000000 0x030000>;
123 read-only;
124 };
125
126 uenv: partition@30000 {
127 label = "u-boot-env";
128 reg = <0x030000 0x010000>;
129 read-only;
130 };
131
132 partition@40000 {
133 compatible = "denx,uimage";
134 label = "firmware";
135 reg = <0x040000 0x750000>;
136 };
137
138 partition@790000 {
139 label = "backup";
140 reg = <0x790000 0x010000>;
141 read-only;
142 };
143
144 partition@7a0000 {
145 label = "storage";
146 reg = <0x7a0000 0x050000>;
147 read-only;
148 };
149
150 art: partition@7f0000 {
151 label = "art";
152 reg = <0x7f0000 0x010000>;
153 read-only;
154
155 nvmem-layout {
156 compatible = "fixed-layout";
157 #address-cells = <1>;
158 #size-cells = <1>;
159
160 cal_art_5000: calibration@5000 {
161 reg = <0x5000 0x844>;
162 };
163 };
164 };
165 };
166 };
167 };
168
169 &usb {
170 status = "okay";
171 };
172
173 &usb_phy {
174 status = "okay";
175 };
176
177 &wmac {
178 status = "okay";
179
180 qca,no-eeprom;
181 };