1 /* Copyright (c) 2015, The Linux Foundation. All rights reserved.
2 * Copyright (c) 2019, Nguyen Dinh Phi <phi_nguyen@compex.com.sg>
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 #include "qcom-ipq4019.dtsi"
19 #include <dt-bindings/gpio/gpio.h>
20 #include <dt-bindings/input/input.h>
21 #include <dt-bindings/soc/qcom,tcsr.h>
24 model = "Compex WPJ419";
25 compatible = "compex,wpj419", "qcom,ipq4019";
28 device_type = "memory";
29 reg = <0x80000000 0x10000000>;
35 /* Reserved for other subsystem */
36 reg = <0x87000000 0x500000>;
40 reg = <0x87500000 0x600000>;
45 /* Reserved for other subsystem */
46 reg = <0x87B00000 0x500000>;
52 bootargs-append = " ubi.mtd=ubi root=/dev/ubiblock0_1";
57 mdio_pins: mdio_pinmux {
71 serial_0_pins: serial_pinmux {
73 pins = "gpio16", "gpio17";
74 function = "blsp_uart0";
79 serial_1_pins: serial1_pinmux {
81 pins = "gpio8", "gpio9", "gpio10", "gpio11";
82 function = "blsp_uart1";
87 spi_0_pins: spi_0_pinmux {
89 function = "blsp_spi0";
90 pins = "gpio13", "gpio14", "gpio15";
102 i2c_0_pins: i2c_0_pinmux {
104 pins = "gpio20", "gpio21";
105 function = "blsp_i2c0";
110 nand_pins: nand_pins {
112 pins = "gpio52", "gpio53", "gpio58", "gpio59";
118 pins = "gpio54", "gpio55", "gpio56",
119 "gpio57", "gpio60", "gpio61",
120 "gpio62", "gpio63", "gpio64",
121 "gpio65", "gpio66", "gpio67",
128 led_0_pins: led0_pinmux {
143 pinctrl-0 = <&spi_0_pins>;
144 pinctrl-names = "default";
146 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>, <&tlmm 41 GPIO_ACTIVE_HIGH>;
151 compatible = "jedec,spi-nor";
152 spi-max-frequency = <24000000>;
156 compatible = "fixed-partitions";
157 #address-cells = <1>;
162 reg = <0x000000 0x040000>;
168 reg = <0x040000 0x020000>;
174 reg = <0x060000 0x060000>;
180 reg = <0x0c0000 0x010000>;
185 label = "0:DDRPARAMS";
186 reg = <0x0d0000 0x010000>;
191 label = "u-boot-env";
192 reg = <0x0e0000 0x010000>;
197 reg = <0x0f0000 0x080000>;
203 reg = <0x170000 0x010000>;
207 compatible = "fixed-layout";
208 #address-cells = <1>;
211 precal_art_1000: precal@1000 {
212 reg = <0x1000 0x2f20>;
215 precal_art_5000: precal@5000 {
216 reg = <0x5000 0x2f20>;
226 compatible = "spi-nand";
227 spi-max-frequency = <24000000>;
230 compatible = "fixed-partitions";
231 #address-cells = <1>;
234 /* The device has 128MB, but we can only address
235 * 64MB because of the bootloader's default settings.
236 * This is due to the old mt29f driver,
237 * which detected the deivce with only 64MB
241 reg = <0x0000000 0x4000000>;
249 pinctrl-0 = <&mdio_pins>;
250 pinctrl-names = "default";
251 reset-gpios = <&tlmm 47 GPIO_ACTIVE_LOW>;
252 reset-delay-us = <5000>;
256 /* select hostmode */
257 compatible = "qcom,tcsr";
258 reg = <0x194b000 0x100>;
259 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
264 compatible = "qcom,tcsr";
265 reg = <0x1949000 0x100>;
266 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
270 compatible = "qcom,tcsr";
271 reg = <0x1953000 0x1000>;
272 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
276 compatible = "qcom,tcsr";
277 reg = <0x1957000 0x100>;
278 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
282 pinctrl-0 = <&i2c_0_pins>;
283 pinctrl-names = "default";
288 pinctrl-0 = <&serial_0_pins>;
289 pinctrl-names = "default";
294 pinctrl-0 = <&serial_1_pins>;
295 pinctrl-names = "default";
299 pcie0: pci@40000000 {
301 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
302 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
307 compatible = "gpio-keys";
311 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
312 linux,code = <KEY_RESTART>;
358 pinctrl-0 = <&nand_pins>;
359 pinctrl-names = "default";
365 nvmem-cell-names = "pre-calibration";
366 nvmem-cells = <&precal_art_1000>;
371 nvmem-cell-names = "pre-calibration";
372 nvmem-cells = <&precal_art_5000>;