treewide: dts: Remove default-state=off property from all gpio LED nodes
[openwrt/staging/lynxis.git] / target / linux / ath79 / dts / qca9557_iodata_wn-ac-dgr.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 aliases {
11 led-boot = &power;
12 led-failsafe = &power;
13 led-running = &power;
14 led-upgrade = &power;
15 };
16
17 chosen {
18 bootargs = "console=ttyS0,115200n8";
19 };
20
21 leds {
22 compatible = "gpio-leds";
23
24 power: power {
25 label = "iodata:green:power";
26 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
27 default-state = "on";
28 };
29
30 copy {
31 label = "iodata:green:copy";
32 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
33 };
34
35 eco {
36 label = "iodata:green:eco";
37 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
38 };
39
40 wlan5g {
41 label = "iodata:green:wlan5g";
42 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
43 linux,default-trigger = "phy0tpt";
44 };
45
46 wlan2g {
47 label = "iodata:green:wlan2g";
48 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
49 linux,default-trigger = "phy1tpt";
50 };
51
52 notification {
53 label = "iodata:amber:notification";
54 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
55 };
56 };
57
58 keys {
59 compatible = "gpio-keys-polled";
60 poll-interval = <20>;
61
62 button_eco {
63 label = "eco";
64 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
65 linux,code = <BTN_1>;
66 debounce-interval = <60>;
67 };
68
69 auto {
70 label = "auto";
71 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
72 linux,code = <BTN_0>;
73 linux,input-type = <EV_SW>;
74 debounce-interval = <60>;
75 };
76
77 button_copy {
78 label = "copy";
79 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
80 linux,code = <BTN_1>;
81 debounce-interval = <60>;
82 };
83
84 wps {
85 label = "wps";
86 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
87 linux,code = <KEY_WPS_BUTTON>;
88 debounce-interval = <60>;
89 };
90
91 reset {
92 label = "reset";
93 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
94 linux,code = <KEY_RESTART>;
95 debounce-interval = <60>;
96 };
97
98 router {
99 label = "router";
100 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
101 linux,code = <BTN_0>;
102 linux,input-type = <EV_SW>;
103 debounce-interval = <60>;
104 };
105 };
106 };
107
108 &spi {
109 status = "okay";
110 num-cs = <1>;
111
112 flash@0 {
113 compatible = "jedec,spi-nor";
114 reg = <0>;
115 spi-max-frequency = <25000000>;
116
117 partitions {
118 compatible = "fixed-partitions";
119 #address-cells = <1>;
120 #size-cells = <1>;
121
122 partition@0 {
123 label = "u-boot";
124 reg = <0x000000 0x030000>;
125 read-only;
126 };
127
128 partition@30000 {
129 label = "u-boot-env";
130 reg = <0x030000 0x010000>;
131 read-only;
132 };
133
134 partition@40000 {
135 compatible = "denx,uimage";
136 label = "firmware";
137 reg = <0x040000 0xe50000>;
138 };
139
140 partition@e90000 {
141 label = "manufacture";
142 reg = <0xe90000 0x100000>;
143 read-only;
144 };
145
146 partition@f90000 {
147 label = "backup";
148 reg = <0xf90000 0x010000>;
149 read-only;
150 };
151
152 partition@fa0000 {
153 label = "storage";
154 reg = <0xfa0000 0x050000>;
155 read-only;
156 };
157
158 art: partition@ff0000 {
159 label = "art";
160 reg = <0xff0000 0x010000>;
161 read-only;
162 };
163 };
164 };
165 };
166
167 &mdio0 {
168 status = "okay";
169
170 phy0: ethernet-phy@0 {
171 reg = <0>;
172
173 qca,ar8327-initvals = <
174 0x04 0x87600000 /* PORT0 PAD MODE CTRL */
175 0x7c 0x0000007e /* PORT0_STATUS */
176 >;
177 };
178 };
179
180 &eth0 {
181 status = "okay";
182
183 pll-data = <0xa6000000 0x00000101 0x00001616>;
184 phy-handle = <&phy0>;
185 };
186
187 &pcie1 {
188 status = "okay";
189
190 wifi@0,0 {
191 compatible = "pci168c,003c";
192 reg = <0x0000 0 0 0 0>;
193 qca,no-eeprom;
194 };
195 };
196
197 &uart {
198 status = "okay";
199 };
200
201 &usb_phy0 {
202 status = "okay";
203 };
204
205 &usb0 {
206 status = "okay";
207 };
208
209 &wmac {
210 status = "okay";
211 qca,no-eeprom;
212 };