ath79: use gpios for switch management in WZR-HP-G300NH variants
[openwrt/openwrt.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
38 partition@20000 {
39 label = "firmware";
40 compatible = "tplink,firmware";
41 reg = <0x020000 0x7d0000>;
42 };
43
44 partition@7f0000 {
45 label = "art";
46 reg = <0x7f0000 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 };
58
59 &eth0 {
60 nvmem-cells = <&macaddr_uboot_1fc00>;
61 nvmem-cell-names = "mac-address";
62 mac-address-increment = <1>;
63 };
64
65 &eth1 {
66 nvmem-cells = <&macaddr_uboot_1fc00>;
67 nvmem-cell-names = "mac-address";
68 };
69
70 &wmac {
71 nvmem-cells = <&macaddr_uboot_1fc00>, <&calibration_art_1000>;
72 nvmem-cell-names = "mac-address", "calibration";
73 };
74
75 &uboot {
76 compatible = "nvmem-cells";
77 #address-cells = <1>;
78 #size-cells = <1>;
79
80 macaddr_uboot_1fc00: macaddr@1fc00 {
81 reg = <0x1fc00 0x6>;
82 };
83 };