ath79: fix compatible strings
[oweals/openwrt.git] / target / linux / ath79 / dts / ar9132_tplink_tl-wr1043nd-v1.dts
1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "ar9132.dtsi"
8
9 / {
10         compatible = "tplink,tl-wr1043nd-v1", "qca,ar9132";
11         model = "TP-Link TL-WR1043ND Version 1";
12
13         aliases {
14                 led-status = &system;
15         };
16
17         extosc: ref {
18                 compatible = "fixed-clock";
19                 #clock-cells = <0>;
20                 clock-frequency = <40000000>;
21         };
22
23         keys {
24                 compatible = "gpio-keys";
25                 #address-cells = <1>;
26                 #size-cells = <0>;
27
28                 button0 {
29                         label = "reset";
30                         linux,code = <KEY_RESTART>;
31                         gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
32                         debounce-interval = <60>;
33                 };
34
35                 button1 {
36                         label = "qss";
37                         linux,code = <KEY_WPS_BUTTON>;
38                         gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
39                         debounce-interval = <60>;
40                 };
41         };
42
43         leds {
44                 compatible = "gpio-leds";
45                 usb {
46                         label = "tp-link:green:usb";
47                         gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
48                         default-state = "off";
49                         trigger-sources = <&hub_port>;
50                         linux,default-trigger = "usbport";
51                 };
52
53                 system: system {
54                         label = "tp-link:green:system";
55                         gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
56                         linux,default-trigger = "heartbeat";
57                 };
58
59                 qss {
60                         label = "tp-link:green:qss";
61                         gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
62                 };
63
64                 wlan {
65                         label = "tp-link:green:wlan";
66                         gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
67                         default-state = "off";
68                         linux,default-trigger = "phy0tpt";
69                 };
70         };
71
72         rtl8366rb {
73                 compatible = "realtek,rtl8366rb";
74                 gpio-sda = <&gpio 18 GPIO_ACTIVE_HIGH>;
75                 gpio-sck = <&gpio 19 GPIO_ACTIVE_HIGH>;
76
77                 resets = <&rst 8>;
78                 reset-names = "switch";
79         };
80 };
81
82 &uart {
83         status = "okay";
84 };
85
86 &pll {
87         clocks = <&extosc>;
88 };
89
90 &usb {
91         status = "okay";
92
93         hub_port: port@1 {
94                 reg = <1>;
95                 #trigger-source-cells = <0>;
96         };
97 };
98
99 &usb_phy {
100         status = "okay";
101 };
102
103 &spi {
104         status = "okay";
105         num-cs = <1>;
106
107         flash@0 {
108                 #address-cells = <1>;
109                 #size-cells = <1>;
110                 compatible = "jedec,spi-nor";
111                 reg = <0>;
112                 spi-max-frequency = <25000000>;
113
114                 partitions {
115                         compatible = "fixed-partitions";
116                         #address-cells = <1>;
117                         #size-cells = <1>;
118
119                         uboot: partition@0 {
120                                 label = "u-boot";
121                                 reg = <0x000000 0x020000>;
122                                 read-only;
123                         };
124
125                         partition@20000 {
126                                 label = "firmware";
127                                 reg = <0x020000 0x7D0000>;
128                         };
129
130                         art: partition@7F0000 {
131                                 label = "art";
132                                 reg = <0x7F0000 0x010000>;
133                                 read-only;
134                         };
135                 };
136         };
137 };
138
139 &eth0 {
140         status = "okay";
141
142         phy-mode = "rgmii";
143         mtd-mac-address = <&uboot 0x1fc00>;
144
145         resets = <&rst 9>;
146         reset-names = "mac";
147
148         fixed-link {
149                 speed = <1000>;
150                 full-duplex;
151         };
152 };
153
154 &wmac {
155         status = "okay";
156         mtd-cal-data = <&art 0x1000>;
157         mtd-mac-address = <&uboot 0x1fc00>;
158 };