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