treewide: dts: Remove default-state=off property from all gpio LED nodes
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9561_tplink_archer-c59-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 "qca9561_tplink_archer-c5x.dtsi"
8
9 / {
10 compatible = "tplink,archer-c59-v1", "qca,qca9560";
11 model = "TP-LINK Archer C59 v1";
12
13 aliases {
14 led-boot = &power;
15 led-failsafe = &power;
16 led-running = &power;
17 led-upgrade = &power;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 power: power {
24 label = "tp-link:green:power";
25 gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
26 default-state = "on";
27 };
28
29 wlan2g {
30 label = "tp-link:green:wlan2g";
31 gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
32 linux,default-trigger = "phy1tpt";
33 };
34
35 wlan5g {
36 label = "tp-link:green:wlan5g";
37 gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
38 linux,default-trigger = "phy0tpt";
39 };
40
41 wan_green {
42 label = "tp-link:green:wan";
43 gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
44 };
45
46 wan_amber {
47 label = "tp-link:amber:wan";
48 gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
49 };
50
51 lan {
52 label = "tp-link:green:lan";
53 gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
54 };
55
56 wps {
57 label = "tp-link:green:wps";
58 gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
59 };
60
61 usb {
62 label = "tp-link:green:usb";
63 gpios = <&led_gpio 7 GPIO_ACTIVE_LOW>;
64 linux,default-trigger = "usbport";
65 trigger-sources = <&hub_port>;
66 };
67 };
68 };
69
70 &usb0 {
71 #address-cells = <1>;
72 #size-cells = <0>;
73 status = "okay";
74
75 hub_port: port@1 {
76 reg = <1>;
77 #trigger-source-cells = <0>;
78 };
79 };
80
81 &usb_phy0 {
82 status = "okay";
83 };
84
85 &spi {
86 status = "okay";
87 num-cs = <1>;
88
89 flash@0 {
90 compatible = "jedec,spi-nor";
91 reg = <0>;
92 spi-max-frequency = <25000000>;
93
94 partitions {
95 compatible = "fixed-partitions";
96 #address-cells = <1>;
97 #size-cells = <1>;
98
99 partition@0 {
100 label = "u-boot";
101 reg = <0x000000 0x010000>;
102 read-only;
103 };
104
105 mac: partition@10000 {
106 label = "mac";
107 reg = <0x010000 0x010000>;
108 read-only;
109 };
110
111 partition@20000 {
112 compatible = "denx,uimage";
113 label = "firmware";
114 reg = <0x020000 0xe30000>;
115 };
116
117 partition@e50000 {
118 label = "tplink";
119 reg = <0xe50000 0x1a0000>;
120 read-only;
121 };
122
123 art: partition@ff0000 {
124 label = "art";
125 reg = <0xff0000 0x010000>;
126 read-only;
127 };
128 };
129 };
130 };
131
132 &eth0 {
133 status = "okay";
134 mtd-mac-address = <&mac 0x8>;
135 mtd-mac-address-increment = <1>;
136 };
137
138 &eth1 {
139 status = "okay";
140 mtd-mac-address = <&mac 0x8>;
141 };
142
143 &wmac {
144 status = "okay";
145 mtd-cal-data = <&art 0x1000>;
146 mtd-mac-address = <&mac 0x8>;
147 };