ath79: convert ath10k calibration data to NVMEM (ASCII MAC)
[openwrt/staging/dangole.git] / target / linux / ath79 / dts / qca9558_zyxel_nbg6716.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca955x_zyxel_nbg6x16.dtsi"
4
5 / {
6 compatible = "zyxel,nbg6716", "qca,qca9558";
7 model = "ZyXEL NBG6716";
8
9 aliases {
10 led-boot = &led_power;
11 led-failsafe = &led_power;
12 led-running = &led_power;
13 led-upgrade = &led_power;
14 };
15
16 leds {
17 compatible = "gpio-leds";
18
19 led_power: power {
20 label = "white:power";
21 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
22 };
23
24 internet {
25 label = "white:internet";
26 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
27 };
28
29 usb1 {
30 label = "white:usb1";
31 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
32 linux,default-trigger = "usbport";
33 trigger-sources = <&hub_port1>;
34 };
35
36 usb2 {
37 label = "white:usb2";
38 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
39 linux,default-trigger = "usbport";
40 trigger-sources = <&hub_port0>;
41 };
42
43 wifi2g {
44 label = "white:wifi2g";
45 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
46 linux,default-trigger = "phy1tpt";
47 };
48
49 wifi5g {
50 label = "white:wifi5g";
51 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
52 linux,default-trigger = "phy0tpt";
53 };
54
55 wps {
56 label = "white:wps";
57 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
58 };
59 };
60 };
61
62 &keys {
63 usb1 {
64 label = "USB1 eject button";
65 linux,code = <BTN_1>;
66 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
67 debounce-interval = <60>;
68 };
69
70 usb2 {
71 label = "USB2 eject button";
72 linux,code = <BTN_2>;
73 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
74 debounce-interval = <60>;
75 };
76 };
77
78 &gpio_usb_power {
79 line-name = "nbg6716:power:usb";
80 };
81
82 &spi {
83 status = "okay";
84
85 flash@0 {
86 compatible = "jedec,spi-nor";
87 reg = <0>;
88 spi-max-frequency = <25000000>;
89
90 partitions {
91 compatible = "fixed-partitions";
92 #address-cells = <1>;
93 #size-cells = <1>;
94
95 uboot: partition@0 {
96 label = "u-boot";
97 reg = <0x000000 0x040000>;
98 read-only;
99 };
100
101 uboot_env: partition@40000 {
102 label = "u-boot-env";
103 reg = <0x040000 0x010000>;
104 };
105
106 art: partition@50000 {
107 label = "art";
108 reg = <0x050000 0x010000>;
109 read-only;
110
111 nvmem-layout {
112 compatible = "fixed-layout";
113 #address-cells = <1>;
114 #size-cells = <1>;
115
116 cal_art_5000: calibration@5000 {
117 reg = <0x5000 0x844>;
118 };
119 };
120 };
121
122 partition@60000 {
123 label = "nbu";
124 reg = <0x060000 0xfa0000>;
125 };
126 };
127 };
128 };
129
130 &nand {
131 status = "okay";
132
133 partitions {
134 compatible = "fixed-partitions";
135 #address-cells = <1>;
136 #size-cells = <1>;
137
138 partition@0 {
139 label = "zyxel_rfsd";
140 reg = <0x0 0x200000>;
141 };
142
143 partition@200000 {
144 label = "romd";
145 reg = <0x200000 0x200000>;
146 };
147
148 partition@400000 {
149 label = "header";
150 reg = <0x400000 0x100000>;
151 };
152
153 firmware@500000 {
154 label = "firmware";
155 reg = <0x500000 0x7b00000>;
156
157 compatible = "fixed-partitions";
158 #address-cells = <1>;
159 #size-cells = <1>;
160
161 partition@0 {
162 label = "kernel";
163 reg = <0x0 0x400000>;
164 };
165
166 partition@400000 {
167 label = "ubi";
168 reg = <0x400000 0x7700000>;
169 };
170 };
171 };
172 };
173
174 &pcie1 {
175 status = "okay";
176
177 wifi@0,0 {
178 compatible = "qcom,ath10k";
179 reg = <0 0 0 0 0>;
180 nvmem-cells = <&cal_art_5000>;
181 nvmem-cell-names = "calibration";
182 qcom,ath10k-calibration-variant = "ZyXEL-NBG6716";
183 };
184 };