ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9558_tplink_archer-c7-v1.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-v1", "qca,qca9558";
7 model = "TP-Link Archer C7 v1";
8
9 aliases {
10 label-mac-device = &eth1;
11 };
12 };
13
14 &keys {
15 rfkill {
16 gpios = <&gpio 13 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 nvmem-layout {
38 compatible = "fixed-layout";
39 #address-cells = <1>;
40 #size-cells = <1>;
41
42 macaddr_uboot_1fc00: macaddr@1fc00 {
43 compatible = "mac-base";
44 reg = <0x1fc00 0x6>;
45 #nvmem-cell-cells = <1>;
46 };
47 };
48 };
49
50 partition@20000 {
51 label = "firmware";
52 compatible = "tplink,firmware";
53 reg = <0x020000 0x7d0000>;
54 };
55
56 partition@7f0000 {
57 label = "art";
58 reg = <0x7f0000 0x010000>;
59 read-only;
60
61 nvmem-layout {
62 compatible = "fixed-layout";
63 #address-cells = <1>;
64 #size-cells = <1>;
65
66 calibration_art_1000: calibration@1000 {
67 reg = <0x1000 0x440>;
68 };
69 };
70 };
71 };
72
73 &eth0 {
74 nvmem-cells = <&macaddr_uboot_1fc00 1>;
75 nvmem-cell-names = "mac-address";
76 };
77
78 &eth1 {
79 nvmem-cells = <&macaddr_uboot_1fc00 0>;
80 nvmem-cell-names = "mac-address";
81 };
82
83 &wmac {
84 nvmem-cells = <&macaddr_uboot_1fc00 0>, <&calibration_art_1000>;
85 nvmem-cell-names = "mac-address", "calibration";
86 };