ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9558_tplink_archer-c.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca955x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 aliases {
10 led-boot = &led_system;
11 led-failsafe = &led_system;
12 led-running = &led_system;
13 led-upgrade = &led_system;
14 };
15
16 leds: leds {
17 compatible = "gpio-leds";
18
19 led_system: system {
20 label = "green:system";
21 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
22 default-state = "on";
23 };
24
25 usb1 {
26 label = "green:usb1";
27 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
28 trigger-sources = <&hub_port1>;
29 linux,default-trigger = "usbport";
30 };
31
32 usb2 {
33 label = "green:usb2";
34 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
35 trigger-sources = <&hub_port0>;
36 linux,default-trigger = "usbport";
37 };
38
39 wlan2g {
40 label = "green:wlan2g";
41 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
42 linux,default-trigger = "phy1tpt";
43 };
44
45 qss {
46 label = "green:qss";
47 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
48 };
49 };
50
51 keys: keys {
52 compatible = "gpio-keys";
53
54 reset {
55 label = "Reset button";
56 linux,code = <KEY_RESTART>;
57 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
58 debounce-interval = <60>;
59 };
60 };
61
62 gpio-export {
63 compatible = "gpio-export";
64
65 gpio_usb1_power {
66 gpio-export,name = "tp-link:power:usb1";
67 gpio-export,output = <1>;
68 gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
69 };
70
71 gpio_usb2_power {
72 gpio-export,name = "tp-link:power:usb2";
73 gpio-export,output = <1>;
74 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
75 };
76 };
77 };
78
79 &pcie1 {
80 status = "okay";
81 };
82
83 &usb_phy0 {
84 status = "okay";
85 };
86
87 &usb0 {
88 status = "okay";
89 };
90
91 &usb_phy1 {
92 status = "okay";
93 };
94
95 &usb1 {
96 status = "okay";
97 };
98
99 &spi {
100 status = "okay";
101
102 flash@0 {
103 compatible = "jedec,spi-nor";
104 reg = <0>;
105 spi-max-frequency = <25000000>;
106
107 mtdparts: partitions {
108 compatible = "fixed-partitions";
109 #address-cells = <1>;
110 #size-cells = <1>;
111 };
112 };
113 };
114
115 &mdio0 {
116 status = "okay";
117
118 phy0: ethernet-phy@0 {
119 reg = <0>;
120
121 qca,ar8327-initvals = <
122 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
123 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
124 0x50 0xc737c737 /* LED_CTRL0 */
125 0x54 0x00000000 /* LED_CTRL1 */
126 0x58 0x00000000 /* LED_CTRL2 */
127 0x5c 0x0030c300 /* LED_CTRL3 */
128 0x7c 0x0000007e /* PORT0_STATUS */
129 0x94 0x0000007e /* PORT6 STATUS */
130 >;
131 };
132 };
133
134 &eth0 {
135 status = "okay";
136
137 phy-handle = <&phy0>;
138 pll-data = <0x56000000 0x00000101 0x00001616>;
139
140 gmac-config {
141 device = <&gmac>;
142 rgmii-enabled = <1>;
143 };
144 };
145
146 &eth1 {
147 status = "okay";
148
149 pll-data = <0x03000101 0x00000101 0x00001616>;
150
151 fixed-link {
152 speed = <1000>;
153 full-duplex;
154 };
155 };
156
157 &wmac {
158 status = "okay";
159 };