ath79: apply Engenius ECB1750 style to OpenMesh MR900 RGMII cfg
[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 &uart {
85 status = "okay";
86 };
87
88 &spi {
89 status = "okay";
90
91 flash@0 {
92 compatible = /* "s25fl064k", */ "jedec,spi-nor";
93 reg = <0>;
94 spi-max-frequency = <25000000>;
95
96 partitions {
97 compatible = "fixed-partitions";
98 #address-cells = <1>;
99 #size-cells = <1>;
100
101 uboot: partition@0 {
102 label = "u-boot";
103 reg = <0x0 0x040000>;
104 read-only;
105 };
106
107 partition@40000 {
108 label = "firmware";
109 reg = <0x40000 0x7a0000>;
110 compatible = "cybertan,trx";
111 };
112
113 nvram: partition@7e0000 {
114 label = "nvram";
115 reg = <0x7e0000 0x10000>;
116 };
117
118 art: partition@7f0000 {
119 label = "art";
120 reg = <0x7f0000 0x10000>;
121 read-only;
122 };
123 };
124 };
125 };
126
127 &pcie {
128 status = "okay";
129
130 ath9k: wifi@0,0 {
131 compatible = "pci168c,0030";
132 reg = <0x0000 0 0 0 0>;
133 qca,no-eeprom;
134 /* wifi MAC is stored in nvram */
135 };
136 };
137
138 &mdio0 {
139 status = "okay";
140
141 phy-mask = <0x10>;
142
143 phy4: ethernet-phy@4 {
144 reg = <4>;
145 };
146 };
147
148 &eth0 {
149 status = "okay";
150
151 pll-data = <0x0e000000 0x3c000101 0x3c001313>;
152
153 /* ethernet MAC is stored in nvram */
154 phy-mode = "rgmii";
155 phy-handle = <&phy4>;
156
157 gmac-config {
158 device = <&gmac>;
159 rgmii-gmac0 = <1>;
160 rxd-delay = <3>;
161 rxdv-delay = <3>;
162 };
163 };
164
165 &mdio1 {
166 status = "disabled";
167 };