ath79: use gpios for switch management in WZR-HP-G300NH variants
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9561_tplink_archer-c60-v3.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca9561_tplink_archer-c6x.dtsi"
4
5 / {
6 compatible = "tplink,archer-c60-v3", "qca,qca9561";
7 model = "TP-Link Archer C60 v3";
8
9 aliases {
10 label-mac-device = &eth1;
11 };
12 };
13
14 &leds {
15 wan_amber {
16 label = "amber:wan";
17 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
18 };
19 };
20
21 &spi {
22 status = "okay";
23
24 flash@0 {
25 compatible = "jedec,spi-nor";
26 reg = <0>;
27 spi-max-frequency = <25000000>;
28
29 partitions {
30 compatible = "fixed-partitions";
31 #address-cells = <1>;
32 #size-cells = <1>;
33
34 partition@0 {
35 label = "factory-boot";
36 reg = <0x000000 0x01fb00>;
37 read-only;
38 };
39
40 info: partition@1fb00 {
41 label = "info";
42 reg = <0x01fb00 0x000500>;
43 read-only;
44 };
45
46 partition@20000 {
47 label = "u-boot";
48 reg = <0x020000 0x010000>;
49 read-only;
50 };
51
52 partition@30000 {
53 compatible = "denx,uimage";
54 label = "firmware";
55 reg = <0x030000 0x7a0000>;
56 };
57
58 partition@7d0000 {
59 label = "tplink";
60 reg = <0x7d0000 0x020000>;
61 read-only;
62 };
63
64 art: partition@7f0000 {
65 label = "art";
66 reg = <0x7f0000 0x010000>;
67 read-only;
68 };
69 };
70 };
71 };
72
73 &eth0 {
74 nvmem-cells = <&macaddr_info_8>;
75 nvmem-cell-names = "mac-address";
76 mac-address-increment = <1>;
77 };
78
79 &eth1 {
80 nvmem-cells = <&macaddr_info_8>;
81 nvmem-cell-names = "mac-address";
82 };
83
84 &wmac {
85 mtd-cal-data = <&art 0x1000>;
86
87 nvmem-cells = <&macaddr_info_8>;
88 nvmem-cell-names = "mac-address";
89 };
90
91 &info {
92 compatible = "nvmem-cells";
93 #address-cells = <1>;
94 #size-cells = <1>;
95
96 macaddr_info_8: macaddr@8 {
97 reg = <0x8 0x6>;
98 };
99 };