ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9563_tplink_tl-wr1043nd-v4.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include <dt-bindings/leds/common.h>
4
5 #include "qca9563_tplink_tl-wr1043n.dtsi"
6
7 / {
8 compatible = "tplink,tl-wr1043nd-v4", "qca,qca9563";
9 model = "TP-Link TL-WR1043ND v4";
10
11 aliases {
12 label-mac-device = &wmac;
13 };
14
15 gpio-export {
16 compatible = "gpio-export";
17 #size-cells = <0>;
18
19 gpio_usb_power {
20 gpio-export,name = "tp-link:power:usb";
21 gpio-export,output = <1>;
22 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
23 };
24 };
25 };
26
27 &spi {
28 status = "okay";
29
30 flash@0 {
31 compatible = "jedec,spi-nor";
32 reg = <0>;
33 spi-max-frequency = <25000000>;
34
35 partitions {
36 compatible = "fixed-partitions";
37 #address-cells = <1>;
38 #size-cells = <1>;
39
40 partition@0 {
41 label = "u-boot";
42 reg = <0x000000 0x020000>;
43 read-only;
44 };
45
46 partition@20000 {
47 compatible = "tplink,firmware";
48 label = "firmware";
49 reg = <0x020000 0xf30000>;
50 };
51
52 info: partition@f50000 {
53 label = "info";
54 reg = <0xf50000 0x020000>;
55 read-only;
56
57 nvmem-layout {
58 compatible = "fixed-layout";
59 #address-cells = <1>;
60 #size-cells = <1>;
61
62 macaddr_info_8: macaddr@8 {
63 reg = <0x8 0x6>;
64 };
65 };
66 };
67
68 partition@f70000 {
69 label = "config";
70 reg = <0xf70000 0x050000>;
71 read-only;
72 };
73
74 partition@fc0000 {
75 label = "partition-table";
76 reg = <0xfc0000 0x010000>;
77 read-only;
78 };
79
80 partition@fd0000 {
81 label = "logs";
82 reg = <0xfd0000 0x020000>;
83 read-only;
84 };
85
86 art: partition@ff0000 {
87 label = "art";
88 reg = <0xff0000 0x010000>;
89 read-only;
90 };
91 };
92 };
93 };
94
95 &leds {
96 usb {
97 function = LED_FUNCTION_USB;
98 color = <LED_COLOR_ID_GREEN>;
99 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
100 trigger-sources = <&hub_port0>;
101 linux,default-trigger = "usbport";
102 };
103 };
104
105 &usb_phy0 {
106 status = "okay";
107 };
108
109 &usb0 {
110 status = "okay";
111 };
112
113 &eth0 {
114 nvmem-cells = <&macaddr_info_8>;
115 nvmem-cell-names = "mac-address";
116 };
117
118 &wmac {
119 mtd-cal-data = <&art 0x1000>;
120
121 nvmem-cells = <&macaddr_info_8>;
122 nvmem-cell-names = "mac-address";
123 };