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