85012d3aace036a53d725c83925bbbe937a54ca3
[openwrt/staging/hauke.git] / target / linux / ath79 / dts / qca9558_tplink_archer-c5-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-c5-v1", "qca,qca9558";
7 model = "TP-Link Archer C5 v1";
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 };
50
51 &eth0 {
52 nvmem-cells = <&macaddr_uboot_1fc00>;
53 nvmem-cell-names = "mac-address";
54 mac-address-increment = <1>;
55 };
56
57 &eth1 {
58 nvmem-cells = <&macaddr_uboot_1fc00>;
59 nvmem-cell-names = "mac-address";
60 };
61
62 &wmac {
63 mtd-cal-data = <&art 0x1000>;
64
65 nvmem-cells = <&macaddr_uboot_1fc00>;
66 nvmem-cell-names = "mac-address";
67 };
68
69 &uboot {
70 compatible = "nvmem-cells";
71 #address-cells = <1>;
72 #size-cells = <1>;
73
74 macaddr_uboot_1fc00: macaddr@1fc00 {
75 reg = <0x1fc00 0x6>;
76 };
77 };