ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9563_nec_wg1200cr.dts
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 #include <dt-bindings/leds/common.h>
8
9 / {
10 model = "NEC Aterm WG1200CR";
11 compatible = "nec,wg1200cr", "qca,qca9563";
12
13 aliases {
14 led-boot = &led_power_green;
15 led-failsafe = &led_power_red;
16 led-running = &led_power_green;
17 led-upgrade = &led_power_green;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22 /* other LEDs are connected to ath10k (QCA9888) gpiochip */
23
24 led_power_green: power_green {
25 function = LED_FUNCTION_POWER;
26 color = <LED_COLOR_ID_GREEN>;
27 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
28 default-state = "on";
29 };
30
31 led_power_red: power_red {
32 function = LED_FUNCTION_POWER;
33 color = <LED_COLOR_ID_RED>;
34 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
35 };
36 };
37
38 keys {
39 compatible = "gpio-keys";
40
41 reset {
42 label = "reset";
43 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_RESTART>;
45 debounce-interval = <60>;
46 };
47
48 wps {
49 label = "wps";
50 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
51 linux,code = <KEY_WPS_BUTTON>;
52 debounce-interval = <60>;
53 };
54
55 bridge {
56 label = "br";
57 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
58 linux,code = <BTN_0>;
59 linux,input-type = <EV_SW>;
60 debounce-interval = <60>;
61 };
62
63 converter {
64 label = "cnv";
65 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
66 linux,code = <BTN_0>;
67 linux,input-type = <EV_SW>;
68 debounce-interval = <60>;
69 };
70 };
71 };
72
73 &spi {
74 status = "okay";
75
76 flash@0 {
77 compatible = "jedec,spi-nor";
78 reg = <0>;
79 spi-max-frequency = <25000000>;
80
81 partitions {
82 compatible = "fixed-partitions";
83 #address-cells = <1>;
84 #size-cells = <1>;
85
86 partition@0 {
87 label = "u-boot";
88 reg = <0x000000 0x040000>;
89 read-only;
90 };
91
92 partition@40000 {
93 label = "devdata";
94 reg = <0x040000 0x010000>;
95 read-only;
96 };
97
98 partition@50000 {
99 label = "devconf";
100 reg = <0x050000 0x010000>;
101 read-only;
102 };
103
104 partition@60000 {
105 label = "misc";
106 reg = <0x060000 0x010000>;
107 read-only;
108 };
109
110 partition@70000 {
111 label = "wifimngdata";
112 reg = <0x070000 0x010000>;
113 read-only;
114 };
115
116 partition@80000 {
117 compatible = "seama";
118 label = "firmware";
119 reg = <0x080000 0x770000>;
120 };
121
122 partition@7f0000 {
123 label = "art";
124 reg = <0x7f0000 0x010000>;
125 read-only;
126
127 nvmem-layout {
128 compatible = "fixed-layout";
129 #address-cells = <1>;
130 #size-cells = <1>;
131
132 precal_art_5000: pre-calibration@5000 {
133 reg = <0x5000 0x2f20>;
134 };
135 };
136 };
137 };
138 };
139 };
140
141 &mdio0 {
142 status = "okay";
143
144 phy0: ethernet-phy@0 {
145 reg = <0>;
146
147 qca,ar8327-initvals = <
148 0x04 0x00000080 /* PORT0 PAD MODE CTRL */
149 0x50 0xcc35cc35 /* LED_CTRL0 */
150 0x54 0xca35ca35 /* LED_CTRL1 */
151 0x58 0xc935c935 /* LED_CTRL2 */
152 0x5c 0x03ffff00 /* LED_CTRL3 */
153 0x7c 0x0000007e /* PORT0_STATUS */
154 >;
155 };
156 };
157
158 &eth0 {
159 status = "okay";
160
161 pll-data = <0x03000101 0x00000101 0x00001919>;
162
163 phy-mode = "sgmii";
164 phy-handle = <&phy0>;
165 };
166
167 &pcie {
168 status = "okay";
169
170 wifi@0,0 {
171 compatible = "pci168c,0056";
172 reg = <0x0000 0 0 0 0>;
173 nvmem-cells = <&precal_art_5000>;
174 nvmem-cell-names = "pre-calibration";
175 };
176 };
177
178 &wmac {
179 status = "okay";
180
181 qca,no-eeprom;
182 };