ath79: consolidate Netgear EX7300 series images
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9558_netgear_ex7300.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca955x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 model = "Netgear EX7300";
10 compatible = "netgear,ex7300", "qca,qca9558";
11
12 aliases {
13 led-boot = &led_power_green;
14 led-failsafe = &led_power_amber;
15 led-running = &led_power_green;
16 led-upgrade = &led_power_amber;
17 label-mac-device = &eth0;
18 };
19
20 led_spi {
21 compatible = "spi-gpio";
22 #address-cells = <1>;
23 #size-cells = <0>;
24
25 sck-gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
26 mosi-gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
27 num-chipselects = <0>;
28
29 led_gpio: led_gpio@0 {
30 compatible = "nxp,74lvc594";
31 reg = <0>;
32 gpio-controller;
33 #gpio-cells = <2>;
34 registers-number = <1>;
35 spi-max-frequency = <500000>;
36
37 gpio_latch_bit {
38 gpio-hog;
39 gpios = <4 GPIO_ACTIVE_HIGH>;
40 output-high;
41 line-name = "gpio-latch-bit";
42 };
43 };
44 };
45
46 leds {
47 compatible = "gpio-leds";
48
49 led_power_green: power_green {
50 label = "green:power";
51 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
52 };
53
54 led_power_amber: power_amber {
55 label = "amber:power";
56 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
57 };
58
59 left_blue {
60 label = "blue:left";
61 gpios = <&led_gpio 7 GPIO_ACTIVE_LOW>;
62 };
63
64 right_blue {
65 label = "blue:right";
66 gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
67 };
68
69 wps_green {
70 label = "green:wps";
71 gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
72 };
73
74 client_red {
75 label = "red:client";
76 gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
77 };
78
79 client_green {
80 label = "green:client";
81 gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
82 };
83
84 router_red {
85 label = "red:router";
86 gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
87 };
88
89 router_green {
90 label = "green:router";
91 gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
92 };
93 };
94
95 keys {
96 compatible = "gpio-keys";
97
98 reset {
99 label = "Reset button";
100 linux,code = <KEY_RESTART>;
101 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
102 debounce-interval = <60>;
103 };
104
105 wps {
106 label = "WPS button";
107 linux,code = <KEY_WPS_BUTTON>;
108 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
109 debounce-interval = <60>;
110 };
111
112 extender_apmode {
113 label = "EXTENDER/APMODE switch";
114 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
115 linux,code = <BTN_0>;
116 linux,input-type = <EV_SW>;
117 debounce-interval = <60>;
118 };
119 };
120 };
121
122 &pcie0 {
123 status = "okay";
124 };
125
126 &spi {
127 status = "okay";
128
129 flash@0 {
130 compatible = "jedec,spi-nor";
131 reg = <0>;
132 spi-max-frequency = <25000000>;
133
134 partitions {
135 compatible = "fixed-partitions";
136 #address-cells = <1>;
137 #size-cells = <1>;
138
139 uboot: partition@0 {
140 label = "u-boot";
141 reg = <0x000000 0x040000>;
142 read-only;
143 };
144
145 partition@40000 {
146 label = "u-boot-env";
147 reg = <0x040000 0x010000>;
148 };
149
150 caldata: partition@50000 {
151 label = "caldata";
152 reg = <0x050000 0x010000>;
153 read-only;
154 };
155
156 partition@60000 {
157 label = "caldata-backup";
158 reg = <0x060000 0x010000>;
159 read-only;
160 };
161
162 partition@70000 {
163 label = "config";
164 reg = <0x070000 0x010000>;
165 };
166
167 partition@80000 {
168 label = "pot";
169 reg = <0x080000 0x010000>;
170 };
171
172 partition@90000 {
173 label = "firmware";
174 reg = <0x090000 0xf30000>;
175 compatible = "denx,uimage";
176 };
177
178 partition@fc0000 {
179 label = "language";
180 reg = <0xfc0000 0x040000>;
181 };
182 };
183 };
184 };
185
186 &wmac {
187 status = "okay";
188
189 mtd-cal-data = <&caldata 0x1000>;
190 nvmem-cells = <&macaddr_caldata_6>;
191 nvmem-cell-names = "mac-address";
192 };
193
194 &mdio0 {
195 status = "okay";
196
197 phy4: ethernet-phy@4 {
198 reg = <4>;
199 phy-mode = "rgmii";
200 };
201 };
202
203 &eth0 {
204 status = "okay";
205
206 nvmem-cells = <&macaddr_caldata_0>;
207 nvmem-cell-names = "mac-address";
208
209 phy-handle = <&phy4>;
210 phy-mode = "rgmii-rxid";
211
212 pll-data = <0x86000000 0x80000101 0x80001313>;
213 };
214
215 &caldata {
216 compatible = "nvmem-cells";
217 #address-cells = <1>;
218 #size-cells = <1>;
219
220 macaddr_caldata_0: macaddr@0 {
221 reg = <0x0 0x6>;
222 };
223
224 macaddr_caldata_6: macaddr@6 {
225 reg = <0x6 0x6>;
226 };
227 };