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