ath79: remove model name from LED labels
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9563_nec_wg800hp.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca956x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 model = "NEC Aterm WG800HP";
10 compatible = "nec,wg800hp", "qca,qca9563";
11
12 aliases {
13 led-boot = &led_power_green;
14 led-failsafe = &led_power_red;
15 led-running = &led_power_green;
16 led-upgrade = &led_power_green;
17 };
18
19 leds {
20 compatible = "gpio-leds";
21 pinctrl-names = "default";
22 pinctrl-0 = <&jtag_disable_pins>;
23
24 wlan2g_red {
25 label = "red:wlan2g";
26 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
27 };
28
29 active_red {
30 label = "red:active";
31 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
32 };
33
34 active_green {
35 label = "green:active";
36 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
37 };
38
39 led_power_red: power_red {
40 label = "red:power";
41 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
42 };
43
44 led_power_green: power_green {
45 label = "green:power";
46 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
47 default-state = "on";
48 };
49
50 wlan5g_red {
51 label = "red:wlan5g";
52 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
53 };
54
55 wlan5g_green {
56 label = "green:wlan5g";
57 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
58 linux,default-trigger = "phy0tpt";
59 };
60
61 wlan2g_green {
62 label = "green:wlan2g";
63 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
64 linux,default-trigger = "phy1tpt";
65 };
66 };
67
68 keys {
69 compatible = "gpio-keys";
70
71 br {
72 label = "br";
73 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
74 linux,code = <BTN_0>;
75 linux,input-type = <EV_SW>;
76 debounce-interval = <60>;
77 };
78
79 reset {
80 label = "reset";
81 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
82 linux,code = <KEY_RESTART>;
83 debounce-interval = <60>;
84 };
85
86 wps {
87 label = "wps";
88 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
89 linux,code = <KEY_WPS_BUTTON>;
90 debounce-interval = <60>;
91 };
92 };
93 };
94
95 &spi {
96 status = "okay";
97 num-cs = <1>;
98
99 flash@0 {
100 compatible = "jedec,spi-nor";
101 reg = <0>;
102 spi-max-frequency = <25000000>;
103
104 partitions {
105 compatible = "fixed-partitions";
106 #address-cells = <1>;
107 #size-cells = <1>;
108
109 partition@0 {
110 label = "u-boot";
111 reg = <0x000000 0x040000>;
112 read-only;
113 };
114
115 partition@40000 {
116 label = "u-boot-env";
117 reg = <0x040000 0x010000>;
118 read-only;
119 };
120
121 partition@50000 {
122 compatible = "denx,uimage";
123 label = "firmware";
124 reg = <0x050000 0x6f0000>;
125 };
126
127 partition@740000 {
128 label = "user_data";
129 reg = <0x740000 0x0a0000>;
130 read-only;
131 };
132
133 partition@7e0000 {
134 label = "board_data";
135 reg = <0x7e0000 0x010000>;
136 read-only;
137 };
138
139 art: partition@7f0000 {
140 label = "art";
141 reg = <0x7f0000 0x010000>;
142 read-only;
143 };
144 };
145 };
146 };
147
148 &mdio0 {
149 status = "okay";
150
151 phy0: ethernet-phy@0 {
152 reg = <0>;
153
154 qca,ar8327-initvals = <
155 0x04 0x00000080 /* PORT0 PAD MODE CTRL */
156 0x50 0xcc35cc35 /* LED_CTRL0 */
157 0x54 0xca35ca35 /* LED_CTRL1 */
158 0x58 0xc935c935 /* LED_CTRL2 */
159 0x5c 0x03ffff00 /* LED_CTRL3 */
160 0x7c 0x0000007e /* PORT0_STATUS */
161 >;
162 };
163 };
164
165 &eth0 {
166 status = "okay";
167
168 phy-mode = "sgmii";
169 phy-handle = <&phy0>;
170 };
171
172 &pcie {
173 status = "okay";
174 };
175
176 &uart {
177 status = "okay";
178 };
179
180 &wmac {
181 status = "okay";
182 qca,no-eeprom;
183 };