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