ccfebcc7ff85e07b7e855a2b083c9f2608d81144
[openwrt/staging/hauke.git] / target / linux / ath79 / dts / qca9558_tplink_tl-wdr7500-v3.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,tl-wdr7500-v3", "qca,qca9558";
7 model = "TP-Link TL-WDR7500 v3";
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 reg = <0x1fc00 0x6>;
44 };
45 };
46 };
47
48 partition@20000 {
49 label = "firmware";
50 compatible = "tplink,firmware";
51 reg = <0x020000 0x7d0000>;
52 };
53
54 art: partition@7f0000 {
55 label = "art";
56 reg = <0x7f0000 0x010000>;
57 read-only;
58 };
59 };
60
61 &eth0 {
62 nvmem-cells = <&macaddr_uboot_1fc00>;
63 nvmem-cell-names = "mac-address";
64 mac-address-increment = <1>;
65 };
66
67 &eth1 {
68 nvmem-cells = <&macaddr_uboot_1fc00>;
69 nvmem-cell-names = "mac-address";
70 };
71
72 &wmac {
73 mtd-cal-data = <&art 0x1000>;
74
75 nvmem-cells = <&macaddr_uboot_1fc00>;
76 nvmem-cell-names = "mac-address";
77 };