ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar9342_ubnt_aircube-ac.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
8 / {
9 compatible = "ubnt,aircube-ac", "qca,ar9342";
10 model = "Ubiquiti airCube AC";
11
12 keys {
13 compatible = "gpio-keys";
14
15 reset {
16 label = "reset";
17 linux,code = <KEY_RESTART>;
18 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
19 debounce-interval = <60>;
20 };
21 };
22 };
23
24 &spi {
25 status = "okay";
26
27 flash@0 {
28 compatible = "jedec,spi-nor";
29 reg = <0>;
30 spi-max-frequency = <25000000>;
31
32 partitions {
33 compatible = "fixed-partitions";
34 #address-cells = <1>;
35 #size-cells = <1>;
36
37 partition@0 {
38 label = "u-boot";
39 reg = <0x000000 0x040000>;
40 read-only;
41 };
42
43 partition@40000 {
44 label = "u-boot-env";
45 reg = <0x040000 0x010000>;
46 read-only;
47 };
48
49 partition@50000 {
50 compatible = "denx,uimage";
51 label = "firmware";
52 reg = <0x050000 0xf60000>;
53 };
54
55 partition@fb0000 {
56 label = "cfg";
57 reg = <0xfb0000 0x040000>;
58 read-only;
59 };
60
61 partition@ff0000 {
62 label = "art";
63 reg = <0xff0000 0x010000>;
64 read-only;
65
66 nvmem-layout {
67 compatible = "fixed-layout";
68 #address-cells = <1>;
69 #size-cells = <1>;
70
71 macaddr_art_0: macaddr@0 {
72 reg = <0x0 0x6>;
73 };
74
75 calibration_art_1000: calibration@1000 {
76 reg = <0x1000 0x440>;
77 };
78
79 calibration_art_5000: calibration@5000 {
80 reg = <0x5000 0x844>;
81 };
82 };
83 };
84 };
85 };
86 };
87
88 &ref {
89 clock-frequency = <40000000>;
90 };
91
92 &pcie {
93 status = "okay";
94
95 wifi@0,0 {
96 compatible = "qcom,ath10k";
97 reg = <0x0 0 0 0 0>;
98 nvmem-cells = <&calibration_art_5000>;
99 nvmem-cell-names = "calibration";
100 };
101 };
102
103 &mdio0 {
104 status = "okay";
105
106 phy0: ethernet-phy@0 {
107 phy-mode = "rgmii";
108 reg = <0>;
109
110 qca,ar8327-initvals = <
111 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
112 0x7c 0x0000007e /* PORT0_STATUS */
113 >;
114 };
115 };
116
117 &eth0 {
118 status = "okay";
119
120 /* default for ar934x, except for 1000M and 10M */
121 pll-data = <0x06000000 0x00000101 0x00001313>;
122
123 nvmem-cells = <&macaddr_art_0>;
124 nvmem-cell-names = "mac-address";
125
126 phy-mode = "rgmii";
127 phy-handle = <&phy0>;
128
129 gmac-config {
130 device = <&gmac>;
131 };
132 };
133
134 &wmac {
135 status = "okay";
136
137 nvmem-cells = <&calibration_art_1000>;
138 nvmem-cell-names = "calibration";
139 };