ath79: remove model name from LED labels
[openwrt/staging/jow.git] / target / linux / ath79 / dts / qca9558_engenius_epg5000.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca955x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 model = "EnGenius EPG5000";
10 compatible = "engenius,epg5000", "qca,qca9558";
11
12 aliases {
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 };
18
19 leds {
20 compatible = "gpio-leds";
21
22 led_power: power {
23 label = "amber:power";
24 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
25 default-state = "on";
26 };
27
28 wlan2g {
29 label = "blue:wlan2g";
30 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
31 linux,default-trigger = "phy1tpt";
32 };
33
34 wlan5g {
35 label = "blue:wlan5g";
36 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
37 linux,default-trigger = "phy0tpt";
38 };
39
40 wps_amber {
41 label = "amber:wps";
42 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
43 };
44
45 wps_blue {
46 label = "blue:wps";
47 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
48 };
49 };
50
51 keys {
52 compatible = "gpio-keys";
53
54 reset {
55 label = "reset";
56 linux,code = <KEY_RESTART>;
57 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
58 debounce-interval = <60>;
59 };
60
61 wps {
62 label = "wps";
63 linux,code = <KEY_WPS_BUTTON>;
64 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
65 debounce-interval = <60>;
66 };
67 };
68 };
69
70 &eth0 {
71 status = "okay";
72
73 phy-handle = <&phy0>;
74 pll-data = <0xa6000000 0x00000101 0x00001616>;
75 };
76
77 &mdio0 {
78 status = "okay";
79
80 phy0: ethernet-phy@0 {
81 reg = <0>;
82
83 qca,ar8327-initvals = <
84 0x04 0x87600000 /* PORT0 PAD MODE CTRL */
85 0x7c 0x0000007e /* PORT0_STATUS */
86 >;
87 };
88 };
89
90 &pcie0 {
91 status = "okay";
92
93 wifi@0,0 {
94 compatible = "pci168c,003c";
95 reg = <0x0000 0 0 0 0>;
96 };
97 };
98
99 &spi {
100 status = "okay";
101
102 num-cs = <1>;
103
104 flash@0 {
105 compatible = "jedec,spi-nor";
106 reg = <0>;
107 spi-max-frequency = <25000000>;
108
109 partitions {
110 compatible = "fixed-partitions";
111 #address-cells = <1>;
112 #size-cells = <1>;
113
114 partition@0 {
115 label = "u-boot";
116 reg = <0x000000 0x030000>;
117 read-only;
118 };
119
120 partition@30000 {
121 label = "u-boot-env";
122 reg = <0x030000 0x010000>;
123 };
124
125 partition@40000 {
126 compatible = "denx,uimage";
127 label = "firmware";
128 reg = <0x040000 0xe50000>;
129 };
130
131 partition@790000 {
132 label = "manufacture";
133 reg = <0xe90000 0x100000>;
134 read-only;
135 };
136
137 partition@ed0000 {
138 label = "backup";
139 reg = <0xf90000 0x010000>;
140 read-only;
141 };
142
143 partition@fe0000 {
144 label = "storage";
145 reg = <0xfa0000 0x050000>;
146 read-only;
147 };
148
149 partition@ff0000 {
150 label = "art";
151 reg = <0xff0000 0x010000>;
152 read-only;
153 };
154 };
155 };
156 };
157
158 &uart {
159 status = "okay";
160 };
161
162 &usb_phy1 {
163 status = "okay";
164 };
165
166 &usb1 {
167 status = "okay";
168 };
169
170 &wmac {
171 status = "okay";
172
173 qca,no-eeprom;
174 };