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