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 {
142 blsp_dma: dma@7884000 {
147 pinctrl-0 = <&spi_0_pins>;
148 pinctrl-names = "default";
150 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>, <&tlmm 41 GPIO_ACTIVE_HIGH>;
155 compatible = "jedec,spi-nor";
156 spi-max-frequency = <24000000>;
160 compatible = "fixed-partitions";
161 #address-cells = <1>;
166 reg = <0x000000 0x040000>;
172 reg = <0x040000 0x020000>;
178 reg = <0x060000 0x060000>;
184 reg = <0x0c0000 0x010000>;
189 label = "0:DDRPARAMS";
190 reg = <0x0d0000 0x010000>;
195 label = "u-boot-env";
196 reg = <0x0e0000 0x010000>;
201 reg = <0x0f0000 0x080000>;
207 reg = <0x170000 0x010000>;
209 compatible = "nvmem-cells";
210 #address-cells = <1>;
213 precal_art_1000: precal@1000 {
214 reg = <0x1000 0x2f20>;
217 precal_art_5000: precal@5000 {
218 reg = <0x5000 0x2f20>;
227 compatible = "spi-nand";
228 spi-max-frequency = <24000000>;
231 compatible = "fixed-partitions";
232 #address-cells = <1>;
235 /* The device has 128MB, but we can only address
236 * 64MB because of the bootloader's default settings.
237 * This is due to the old mt29f driver,
238 * which detected the deivce with only 64MB
242 reg = <0x0000000 0x4000000>;
250 pinctrl-0 = <&mdio_pins>;
251 pinctrl-names = "default";
252 reset-gpios = <&tlmm 47 GPIO_ACTIVE_LOW>;
253 reset-delay-us = <5000>;
257 /* select hostmode */
258 compatible = "qcom,tcsr";
259 reg = <0x194b000 0x100>;
260 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
265 compatible = "qcom,tcsr";
266 reg = <0x1949000 0x100>;
267 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
271 compatible = "qcom,tcsr";
272 reg = <0x1953000 0x1000>;
273 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
277 compatible = "qcom,tcsr";
278 reg = <0x1957000 0x100>;
279 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
283 pinctrl-0 = <&i2c_0_pins>;
284 pinctrl-names = "default";
289 pinctrl-0 = <&serial_0_pins>;
290 pinctrl-names = "default";
295 pinctrl-0 = <&serial_1_pins>;
296 pinctrl-names = "default";
300 usb3_ss_phy: ssphy@9a000 {
304 usb3_hs_phy: hsphy@a6000 {
312 usb2_hs_phy: hsphy@a8000 {
320 cryptobam: dma@8e04000 {
332 qpic_bam: dma@7984000 {
336 pcie0: pci@40000000 {
338 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
339 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
344 compatible = "gpio-keys";
348 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
349 linux,code = <KEY_RESTART>;
355 pinctrl-0 = <&nand_pins>;
356 pinctrl-names = "default";
362 nvmem-cell-names = "pre-calibration";
363 nvmem-cells = <&precal_art_1000>;
368 nvmem-cell-names = "pre-calibration";
369 nvmem-cells = <&precal_art_5000>;