ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9533_tplink_tl-wr841hp-v3.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca953x.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 compatible = "tplink,tl-wr841hp-v3", "qca,qca9533";
11 model = "TP-Link TL-WR841HP v3";
12
13 aliases {
14 label-mac-device = &wmac;
15 led-boot = &led_power;
16 led-failsafe = &led_power;
17 led-running = &led_power;
18 led-upgrade = &led_power;
19 };
20
21 leds {
22 compatible = "gpio-leds";
23
24 wifi {
25 label = "green:wifi";
26 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
27 linux,default-trigger = "phy0tpt";
28 };
29
30 led_power: power {
31 function = LED_FUNCTION_POWER;
32 color = <LED_COLOR_ID_GREEN>;
33 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
34 default-state = "on";
35 };
36
37 wan_green {
38 function = LED_FUNCTION_WAN;
39 color = <LED_COLOR_ID_GREEN>;
40 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
41 };
42
43 wan_amber {
44 function = LED_FUNCTION_WAN;
45 color = <LED_COLOR_ID_AMBER>;
46 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
47 };
48
49 lan {
50 function = LED_FUNCTION_LAN;
51 color = <LED_COLOR_ID_GREEN>;
52 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
53 };
54
55 wps {
56 function = LED_FUNCTION_WPS;
57 color = <LED_COLOR_ID_GREEN>;
58 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
59 };
60
61 re {
62 label = "green:re";
63 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
64 };
65 };
66
67 keys {
68 compatible = "gpio-keys";
69
70 reset {
71 label = "Reset button";
72 linux,code = <KEY_RESTART>;
73 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
74 debounce-interval = <60>;
75 };
76
77 wifi {
78 label = "WiFi button";
79 linux,code = <KEY_RFKILL>;
80 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
81 debounce-interval = <60>;
82 };
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 re {
92 label = "RE button";
93 linux,code = <BTN_0>;
94 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
95 debounce-interval = <60>;
96 };
97 };
98 };
99
100 &spi {
101 status = "okay";
102
103 flash@0 {
104 compatible = "jedec,spi-nor";
105 reg = <0>;
106 spi-max-frequency = <25000000>;
107
108 partitions {
109 compatible = "fixed-partitions";
110 #address-cells = <1>;
111 #size-cells = <1>;
112
113 uboot: partition@0 {
114 label = "u-boot";
115 reg = <0x000000 0x020000>;
116 read-only;
117
118 nvmem-layout {
119 compatible = "fixed-layout";
120 #address-cells = <1>;
121 #size-cells = <1>;
122
123 macaddr_uboot_1fc00: macaddr@1fc00 {
124 compatible = "mac-base";
125 reg = <0x1fc00 0x6>;
126 #nvmem-cell-cells = <1>;
127 };
128 };
129 };
130
131 partition@20000 {
132 compatible = "tplink,firmware";
133 label = "firmware";
134 reg = <0x020000 0x7d0000>;
135 };
136
137 art: partition@7f0000 {
138 label = "art";
139 reg = <0x7f0000 0x010000>;
140 read-only;
141 };
142 };
143 };
144 };
145
146 &eth0 {
147 status = "okay";
148
149 phy-handle = <&swphy4>;
150
151 nvmem-cells = <&macaddr_uboot_1fc00 1>;
152 nvmem-cell-names = "mac-address";
153 };
154
155 &eth1 {
156 nvmem-cells = <&macaddr_uboot_1fc00 0>;
157 nvmem-cell-names = "mac-address";
158 };
159
160 &wmac {
161 status = "okay";
162
163 mtd-cal-data = <&art 0x1000>;
164 nvmem-cells = <&macaddr_uboot_1fc00 0>;
165 nvmem-cell-names = "mac-address";
166 };