ath79: qca: remove mac-address-increment
[openwrt/openwrt.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 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 reg = <0x020000 0xfd0000>;
53 compatible = "tplink,firmware";
54 };
55
56 art: partition@ff0000 {
57 label = "art";
58 reg = <0xff0000 0x010000>;
59 read-only;
60 };
61 };
62
63 &eth0 {
64 nvmem-cells = <&macaddr_uboot_1fc00 1>;
65 nvmem-cell-names = "mac-address";
66 };
67
68 &eth1 {
69 nvmem-cells = <&macaddr_uboot_1fc00 0>;
70 nvmem-cell-names = "mac-address";
71 };
72
73 &wmac {
74 mtd-cal-data = <&art 0x1000>;
75
76 nvmem-cells = <&macaddr_uboot_1fc00 0>;
77 nvmem-cell-names = "mac-address";
78 };