ath79: drop and consolidate redundant chosen/bootargs
[openwrt/staging/chunkeey.git] / target / linux / ath79 / dts / qca9563_tplink_archer-x7-v5.dtsi
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 "qca956x.dtsi"
8
9 / {
10 aliases {
11 led-boot = &system;
12 led-failsafe = &system;
13 led-running = &system;
14 led-upgrade = &system;
15 };
16
17 gpio_leds: leds {
18 compatible = "gpio-leds";
19
20 system: system {
21 label = "tp-link:green:system";
22 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
23 default-state = "on";
24 };
25
26 usb {
27 label = "tp-link:green:usb";
28 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
29 trigger-sources = <&hub_port0>;
30 linux,default-trigger = "usbport";
31 };
32
33 wlan5g {
34 label = "tp-link:green:wlan5g";
35 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
36 linux,default-trigger = "phy0tpt";
37 };
38
39 led_wlan2g: wlan2g {
40 label = "tp-link:green:wlan2g";
41 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
42 linux,default-trigger = "phy1tpt";
43 };
44
45 wan {
46 label = "tp-link:green:wan";
47 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
48 };
49
50 wan_fail {
51 label = "tp-link:orange:wan";
52 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
53 };
54
55 lan1 {
56 label = "tp-link:green:lan1";
57 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
58 };
59
60 lan2 {
61 label = "tp-link:green:lan2";
62 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
63 };
64
65 lan3 {
66 label = "tp-link:green:lan3";
67 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
68 };
69
70 lan4 {
71 label = "tp-link:green:lan4";
72 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
73 };
74
75 wps {
76 label = "tp-link:green:wps";
77 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
78 };
79 };
80
81 gpio_keys: keys {
82 compatible = "gpio-keys";
83
84 wps {
85 label = "WPS button";
86 linux,code = <KEY_WPS_BUTTON>;
87 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
88 debounce-interval = <60>;
89 };
90 };
91
92 gpio-export {
93 compatible = "gpio-export";
94
95 gpio_usb_power {
96 gpio-export,name = "tp-link:power:usb";
97 gpio-export,output = <1>;
98 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
99 };
100 };
101 };
102
103 &pcie {
104 status = "okay";
105 };
106
107 &uart {
108 status = "okay";
109 };
110
111 &gpio {
112 status = "okay";
113 };
114
115 &usb_phy0 {
116 status = "okay";
117 };
118
119 &usb0 {
120 #address-cells = <1>;
121 #size-cells = <0>;
122 status = "okay";
123
124 hub_port0: port@1 {
125 reg = <1>;
126 #trigger-source-cells = <0>;
127 };
128 };
129
130 &spi {
131 status = "okay";
132 num-cs = <1>;
133
134 flash@0 {
135 compatible = "jedec,spi-nor";
136 reg = <0>;
137 spi-max-frequency = <25000000>;
138
139 mtdparts: partitions {
140 compatible = "fixed-partitions";
141 #address-cells = <1>;
142 #size-cells = <1>;
143 };
144 };
145 };
146
147 &mdio0 {
148 status = "okay";
149
150 phy-mask = <0>;
151
152 phy0: ethernet-phy@0 {
153 reg = <0>;
154 phy-mode = "sgmii";
155 qca,mib-poll-interval = <500>;
156
157 qca,ar8327-initvals = <
158 0x04 0x80080080 /* PORT0 PAD MODE CTRL */
159 0x08 0x00000000 /* PORT5 PAD MODE CTRL */
160 0x0c 0x00000000 /* PORT6 PAD MODE CTRL */
161 0x10 0x00000080 /* POWER_ON_STRIP */
162 0x7c 0x0000007e /* PORT0_STATUS */
163 0x94 0x00000200 /* PORT6_STATUS */
164 >;
165 };
166 };
167
168 &eth0 {
169 status = "okay";
170
171 pll-data = <0x03000101 0x00000101 0x00001919>;
172
173 phy-mode = "sgmii";
174 mtd-mac-address = <&info 0x8>;
175 phy-handle = <&phy0>;
176 };
177
178 &wmac {
179 status = "okay";
180 mtd-cal-data = <&art 0x1000>;
181 mtd-mac-address = <&info 0x8>;
182 };