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