ath79: apply Engenius ECB1750 style to OpenMesh MR900 RGMII cfg
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar7161_netgear_wndr3700.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar7161_netgear_wndr.dtsi"
4
5 / {
6 compatible = "netgear,wndr3700", "qca,ar7161";
7 model = "Netgear WNDR3700";
8 };
9
10 &partitions {
11 partition@0 {
12 label = "u-boot";
13 reg = <0x000000 0x050000>;
14 read-only;
15 };
16
17 partition@50000 {
18 label = "u-boot-env";
19 reg = <0x050000 0x020000>;
20 };
21
22 partition@70000 {
23 label = "firmware";
24 reg = <0x070000 0x780000>;
25 compatible = "netgear,uimage";
26 };
27
28 art: partition@7f0000 {
29 label = "art";
30 reg = <0x7f0000 0x010000>;
31 read-only;
32 };
33 };
34
35 &ath9k1 {
36 /* The original WNDR3700(v1) variant have four antennae dedicated
37 * to the 5GHz radio as well. Again, two antennae are available for
38 * each chain to switch between. The following configuration is the
39 * default setting which taken from the vendor's wifi
40 * code for that radio.
41 *
42 * All possible options [GPIO6,GPIO7,GPIO8,GPIO9]:
43 * [0,1,0,1], [0,1,1,0], [1,0,0,1], [1,0,1,0]
44 */
45 antenna-demux {
46 gpio-hog;
47 line-name = "fixed antenna group 2";
48 gpios = <6 GPIO_ACTIVE_LOW>,
49 <7 GPIO_ACTIVE_HIGH>,
50 <8 GPIO_ACTIVE_HIGH>,
51 <9 GPIO_ACTIVE_LOW>;
52 output-high;
53 };
54 };