ath79: TP-Link EAP245 v3: convert radios to nvmem-cells
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9558_tplink_archer-c7-v2.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca9558_tplink_archer-c.dtsi"
4
5 / {
6 compatible = "tplink,archer-c7-v2", "qca,qca9558";
7 model = "TP-Link Archer C7 v2";
8
9 aliases {
10 label-mac-device = &eth1;
11 };
12 };
13
14 &keys {
15 rfkill {
16 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
17 linux,code = <KEY_RFKILL>;
18 linux,input-type = <EV_SW>;
19 debounce-interval = <60>;
20 };
21 };
22
23 &leds {
24 wlan5g {
25 label = "green:wlan5g";
26 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
27 linux,default-trigger = "phy0tpt";
28 };
29 };
30
31 &mtdparts {
32 uboot: partition@0 {
33 label = "u-boot";
34 reg = <0x000000 0x020000>;
35 read-only;
36 };
37
38 partition@20000 {
39 label = "firmware";
40 reg = <0x020000 0xfd0000>;
41 compatible = "tplink,firmware";
42 };
43
44 art: partition@ff0000 {
45 label = "art";
46 reg = <0xff0000 0x010000>;
47 read-only;
48
49 compatible = "nvmem-cells";
50 #address-cells = <1>;
51 #size-cells = <1>;
52
53 calibration_art_1000: calibration@1000 {
54 reg = <0x1000 0x440>;
55 };
56
57 calibration_art_5000: calibration@5000 {
58 reg = <0x5000 0x844>;
59 };
60 };
61 };
62
63 &eth0 {
64 nvmem-cells = <&macaddr_uboot_1fc00>;
65 nvmem-cell-names = "mac-address";
66 mac-address-increment = <1>;
67 };
68
69 &eth1 {
70 nvmem-cells = <&macaddr_uboot_1fc00>;
71 nvmem-cell-names = "mac-address";
72 };
73
74 &pcie1 {
75 status = "okay";
76
77 wifi@0,0 {
78 compatible = "qcom,ath10k";
79 reg = <0 0 0 0 0>;
80
81 mac-address-increment = <(-1)>;
82 nvmem-cells = <&macaddr_uboot_1fc00>, <&calibration_art_5000>;
83 nvmem-cell-names = "mac-address", "calibration";
84 };
85 };
86
87 &wmac {
88 nvmem-cells = <&macaddr_uboot_1fc00>, <&calibration_art_1000>;
89 nvmem-cell-names = "mac-address", "calibration";
90 };
91
92 &uboot {
93 compatible = "nvmem-cells";
94 #address-cells = <1>;
95 #size-cells = <1>;
96
97 macaddr_uboot_1fc00: macaddr@1fc00 {
98 reg = <0x1fc00 0x6>;
99 };
100 };