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