uclient: update to Git HEAD (2024-04-19)
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9344_wd_mynet-n750.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 N750";
10 compatible = "wd,mynet-n750", "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 wifi {
27 label = "blue:wireless";
28 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
29 };
30
31 internet {
32 label = "blue:internet";
33 gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
34 };
35
36 wps {
37 label = "blue:wps";
38 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
39 };
40
41 led_power: power {
42 label = "blue:power";
43 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
44 };
45 };
46
47 keys {
48 compatible = "gpio-keys";
49
50 reset {
51 linux,code = <KEY_RESTART>;
52 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
53 };
54
55 wps {
56 linux,code = <KEY_WPS_BUTTON>;
57 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
58 };
59 };
60 };
61
62 &ref {
63 clock-frequency = <40000000>;
64 };
65
66 &gpio {
67 gpio_ext_lna0 {
68 gpio-hog;
69 gpios = <15 0>;
70 output-high;
71 line-name = "mynet-n750:ext:lna0";
72 };
73
74 gpio_ext_lna1 {
75 gpio-hog;
76 gpios = <18 0>;
77 output-high;
78 line-name = "mynet-n750:ext:lna1";
79 };
80 };
81
82 &spi {
83 status = "okay";
84
85 flash@0 {
86 compatible = "jedec,spi-nor";
87 reg = <0>;
88 spi-max-frequency = <25000000>;
89
90 partitions {
91 compatible = "fixed-partitions";
92 #address-cells = <1>;
93 #size-cells = <1>;
94
95 partition@0 {
96 label = "bootloader";
97 reg = <0x000000 0x40000>;
98 read-only;
99 };
100
101 partition@40000 {
102 label = "bdcfg";
103 reg = <0x040000 0x10000>;
104 read-only;
105 };
106
107 partition@50000 {
108 label = "devdata";
109 reg = <0x050000 0x10000>;
110 read-only;
111 };
112
113 partition@60000 {
114 label = "devconf";
115 reg = <0x060000 0x10000>;
116 read-only;
117 };
118
119 partition@70000 {
120 compatible = "seama";
121 label = "firmware";
122 reg = <0x070000 0xf80000>;
123 };
124
125 art: partition@ff0000 {
126 label = "art";
127 reg = <0xff0000 0x010000>;
128 read-only;
129 };
130 };
131 };
132 };
133
134 &usb {
135 #address-cells = <1>;
136 #size-cells = <0>;
137 status = "okay";
138
139 port@1 {
140 #address-cells = <1>;
141 #size-cells = <0>;
142 reg = <1>;
143 #trigger-source-cells = <0>;
144
145 hub_port1: port@1 {
146 reg = <1>;
147 #trigger-source-cells = <0>;
148 };
149
150 hub_port2: port@2 {
151 reg = <2>;
152 #trigger-source-cells = <0>;
153 };
154 };
155 };
156
157 &usb_phy {
158 status = "okay";
159 };
160
161 &pcie {
162 status = "okay";
163
164 wifi@0,0 {
165 compatible = "pci168c,0033";
166 reg = <0x0000 0 0 0 0>;
167 qca,no-eeprom;
168 };
169 };
170
171 &wmac {
172 status = "okay";
173
174 qca,no-eeprom;
175 };
176
177 &mdio0 {
178 status = "okay";
179
180 phy-mask = <0>;
181
182 switch0@1f {
183 compatible = "qca,ar8327";
184 reg = <0x1f>;
185
186 qca,ar8327-initvals = <
187 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
188 0x10 0x80000080 /* POWER_ON_STRAP */
189 0x50 0xc737c737 /* LED_CTRL0 */
190 0x54 0x00000000 /* LED_CTRL1 */
191 0x58 0x00000000 /* LED_CTRL2 */
192 0x5c 0x0030c300 /* LED_CTRL3 */
193 0x7c 0x0000007e /* PORT0_STATUS */
194 >;
195 };
196 };
197
198 &eth0 {
199 status = "okay";
200
201 /* default for ar934x, except for 1000M */
202 pll-data = <0x06000000 0x00000101 0x00001616>;
203
204 phy-mode = "rgmii";
205 fixed-link {
206 speed = <1000>;
207 full-duplex;
208 };
209 };