ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9558_sophos_ap.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 /*
4 * The hardware of this board family is most likely shared with other devices
5 * from other manufacturers. Edimax appear to be the actual OEM.
6 *
7 * Sophos use the same exact board for the AP55C/AP100C, and AP55/AP100.
8 * Yes, this means your AP55C is a 3x3 AP with a software lock, and your
9 * AP55 is an AP100 with one missing antenna pigtail.
10 *
11 * AP55 and AP55C boards have different physical layouts, but are logically
12 * almost identical. AP55/100 have an empty micro-USB OTG port footprint,
13 * which may be possible to retrofit with some work.
14 */
15
16 #include "qca955x.dtsi"
17
18 #include <dt-bindings/gpio/gpio.h>
19 #include <dt-bindings/input/input.h>
20 #include <dt-bindings/leds/common.h>
21
22 / {
23 aliases {
24 led-boot = &led_status_green;
25 led-failsafe = &led_status_red;
26 led-running = &led_status_green;
27 led-upgrade = &led_status_red;
28 label-mac-device = &eth0;
29 };
30
31 chosen {
32 bootargs = "console=ttyS0,115200n8";
33 };
34
35 keys {
36 compatible = "gpio-keys";
37
38 reset {
39 label = "reset";
40 linux,code = <KEY_RESTART>;
41 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
42 debounce-interval = <60>;
43 };
44 };
45
46 leds {
47 compatible = "gpio-leds";
48
49 led_status_green: status_green {
50 function = LED_FUNCTION_STATUS;
51 color = <LED_COLOR_ID_GREEN>;
52 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
53 default-state = "on";
54 };
55
56 led_status_red: status_red {
57 function = LED_FUNCTION_STATUS;
58 color = <LED_COLOR_ID_RED>;
59 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
60 };
61 };
62
63 reg_usb_vbus: reg_usb_vbus {
64 compatible = "regulator-fixed";
65 regulator-name = "usb_vbus";
66 regulator-min-microvolt = <5000000>;
67 regulator-max-microvolt = <5000000>;
68 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
69 enable-active-high;
70 regulator-boot-on;
71 status = "disabled";
72 };
73 };
74
75 &pcie0 {
76 status = "okay";
77
78 wifi@0,0 {
79 compatible = "qcom,ath10k";
80 reg = <0x0000 0 0 0 0>;
81 nvmem-cells = <&cal_art_5000>;
82 nvmem-cell-names = "calibration";
83 };
84 };
85
86 &spi {
87 status = "okay";
88
89 flash@0 {
90 compatible = "jedec,spi-nor";
91 reg = <0>;
92 spi-max-frequency = <25000000>;
93
94 partitions {
95 compatible = "fixed-partitions";
96 #address-cells = <1>;
97 #size-cells = <1>;
98
99 partition@0 {
100 label = "u-boot";
101 reg = <0x000000 0x040000>;
102 read-only;
103 };
104
105 partition@40000 {
106 label = "u-boot-env";
107 reg = <0x040000 0x010000>;
108 };
109
110 art: partition@50000 {
111 label = "art";
112 reg = <0x050000 0x010000>;
113 read-only;
114
115 nvmem-layout {
116 compatible = "fixed-layout";
117 #address-cells = <1>;
118 #size-cells = <1>;
119
120 cal_art_5000: calibration@5000 {
121 reg = <0x5000 0x844>;
122 };
123 };
124 };
125
126 config: partition@60000 {
127 label = "config";
128 reg = <0x060000 0x010000>;
129 read-only;
130
131 nvmem-layout {
132 compatible = "fixed-layout";
133 #address-cells = <1>;
134 #size-cells = <1>;
135
136 macaddr_config_201a: macaddr@201a {
137 reg = <0x201a 0x6>;
138 };
139 };
140 };
141
142 partition@70000 {
143 compatible = "denx,uimage";
144 label = "firmware";
145 reg = <0x070000 0xf90000>;
146 };
147 };
148 };
149 };
150
151 &mdio0 {
152 status = "okay";
153
154 phy4: ethernet-phy@4 {
155 reg = <4>;
156 eee-broken-100tx;
157 eee-broken-1000t;
158 };
159 };
160
161 &eth0 {
162 status = "okay";
163
164 pll-data = <0xa6000000 0xa0000101 0xa0001313>;
165
166 nvmem-cells = <&macaddr_config_201a>;
167 nvmem-cell-names = "mac-address";
168
169 phy-mode = "rgmii-id";
170 phy-handle = <&phy4>;
171
172 gmac_config: gmac-config {
173 device = <&gmac>;
174
175 rgmii-enabled = <1>;
176
177 rxdv-delay = <3>;
178 rxd-delay = <3>;
179 txen-delay = <3>;
180 txd-delay = <3>;
181 };
182 };
183
184 &wmac {
185 status = "okay";
186
187 mtd-cal-data = <&art 0x1000>;
188 };
189
190 &usb0 {
191 vbus-supply = <&reg_usb_vbus>;
192 };