720a2b01a9c81d47e25ce3a10b31a123d7b63066
[openwrt/staging/xback.git] / target / linux / ath79 / dts / qca9561_tplink_archer-c59-v1.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-v1", "qca,qca9560";
7 model = "TP-Link Archer C59 v1";
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 = "u-boot";
46 reg = <0x000000 0x010000>;
47 read-only;
48 };
49
50 info: partition@10000 {
51 label = "info";
52 reg = <0x010000 0x010000>;
53 read-only;
54
55 nvmem-layout {
56 compatible = "fixed-layout";
57 #address-cells = <1>;
58 #size-cells = <1>;
59
60 macaddr_info_8: macaddr@8 {
61 compatible = "mac-base";
62 reg = <0x8 0x6>;
63 #nvmem-cell-cells = <1>;
64 };
65 };
66 };
67
68 partition@20000 {
69 compatible = "denx,uimage";
70 label = "firmware";
71 reg = <0x020000 0xe30000>;
72 };
73
74 partition@e50000 {
75 label = "tplink";
76 reg = <0xe50000 0x1a0000>;
77 read-only;
78 };
79
80 art: partition@ff0000 {
81 label = "art";
82 reg = <0xff0000 0x010000>;
83 read-only;
84 };
85 };
86 };
87 };
88
89 &eth0 {
90 nvmem-cells = <&macaddr_info_8 1>;
91 nvmem-cell-names = "mac-address";
92 };
93
94 &eth1 {
95 nvmem-cells = <&macaddr_info_8 0>;
96 nvmem-cell-names = "mac-address";
97 };
98
99 &wmac {
100 mtd-cal-data = <&art 0x1000>;
101
102 nvmem-cells = <&macaddr_info_8 0>;
103 nvmem-cell-names = "mac-address";
104 };