ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qcn5502_asus.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca956x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 aliases {
10 label-mac-device = &eth0;
11 };
12 };
13
14 &eth0 {
15 status = "okay";
16
17 pll-data = <0x03000101 0x00000101 0x00001919>;
18
19 phy-mode = "sgmii";
20 phy-handle = <&phy0>;
21
22 nvmem-cells = <&macaddr_factory_1002>;
23 nvmem-cell-names = "mac-address";
24 };
25
26 &mdio0 {
27 status = "okay";
28
29 phy0: ethernet-phy@0 {
30 reg = <0>;
31 phy-mode = "sgmii";
32 qca,mib-poll-interval = <500>;
33
34 qca,ar8327-initvals = <
35 0x04 0x80080080 /* PORT0 PAD MODE CTRL */
36 0x08 0x00000000 /* PORT5 PAD MODE CTRL */
37 0x0c 0x00000000 /* PORT6 PAD MODE CTRL */
38 0x10 0x00000080 /* POWER_ON_STRAP */
39 0x7c 0x0000007e /* PORT0_STATUS */
40 0x94 0x00000200 /* PORT6_STATUS */
41 >;
42 };
43 };
44
45 &pcie {
46 status = "okay";
47
48 wifi@0,0 {
49 compatible = "qcom,ath10k";
50 reg = <0 0 0 0 0>;
51
52 nvmem-cells = <&precal_factory_5000>;
53 nvmem-cell-names = "pre-calibration";
54 };
55 };
56
57 &spi {
58 status = "okay";
59
60 flash@0 {
61 compatible = "jedec,spi-nor";
62 reg = <0>;
63 spi-max-frequency = <25000000>;
64 m25p,fast-read;
65
66 mtdparts: partitions {
67 compatible = "fixed-partitions";
68 #address-cells = <1>;
69 #size-cells = <1>;
70
71 partition@0 {
72 label = "Bootloader";
73 reg = <0x000000 0x040000>;
74 read-only;
75 };
76
77 partition@40000 {
78 label = "nvram";
79 reg = <0x040000 0x010000>;
80 read-only;
81 };
82
83 partition@50000 {
84 label = "Factory";
85 reg = <0x050000 0x010000>;
86 read-only;
87
88 nvmem-layout {
89 compatible = "fixed-layout";
90 #address-cells = <1>;
91 #size-cells = <1>;
92
93 cal_factory_1000: cal@1000 {
94 reg = <0x1000 0x440>;
95 };
96
97 macaddr_factory_1002: macaddr@1002 {
98 reg = <0x1002 0x6>;
99 };
100
101 precal_factory_5000: precal@5000 {
102 reg = <0x5000 0x2f20>;
103 };
104 };
105 };
106 };
107 };
108 };
109
110 &wmac {
111 /* Does not work due to lack of QCN5502 support in ath9k. */
112 status = "disabled";
113
114 nvmem-cells = <&cal_factory_1000>;
115 nvmem-cell-names = "calibration";
116 };