1 // SPDX-License-Identifier: ISC
2 // Copyright (c) 2015, The Linux Foundation. All rights reserved.
3 // Copyright (c) 2019, Cezary Jackiewicz <cezary@eko.one.pl>.
4 // Copyright (c) 2020, Pawel Dembicki <paweldembicki@gmail.com>.
6 #include "qcom-ipq4019.dtsi"
7 #include <dt-bindings/soc/qcom,tcsr.h>
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/input.h>
12 model = "Cell C RTL30VW";
13 compatible = "cellc,rtl30vw";
16 led-boot = &led_power_blue;
17 led-failsafe = &led_power_red;
18 led-running = &led_power_blue;
19 led-upgrade = &led_power_red;
23 bootargs-append = "ubi.mtd=ubifs root=/dev/ubiblock0_0 rootfstype=squashfs ro";
27 compatible = "spi-gpio";
30 num-chipselects = <1>;
32 mosi-gpios = <&tlmm 2 GPIO_ACTIVE_LOW>;
33 cs-gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
34 sck-gpios = <&tlmm 58 GPIO_ACTIVE_LOW>;
36 led_gpio: led_gpio@0 {
37 compatible = "fairchild,74hc595";
41 registers-number = <2>;
42 spi-max-frequency = <1000000>;
47 compatible = "gpio-leds";
49 led_power_blue: power_blue {
50 gpios = <&led_gpio 0 GPIO_ACTIVE_HIGH>;
55 led_power_red: power_red {
56 gpios = <&led_gpio 1 GPIO_ACTIVE_HIGH>;
61 gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
63 default-state = "keep";
67 gpios = <&led_gpio 7 GPIO_ACTIVE_LOW>;
69 default-state = "keep";
73 gpios = <&led_gpio 8 GPIO_ACTIVE_HIGH>;
74 label = "blue:wlan2g";
75 linux,default-trigger = "phy0tpt";
79 gpios = <&led_gpio 9 GPIO_ACTIVE_HIGH>;
80 label = "blue:wlan5g";
81 linux,default-trigger = "phy1tpt";
85 gpios = <&led_gpio 10 GPIO_ACTIVE_HIGH>;
90 gpios = <&led_gpio 11 GPIO_ACTIVE_HIGH>;
95 gpios = <&led_gpio 12 GPIO_ACTIVE_HIGH>;
100 gpios = <&led_gpio 13 GPIO_ACTIVE_HIGH>;
105 gpios = <&led_gpio 14 GPIO_ACTIVE_HIGH>;
110 gpios = <&led_gpio 15 GPIO_ACTIVE_HIGH>;
115 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
116 label = "red:signal";
121 compatible = "gpio-keys";
125 linux,code = <KEY_WPS_BUTTON>;
126 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
131 linux,code = <KEY_RESTART>;
132 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
150 compatible = "qcom,tcsr";
151 reg = <0x1949000 0x100>;
152 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
156 /* select hostmode */
157 compatible = "qcom,tcsr";
158 reg = <0x194b000 0x100>;
159 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
164 compatible = "qcom,tcsr";
165 reg = <0x1953000 0x1000>;
166 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
170 compatible = "qcom,tcsr";
171 reg = <0x1957000 0x100>;
172 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
206 pinctrl-0 = <&spi_0_pins>;
207 pinctrl-names = "default";
209 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>, <&tlmm 59 GPIO_ACTIVE_HIGH>;
212 /*"n25q128a11" is required for proper nand recognition in u-boot. */
213 compatible = "jedec,spi-nor", "n25q128a11";
214 #address-cells = <1>;
217 spi-max-frequency = <24000000>;
220 compatible = "fixed-partitions";
221 #address-cells = <1>;
232 reg = <0x40000 0x20000>;
238 reg = <0x60000 0x60000>;
244 reg = <0xc0000 0x10000>;
249 label = "0:DDRPARAMS";
250 reg = <0xd0000 0x10000>;
255 label = "0:APPSBLENV";
256 reg = <0xe0000 0x10000>;
262 reg = <0xf0000 0x80000>;
268 reg = <0x170000 0x10000>;
273 label = "0:BOOTCONFIG";
274 reg = <0x180000 0x10000>;
282 * Factory U-boot looks in 0:BOOTCONFIG partition for active
283 * partitions settings and mangle partition config. So kernel
284 * /kernel_1 and rootfs/rootfs_1 pairs can be swaped.
285 * It isn't a problem but we never can be sure where OFW put
286 * factory images. "spinand,mt29f" value is required for proper
287 * nand recognition in u-boot.
289 compatible = "spi-nand","spinand,mt29f";
290 #address-cells = <1>;
293 spi-max-frequency = <24000000>;
296 compatible = "fixed-partitions";
297 #address-cells = <1>;
302 reg = <0x0 0x400000>;
307 reg = <0x400000 0x2000000>;
312 reg = <0x2400000 0x400000>;
317 reg = <0x2800000 0x2000000>;
322 reg = <0x4800000 0x3800000>;
329 pinctrl-0 = <&serial_pins>;
330 pinctrl-names = "default";
339 serial_pins: serial_pinmux {
341 pins = "gpio60", "gpio61";
342 function = "blsp_uart0";
347 spi_0_pins: spi_0_pinmux {
349 function = "blsp_spi0";
350 pins = "gpio55", "gpio56", "gpio57";
351 drive-strength = <12>;
357 pins = "gpio54", "gpio59";
358 drive-strength = <2>;
379 qcom,ath10k-calibration-variant = "cellc,rtl30vw";
384 qcom,ath10k-calibration-variant = "cellc,rtl30vw";