ath79: add support for COMFAST CF-E380AC v2
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9561_tplink_archer-c60-v1.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-v1", "qca,qca9561";
7 model = "TP-Link Archer C60 v1";
8
9 aliases {
10 label-mac-device = &eth1;
11 };
12 };
13
14 &leds {
15 wan_amber {
16 label = "amber:wan";
17 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
18 };
19
20 wps {
21 label = "green:wps";
22 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
23 };
24 };
25
26 &spi {
27 status = "okay";
28
29 flash@0 {
30 compatible = "jedec,spi-nor";
31 reg = <0>;
32 spi-max-frequency = <25000000>;
33
34 partitions {
35 compatible = "fixed-partitions";
36 #address-cells = <1>;
37 #size-cells = <1>;
38
39 partition@0 {
40 label = "u-boot";
41 reg = <0x000000 0x010000>;
42 read-only;
43 };
44
45 info: partition@10000 {
46 label = "info";
47 reg = <0x010000 0x010000>;
48 read-only;
49 };
50
51 partition@20000 {
52 compatible = "denx,uimage";
53 label = "firmware";
54 reg = <0x020000 0x7c0000>;
55 };
56
57 partition@7e0000 {
58 label = "tplink";
59 reg = <0x7e0000 0x010000>;
60 read-only;
61 };
62
63 art: partition@7f0000 {
64 label = "art";
65 reg = <0x7f0000 0x010000>;
66 read-only;
67 };
68 };
69 };
70 };
71
72 &eth0 {
73 nvmem-cells = <&macaddr_info_8>;
74 nvmem-cell-names = "mac-address";
75 mac-address-increment = <1>;
76 };
77
78 &eth1 {
79 nvmem-cells = <&macaddr_info_8>;
80 nvmem-cell-names = "mac-address";
81 };
82
83 &wmac {
84 mtd-cal-data = <&art 0x1000>;
85
86 nvmem-cells = <&macaddr_info_8>;
87 nvmem-cell-names = "mac-address";
88 };
89
90 &info {
91 compatible = "nvmem-cells";
92 #address-cells = <1>;
93 #size-cells = <1>;
94
95 macaddr_info_8: macaddr@8 {
96 reg = <0x8 0x6>;
97 };
98 };