ath79: apply Engenius ECB1750 style to OpenMesh MR900 RGMII cfg
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar7241_netgear_wnr2000-v3.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar7241.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "netgear,wnr2000-v3", "qca,ar7241";
10 model = "Netgear WNR2000 v3";
11
12 chosen {
13 bootargs = "console=ttyS0,115200n8";
14 };
15
16 aliases {
17 led-boot = &led_power_amber;
18 led-failsafe = &led_power_amber;
19 led-running = &led_power_green;
20 led-upgrade = &led_power_amber;
21 label-mac-device = &eth1;
22 };
23
24 keys {
25 compatible = "gpio-keys";
26
27 wps {
28 label = "wps";
29 linux,code = <KEY_WPS_BUTTON>;
30 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
31 };
32 };
33
34 ath9k-keys {
35 compatible = "gpio-keys-polled";
36 poll-interval = <20>;
37
38 reset {
39 label = "reset";
40 linux,code = <KEY_RESTART>;
41 gpios = <&ath9k 8 GPIO_ACTIVE_LOW>;
42 debounce-interval = <60>;
43 };
44
45 rfkill {
46 label = "rfkill";
47 linux,code = <KEY_RFKILL>;
48 gpios = <&ath9k 9 GPIO_ACTIVE_LOW>;
49 debounce-interval = <60>;
50 };
51 };
52
53 leds {
54 compatible = "gpio-leds";
55
56 pinctrl-names = "default";
57 pinctrl-0 = <&jtag_disable_pins &switch_led_disable_pins &clks_disable_pins>;
58
59 wan_green {
60 label = "green:wan";
61 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
62 };
63
64 wan_amber {
65 label = "amber:wan";
66 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
67 };
68
69 lan1_green {
70 label = "green:lan1";
71 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
72 };
73
74 lan1_amber {
75 label = "amber:lan1";
76 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
77 };
78
79 lan2_green {
80 label = "green:lan2";
81 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
82 };
83
84 lan2_amber {
85 label = "amber:lan2";
86 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
87 };
88
89 lan3_green {
90 label = "green:lan3";
91 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
92 };
93
94 lan3_amber {
95 label = "amber:lan3";
96 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
97 };
98
99 lan4_green {
100 label = "green:lan4";
101 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
102 };
103
104 lan4_amber {
105 label = "amber:lan4";
106 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
107 };
108
109 wps_green {
110 label = "green:wps";
111 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
112 };
113 };
114
115 ath9k-leds {
116 compatible = "gpio-leds";
117
118 led_power_green: power_green {
119 label = "green:power";
120 gpios = <&ath9k 3 GPIO_ACTIVE_LOW>;
121 };
122
123 led_power_amber: power_amber {
124 label = "amber:power";
125 gpios = <&ath9k 2 GPIO_ACTIVE_LOW>;
126 default-state = "keep";
127 };
128
129 wlan_blue {
130 label = "blue:wlan";
131 gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
132 linux,default-trigger = "phy0tpt";
133 };
134 };
135 };
136
137 &spi {
138 status = "okay";
139
140 flash@0 {
141 compatible = "jedec,spi-nor";
142 reg = <0>;
143 spi-max-frequency = <25000000>;
144
145 partitions {
146 compatible = "fixed-partitions";
147 #address-cells = <1>;
148 #size-cells = <1>;
149
150 partition@0 {
151 label = "u-boot";
152 reg = <0x0 0x40000>;
153 read-only;
154 };
155
156 partition@40000 {
157 label = "u-boot-env";
158 reg = <0x40000 0x10000>;
159 };
160
161 partition@50000 {
162 label = "firmware";
163 reg = <0x50000 0x3a0000>;
164 compatible = "netgear,uimage";
165 };
166
167 art: partition@3f0000 {
168 label = "art";
169 reg = <0x3f0000 0x10000>;
170 read-only;
171 };
172 };
173 };
174 };
175
176 &eth0 {
177 status = "okay";
178
179 mtd-mac-address = <&art 0x0>;
180 };
181
182 &eth1 {
183 compatible = "qca,ar7241-eth", "syscon", "simple-mfd";
184
185 mtd-mac-address = <&art 0x6>;
186 };
187
188 &pcie {
189 status = "okay";
190
191 ath9k: wifi@0,0 {
192 compatible = "pci168c,002e";
193 reg = <0x0000 0 0 0 0>;
194 mtd-mac-address = <&art 0x0>;
195 mtd-mac-address-increment = <1>;
196 qca,no-eeprom;
197 #gpio-cells = <2>;
198 gpio-controller;
199 };
200 };
201
202 &uart {
203 status = "okay";
204 };