1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qcom-ipq4019.dtsi"
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/soc/qcom,tcsr.h>
9 model = "Wallystech DR40X9";
10 compatible = "wallys,dr40x9";
13 bootargs-append = " ubi.mtd=ubi root=/dev/ubiblock0_1";
18 compatible = "qcom,qca-gcnt";
23 compatible = "qcom,tcsr";
24 reg = <0x1949000 0x100>;
25 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
32 compatible = "qcom,tcsr";
33 reg = <0x194b000 0x100>;
34 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
38 compatible = "qcom,tcsr";
39 reg = <0x1953000 0x1000>;
40 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
44 compatible = "qcom,tcsr";
45 reg = <0x1957000 0x100>;
46 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
51 compatible = "gpio-keys";
55 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
56 linux,code = <KEY_RESTART>;
61 compatible = "gpio-leds";
64 label = "dr4029:green:wlan2g";
65 gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
66 linux,default-trigger = "phy0tpt";
70 label = "dr4029:green:wlan5g";
71 gpios = <&tlmm 50 GPIO_ACTIVE_LOW>;
72 linux,default-trigger = "phy1tpt";
76 label = "dr4029:green:wlan2g-strength";
77 gpios = <&tlmm 36 GPIO_ACTIVE_LOW>;
81 label = "dr4029:green:wlan5g-strength";
82 gpios = <&tlmm 39 GPIO_ACTIVE_LOW>;
88 mdio_pins: mdio_pinmux {
101 serial0_pins: serial0_pinmux {
103 pins = "gpio16", "gpio17";
104 function = "blsp_uart0";
109 serial1_pins: serial1_pinmux {
111 pins = "gpio8", "gpio9";
112 function = "blsp_uart1";
117 spi_0_pins: spi_0_pinmux {
119 function = "blsp_spi0";
120 pins = "gpio13", "gpio14", "gpio15";
121 drive-strength = <12>;
127 drive-strength = <2>;
133 nand_pins: nand_pins {
135 pins = "gpio52", "gpio53", "gpio58", "gpio59";
141 pins = "gpio54", "gpio55", "gpio56", "gpio57",
142 "gpio60", "gpio62", "gpio63", "gpio64",
143 "gpio65", "gpio66", "gpio67", "gpio68",
153 pins = "gpio23", "gpio24", "gpio25", "gpio26",
154 "gpio28", "gpio29", "gpio30", "gpio31";
155 drive-strength = <10>;
160 drive-strength = <16>;
165 drive-strength = <10>;
178 pinctrl-0 = <&spi_0_pins>;
179 pinctrl-names = "default";
181 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
184 compatible = "jedec,spi-nor";
185 spi-max-frequency = <24000000>;
189 compatible = "fixed-partitions";
190 #address-cells = <1>;
195 reg = <0x00000000 0x00040000>;
201 reg = <0x00040000 0x00020000>;
207 reg = <0x00060000 0x00060000>;
213 reg = <0x000c0000 0x00010000>;
218 label = "0:DDRPARAMS";
219 reg = <0x000d0000 0x00010000>;
224 label = "0:APPSBLENV"; /* uboot env */
225 reg = <0x000e0000 0x00010000>;
230 label = "0:APPSBL"; /* uboot */
231 reg = <0x000f0000 0x00080000>;
237 reg = <0x00170000 0x00010000>;
239 compatible = "nvmem-cells";
240 #address-cells = <1>;
243 precal_art_1000: precal@1000 {
244 reg = <0x1000 0x2f20>;
247 precal_art_5000: precal@5000 {
248 reg = <0x5000 0x2f20>;
251 macaddr_art_0: mac-address@0 {
255 macaddr_art_6: mac-address@6 {
259 macaddr_art_1006: mac-address@1006 {
263 macaddr_art_5006: mac-address@5006 {
271 reg = <0x00180000 0x00010000>;
285 pinctrl-0 = <&nand_pins>;
286 pinctrl-names = "default";
290 compatible = "fixed-partitions";
291 #address-cells = <1>;
296 reg = <0x00000000 0x04000000>;
304 pinctrl-0 = <&serial0_pins>;
305 pinctrl-names = "default";
310 pinctrl-0 = <&serial1_pins>;
311 pinctrl-names = "default";
326 pinctrl-0 = <&mdio_pins>;
327 pinctrl-names = "default";
328 reset-gpios = <&tlmm 41 GPIO_ACTIVE_LOW>;
329 reset-delay-us = <2000>;
335 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
336 wake-gpio = <&tlmm 40 GPIO_ACTIVE_LOW>;
338 /* Unpolulated slot */
340 reg = <0x00000000 0 0 0 0>;
341 #address-cells = <3>;
353 pinctrl-0 = <&sd_pins>;
354 pinctrl-names = "default";
355 cd-gpios = <&tlmm 22 GPIO_ACTIVE_LOW>;
356 vqmmc-supply = <&vqmmc>;
370 nvmem-cells = <&macaddr_art_0>;
371 nvmem-cell-names = "mac-address";
377 nvmem-cells = <&macaddr_art_6>;
378 nvmem-cell-names = "mac-address";
383 nvmem-cells = <&precal_art_1000>, <&macaddr_art_1006>;
384 nvmem-cell-names = "pre-calibration", "mac-address";
385 qcom,ath10k-calibration-variant = "Wallys-DR40X9";
390 nvmem-cell-names = "pre-calibration", "mac-address";
391 nvmem-cells = <&precal_art_5000>, <&macaddr_art_5006>;
392 qcom,ath10k-calibration-variant = "Wallys-DR40X9";