0e122b4ddc1e3df6e156d0f8248bac11fc802f01
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9561_tplink_archer-c58-v1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "qca9561_tplink_archer-c5x.dtsi"
8
9 / {
10 compatible = "tplink,archer-c58-v1", "qca,qca9560";
11 model = "TP-LINK Archer C58 v1";
12
13 aliases {
14 led-boot = &power;
15 led-failsafe = &power;
16 led-running = &power;
17 led-upgrade = &power;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 power: power {
24 label = "tp-link:green:power";
25 gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
26 default-state = "on";
27 };
28
29 wlan2g {
30 label = "tp-link:green:wlan2g";
31 gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
32 linux,default-trigger = "phy1tpt";
33 default-state = "off";
34 };
35
36 wlan5g {
37 label = "tp-link:green:wlan5g";
38 gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
39 linux,default-trigger = "phy0tpt";
40 default-state = "off";
41 };
42
43 wan_green {
44 label = "tp-link:green:wan";
45 gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
46 default-state = "off";
47 };
48
49 wan_amber {
50 label = "tp-link:amber:wan";
51 gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
52 default-state = "off";
53 };
54
55 lan {
56 label = "tp-link:green:lan";
57 gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
58 default-state = "off";
59 };
60
61 wps {
62 label = "tp-link:green:wps";
63 gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
64 default-state = "off";
65 };
66 };
67 };
68
69 &spi {
70 status = "okay";
71 num-cs = <1>;
72
73 flash@0 {
74 compatible = "jedec,spi-nor";
75 reg = <0>;
76 spi-max-frequency = <25000000>;
77
78 partitions {
79 compatible = "fixed-partitions";
80 #address-cells = <1>;
81 #size-cells = <1>;
82
83 partition@0 {
84 label = "u-boot";
85 reg = <0x000000 0x010000>;
86 read-only;
87 };
88
89 mac: partition@10000 {
90 label = "mac";
91 reg = <0x010000 0x010000>;
92 read-only;
93 };
94
95 partition@20000 {
96 compatible = "denx,uimage";
97 label = "firmware";
98 reg = <0x020000 0x7c0000>;
99 };
100
101 partition@7e0000 {
102 label = "tplink";
103 reg = <0x7e0000 0x010000>;
104 read-only;
105 };
106
107 art: partition@7f0000 {
108 label = "art";
109 reg = <0x7f0000 0x010000>;
110 read-only;
111 };
112 };
113 };
114 };
115
116 &eth0 {
117 status = "okay";
118 mtd-mac-address = <&mac 0x8>;
119 mtd-mac-address-increment = <1>;
120 };
121
122 &eth1 {
123 status = "okay";
124 mtd-mac-address = <&mac 0x8>;
125 };
126
127 &wmac {
128 status = "okay";
129 mtd-cal-data = <&art 0x1000>;
130 mtd-mac-address = <&mac 0x8>;
131 };