ath79: add firmware partition compatible for OCEDO
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar7161_netgear_wndr3700.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "ar7100.dtsi"
8
9 / {
10 aliases {
11 led-boot = &power_orange;
12 led-failsafe = &power_orange;
13 led-running = &power_green;
14 led-upgrade = &power_orange;
15 };
16
17 chosen {
18 bootargs = "console=ttyS0,115200";
19 };
20
21 extosc: ref {
22 compatible = "fixed-clock";
23 #clock-cells = <0>;
24 clock-output-names = "ref";
25 clock-frequency = <40000000>;
26 };
27
28 reset-leds {
29 compatible = "reset-leds";
30
31 usb_led {
32 label = "netgear:green:usb";
33 resets = <&rst 12>;
34 trigger-sources = <&usb_ochi_port>, <&usb_echi_port>;
35 linux,default-trigger = "usbport";
36 };
37 };
38
39 gpio-leds {
40 compatible = "gpio-leds";
41
42 wps {
43 label = "netgear:orange:wps";
44 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
45 default-state = "off";
46 };
47
48 power_green: power_green {
49 label = "netgear:green:power";
50 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
51 default-state = "off";
52 };
53
54 power_orange: power_orange {
55 label = "netgear:orange:power";
56 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
57 default-state = "on";
58 };
59
60 wps_green {
61 label = "netgear:green:wps";
62 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
63 default-state = "off";
64 };
65
66 wan_green {
67 label = "netgear:green:wan";
68 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
69 default-state = "off";
70 };
71 };
72
73 ath9k-leds {
74 compatible = "gpio-leds";
75 wlan2g {
76 label = "netgear:green:wlan2g";
77 gpios = <&ath9k0 5 GPIO_ACTIVE_LOW>;
78 default-state = "off";
79 linux,default-trigger = "phy0tpt";
80 };
81 wlan5g {
82 label = "netgear:blue:wlan5g";
83 gpios = <&ath9k1 5 GPIO_ACTIVE_LOW>;
84 default-state = "off";
85 linux,default-trigger = "phy1tpt";
86 };
87 };
88
89 gpio-keys-polled {
90 compatible = "gpio-keys-polled";
91 poll-interval = <100>;
92
93 wps {
94 label = "wps";
95 linux,code = <KEY_WPS_BUTTON>;
96 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
97 };
98
99 reset {
100 label = "reset";
101 linux,code = <KEY_RESTART>;
102 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
103 };
104
105 rfkill {
106 label = "rfkill";
107 linux,code = <KEY_RFKILL>;
108 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
109 };
110 };
111
112 rtl8366s {
113 compatible = "realtek,rtl8366s";
114 gpio-sda = <&gpio 5 GPIO_ACTIVE_HIGH>;
115 gpio-sck = <&gpio 7 GPIO_ACTIVE_HIGH>;
116
117 mdio-bus {
118 #address-cells = <1>;
119 #size-cells = <0>;
120 status = "okay";
121
122 phy-mask = <0x10>;
123
124 phy4: ethernet-phy@4 {
125 reg = <4>;
126 phy-mode = "rgmii";
127 };
128 };
129 };
130 };
131
132 &usb_phy {
133 status = "okay";
134 };
135
136 &usb1 {
137 #address-cells = <1>;
138 #size-cells = <0>;
139 status = "okay";
140
141 usb_ochi_port: port@1 {
142 reg = <1>;
143 #trigger-source-cells = <0>;
144 };
145 };
146
147 &usb2 {
148 #address-cells = <1>;
149 #size-cells = <0>;
150 status = "okay";
151
152 usb_echi_port: port@1 {
153 reg = <1>;
154 #trigger-source-cells = <0>;
155 };
156 };
157
158 &pcie0 {
159 status = "okay";
160
161 ath9k0: wifi@0,11 {
162 compatible = "pci168c,0029";
163 reg = <0x8800 0 0 0 0x10000>;
164 mtd-mac-address = <&art 0x0>;
165 qca,no-eeprom;
166 #gpio-cells = <2>;
167 gpio-controller;
168 };
169
170 ath9k1: wifi@0,12 {
171 compatible = "pci168c,0029";
172 reg = <0x9000 0 0 0 0x10000>;
173 mtd-mac-address = <&art 0xc>;
174 qca,no-eeprom;
175 #gpio-cells = <2>;
176 gpio-controller;
177 };
178 };
179
180 &uart {
181 status = "okay";
182 };
183
184 &spi {
185 status = "okay";
186 num-cs = <1>;
187
188 flash@0 {
189 compatible = "jedec,spi-nor";
190 reg = <0>;
191 spi-max-frequency = <25000000>;
192
193 partitions: partitions {
194 compatible = "fixed-partitions";
195 #address-cells = <1>;
196 #size-cells = <1>;
197 };
198 };
199 };
200
201 &eth0 {
202 status = "okay";
203
204 pll-data = <0x11110000 0x00001099 0x00991099>;
205
206 mtd-mac-address = <&art 0x00>;
207
208 fixed-link {
209 speed = <1000>;
210 full-duplex;
211 };
212 };
213
214 &eth1 {
215 status = "okay";
216
217 pll-data = <0x11110000 0x00001099 0x00991099>;
218
219 mtd-mac-address = <&art 0x06>;
220
221 phy-handle = <&phy4>;
222 };