fe217f206e0f0546c6ba7b02f721b1b2e7b89fc1
[openwrt/staging/hauke.git] / target / linux / ath79 / dts / qca9561_tplink_archer-c60-v2.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-v2", "qca,qca9561";
7 model = "TP-Link Archer C60 v2";
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 = "factory-boot";
41 reg = <0x000000 0x01fb00>;
42 read-only;
43 };
44
45 info: partition@1fb00 {
46 label = "info";
47 reg = <0x01fb00 0x000500>;
48 read-only;
49
50 nvmem-layout {
51 compatible = "fixed-layout";
52 #address-cells = <1>;
53 #size-cells = <1>;
54
55 macaddr_info_8: macaddr@8 {
56 reg = <0x8 0x6>;
57 };
58 };
59 };
60
61 partition@20000 {
62 label = "u-boot";
63 reg = <0x020000 0x010000>;
64 read-only;
65 };
66
67 partition@30000 {
68 compatible = "denx,uimage";
69 label = "firmware";
70 reg = <0x030000 0x7a0000>;
71 };
72
73 partition@7d0000 {
74 label = "tplink";
75 reg = <0x7d0000 0x020000>;
76 read-only;
77 };
78
79 art: partition@7f0000 {
80 label = "art";
81 reg = <0x7f0000 0x010000>;
82 read-only;
83 };
84 };
85 };
86 };
87
88 &eth0 {
89 nvmem-cells = <&macaddr_info_8>;
90 nvmem-cell-names = "mac-address";
91 mac-address-increment = <1>;
92 };
93
94 &eth1 {
95 nvmem-cells = <&macaddr_info_8>;
96 nvmem-cell-names = "mac-address";
97 };
98
99 &wmac {
100 mtd-cal-data = <&art 0x1000>;
101
102 nvmem-cells = <&macaddr_info_8>;
103 nvmem-cell-names = "mac-address";
104 };