5e4d224d3e75e3a1ffca40fd994c6bd972ffe9ed
[openwrt/openwrt.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 flash@0 {
103 compatible = "jedec,spi-nor";
104 reg = <0>;
105 spi-max-frequency = <25000000>;
106
107 partitions {
108 compatible = "fixed-partitions";
109 #address-cells = <1>;
110 #size-cells = <1>;
111
112 partition@0 {
113 label = "u-boot";
114 reg = <0x000000 0x030000>;
115 read-only;
116 };
117
118 partition@30000 {
119 label = "u-boot-env";
120 reg = <0x030000 0x010000>;
121 };
122
123 partition@40000 {
124 compatible = "denx,uimage";
125 label = "firmware";
126 reg = <0x040000 0xe50000>;
127 };
128
129 partition@790000 {
130 label = "manufacture";
131 reg = <0xe90000 0x100000>;
132 read-only;
133 };
134
135 partition@ed0000 {
136 label = "backup";
137 reg = <0xf90000 0x010000>;
138 read-only;
139 };
140
141 partition@fe0000 {
142 label = "storage";
143 reg = <0xfa0000 0x050000>;
144 read-only;
145 };
146
147 partition@ff0000 {
148 label = "art";
149 reg = <0xff0000 0x010000>;
150 read-only;
151 };
152 };
153 };
154 };
155
156 &uart {
157 status = "okay";
158 };
159
160 &usb_phy1 {
161 status = "okay";
162 };
163
164 &usb1 {
165 status = "okay";
166 };
167
168 &wmac {
169 status = "okay";
170
171 qca,no-eeprom;
172 };