ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9533_tplink_tl-wa801nd.dtsi
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 aliases {
11 label-mac-device = &wmac;
12 led-boot = &led_system;
13 led-failsafe = &led_system;
14 led-running = &led_system;
15 led-upgrade = &led_system;
16 };
17
18 leds {
19 compatible = "gpio-leds";
20
21 lan {
22 function = LED_FUNCTION_LAN;
23 color = <LED_COLOR_ID_GREEN>;
24 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
25 };
26
27 security_red {
28 label = "red:security";
29 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
30 };
31
32 wlan {
33 function = LED_FUNCTION_WLAN;
34 color = <LED_COLOR_ID_GREEN>;
35 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
36 linux,default-trigger = "phy0tpt";
37 };
38
39 led_system: system {
40 label = "green:system";
41 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
42 };
43
44 security_green {
45 label = "green:security";
46 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
47 };
48 };
49
50 keys {
51 compatible = "gpio-keys";
52
53 reset {
54 label = "Reset button";
55 linux,code = <KEY_RESTART>;
56 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
57 debounce-interval = <60>;
58 };
59
60 wps {
61 label = "WPS button";
62 linux,code = <KEY_WPS_BUTTON>;
63 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
64 debounce-interval = <60>;
65 };
66 };
67 };
68
69 &spi {
70 status = "okay";
71
72 flash@0 {
73 compatible = "jedec,spi-nor";
74 reg = <0>;
75 spi-max-frequency = <25000000>;
76
77 partitions {
78 compatible = "fixed-partitions";
79 #address-cells = <1>;
80 #size-cells = <1>;
81
82 uboot: partition@0 {
83 label = "u-boot";
84 reg = <0x000000 0x020000>;
85 read-only;
86
87 nvmem-layout {
88 compatible = "fixed-layout";
89 #address-cells = <1>;
90 #size-cells = <1>;
91
92 macaddr_uboot_1fc00: macaddr@1fc00 {
93 reg = <0x1fc00 0x6>;
94 };
95 };
96 };
97
98 partition@20000 {
99 compatible = "tplink,firmware";
100 label = "firmware";
101 reg = <0x020000 0x3d0000>;
102 };
103
104 art: partition@3f0000 {
105 label = "art";
106 reg = <0x3f0000 0x010000>;
107 read-only;
108 };
109 };
110 };
111 };
112
113 &eth0 {
114 status = "okay";
115
116 phy-handle = <&swphy4>;
117
118 nvmem-cells = <&macaddr_uboot_1fc00>;
119 nvmem-cell-names = "mac-address";
120 };
121
122 &eth1 {
123 compatible = "syscon", "simple-mfd";
124 };
125
126 &wmac {
127 status = "okay";
128
129 mtd-cal-data = <&art 0x1000>;
130 nvmem-cells = <&macaddr_uboot_1fc00>;
131 nvmem-cell-names = "mac-address";
132 };