generic: 6.1, 6.6: remove patch which breaks WAN on MT7621
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9563_tplink_tl-wpa8630.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca956x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 aliases {
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
15 };
16
17 keys {
18 compatible = "gpio-keys";
19
20 reset {
21 label = "Reset button";
22 linux,code = <KEY_RESTART>;
23 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
24 debounce-interval = <60>;
25 };
26
27 leds {
28 label = "LED control button";
29 linux,code = <KEY_LIGHTS_TOGGLE>;
30 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
31 debounce-interval = <60>;
32 };
33
34 pair {
35 label = "Pair button";
36 linux,code = <BTN_1>;
37 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
38 debounce-interval = <60>;
39 };
40
41 wifi {
42 label = "WiFi button";
43 linux,code = <KEY_RFKILL>;
44 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
45 debounce-interval = <60>;
46 };
47 };
48
49 leds {
50 compatible = "gpio-leds";
51
52 led_power: power {
53 function = LED_FUNCTION_POWER;
54 color = <LED_COLOR_ID_GREEN>;
55 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
56 };
57
58 lan {
59 function = LED_FUNCTION_LAN;
60 color = <LED_COLOR_ID_GREEN>;
61 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
62 };
63
64 wifi2g {
65 label = "green:wifi2g";
66 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
67 linux,default-trigger = "phy1tpt";
68 };
69
70 wifi5g {
71 label = "green:wifi5g";
72 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
73 linux,default-trigger = "phy0tpt";
74 };
75 };
76
77 gpio-export {
78 compatible = "gpio-export";
79
80 led_control {
81 gpio-export,name = "tp-link:led:control";
82 gpio-export,output = <0>;
83 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
84 };
85 };
86 };
87
88 &spi {
89 status = "okay";
90
91 flash@0 {
92 compatible = "jedec,spi-nor";
93 reg = <0>;
94 spi-max-frequency = <25000000>;
95
96 partitions: partitions {
97 compatible = "fixed-partitions";
98 #address-cells = <1>;
99 #size-cells = <1>;
100 };
101 };
102 };
103
104 &pcie {
105 status = "okay";
106 };
107
108 &mdio0 {
109 status = "okay";
110
111 phy0: ethernet-phy@0 {
112 reg = <0>;
113 phy-mode = "sgmii";
114 qca,mib-poll-interval = <500>;
115
116 qca,ar8327-initvals = <
117 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
118 0x7c 0x0000007e /* PORT0_STATUS */
119 >;
120 };
121 };
122
123 &eth0 {
124 status = "okay";
125
126 phy-handle = <&phy0>;
127 phy-mode = "sgmii";
128 };
129
130 &wmac {
131 status = "okay";
132 };