treewide: dts: Remove default-state=off property from all gpio LED nodes
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9563_tplink_tl-wr1043n.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 "qca956x.dtsi"
8
9 / {
10 chosen {
11 bootargs = "console=ttyS0,115200n8";
12 };
13
14 aliases {
15 led-boot = &system;
16 led-failsafe = &system;
17 led-running = &system;
18 led-upgrade = &system;
19 };
20
21 gpio_leds: leds {
22 compatible = "gpio-leds";
23
24 system: system {
25 label = "tp-link:green:system";
26 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
27 linux,default-trigger = "heartbeat";
28 };
29
30 wifi_green {
31 label = "tp-link:green:wlan";
32 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
33 linux,default-trigger = "phy0tpt";
34 };
35
36 wifi_wps {
37 label = "tp-link:green:wps";
38 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
39 };
40
41 wan {
42 label = "tp-link:green:wan";
43 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
44 };
45
46 wan_fail {
47 label = "tp-link:orange:wan";
48 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
49 };
50
51 lan1 {
52 label = "tp-link:green:lan1";
53 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
54 };
55
56 lan2 {
57 label = "tp-link:green:lan2";
58 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
59 };
60
61 lan3 {
62 label = "tp-link:green:lan3";
63 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
64 };
65
66 lan4 {
67 label = "tp-link:green:lan4";
68 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
69 };
70 };
71
72 keys {
73 compatible = "gpio-keys";
74
75 reset {
76 label = "Reset button";
77 linux,code = <KEY_RESTART>;
78 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
79 debounce-interval = <60>;
80 };
81
82 wifi {
83 label = "RFKILL button";
84 linux,code = <KEY_RFKILL>;
85 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
86 debounce-interval = <60>;
87 };
88 };
89
90 gpio-export {
91 compatible = "gpio-export";
92 #size-cells = <0>;
93
94 gpio_usb_power {
95 gpio-export,name = "tp-link:power:usb";
96 gpio-export,output = <1>;
97 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
98 };
99 };
100 };
101
102 &uart {
103 status = "okay";
104 };
105
106 &gpio {
107 status = "okay";
108 };
109
110 &spi {
111 status = "okay";
112 num-cs = <1>;
113
114 flash@0 {
115 compatible = "jedec,spi-nor";
116 reg = <0>;
117 spi-max-frequency = <25000000>;
118
119 partitions {
120 compatible = "fixed-partitions";
121 #address-cells = <1>;
122 #size-cells = <1>;
123
124 partition@0 {
125 label = "u-boot";
126 reg = <0x000000 0x020000>;
127 read-only;
128 };
129
130 partition@20000 {
131 compatible = "tplink,firmware";
132 label = "firmware";
133 reg = <0x020000 0xf30000>;
134 };
135
136 info: partition@f50000 {
137 label = "product-info";
138 reg = <0xf50000 0x020000>;
139 read-only;
140 };
141
142 partition@f70000 {
143 label = "config";
144 reg = <0xf70000 0x050000>;
145 read-only;
146 };
147
148 partition@fc0000 {
149 label = "partition-table";
150 reg = <0xfc0000 0x010000>;
151 read-only;
152 };
153
154 partition@fd0000 {
155 label = "logs";
156 reg = <0xfd0000 0x020000>;
157 read-only;
158 };
159
160 art: partition@ff0000 {
161 label = "ART";
162 reg = <0xff0000 0x010000>;
163 read-only;
164 };
165 };
166 };
167 };
168
169 &mdio0 {
170 status = "okay";
171
172 phy-mask = <0>;
173 phy0: ethernet-phy@0 {
174 reg = <0>;
175 phy-mode = "sgmii";
176
177 qca,ar8327-initvals = <
178 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
179 0x7c 0x0000007e /* PORT0_STATUS */
180 >;
181 };
182 };
183
184 &eth0 {
185 status = "okay";
186
187 mtd-mac-address = <&info 0x8>;
188 phy-mode = "sgmii";
189 phy-handle = <&phy0>;
190 };
191
192 &wmac {
193 status = "okay";
194 mtd-cal-data = <&art 0x1000>;
195 mtd-mac-address = <&info 0x8>;
196 };