64778df495c679e6181056a6ccb5db5eb5fb51d1
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9561_tplink_archer-c59-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-c59-v1", "qca,qca9560";
11 model = "TP-LINK Archer C59 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 usb {
68 label = "tp-link:green:usb";
69 gpios = <&led_gpio 7 GPIO_ACTIVE_LOW>;
70 default-state = "off";
71 linux,default-trigger = "usbport";
72 trigger-sources = <&hub_port>;
73 };
74 };
75 };
76
77 &usb0 {
78 #address-cells = <1>;
79 #size-cells = <0>;
80 status = "okay";
81
82 hub_port: port@1 {
83 reg = <1>;
84 #trigger-source-cells = <0>;
85 };
86 };
87
88 &usb_phy0 {
89 status = "okay";
90 };
91
92 &spi {
93 status = "okay";
94 num-cs = <1>;
95
96 flash@0 {
97 compatible = "jedec,spi-nor";
98 reg = <0>;
99 spi-max-frequency = <25000000>;
100
101 partitions {
102 compatible = "fixed-partitions";
103 #address-cells = <1>;
104 #size-cells = <1>;
105
106 partition@0 {
107 label = "u-boot";
108 reg = <0x000000 0x010000>;
109 read-only;
110 };
111
112 mac: partition@10000 {
113 label = "mac";
114 reg = <0x010000 0x010000>;
115 read-only;
116 };
117
118 partition@20000 {
119 compatible = "denx,uimage";
120 label = "firmware";
121 reg = <0x020000 0xe30000>;
122 };
123
124 partition@e50000 {
125 label = "tplink";
126 reg = <0xe50000 0x1a0000>;
127 read-only;
128 };
129
130 art: partition@ff0000 {
131 label = "art";
132 reg = <0xff0000 0x010000>;
133 read-only;
134 };
135 };
136 };
137 };
138
139 &eth0 {
140 status = "okay";
141 mtd-mac-address = <&mac 0x8>;
142 mtd-mac-address-increment = <1>;
143 };
144
145 &eth1 {
146 status = "okay";
147 mtd-mac-address = <&mac 0x8>;
148 };
149
150 &wmac {
151 status = "okay";
152 mtd-cal-data = <&art 0x1000>;
153 mtd-mac-address = <&mac 0x8>;
154 };