treewide: dts: Remove default-state=off property from all gpio LED nodes
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar7242_tplink_tl-wr2543-v1.dts
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 "ar7242.dtsi"
8
9 / {
10 compatible = "tplink,tl-wr2543-v1", "qca,ar7242";
11 model = "TP-LINK TL-WR2543N/ND";
12
13 aliases {
14 led-boot = &system;
15 led-failsafe = &system;
16 led-running = &system;
17 led-upgrade = &system;
18 };
19
20 chosen {
21 bootargs = "console=ttyS0,115200n8";
22 };
23
24 extosc: ref {
25 compatible = "fixed-clock";
26 #clock-cells = <0>;
27 clock-frequency = <40000000>;
28 };
29
30 gpio-keys {
31 compatible = "gpio-keys-polled";
32 poll-interval = <20>;
33
34 reset {
35 label = "reset";
36 linux,code = <KEY_RESTART>;
37 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
38 debounce-interval = <60>;
39 };
40
41 wps {
42 label = "wps";
43 linux,code = <KEY_WPS_BUTTON>;
44 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
45 debounce-interval = <60>;
46 };
47 };
48
49 leds {
50 compatible = "gpio-leds";
51
52 system: wps {
53 label = "tplink:green:wps";
54 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
55 };
56
57 usb {
58 label = "tplink:green:usb";
59 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
60 trigger-sources = <&hub_port>;
61 linux,default-trigger = "usbport";
62 };
63 };
64
65 ath9k-leds {
66 compatible = "gpio-leds";
67
68 wlan2g {
69 label = "tplink:green:wlan2g";
70 gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
71 linux,default-trigger = "phy0tpt";
72 };
73
74 wlan5g {
75 label = "tplink:green:wlan5g";
76 gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
77 linux,default-trigger = "phy0tpt";
78 };
79 };
80
81 rtl8367 {
82 compatible = "realtek,rtl8367";
83 gpio-sda = <&gpio 1 GPIO_ACTIVE_HIGH>;
84 gpio-sck = <&gpio 6 GPIO_ACTIVE_HIGH>;
85 realtek,extif0 = <1 0 1 1 1 1 1 1 2>;
86
87 mdio-bus {
88 #address-cells = <1>;
89 #size-cells = <0>;
90 status = "okay";
91
92 phy0: ethernet-phy@0 {
93 reg = <0>;
94 };
95 };
96 };
97 };
98
99 &pll {
100 clocks = <&extosc>;
101 };
102
103 &spi {
104 status = "okay";
105 num-cs = <1>;
106
107 flash@0 {
108 compatible = "jedec,spi-nor";
109 reg = <0>;
110 spi-max-frequency = <25000000>;
111
112 partitions {
113 compatible = "fixed-partitions";
114 #address-cells = <1>;
115 #size-cells = <1>;
116
117 uboot: partition@0 {
118 label = "u-boot";
119 reg = <0x000000 0x020000>;
120 read-only;
121 };
122
123 partition@20000 {
124 compatible = "tplink,firmware";
125 label = "firmware";
126 reg = <0x020000 0x7d0000>;
127 };
128
129 partition@7f0000 {
130 label = "art";
131 reg = <0x7f0000 0x010000>;
132 read-only;
133 };
134 };
135 };
136 };
137
138 &uart {
139 status = "okay";
140 };
141
142 &usb {
143 #address-cells = <1>;
144 #size-cells = <0>;
145 status = "okay";
146
147 hub_port: port@1 {
148 reg = <1>;
149 #trigger-source-cells = <0>;
150 };
151 };
152
153 &usb_phy {
154 status = "okay";
155 };
156
157 &pcie {
158 status = "okay";
159
160 ath9k: wifi@0,0 {
161 reg = <0x0000 0 0 0 0>;
162 #gpio-cells = <2>;
163 gpio-controller;
164 qca,no-eeprom;
165 mtd-mac-address = <&uboot 0x1fc00>;
166 };
167 };
168
169 &eth0 {
170 status = "okay";
171
172 phy-mode = "rgmii";
173 mtd-mac-address = <&uboot 0x1fc00>;
174
175 phy-handle = <&phy0>;
176 fixed-link {
177 speed = <1000>;
178 full-duplex;
179 };
180 };