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 clk_ignore_unused";
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>;
216 compatible = "spi-nand";
217 spi-max-frequency = <24000000>;
220 compatible = "fixed-partitions";
221 #address-cells = <1>;
224 /* The device has 128MB, but we can only address
225 * 64MB because of the bootloader's default settings.
226 * This is due to the old mt29f driver,
227 * which detected the deivce with only 64MB
231 reg = <0x0000000 0x4000000>;
239 pinctrl-0 = <&mdio_pins>;
240 pinctrl-names = "default";
241 reset-gpios = <&tlmm 47 GPIO_ACTIVE_LOW>;
242 reset-delay-us = <5000>;
250 /* select hostmode */
251 compatible = "qcom,tcsr";
252 reg = <0x194b000 0x100>;
253 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
258 compatible = "qcom,tcsr";
259 reg = <0x1949000 0x100>;
260 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
264 compatible = "qcom,tcsr";
265 reg = <0x1953000 0x1000>;
266 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
270 compatible = "qcom,tcsr";
271 reg = <0x1957000 0x100>;
272 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
276 pinctrl-0 = <&i2c_0_pins>;
277 pinctrl-names = "default";
282 pinctrl-0 = <&serial_0_pins>;
283 pinctrl-names = "default";
288 pinctrl-0 = <&serial_1_pins>;
289 pinctrl-names = "default";
293 usb3_ss_phy: ssphy@9a000 {
297 usb3_hs_phy: hsphy@a6000 {
305 usb2_hs_phy: hsphy@a8000 {
313 cryptobam: dma@8e04000 {
326 switch_lan_bmp = <0x1e>;
327 switch_wan_bmp = <0x20>;
335 qpic_bam: dma@7984000 {
339 pcie0: pci@40000000 {
341 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
342 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
345 nand: qpic-nand@79b0000 {
346 pinctrl-0 = <&nand_pins>;
347 pinctrl-names = "default";
354 qcom,phy_mdio_addr = <4>;
355 qcom,poll_required = <1>;
356 qcom,forced_speed = <1000>;
357 qcom,forced_duplex = <1>;
362 qcom,phy_mdio_addr = <3>;
363 qcom,poll_required = <1>;
364 qcom,forced_speed = <1000>;
365 qcom,forced_duplex = <1>;