ath79: rename dts/image using manufacturer_board scheme
[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 #address-cells = <1>;
30 #size-cells = <0>;
31 poll-interval = <20>;
32
33 reset {
34 label = "reset";
35 linux,code = <KEY_RESTART>;
36 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
37 debounce-interval = <60>;
38 };
39
40 wps {
41 label = "wps";
42 linux,code = <KEY_WPS_BUTTON>;
43 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
44 debounce-interval = <60>;
45 };
46 };
47
48 leds {
49 compatible = "gpio-leds";
50
51 system: wps {
52 label = "tplink:green:wps";
53 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
54 default-state = "off";
55 };
56
57 usb {
58 label = "tplink:green:usb";
59 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
60 default-state = "off";
61 trigger-sources = <&hub_port>;
62 linux,default-trigger = "usbport";
63 };
64 };
65
66 ath9k-leds {
67 compatible = "gpio-leds";
68
69 wlan2g {
70 label = "tplink:green:wlan2g";
71 gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
72 default-state = "off";
73 linux,default-trigger = "phy0tpt";
74 };
75
76 wlan5g {
77 label = "tplink:green:wlan5g";
78 gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
79 default-state = "off";
80 linux,default-trigger = "phy0tpt";
81 };
82
83 };
84
85 rtl8367 {
86 compatible = "realtek,rtl8367";
87 gpio-sda = <&gpio 1 GPIO_ACTIVE_HIGH>;
88 gpio-sck = <&gpio 6 GPIO_ACTIVE_HIGH>;
89 realtek,extif0 = <1 0 1 1 1 1 1 1 2>;
90
91 mdio-bus {
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 #address-cells = <1>;
111 #size-cells = <1>;
112 compatible = "jedec,spi-nor";
113 reg = <0>;
114 spi-max-frequency = <25000000>;
115
116 partitions {
117 compatible = "fixed-partitions";
118 #address-cells = <1>;
119 #size-cells = <1>;
120
121 uboot: partition@0 {
122 label = "u-boot";
123 reg = <0x000000 0x020000>;
124 read-only;
125 };
126
127 partition@20000 {
128 label = "firmware";
129 reg = <0x020000 0x7d0000>;
130 };
131
132 partition@7f0000 {
133 label = "art";
134 reg = <0x7f0000 0x010000>;
135 read-only;
136 };
137 };
138 };
139 };
140
141 &uart {
142 status = "okay";
143 };
144
145 &usb {
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 {
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 };