ath79: convert ath10k calibration data to NVMEM (binary MAC)
[openwrt/staging/dangole.git] / target / linux / ath79 / dts / qca9558_comfast_cf-e380ac-v2.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 = "comfast,cf-e380ac-v2", "qca,qca9558";
10 model = "COMFAST CF-E380AC";
11
12 aliases {
13 serial0 = &uart;
14 label-mac-device = &eth1;
15 led-boot = &led_lan;
16 led-failsafe = &led_lan;
17 led-upgrade = &led_lan;
18 };
19
20 keys {
21 compatible = "gpio-keys";
22
23 reset {
24 label = "reset";
25 linux,code = <KEY_RESTART>;
26 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
27 debounce-interval = <60>;
28 };
29 };
30
31 leds {
32 compatible = "gpio-leds";
33
34 pinctrl-names = "default";
35 pinctrl-0 = <&jtag_disable_pins>;
36
37 led_lan: lan {
38 label = "green:lan";
39 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
40 };
41
42 wlan2g {
43 label = "blue:wlan2g";
44 gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
45 linux,default-trigger = "phy1tpt";
46 };
47
48 wlan5g {
49 label = "red:wlan5g";
50 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
51 linux,default-trigger = "phy0tpt";
52 };
53 };
54
55 watchdog {
56 compatible = "linux,wdt-gpio";
57
58 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
59 hw_algo = "toggle";
60 hw_margin_ms = <1200>;
61 always-running;
62 };
63 };
64
65 &eth0 {
66 status = "okay";
67 mtd-mac-address = <&art 0x0>;
68 };
69
70
71 &spi {
72 status = "okay";
73
74 flash@0 {
75 compatible = "jedec,spi-nor";
76 reg = <0>;
77 spi-max-frequency = <50000000>;
78
79 partitions {
80 compatible = "fixed-partitions";
81 #address-cells = <1>;
82 #size-cells = <1>;
83
84 partition@0 {
85 label = "u-boot";
86 reg = <0x000000 0x040000>;
87 read-only;
88 };
89
90 art: partition@40000 {
91 label = "art";
92 reg = <0x040000 0x010000>;
93 read-only;
94
95 nvmem-layout {
96 compatible = "fixed-layout";
97 #address-cells = <1>;
98 #size-cells = <1>;
99
100 macaddr_art_0: macaddr@0 {
101 compatible = "mac-base";
102 reg = <0x0 0x6>;
103 #nvmem-cell-cells = <1>;
104 };
105
106 cal_art_5000: calibration@5000 {
107 reg = <0x5000 0x844>;
108 };
109 };
110 };
111
112 partition@50000 {
113 compatible = "denx,uimage";
114 label = "firmware";
115 reg = <0x050000 0x0fa0000>;
116 };
117
118 partition@ff0000 {
119 label = "art-backup";
120 reg = <0xff0000 0x010000>;
121 read-only;
122 };
123 };
124 };
125 };
126
127 &eth0 {
128 status = "okay";
129
130 nvmem-cells = <&macaddr_art_0 0>;
131 nvmem-cell-names = "mac-address";
132
133 pll-data = <0xbe000000 0xb0000101 0xb0001313>;
134
135 fixed-link {
136 speed = <1000>;
137 full-duplex;
138 };
139 };
140
141 &pcie0 {
142 status = "okay";
143
144 wifi@0,0 {
145 compatible = "qcom,ath10k";
146 reg = <0x0000 0 0 0 0>;
147 nvmem-cells = <&cal_art_5000>, <&macaddr_art_0 2>;
148 nvmem-cell-names = "calibration", "mac-address";
149 };
150 };
151
152 &wdt {
153 status = "okay";
154 };
155
156 &wmac {
157 status = "okay";
158
159 mtd-cal-data = <&art 0x1000>;
160 nvmem-cells = <&macaddr_art_0 10>;
161 nvmem-cell-names = "mac-address";
162 };