ath79: add support for TP-Link TL-WPA8630 v1
[openwrt/staging/stintel.git] / target / linux / ath79 / dts / qca9563_tplink_tl-wpa8630.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 #include "qca956x.dtsi"
7
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 keys: keys {
17 compatible = "gpio-keys";
18
19 reset {
20 label = "Reset button";
21 linux,code = <KEY_RESTART>;
22 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
23 debounce-interval = <60>;
24 };
25
26 leds {
27 label = "LED control button";
28 linux,code = <BTN_0>;
29 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
30 debounce-interval = <60>;
31 };
32
33 pair {
34 label = "Pair button";
35 linux,code = <BTN_1>;
36 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
37 debounce-interval = <60>;
38 };
39 };
40
41 leds {
42 compatible = "gpio-leds";
43
44 led_power: power {
45 label = "tp-link:green:power";
46 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
47 };
48
49 lan {
50 label = "tp-link:green:lan";
51 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
52 };
53
54 wifi2g {
55 label = "tp-link:green:wifi2g";
56 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
57 linux,default-trigger = "phy1tpt";
58 };
59
60 wifi5g {
61 label = "tp-link:green:wifi5g";
62 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
63 linux,default-trigger = "phy0tpt";
64 };
65 };
66 };
67
68 &spi {
69 status = "okay";
70
71 num-cs = <1>;
72
73 flash@0 {
74 compatible = "jedec,spi-nor";
75 reg = <0>;
76 spi-max-frequency = <25000000>;
77
78 partitions: partitions {
79 compatible = "fixed-partitions";
80 #address-cells = <1>;
81 #size-cells = <1>;
82 };
83 };
84 };
85
86 &pcie {
87 status = "okay";
88 };
89
90 &uart {
91 status = "okay";
92 };
93
94 &mdio0 {
95 status = "okay";
96
97 phy-mask = <0>;
98
99 phy0: ethernet-phy@0 {
100 reg = <0>;
101 phy-mode = "sgmii";
102 qca,mib-poll-interval = <500>;
103
104 qca,ar8327-initvals = <
105 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
106 0x7c 0x0000007e /* PORT0_STATUS */
107 >;
108 };
109 };
110
111 &eth0 {
112 status = "okay";
113
114 phy-handle = <&phy0>;
115 phy-mode = "sgmii";
116 };
117
118 &wmac {
119 status = "okay";
120
121 mtd-cal-data = <&art 0x1000>;
122 };