ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9558_linksys_ea4500-v3.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca955x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "linksys,ea4500-v3", "qca,qca9558";
10 model = "Linksys EA4500 v3";
11
12 aliases {
13 led-boot = &led_system;
14 led-failsafe = &led_system;
15 led-running = &led_system;
16 led-upgrade = &led_system;
17 label-mac-device = &eth1;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 led_system: system {
24 label = "green:system";
25 gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
26 default-state = "on";
27 };
28 };
29
30 keys {
31 compatible = "gpio-keys";
32
33 reset {
34 label = "reset";
35 linux,code = <KEY_RESTART>;
36 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
37 debounce-interval = <60>;
38 };
39
40 wps {
41 label = "wps";
42 linux,code = <KEY_WPS_BUTTON>;
43 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
44 debounce-interval = <60>;
45 };
46 };
47 };
48
49 &pcie0 {
50 status = "okay";
51
52 wifi@0,0 {
53 compatible = "pci168c,0033";
54 reg = <0x0000 0 0 0 0>;
55 nvmem-cells = <&cal_ath9k_pci>;
56 nvmem-cell-names = "calibration";
57 };
58 };
59
60 &usb_phy0 {
61 status = "okay";
62 };
63
64 &usb0 {
65 status = "okay";
66 };
67
68 &nand {
69 status = "okay";
70
71 partitions {
72 compatible = "fixed-partitions";
73
74 #address-cells = <1>;
75 #size-cells = <1>;
76
77 partition@0 {
78 label = "uboot";
79 reg = <0x0 0x100000>;
80 read-only;
81 };
82
83 partition@100000 {
84 label = "u_env";
85 reg = <0x100000 0x40000>;
86 };
87
88 partition@140000 {
89 label = "caldata";
90 reg = <0x140000 0x40000>;
91 read-only;
92
93 nvmem-layout {
94 compatible = "fixed-layout";
95 #address-cells = <1>;
96 #size-cells = <1>;
97
98 cal_macaddr: macaddr@0 {
99 reg = <0x6 0x6>;
100 };
101
102 cal_ath9k_soc: cal_ath9k@1000 {
103 reg = <0x1000 0x440>;
104 };
105
106 cal_ath9k_pci: cal_ath9k@5000 {
107 reg = <0x5000 0x440>;
108 };
109 };
110 };
111
112 partition@180000 {
113 label = "s_env";
114 reg = <0x180000 0x40000>;
115 read-only;
116 };
117
118 partition@1c0000 {
119 label = "devinfo";
120 reg = <0x1c0000 0x100000>;
121 read-only;
122 };
123
124 partition@2c0000 {
125 label = "firmware";
126 reg = <0x2c0000 0x5000000>;
127
128 compatible = "fixed-partitions";
129 #address-cells = <1>;
130 #size-cells = <1>;
131
132 partition@0 {
133 label = "kernel";
134 reg = <0x0 0x400000>;
135 };
136
137 partition@400000 {
138 label = "ubi";
139 reg = <0x400000 0x4c00000>;
140 };
141
142 /* Original layout for secondary partitions */
143 /* partition@2800000 {
144 label = "kernel2";
145 reg = <0x2800000 0x400000>;
146 };
147
148 partition@2c00000 {
149 label = "ubi2";
150 reg = <0x2c00000 0x2400000>;
151 }; */
152 };
153
154 partition@52c0000 {
155 label = "syscfg";
156 reg = <0x52c0000 0x2d40000>;
157 read-only;
158 };
159 };
160 };
161
162 &mdio0 {
163 status = "okay";
164
165 phy0: ethernet-phy@0 {
166 reg = <0>;
167
168 qca,ar8327-initvals = <
169 0x04 0x07600000 /* PORT0 PAD MODE CTRL: RGMII, to eth0 */
170 0x0c 0x00000080 /* PORT6 PAD MODE CTRL: SGMII, to eth1 */
171 0x50 0xc833c833 /* LED_CTRL0: orange, blinking with act */
172 0x54 0xcf85cf85 /* LED_CTRL1: green, on with link */
173 0x58 0x00000000 /* LED_CTRL2: unpopulated */
174 0x5c 0x00f3cf00 /* LED_CTRL3: enable led 0 and 1 */
175 0x7c 0x0000007e /* PORT0_STATUS */
176 0x94 0x0000007e /* PORT6 STATUS */
177 >;
178 };
179 };
180
181 &eth0 {
182 status = "okay";
183
184 nvmem-cells = <&cal_macaddr>;
185 nvmem-cell-names = "mac-address";
186 phy-handle = <&phy0>;
187 pll-data = <0x96000000 0x00000101 0x00001616>;
188
189 gmac-config {
190 device = <&gmac>;
191 rgmii-enabled = <1>;
192 };
193 };
194
195 &eth1 {
196 status = "okay";
197
198 nvmem-cells = <&cal_macaddr>;
199 nvmem-cell-names = "mac-address";
200 pll-data = <0x03000101 0x00000101 0x00001616>;
201
202 fixed-link {
203 speed = <1000>;
204 full-duplex;
205 };
206 };
207
208 &wmac {
209 status = "okay";
210
211 nvmem-cells = <&cal_ath9k_soc>;
212 nvmem-cell-names = "calibration";
213 };