ath79: fix compatible strings
[oweals/openwrt.git] / target / linux / ath79 / dts / qca9563_tplink_tl-wr1043n.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "qca956x.dtsi"
8
9 / {
10         chosen {
11                 bootargs = "console=ttyS0,115200n8";
12         };
13
14         aliases {
15                 led-status = &system;
16         };
17
18         gpio_leds: leds {
19                 compatible = "gpio-leds";
20
21                 system: system {
22                         label = "tp-link:green:system";
23                         gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
24                         linux,default-trigger = "heartbeat";
25                 };
26
27                 wifi_green {
28                         label = "tp-link:green:wlan";
29                         gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
30                         default-state = "off";
31                         linux,default-trigger = "phy0tpt";
32                 };
33
34                 wifi_wps {
35                         label = "tp-link:green:wps";
36                         gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
37                         default-state = "off";
38                 };
39
40                 wan {
41                         label = "tp-link:green:wan";
42                         gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
43                         default-state = "off";
44                 };
45
46                 wan_fail {
47                         label = "tp-link:orange:wan";
48                         gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
49                         default-state = "off";
50                 };
51
52                 lan1 {
53                         label = "tp-link:green:lan1";
54                         gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
55                         default-state = "off";
56                 };
57
58                 lan2 {
59                         label = "tp-link:green:lan2";
60                         gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
61                         default-state = "off";
62                 };
63
64                 lan3 {
65                         label = "tp-link:green:lan3";
66                         gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
67                         default-state = "off";
68                 };
69
70                 lan4 {
71                         label = "tp-link:green:lan4";
72                         gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
73                         default-state = "off";
74                 };
75         };
76
77         keys {
78                 compatible = "gpio-keys";
79                 #address-cells = <1>;
80                 #size-cells = <0>;
81
82                 reset {
83                         label = "Reset button";
84                         linux,code = <KEY_RESTART>;
85                         gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
86                         debounce-interval = <60>;
87                 };
88
89                 wifi {
90                         label = "RFKILL button";
91                         linux,code = <KEY_RFKILL>;
92                         gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
93                         debounce-interval = <60>;
94                 };
95         };
96
97         gpio-export {
98                 compatible = "gpio-export";
99                 #size-cells = <0>;
100
101                 gpio_usb_power {
102                         gpio-export,name = "tp-link:power:usb";
103                         gpio-export,output = <1>;
104                         gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
105                 };
106         };
107 };
108
109 &uart {
110         status = "okay";
111 };
112
113 &gpio {
114         status = "okay";
115 };
116
117 &spi {
118         status = "okay";
119         num-cs = <1>;
120
121         flash@0 {
122                 #address-cells = <1>;
123                 #size-cells = <1>;
124                 compatible = "jedec,spi-nor";
125                 reg = <0>;
126                 spi-max-frequency = <25000000>;
127
128                 partitions {
129                         compatible = "fixed-partitions";
130                         #address-cells = <1>;
131                         #size-cells = <1>;
132
133                         partition@0 {
134                                 label = "u-boot";
135                                 reg = <0x000000 0x020000>;
136                                 read-only;
137                         };
138
139                         partition@20000 {
140                                 label = "firmware";
141                                 reg = <0x020000 0xf30000>;
142                         };
143
144                         info: partition@f50000 {
145                                 label = "product-info";
146                                 reg = <0xf50000 0x020000>;
147                                 read-only;
148                         };
149
150                         partition@f70000 {
151                                 label = "config";
152                                 reg = <0xf70000 0x050000>;
153                                 read-only;
154                         };
155
156                         partition@fc0000 {
157                                 label = "partition-table";
158                                 reg = <0xfc0000 0x010000>;
159                                 read-only;
160                         };
161
162                         partition@fd0000 {
163                                 label = "logs";
164                                 reg = <0xfd0000 0x020000>;
165                                 read-only;
166                         };
167
168                         art: partition@ff0000 {
169                                 label = "ART";
170                                 reg = <0xff0000 0x010000>;
171                                 read-only;
172                         };
173                 };
174         };
175 };
176
177 &mdio0 {
178         status = "okay";
179
180         phy-mask = <0>;
181         phy0: ethernet-phy@0 {
182                 reg = <0>;
183                 phy-mode = "sgmii";
184
185                 qca,ar8327-initvals = <
186                         0x04 0x00080080 /* PORT0 PAD MODE CTRL */
187                         0x7c 0x0000007e /* PORT0_STATUS */
188                 >;
189         };
190 };
191
192 &eth0 {
193         status = "okay";
194
195         mtd-mac-address = <&info 0x8>;
196         phy-mode = "sgmii";
197         phy-handle = <&phy0>;
198 };
199
200 &wmac {
201         status = "okay";
202         mtd-cal-data = <&art 0x1000>;
203         mtd-mac-address = <&info 0x8>;
204 };