ipq40xx: remove qcom,ipq4019 on all devices
[oweals/openwrt.git] / target / linux / ipq40xx / files-4.19 / arch / arm / boot / dts / qcom-ipq4028-wpj428.dts
1 /* Copyright (c) 2015, The Linux Foundation. All rights reserved.
2  * Copyright (c) 2017, Christian Mehlis <christian@m3hlis.de>
3  * Copyright (c) 2017-2018, Sven Eckelmann <sven.eckelmann@openmesh.com>
4  *
5  * Permission to use, copy, modify, and/or distribute this software for any
6  * purpose with or without fee is hereby granted, provided that the above
7  * copyright notice and this permission notice appear in all copies.
8  *
9  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16  *
17  */
18
19 #include "qcom-ipq4019.dtsi"
20 #include <dt-bindings/gpio/gpio.h>
21 #include <dt-bindings/input/input.h>
22 #include <dt-bindings/soc/qcom,tcsr.h>
23
24 / {
25         model = "Compex WPJ428";
26         compatible = "compex,wpj428";
27
28         soc {
29                 rng@22000 {
30                         status = "okay";
31                 };
32
33                 mdio@90000 {
34                         status = "okay";
35                 };
36
37                 ess-psgmii@98000 {
38                         status = "okay";
39                 };
40
41                 tcsr@194b000 {
42                         /* select hostmode */
43                         compatible = "qcom,tcsr";
44                         reg = <0x194b000 0x100>;
45                         qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
46                         status = "okay";
47                 };
48
49                 tcsr@1949000 {
50                         compatible = "qcom,tcsr";
51                         reg = <0x1949000 0x100>;
52                         qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
53                 };
54
55                 ess_tcsr@1953000 {
56                         compatible = "qcom,tcsr";
57                         reg = <0x1953000 0x1000>;
58                         qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
59                 };
60
61                 tcsr@1957000 {
62                         compatible = "qcom,tcsr";
63                         reg = <0x1957000 0x100>;
64                         qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
65                 };
66
67                 usb2: usb2@60f8800 {
68                         status = "okay";
69                 };
70
71                 usb3: usb3@8af8800 {
72                         status = "okay";
73                 };
74
75                 crypto@8e3a000 {
76                         status = "okay";
77                 };
78
79                 watchdog@b017000 {
80                         status = "okay";
81                 };
82
83                 ess-switch@c000000 {
84                         switch_lan_bmp = <0x10>;
85                         switch_wan_bmp = <0x20>;
86
87                         status = "okay";
88                 };
89
90                 edma@c080000 {
91                         status = "okay";
92                 };
93         };
94
95         gpio-keys {
96                 compatible = "gpio-keys";
97
98                 reset {
99                         label = "reset";
100                         gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
101                         linux,code = <KEY_RESTART>;
102                 };
103         };
104
105         aliases {
106                 led-boot = &status;
107                 led-failsafe = &status;
108                 led-upgrade = &status;
109         };
110
111         gpio-leds {
112                 compatible = "gpio-leds";
113
114                 status: rss4 {
115                         label = "wpj428:green:rss4";
116                         gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
117                 };
118
119                 rss3 {
120                         label = "wpj428:green:rss3";
121                         gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
122                 };
123         };
124
125         beeper: beeper {
126                 compatible = "gpio-beeper";
127                 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
128         };
129 };
130
131 &tlmm {
132         serial_pins: serial_pinmux {
133                 mux {
134                         pins = "gpio60", "gpio61";
135                         function = "blsp_uart0";
136                         bias-disable;
137                 };
138         };
139
140         spi_0_pins: spi_0_pinmux {
141                 pin {
142                         function = "blsp_spi0";
143                         pins = "gpio55", "gpio56", "gpio57";
144                         drive-strength = <12>;
145                         bias-disable;
146                 };
147                 pin_cs {
148                         function = "gpio";
149                         pins = "gpio54";
150                         drive-strength = <2>;
151                         bias-disable;
152                         output-high;
153                 };
154         };
155 };
156
157 &blsp_dma {
158         status = "okay";
159 };
160
161 &blsp1_spi1 {
162         pinctrl-0 = <&spi_0_pins>;
163         pinctrl-names = "default";
164         status = "okay";
165         cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
166
167         m25p80@0 {
168                 compatible = "jedec,spi-nor";
169                 reg = <0>;
170                 spi-max-frequency = <24000000>;
171
172                 partitions {
173                         compatible = "fixed-partitions";
174                         #address-cells = <1>;
175                         #size-cells = <1>;
176
177                         partition0@0 {
178                                 label = "0:SBL1";
179                                 reg = <0x00000000 0x00040000>;
180                                 read-only;
181                         };
182                         partition1@40000 {
183                                 label = "0:MIBIB";
184                                 reg = <0x00040000 0x00020000>;
185                                 read-only;
186                         };
187                         partition2@60000 {
188                                 label = "0:QSEE";
189                                 reg = <0x00060000 0x00060000>;
190                                 read-only;
191                         };
192                         partition3@c0000 {
193                                 label = "0:CDT";
194                                 reg = <0x000c0000 0x00010000>;
195                                 read-only;
196                         };
197                         partition4@d0000 {
198                                 label = "0:DDRPARAMS";
199                                 reg = <0x000d0000 0x00010000>;
200                                 read-only;
201                         };
202                         partition5@e0000 {
203                                 label = "0:APPSBLENV"; /* uboot env*/
204                                 reg = <0x000e0000 0x00010000>;
205                                 read-only;
206                         };
207                         partition5@f0000 {
208                                 label = "0:APPSBL"; /* uboot */
209                                 reg = <0x000f0000 0x00080000>;
210                                 read-only;
211                         };
212                         partition5@170000 {
213                                 label = "0:ART";
214                                 reg = <0x00170000 0x00010000>;
215                                 read-only;
216                         };
217                         partition6@180000 {
218                                 compatible = "denx,fit";
219                                 label = "firmware";
220                                 reg = <0x00180000 0x01e80000>;
221                         };
222                 };
223         };
224 };
225
226 &blsp1_uart1 {
227         pinctrl-0 = <&serial_pins>;
228         pinctrl-names = "default";
229         status = "okay";
230 };
231
232 &cryptobam {
233         status = "okay";
234 };
235
236 &gmac0 {
237         qcom,phy_mdio_addr = <4>;
238         qcom,poll_required = <1>;
239         qcom,forced_speed = <1000>;
240         qcom,forced_duplex = <1>;
241         vlan_tag = <2 0x20>;
242 };
243
244 &gmac1 {
245         qcom,phy_mdio_addr = <3>;
246         qcom,poll_required = <1>;
247         qcom,forced_speed = <1000>;
248         qcom,forced_duplex = <1>;
249         vlan_tag = <1 0x10>;
250 };
251
252 &usb3_ss_phy {
253         status = "okay";
254 };
255
256 &usb3_hs_phy {
257         status = "okay";
258 };
259
260 &usb2_hs_phy {
261         status = "okay";
262 };
263
264 &wifi0 {
265         status = "okay";
266 };
267
268 &wifi1 {
269         status = "okay";
270 };