ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9563_tplink_deco-s4-v2.dts
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 #include <dt-bindings/leds/common.h>
6
7 #include "qca956x.dtsi"
8
9 / {
10 compatible = "tplink,deco-s4-v2", "qca,qca9563";
11 model = "TP-Link Deco S4 v2";
12
13 aliases {
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 wlan2g {
24 label = "red:wlan2g";
25 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
26 linux,default-trigger = "phy1tpt";
27 };
28
29 led_power: power {
30 function = LED_FUNCTION_POWER;
31 color = <LED_COLOR_ID_GREEN>;
32 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
33 default-state = "on";
34 };
35
36 wlan5g {
37 label = "blue:wlan5g";
38 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
39 linux,default-trigger = "phy0tpt";
40 };
41 };
42
43
44 keys {
45 compatible = "gpio-keys";
46
47 reset {
48 label = "Reset button";
49 linux,code = <KEY_RESTART>;
50 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
51 debounce-interval = <60>;
52 };
53 };
54 };
55
56 &pcie {
57 status = "okay";
58
59 wifi@0,0 {
60 compatible = "qcom,ath10k";
61 reg = <0x0000 0 0 0 0>;
62 nvmem-cells = <&precal_art_5000>;
63 nvmem-cell-names = "pre-calibration";
64 };
65 };
66
67 &mdio0 {
68 status = "okay";
69
70 phy0: ethernet-phy@0 {
71 reg = <0>;
72 phy-mode = "sgmii";
73 qca,mib-poll-interval = <500>;
74
75 qca,ar8327-initvals = <
76 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
77 0x7c 0x0000007e /* PORT0_STATUS */
78 >;
79 };
80 };
81
82 &spi {
83 status = "okay";
84 num-cs = <1>;
85
86 flash@0 {
87 compatible = "jedec,spi-nor";
88 reg = <0>;
89 spi-max-frequency = <25000000>;
90
91 partitions {
92 compatible = "fixed-partitions";
93 #address-cells = <1>;
94 #size-cells = <1>;
95
96 uboot: partition@0 {
97 label = "u-boot";
98 reg = <0x000000 0x080000>;
99 read-only;
100 };
101
102 partition@80000 {
103 label = "product-info";
104 reg = <0x80000 0x05000>;
105 read-only;
106 };
107
108 config: partition@85000 {
109 label = "config";
110 reg = <0x85000 0x16b000>;
111 read-only;
112 };
113
114 art: partition@1f0000 {
115 label = "art";
116 reg = <0x1f0000 0x10000>;
117 read-only;
118
119 nvmem-layout {
120 compatible = "fixed-layout";
121 #address-cells = <1>;
122 #size-cells = <1>;
123
124 precal_art_5000: pre-calibration@5000 {
125 reg = <0x5000 0x2f20>;
126 };
127 };
128 };
129
130 partition@200000 {
131 compatible = "denx,uimage";
132 label = "firmware";
133 reg = <0x200000 0xe00000>;
134 };
135 };
136 };
137 };
138
139 &eth0 {
140 status = "okay";
141
142 phy-mode = "sgmii";
143 phy-handle = <&phy0>;
144 };
145
146 &wmac {
147 status = "okay";
148
149 qca,no-eeprom;
150 };