rockchip: add ArmSoM Sige7 support
[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 <dt-bindings/leds/common.h>
4
5 #include "qca9561_tplink_archer-c6x.dtsi"
6
7 / {
8 compatible = "tplink,archer-c60-v1", "qca,qca9561";
9 model = "TP-Link Archer C60 v1";
10
11 aliases {
12 label-mac-device = &eth1;
13 };
14 };
15
16 &leds {
17 wan_amber {
18 function = LED_FUNCTION_WAN;
19 color = <LED_COLOR_ID_AMBER>;
20 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
21 };
22
23 wps {
24 function = LED_FUNCTION_WPS;
25 color = <LED_COLOR_ID_GREEN>;
26 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
27 };
28 };
29
30 &pcie {
31 wifi@0,0 {
32 compatible = "qcom,ath10k";
33 reg = <0x0000 0 0 0 0>;
34 nvmem-cells = <&precal_art_5000>, <&macaddr_info_8 (-1)>;
35 nvmem-cell-names = "pre-calibration", "mac-address";
36 };
37 };
38
39 &spi {
40 status = "okay";
41
42 flash@0 {
43 compatible = "jedec,spi-nor";
44 reg = <0>;
45 spi-max-frequency = <25000000>;
46
47 partitions {
48 compatible = "fixed-partitions";
49 #address-cells = <1>;
50 #size-cells = <1>;
51
52 partition@0 {
53 label = "u-boot";
54 reg = <0x000000 0x010000>;
55 read-only;
56 };
57
58 info: partition@10000 {
59 label = "info";
60 reg = <0x010000 0x010000>;
61 read-only;
62
63 nvmem-layout {
64 compatible = "fixed-layout";
65 #address-cells = <1>;
66 #size-cells = <1>;
67
68 macaddr_info_8: macaddr@8 {
69 compatible = "mac-base";
70 reg = <0x8 0x6>;
71 #nvmem-cell-cells = <1>;
72 };
73 };
74 };
75
76 partition@20000 {
77 compatible = "denx,uimage";
78 label = "firmware";
79 reg = <0x020000 0x7c0000>;
80 };
81
82 partition@7e0000 {
83 label = "tplink";
84 reg = <0x7e0000 0x010000>;
85 read-only;
86 };
87
88 art: partition@7f0000 {
89 label = "art";
90 reg = <0x7f0000 0x010000>;
91 read-only;
92
93 nvmem-layout {
94 compatible = "fixed-layout";
95 #address-cells = <1>;
96 #size-cells = <1>;
97
98 precal_art_5000: pre-calibration@5000 {
99 reg = <0x5000 0x2f20>;
100 };
101 };
102 };
103 };
104 };
105 };
106
107 &eth0 {
108 nvmem-cells = <&macaddr_info_8 1>;
109 nvmem-cell-names = "mac-address";
110 };
111
112 &eth1 {
113 nvmem-cells = <&macaddr_info_8 0>;
114 nvmem-cell-names = "mac-address";
115 };
116
117 &wmac {
118 mtd-cal-data = <&art 0x1000>;
119
120 nvmem-cells = <&macaddr_info_8 0>;
121 nvmem-cell-names = "mac-address";
122 };