ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9563_dlink_dir-8x9-a1.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 keys {
10 compatible = "gpio-keys";
11
12 wps {
13 label = "wps";
14 linux,code = <KEY_WPS_BUTTON>;
15 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
16 debounce-interval = <60>;
17 };
18
19 reset {
20 label = "reset";
21 linux,code = <KEY_RESTART>;
22 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
23 debounce-interval = <60>;
24 };
25 };
26 };
27
28 &pcie {
29 status = "okay";
30
31 ath10k: wifi@0,0 {
32 compatible = "qcom,ath10k";
33 reg = <0x0000 0 0 0 0>;
34
35 nvmem-cells = <&calibration_ath10k>, <&macaddr_devdata_94 0>;
36 nvmem-cell-names = "calibration", "mac-address";
37 };
38 };
39
40 &spi {
41 status = "okay";
42
43 flash@0 {
44 compatible = "jedec,spi-nor";
45 reg = <0>;
46 spi-max-frequency = <25000000>;
47
48 partitions {
49 compatible = "fixed-partitions";
50 #address-cells = <1>;
51 #size-cells = <1>;
52
53 partition@0 {
54 label = "bootloader";
55 reg = <0x000000 0x040000>;
56 read-only;
57 };
58
59 bdcfg: partition@40000 {
60 compatible = "u-boot,env";
61 label = "bdcfg";
62 reg = <0x040000 0x010000>;
63 };
64
65 partition@50000 {
66 label = "devdata";
67 reg = <0x050000 0x010000>;
68 read-only;
69
70 nvmem-layout {
71 compatible = "fixed-layout";
72 #address-cells = <1>;
73 #size-cells = <1>;
74
75 macaddr_devdata_94: macaddr@94 {
76 compatible = "mac-base";
77 reg = <0x94 0x11>;
78 #nvmem-cell-cells = <1>;
79 };
80
81 macaddr_devdata_b0: macaddr@b0 {
82 compatible = "mac-base";
83 reg = <0xb0 0x11>;
84 #nvmem-cell-cells = <1>;
85 };
86 };
87
88 };
89
90 partition@60000 {
91 label = "devconf";
92 reg = <0x060000 0x010000>;
93 read-only;
94 };
95
96 partition@70000 {
97 compatible = "seama";
98 label = "firmware";
99 reg = <0x070000 0xf80000>;
100 };
101
102 partition@ff0000 {
103 label = "art";
104 reg = <0xff0000 0x010000>;
105 read-only;
106
107 nvmem-layout {
108 compatible = "fixed-layout";
109 #address-cells = <1>;
110 #size-cells = <1>;
111
112 calibration_ath9k: calibration@1000 {
113 reg = <0x1000 0x440>;
114 };
115
116 calibration_ath10k: calibration@5000 {
117 reg = <0x5000 0x844>;
118 };
119 };
120 };
121 };
122 };
123 };
124
125 &mdio0 {
126 status = "okay";
127
128 phy0: ethernet-phy@0 {
129 reg = <0>;
130 phy-mode = "sgmii";
131 qca,mib-poll-interval = <500>;
132
133 reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
134
135 qca,ar8327-initvals = <
136 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
137 0x10 0x81000080 /* POWER_ON_STRAP */
138 0x50 0xcc35cc35 /* LED_CTRL0 */
139 0x54 0xcb37cb37 /* LED_CTRL1 */
140 0x58 0x00000000 /* LED_CTRL2 */
141 0x5c 0x00f3cf00 /* LED_CTRL3 */
142 0x7c 0x0000007e /* PORT0_STATUS */
143 >;
144 };
145 };
146
147 &eth0 {
148 status = "okay";
149
150 pll-data = <0x03000101 0x00000101 0x00001919>;
151
152 phy-mode = "sgmii";
153 phy-handle = <&phy0>;
154 };
155
156 &wmac {
157 status = "okay";
158
159 nvmem-cells = <&calibration_ath9k>, <&macaddr_devdata_b0 0>;
160 nvmem-cell-names = "calibration", "mac-address";
161 };