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>
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.
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.
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>
25 model = "Compex WPJ428";
26 compatible = "compex,wpj428", "qcom,ipq4019";
39 compatible = "qcom,tcsr";
40 reg = <0x194b000 0x100>;
41 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
46 compatible = "qcom,tcsr";
47 reg = <0x1949000 0x100>;
48 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
52 compatible = "qcom,tcsr";
53 reg = <0x1953000 0x1000>;
54 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
58 compatible = "qcom,tcsr";
59 reg = <0x1957000 0x100>;
60 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
80 switch_lan_bmp = <0x10>;
81 switch_wan_bmp = <0x20>;
92 compatible = "gpio-keys";
96 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
97 linux,code = <KEY_RESTART>;
103 led-failsafe = &status;
104 led-upgrade = &status;
108 compatible = "gpio-leds";
111 label = "wpj428:green:rss4";
112 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
116 label = "wpj428:green:rss3";
117 gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
122 compatible = "gpio-beeper";
123 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
128 serial_pins: serial_pinmux {
130 pins = "gpio60", "gpio61";
131 function = "blsp_uart0";
136 spi_0_pins: spi_0_pinmux {
138 function = "blsp_spi0";
139 pins = "gpio55", "gpio56", "gpio57";
140 drive-strength = <12>;
146 drive-strength = <2>;
158 pinctrl-0 = <&spi_0_pins>;
159 pinctrl-names = "default";
161 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
164 #address-cells = <1>;
166 compatible = "jedec,spi-nor";
168 spi-max-frequency = <24000000>;
171 compatible = "fixed-partitions";
172 #address-cells = <1>;
177 reg = <0x00000000 0x00040000>;
182 reg = <0x00040000 0x00020000>;
187 reg = <0x00060000 0x00060000>;
192 reg = <0x000c0000 0x00010000>;
196 label = "0:DDRPARAMS";
197 reg = <0x000d0000 0x00010000>;
201 label = "0:APPSBLENV"; /* uboot env*/
202 reg = <0x000e0000 0x00010000>;
206 label = "0:APPSBL"; /* uboot */
207 reg = <0x000f0000 0x00080000>;
212 reg = <0x00170000 0x00010000>;
216 compatible = "denx,fit";
218 reg = <0x00180000 0x01e80000>;
225 pinctrl-0 = <&serial_pins>;
226 pinctrl-names = "default";
235 qcom,phy_mdio_addr = <4>;
236 qcom,poll_required = <1>;
237 qcom,forced_speed = <1000>;
238 qcom,forced_duplex = <1>;
243 qcom,phy_mdio_addr = <3>;
244 qcom,poll_required = <1>;
245 qcom,forced_speed = <1000>;
246 qcom,forced_duplex = <1>;