9f66b1c64213ea92450d69732364d64407fa701c
[openwrt/staging/hauke.git] / target / linux / ath79 / dts / qca9561_tplink_archer-c59-v2.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca9561_tplink_archer-c5x.dtsi"
4
5 / {
6 compatible = "tplink,archer-c59-v2", "qca,qca9560";
7 model = "TP-Link Archer C59 v2";
8
9 aliases {
10 label-mac-device = &eth1;
11 };
12 };
13
14 &leds {
15 usb {
16 label = "green:usb";
17 gpios = <&led_gpio 7 GPIO_ACTIVE_LOW>;
18 linux,default-trigger = "usbport";
19 trigger-sources = <&hub_port0>;
20 };
21 };
22
23 &usb0 {
24 status = "okay";
25 };
26
27 &usb_phy0 {
28 status = "okay";
29 };
30
31 &spi {
32 status = "okay";
33
34 flash@0 {
35 compatible = "jedec,spi-nor";
36 reg = <0>;
37 spi-max-frequency = <25000000>;
38
39 partitions {
40 compatible = "fixed-partitions";
41 #address-cells = <1>;
42 #size-cells = <1>;
43
44 partition@0 {
45 label = "factory-boot";
46 reg = <0x000000 0x020000>;
47 read-only;
48 };
49
50 partition@20000 {
51 label = "u-boot";
52 reg = <0x020000 0x010000>;
53 read-only;
54 };
55
56 info: partition@30000 {
57 label = "info";
58 reg = <0x030000 0x010000>;
59 read-only;
60
61 nvmem-layout {
62 compatible = "fixed-layout";
63 #address-cells = <1>;
64 #size-cells = <1>;
65
66 macaddr_info_8: macaddr@8 {
67 reg = <0x8 0x6>;
68 };
69 };
70 };
71
72 partition@40000 {
73 compatible = "denx,uimage";
74 label = "firmware";
75 reg = <0x040000 0xe10000>;
76 };
77
78 partition@e50000 {
79 label = "tplink";
80 reg = <0xe50000 0x1a0000>;
81 read-only;
82 };
83
84 art: partition@ff0000 {
85 label = "art";
86 reg = <0xff0000 0x010000>;
87 read-only;
88 };
89 };
90 };
91 };
92
93 &eth0 {
94 nvmem-cells = <&macaddr_info_8>;
95 nvmem-cell-names = "mac-address";
96 mac-address-increment = <1>;
97 };
98
99 &eth1 {
100 nvmem-cells = <&macaddr_info_8>;
101 nvmem-cell-names = "mac-address";
102 };
103
104 &wmac {
105 mtd-cal-data = <&art 0x1000>;
106
107 nvmem-cells = <&macaddr_info_8>;
108 nvmem-cell-names = "mac-address";
109 };