mpc85xx: fix address config for ws-ap3825i
[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
3 #include "ar7242.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "tplink,tl-wr2543-v1", "qca,ar7242";
10 model = "TP-Link TL-WR2543N/ND";
11
12 aliases {
13 led-boot = &led_wps;
14 led-failsafe = &led_wps;
15 led-running = &led_wps;
16 led-upgrade = &led_wps;
17 label-mac-device = &eth0;
18 };
19
20 chosen {
21 bootargs = "console=ttyS0,115200n8";
22 };
23
24 extosc: ref {
25 compatible = "fixed-clock";
26 #clock-cells = <0>;
27 clock-frequency = <40000000>;
28 };
29
30 keys {
31 compatible = "gpio-keys";
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 led_wps: wps {
52 label = "green:wps";
53 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
54 };
55
56 usb {
57 label = "green:usb";
58 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
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 = "green:wlan2g";
69 gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
70 linux,default-trigger = "phy0tpt";
71 };
72
73 wlan5g {
74 label = "green:wlan5g";
75 gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
76 linux,default-trigger = "phy0tpt";
77 };
78 };
79
80 rtl8367 {
81 compatible = "realtek,rtl8367";
82 gpio-sda = <&gpio 1 GPIO_ACTIVE_HIGH>;
83 gpio-sck = <&gpio 6 GPIO_ACTIVE_HIGH>;
84 realtek,extif0 = <1 0 1 1 1 1 1 1 2>;
85
86 mdio-bus {
87 #address-cells = <1>;
88 #size-cells = <0>;
89 status = "okay";
90
91 phy0: ethernet-phy@0 {
92 reg = <0>;
93 };
94 };
95 };
96 };
97
98 &pll {
99 clocks = <&extosc>;
100 };
101
102 &spi {
103 status = "okay";
104
105 flash@0 {
106 compatible = "jedec,spi-nor";
107 reg = <0>;
108 spi-max-frequency = <25000000>;
109 m25p,fast-read;
110
111 partitions {
112 compatible = "fixed-partitions";
113 #address-cells = <1>;
114 #size-cells = <1>;
115
116 uboot: partition@0 {
117 label = "u-boot";
118 reg = <0x000000 0x020000>;
119 read-only;
120 };
121
122 partition@20000 {
123 compatible = "tplink,firmware";
124 label = "firmware";
125 reg = <0x020000 0x7d0000>;
126 };
127
128 partition@7f0000 {
129 label = "art";
130 reg = <0x7f0000 0x010000>;
131 read-only;
132 };
133 };
134 };
135 };
136
137 &usb {
138 #address-cells = <1>;
139 #size-cells = <0>;
140 status = "okay";
141
142 hub_port: port@1 {
143 reg = <1>;
144 #trigger-source-cells = <0>;
145 };
146 };
147
148 &usb_phy {
149 status = "okay";
150 };
151
152 &pcie {
153 status = "okay";
154
155 ath9k: wifi@0,0 {
156 reg = <0x0000 0 0 0 0>;
157 #gpio-cells = <2>;
158 gpio-controller;
159 qca,no-eeprom;
160 mtd-mac-address = <&uboot 0x1fc00>;
161 };
162 };
163
164 &eth0 {
165 status = "okay";
166
167 phy-mode = "rgmii";
168 mtd-mac-address = <&uboot 0x1fc00>;
169
170 phy-handle = <&phy0>;
171 fixed-link {
172 speed = <1000>;
173 full-duplex;
174 };
175 };