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 pinctrl-0 = <&spi_0_pins>;
58 pinctrl-names = "default";
60 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>, <&tlmm 41 GPIO_ACTIVE_HIGH>;
65 compatible = "jedec,spi-nor";
66 spi-max-frequency = <24000000>;
70 compatible = "fixed-partitions";
76 reg = <0x000000 0x040000>;
82 reg = <0x040000 0x020000>;
88 reg = <0x060000 0x060000>;
94 reg = <0x0c0000 0x010000>;
99 label = "0:DDRPARAMS";
100 reg = <0x0d0000 0x010000>;
105 label = "u-boot-env";
106 reg = <0x0e0000 0x010000>;
111 reg = <0x0f0000 0x080000>;
117 reg = <0x170000 0x010000>;
121 compatible = "fixed-layout";
122 #address-cells = <1>;
125 precal_art_1000: precal@1000 {
126 reg = <0x1000 0x2f20>;
129 precal_art_5000: precal@5000 {
130 reg = <0x5000 0x2f20>;
140 compatible = "spi-nand";
141 spi-max-frequency = <24000000>;
144 compatible = "fixed-partitions";
145 #address-cells = <1>;
148 /* The device has 128MB, but we can only address
149 * 64MB because of the bootloader's default settings.
150 * This is due to the old mt29f driver,
151 * which detected the deivce with only 64MB
155 reg = <0x0000000 0x4000000>;
162 /* select hostmode */
163 compatible = "qcom,tcsr";
164 reg = <0x194b000 0x100>;
165 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
170 compatible = "qcom,tcsr";
171 reg = <0x1949000 0x100>;
172 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
176 compatible = "qcom,tcsr";
177 reg = <0x1953000 0x1000>;
178 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
182 compatible = "qcom,tcsr";
183 reg = <0x1957000 0x100>;
184 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
189 compatible = "gpio-keys";
193 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
194 linux,code = <KEY_RESTART>;
200 mdio_pins: mdio_pinmux {
214 serial_0_pins: serial_pinmux {
216 pins = "gpio16", "gpio17";
217 function = "blsp_uart0";
222 serial_1_pins: serial1_pinmux {
224 pins = "gpio8", "gpio9", "gpio10", "gpio11";
225 function = "blsp_uart1";
230 spi_0_pins: spi_0_pinmux {
232 function = "blsp_spi0";
233 pins = "gpio13", "gpio14", "gpio15";
245 i2c_0_pins: i2c_0_pinmux {
247 pins = "gpio20", "gpio21";
248 function = "blsp_i2c0";
253 nand_pins: nand_pins {
255 pins = "gpio52", "gpio53", "gpio58", "gpio59";
261 pins = "gpio54", "gpio55", "gpio56",
262 "gpio57", "gpio60", "gpio61",
263 "gpio62", "gpio63", "gpio64",
264 "gpio65", "gpio66", "gpio67",
271 led_0_pins: led0_pinmux {
290 pinctrl-0 = <&serial_0_pins>;
291 pinctrl-names = "default";
296 pinctrl-0 = <&serial_1_pins>;
297 pinctrl-names = "default";
302 pinctrl-0 = <&i2c_0_pins>;
303 pinctrl-names = "default";
344 pinctrl-0 = <&nand_pins>;
345 pinctrl-names = "default";
351 perst-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>;
352 wake-gpios = <&tlmm 50 GPIO_ACTIVE_LOW>;
357 pinctrl-0 = <&mdio_pins>;
358 pinctrl-names = "default";
359 reset-gpios = <&tlmm 47 GPIO_ACTIVE_LOW>;
360 reset-delay-us = <5000>;
365 nvmem-cell-names = "pre-calibration";
366 nvmem-cells = <&precal_art_1000>;
371 nvmem-cell-names = "pre-calibration";
372 nvmem-cells = <&precal_art_5000>;