ath79: apply Engenius ECB1750 style to OpenMesh MR900 RGMII cfg
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9563_tplink_archer-c6-v2-us.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca9563_tplink_archer-x6-v2.dtsi"
4
5 / {
6 compatible = "tplink,archer-c6-v2-us", "qca,qca9563";
7 model = "TP-Link Archer C6 v2 (US) / A6 v2 (US/TW)";
8
9 aliases {
10 led-boot = &led_power;
11 led-failsafe = &led_power;
12 led-running = &led_power;
13 led-upgrade = &led_power;
14 };
15
16 leds {
17 compatible = "gpio-leds";
18
19 led_power: power {
20 label = "green:power";
21 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
22 default-state = "on";
23 };
24
25 wlan2g {
26 label = "green:wlan2g";
27 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
28 linux,default-trigger = "phy1tpt";
29 };
30
31 wlan5g {
32 label = "green:wlan5g";
33 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
34 linux,default-trigger = "phy0tpt";
35 };
36
37 lan {
38 label = "green:lan";
39 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
40 };
41
42 wan {
43 label = "green:wan";
44 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
45 };
46
47 wan_fail {
48 label = "amber:wan";
49 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
50 };
51
52 wps {
53 label = "green:wps";
54 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
55 };
56 };
57
58 keys {
59 compatible = "gpio-keys";
60
61 reset {
62 label = "Reset button";
63 linux,code = <KEY_RESTART>;
64 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
65 debounce-interval = <60>;
66 };
67
68 wps {
69 label = "WPS button";
70 linux,code = <KEY_WPS_BUTTON>;
71 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
72 debounce-interval = <60>;
73 };
74 };
75 };
76
77 &spi {
78 status = "okay";
79
80 flash@0 {
81 compatible = "jedec,spi-nor";
82 reg = <0>;
83 spi-max-frequency = <25000000>;
84
85 partitions {
86 compatible = "fixed-partitions";
87 #address-cells = <1>;
88 #size-cells = <1>;
89
90 partition@0 {
91 label = "factory-boot";
92 reg = <0x000000 0x020000>;
93 read-only;
94 };
95
96 info: partition@20000 {
97 label = "info";
98 reg = <0x020000 0x010000>;
99 read-only;
100 };
101
102 partition@30000 {
103 label = "u-boot";
104 reg = <0x030000 0x020000>;
105 read-only;
106 };
107
108 partition@50000 {
109 compatible = "denx,uimage";
110 label = "firmware";
111 reg = <0x050000 0xf80000>;
112 };
113
114 partition@fd0000 {
115 label = "tplink";
116 reg = <0xfd0000 0x020000>;
117 read-only;
118 };
119
120 art: partition@ff0000 {
121 label = "art";
122 reg = <0xff0000 0x010000>;
123 read-only;
124 };
125 };
126 };
127 };