Upstream refresh for v1.5.0-rc1 : Upstream 19.07 : 4fb6b8c553f692eeb5bcb203e0f8ee8df0...
[librecmc/librecmc.git] / target / linux / ath79 / dts / qca9563_tplink_tl-wr1043nd-v4.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include "qca9563_tplink_tl-wr1043n.dtsi"
5
6 / {
7         compatible = "tplink,tl-wr1043nd-v4", "qca,qca9563";
8         model = "TP-Link TL-WR1043ND v4";
9
10         gpio-export {
11                 compatible = "gpio-export";
12                 #size-cells = <0>;
13
14                 gpio_usb_power {
15                         gpio-export,name = "tp-link:power:usb";
16                         gpio-export,output = <1>;
17                         gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
18                 };
19         };
20 };
21
22 &spi {
23         status = "okay";
24         num-cs = <1>;
25
26         flash@0 {
27                 compatible = "jedec,spi-nor";
28                 reg = <0>;
29                 spi-max-frequency = <25000000>;
30
31                 partitions {
32                         compatible = "fixed-partitions";
33                         #address-cells = <1>;
34                         #size-cells = <1>;
35
36                         partition@0 {
37                                 label = "u-boot";
38                                 reg = <0x000000 0x020000>;
39                                 read-only;
40                         };
41
42                         partition@20000 {
43                                 compatible = "tplink,firmware";
44                                 label = "firmware";
45                                 reg = <0x020000 0xf30000>;
46                         };
47
48                         info: partition@f50000 {
49                                 label = "info";
50                                 reg = <0xf50000 0x020000>;
51                                 read-only;
52                         };
53
54                         partition@f70000 {
55                                 label = "config";
56                                 reg = <0xf70000 0x050000>;
57                                 read-only;
58                         };
59
60                         partition@fc0000 {
61                                 label = "partition-table";
62                                 reg = <0xfc0000 0x010000>;
63                                 read-only;
64                         };
65
66                         partition@fd0000 {
67                                 label = "logs";
68                                 reg = <0xfd0000 0x020000>;
69                                 read-only;
70                         };
71
72                         art: partition@ff0000 {
73                                 label = "art";
74                                 reg = <0xff0000 0x010000>;
75                                 read-only;
76                         };
77                 };
78         };
79 };
80
81 &gpio_leds {
82         usb {
83                 label = "tp-link:green:usb";
84                 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
85                 trigger-sources = <&hub_port0>;
86                 linux,default-trigger = "usbport";
87         };
88 };
89
90 &usb_phy0 {
91         status = "okay";
92 };
93
94 &usb0 {
95         #address-cells = <1>;
96         #size-cells = <0>;
97         status = "okay";
98
99         hub_port0: port@1 {
100                 reg = <1>;
101                 #trigger-source-cells = <0>;
102         };
103 };