ath79: create common DTSI for Senao qca955x APs
[openwrt/openwrt.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 gpio-export {
10 compatible = "gpio-export";
11 #size-cells = <0>;
12
13 gpio_usb_power {
14 gpio-export,name = "tp-link:power:usb";
15 gpio-export,output = <1>;
16 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
17 };
18 };
19 };
20
21 &spi {
22 status = "okay";
23
24 flash@0 {
25 compatible = "jedec,spi-nor";
26 reg = <0>;
27 spi-max-frequency = <25000000>;
28
29 partitions {
30 compatible = "fixed-partitions";
31 #address-cells = <1>;
32 #size-cells = <1>;
33
34 partition@0 {
35 label = "u-boot";
36 reg = <0x000000 0x020000>;
37 read-only;
38 };
39
40 partition@20000 {
41 compatible = "tplink,firmware";
42 label = "firmware";
43 reg = <0x020000 0xf30000>;
44 };
45
46 info: partition@f50000 {
47 label = "info";
48 reg = <0xf50000 0x020000>;
49 read-only;
50 };
51
52 partition@f70000 {
53 label = "config";
54 reg = <0xf70000 0x050000>;
55 read-only;
56 };
57
58 partition@fc0000 {
59 label = "partition-table";
60 reg = <0xfc0000 0x010000>;
61 read-only;
62 };
63
64 partition@fd0000 {
65 label = "logs";
66 reg = <0xfd0000 0x020000>;
67 read-only;
68 };
69
70 art: partition@ff0000 {
71 label = "art";
72 reg = <0xff0000 0x010000>;
73 read-only;
74 };
75 };
76 };
77 };
78
79 &leds {
80 usb {
81 label = "green:usb";
82 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
83 trigger-sources = <&hub_port0>;
84 linux,default-trigger = "usbport";
85 };
86 };
87
88 &usb_phy0 {
89 status = "okay";
90 };
91
92 &usb0 {
93 #address-cells = <1>;
94 #size-cells = <0>;
95 status = "okay";
96
97 hub_port0: port@1 {
98 reg = <1>;
99 #trigger-source-cells = <0>;
100 };
101 };