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";
35 pinctrl-0 = <&mdio_pins>;
36 pinctrl-names = "default";
37 reset-gpios = <&tlmm 59 GPIO_ACTIVE_LOW>;
38 reset-delay-us = <2000>;
47 compatible = "qcom,tcsr";
48 reg = <0x194b000 0x100>;
49 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
54 compatible = "qcom,tcsr";
55 reg = <0x1949000 0x100>;
56 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
60 compatible = "qcom,tcsr";
61 reg = <0x1953000 0x1000>;
62 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
66 compatible = "qcom,tcsr";
67 reg = <0x1957000 0x100>;
68 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
88 switch_lan_bmp = <0x10>;
89 switch_wan_bmp = <0x20>;
100 compatible = "gpio-keys";
104 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
105 linux,code = <KEY_RESTART>;
111 led-failsafe = &status;
112 led-upgrade = &status;
116 compatible = "gpio-leds";
119 label = "green:rss4";
120 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
124 label = "green:rss3";
125 gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
130 compatible = "gpio-beeper";
131 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
136 mdio_pins: mdio_pinmux {
150 serial_pins: serial_pinmux {
152 pins = "gpio60", "gpio61";
153 function = "blsp_uart0";
158 spi_0_pins: spi_0_pinmux {
160 function = "blsp_spi0";
161 pins = "gpio55", "gpio56", "gpio57";
162 drive-strength = <12>;
168 drive-strength = <2>;
180 pinctrl-0 = <&spi_0_pins>;
181 pinctrl-names = "default";
183 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
186 compatible = "jedec,spi-nor";
188 spi-max-frequency = <24000000>;
191 compatible = "fixed-partitions";
192 #address-cells = <1>;
197 reg = <0x00000000 0x00040000>;
202 reg = <0x00040000 0x00020000>;
207 reg = <0x00060000 0x00060000>;
212 reg = <0x000c0000 0x00010000>;
216 label = "0:DDRPARAMS";
217 reg = <0x000d0000 0x00010000>;
221 label = "0:APPSBLENV"; /* uboot env*/
222 reg = <0x000e0000 0x00010000>;
226 label = "0:APPSBL"; /* uboot */
227 reg = <0x000f0000 0x00080000>;
232 reg = <0x00170000 0x00010000>;
234 compatible = "nvmem-cells";
235 #address-cells = <1>;
238 precal_art_1000: precal@1000 {
239 reg = <0x1000 0x2f20>;
242 precal_art_5000: precal@5000 {
243 reg = <0x5000 0x2f20>;
247 compatible = "denx,fit";
249 reg = <0x00180000 0x01e80000>;
256 pinctrl-0 = <&serial_pins>;
257 pinctrl-names = "default";
266 qcom,phy_mdio_addr = <4>;
267 qcom,poll_required = <1>;
268 qcom,forced_speed = <1000>;
269 qcom,forced_duplex = <1>;
274 qcom,phy_mdio_addr = <3>;
275 qcom,poll_required = <1>;
276 qcom,forced_speed = <1000>;
277 qcom,forced_duplex = <1>;
295 nvmem-cell-names = "pre-calibration";
296 nvmem-cells = <&precal_art_1000>;
301 nvmem-cell-names = "pre-calibration";
302 nvmem-cells = <&precal_art_5000>;