ath79: fix dts warnings
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar7242_tplink_tl-wr2543-v1.dts
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 "ar7242.dtsi"
8
9 / {
10 compatible = "tplink,tl-wr2543-v1", "qca,ar7242";
11 model = "TP-LINK TL-WR2543N/ND";
12
13 aliases {
14 led-status = &system;
15 };
16
17 chosen {
18 bootargs = "console=ttyS0,115200n8";
19 };
20
21 extosc: ref {
22 compatible = "fixed-clock";
23 #clock-cells = <0>;
24 clock-frequency = <40000000>;
25 };
26
27 gpio-keys {
28 compatible = "gpio-keys-polled";
29 poll-interval = <20>;
30
31 reset {
32 label = "reset";
33 linux,code = <KEY_RESTART>;
34 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
35 debounce-interval = <60>;
36 };
37
38 wps {
39 label = "wps";
40 linux,code = <KEY_WPS_BUTTON>;
41 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
42 debounce-interval = <60>;
43 };
44 };
45
46 leds {
47 compatible = "gpio-leds";
48
49 system: wps {
50 label = "tplink:green:wps";
51 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
52 default-state = "off";
53 };
54
55 usb {
56 label = "tplink:green:usb";
57 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
58 default-state = "off";
59 trigger-sources = <&hub_port>;
60 linux,default-trigger = "usbport";
61 };
62 };
63
64 ath9k-leds {
65 compatible = "gpio-leds";
66
67 wlan2g {
68 label = "tplink:green:wlan2g";
69 gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
70 default-state = "off";
71 linux,default-trigger = "phy0tpt";
72 };
73
74 wlan5g {
75 label = "tplink:green:wlan5g";
76 gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
77 default-state = "off";
78 linux,default-trigger = "phy0tpt";
79 };
80
81 };
82
83 rtl8367 {
84 compatible = "realtek,rtl8367";
85 gpio-sda = <&gpio 1 GPIO_ACTIVE_HIGH>;
86 gpio-sck = <&gpio 6 GPIO_ACTIVE_HIGH>;
87 realtek,extif0 = <1 0 1 1 1 1 1 1 2>;
88
89 mdio-bus {
90 #address-cells = <1>;
91 #size-cells = <0>;
92 status = "okay";
93
94 phy0: ethernet-phy@0 {
95 reg = <0>;
96 };
97 };
98 };
99 };
100
101 &pll {
102 clocks = <&extosc>;
103 };
104
105 &spi {
106 status = "okay";
107 num-cs = <1>;
108
109 flash@0 {
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 partition@7f0000 {
131 label = "art";
132 reg = <0x7f0000 0x010000>;
133 read-only;
134 };
135 };
136 };
137 };
138
139 &uart {
140 status = "okay";
141 };
142
143 &usb {
144 #address-cells = <1>;
145 #size-cells = <0>;
146 status = "okay";
147
148 hub_port: port@1 {
149 reg = <1>;
150 #trigger-source-cells = <0>;
151 };
152 };
153
154 &usb_phy {
155 status = "okay";
156 };
157
158 &pcie {
159 status = "okay";
160
161 ath9k: wifi@0,0 {
162 reg = <0x0000 0 0 0 0>;
163 #gpio-cells = <2>;
164 gpio-controller;
165 qca,no-eeprom;
166 mtd-mac-address = <&uboot 0x1fc00>;
167 };
168 };
169
170 &eth0 {
171 status = "okay";
172
173 phy-mode = "rgmii";
174 mtd-mac-address = <&uboot 0x1fc00>;
175
176 phy-handle = <&phy0>;
177 fixed-link {
178 speed = <1000>;
179 full-duplex;
180 };
181 };