ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9561_nec_wf1200cr.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 WF1200CR";
11 compatible = "nec,wf1200cr", "qca,qca9561";
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 15 GPIO_ACTIVE_LOW>;
28 };
29
30 led_power_red: power_red {
31 function = LED_FUNCTION_POWER;
32 color = <LED_COLOR_ID_RED>;
33 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
34 };
35 };
36
37 keys {
38 compatible = "gpio-keys";
39
40 reset {
41 label = "reset";
42 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_RESTART>;
44 debounce-interval = <60>;
45 };
46
47 router {
48 label = "rt";
49 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
50 linux,code = <BTN_0>;
51 linux,input-type = <EV_SW>;
52 debounce-interval = <60>;
53 };
54
55 wps {
56 label = "wps";
57 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
58 linux,code = <KEY_WPS_BUTTON>;
59 debounce-interval = <60>;
60 };
61 };
62 };
63
64 &spi {
65 status = "okay";
66
67 flash@0 {
68 compatible = "jedec,spi-nor";
69 reg = <0>;
70 spi-max-frequency = <25000000>;
71
72 partitions {
73 compatible = "fixed-partitions";
74 #address-cells = <1>;
75 #size-cells = <1>;
76
77 partition@0 {
78 label = "u-boot";
79 reg = <0x000000 0x040000>;
80 read-only;
81 };
82
83 partition@40000 {
84 label = "devdata";
85 reg = <0x040000 0x010000>;
86 read-only;
87 };
88
89 partition@50000 {
90 label = "devconf";
91 reg = <0x050000 0x010000>;
92 read-only;
93 };
94
95 partition@60000 {
96 label = "misc";
97 reg = <0x060000 0x010000>;
98 read-only;
99 };
100
101 partition@70000 {
102 compatible = "seama";
103 label = "firmware";
104 reg = <0x070000 0x780000>;
105 };
106
107 partition@7f0000 {
108 label = "art";
109 reg = <0x7f0000 0x010000>;
110 read-only;
111
112 nvmem-layout {
113 compatible = "fixed-layout";
114 #address-cells = <1>;
115 #size-cells = <1>;
116
117 precal_art_5000: pre-calibration@5000 {
118 reg = <0x5000 0x2f20>;
119 };
120 };
121 };
122 };
123 };
124 };
125
126 &eth0 {
127 status = "okay";
128
129 pll-data = <0x03000101 0x00000101 0x00001919>;
130
131 phy-handle = <&swphy0>;
132
133 gmac-config {
134 device = <&gmac>;
135
136 switch-phy-swap = <1>;
137 switch-phy-addr-swap = <0>;
138 };
139 };
140
141 &eth1 {
142 status = "okay";
143
144 pinctrl-names = "default";
145 pinctrl-0 = <&pinmux_swled_enable_pins>;
146 };
147
148 &gpio {
149 switch_leds {
150 gpio-hog;
151 gpios = <14 GPIO_ACTIVE_HIGH>, /* WAN */
152 <19 GPIO_ACTIVE_HIGH>; /* LAN */
153 output-high;
154 line-name = "led:wan-lan";
155 };
156 };
157
158 &pinmux {
159 pinmux_swled_enable_pins: swled_enable_pins {
160 pinctrl-single,bits =
161 <0xc 0x240000 0xff0000>, /* WAN */
162 <0x10 0x10000000 0xff000000>; /* LAN */
163 };
164 };
165
166 &pcie {
167 status = "okay";
168
169 wifi@0,0 {
170 compatible = "qcom,ath10k";
171 reg = <0x0000 0 0 0 0>;
172 nvmem-cells = <&precal_art_5000>;
173 nvmem-cell-names = "pre-calibration";
174 };
175 };
176
177 &wmac {
178 status = "okay";
179
180 qca,no-eeprom;
181 };