generic: 6.1, 6.6: remove patch which breaks WAN on MT7621
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9344_wd_mynet-wifi-rangeextender.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9344.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 model = "Western Digital My Net Wi-Fi Range Extender";
10 compatible = "wd,mynet-wifi-rangeextender", "qca,ar9344";
11
12 chosen {
13 bootargs = "console=ttyS0,115200n8";
14 };
15
16 aliases {
17 led-boot = &led_power;
18 led-failsafe = &led_power;
19 led-running = &led_power;
20 led-upgrade = &led_power;
21 };
22
23 leds {
24 compatible = "gpio-leds";
25
26 led_power: power {
27 label = "blue:power";
28 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
29 /* LED has no off state. It's either on or it blinks */
30 };
31
32 lan {
33 label = "green:lan";
34 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
35 };
36
37 wifi {
38 label = "blue:wifi";
39 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
40 linux,default-trigger = "phy0tpt";
41 };
42
43 wifi-rssi-low {
44 label = "blue:rssi-low";
45 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
46 };
47
48 wifi-rssi-med {
49 label = "blue:rssi-med";
50 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
51 };
52
53 wifi-rssi-max {
54 label = "blue:rssi-max";
55 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
56 };
57 };
58
59 keys {
60 compatible = "gpio-keys";
61
62 reset {
63 linux,code = <KEY_RESTART>;
64 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
65 };
66
67 band-switch {
68 linux,code = <BTN_1>;
69 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
70 linux,input-type = <EV_SW>;
71 };
72
73 wps {
74 linux,code = <KEY_WPS_BUTTON>;
75 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
76 };
77 };
78 };
79
80 &ref {
81 clock-frequency = <25000000>;
82 };
83
84 &spi {
85 status = "okay";
86
87 flash@0 {
88 compatible = /* "s25fl064k", */ "jedec,spi-nor";
89 reg = <0>;
90 spi-max-frequency = <25000000>;
91
92 partitions {
93 compatible = "fixed-partitions";
94 #address-cells = <1>;
95 #size-cells = <1>;
96
97 uboot: partition@0 {
98 label = "u-boot";
99 reg = <0x0 0x040000>;
100 read-only;
101 };
102
103 partition@40000 {
104 label = "firmware";
105 reg = <0x40000 0x7a0000>;
106 compatible = "cybertan,trx";
107 };
108
109 nvram: partition@7e0000 {
110 label = "nvram";
111 reg = <0x7e0000 0x10000>;
112 };
113
114 art: partition@7f0000 {
115 label = "art";
116 reg = <0x7f0000 0x10000>;
117 read-only;
118 };
119 };
120 };
121 };
122
123 &pcie {
124 status = "okay";
125
126 ath9k: wifi@0,0 {
127 compatible = "pci168c,0030";
128 reg = <0x0000 0 0 0 0>;
129 qca,no-eeprom;
130 /* wifi MAC is stored in nvram */
131 };
132 };
133
134 &mdio0 {
135 status = "okay";
136
137 phy-mask = <0x10>;
138
139 phy4: ethernet-phy@4 {
140 reg = <4>;
141 };
142 };
143
144 &eth0 {
145 status = "okay";
146
147 pll-data = <0x0e000000 0x3c000101 0x3c001313>;
148
149 /* ethernet MAC is stored in nvram */
150 phy-mode = "rgmii";
151 phy-handle = <&phy4>;
152
153 gmac-config {
154 device = <&gmac>;
155 rgmii-gmac0 = <1>;
156 rxd-delay = <3>;
157 rxdv-delay = <3>;
158 };
159 };
160
161 &mdio1 {
162 status = "disabled";
163 };