014222770f9aa9a5f8e1a7f3e27cfcb9b5f9f3d9
[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
51 partition@20000 {
52 label = "u-boot";
53 reg = <0x020000 0x010000>;
54 read-only;
55 };
56
57 partition@30000 {
58 compatible = "denx,uimage";
59 label = "firmware";
60 reg = <0x030000 0x7a0000>;
61 };
62
63 partition@7d0000 {
64 label = "tplink";
65 reg = <0x7d0000 0x020000>;
66 read-only;
67 };
68
69 art: partition@7f0000 {
70 label = "art";
71 reg = <0x7f0000 0x010000>;
72 read-only;
73 };
74 };
75 };
76 };
77
78 &eth0 {
79 nvmem-cells = <&macaddr_info_8>;
80 nvmem-cell-names = "mac-address";
81 mac-address-increment = <1>;
82 };
83
84 &eth1 {
85 nvmem-cells = <&macaddr_info_8>;
86 nvmem-cell-names = "mac-address";
87 };
88
89 &wmac {
90 mtd-cal-data = <&art 0x1000>;
91
92 nvmem-cells = <&macaddr_info_8>;
93 nvmem-cell-names = "mac-address";
94 };
95
96 &info {
97 compatible = "nvmem-cells";
98 #address-cells = <1>;
99 #size-cells = <1>;
100
101 macaddr_info_8: macaddr@8 {
102 reg = <0x8 0x6>;
103 };
104 };