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