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/leds/common.h>
7 #include <dt-bindings/soc/qcom,tcsr.h>
10 model = "MobiPromo CM520-79F";
11 compatible = "mobipromo,cm520-79f";
15 led-failsafe = &led_sys;
16 led-running = &led_sys;
17 led-upgrade = &led_sys;
27 pinctrl-0 = <&mdio_pins>;
28 pinctrl-names = "default";
29 reset-gpios = <&tlmm 47 GPIO_ACTIVE_LOW>;
30 reset-delay-us = <1000>;
34 compatible = "qcom,tcsr";
35 reg = <0x1949000 0x100>;
36 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
40 compatible = "qcom,tcsr";
41 reg = <0x194b000 0x100>;
42 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
46 compatible = "qcom,tcsr";
47 reg = <0x1953000 0x1000>;
48 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
52 compatible = "qcom,tcsr";
53 reg = <0x1957000 0x100>;
54 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
67 compatible = "spi-gpio";
71 sck-gpios = <&tlmm 40 GPIO_ACTIVE_HIGH>;
72 mosi-gpios = <&tlmm 36 GPIO_ACTIVE_HIGH>;
73 num-chipselects = <0>;
75 led_gpio: led_gpio@0 {
76 compatible = "fairchild,74hc595";
80 registers-number = <1>;
81 spi-max-frequency = <1000000>;
86 compatible = "gpio-leds";
89 function = LED_FUNCTION_USB;
90 color = <LED_COLOR_ID_BLUE>;
91 gpios = <&tlmm 10 GPIO_ACTIVE_HIGH>;
92 linux,default-trigger = "usbport";
93 trigger-sources = <&usb3_port1>, <&usb3_port2>, <&usb2_port1>;
98 gpios = <&tlmm 11 GPIO_ACTIVE_HIGH>;
102 function = LED_FUNCTION_WAN;
103 color = <LED_COLOR_ID_BLUE>;
104 gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
109 gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
114 gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
118 label = "blue:wlan2g";
119 gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
120 linux,default-trigger = "phy0tpt";
124 label = "blue:wlan5g";
125 gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
126 linux,default-trigger = "phy1tpt";
131 compatible = "gpio-keys";
135 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
136 linux,code = <KEY_RESTART>;
158 pinctrl-0 = <&nand_pins>;
159 pinctrl-names = "default";
164 compatible = "fixed-partitions";
165 #address-cells = <1>;
170 reg = <0x0 0x100000>;
176 reg = <0x100000 0x100000>;
181 label = "BOOTCONFIG";
182 reg = <0x200000 0x100000>;
187 reg = <0x300000 0x100000>;
193 reg = <0x400000 0x100000>;
199 reg = <0x500000 0x80000>;
205 reg = <0x580000 0x80000>;
210 label = "BOOTCONFIG1";
211 reg = <0x600000 0x80000>;
216 reg = <0x680000 0x80000>;
221 reg = <0x700000 0x200000>;
227 reg = <0x900000 0x200000>;
231 art: partition@b00000 {
233 reg = <0xb00000 0x80000>;
237 compatible = "fixed-layout";
238 #address-cells = <1>;
241 precal_art_1000: precal@1000 {
242 reg = <0x1000 0x2f20>;
245 macaddr_art_1006: macaddr@1006 {
249 precal_art_5000: precal@5000 {
250 reg = <0x5000 0x2f20>;
253 macaddr_art_5006: macaddr@5006 {
261 reg = <0xb80000 0x7480000>;
272 mdio_pins: mdio_pinmux {
286 nand_pins: nand_pins {
288 pins = "gpio52", "gpio53", "gpio58",
295 pins = "gpio54", "gpio55", "gpio56",
296 "gpio57", "gpio60", "gpio61",
297 "gpio62", "gpio63", "gpio64",
298 "gpio65", "gpio66", "gpio67",
319 #address-cells = <1>;
324 #trigger-source-cells = <0>;
329 #trigger-source-cells = <0>;
341 #address-cells = <1>;
346 #trigger-source-cells = <0>;
354 nvmem-cells = <&macaddr_art_1006>;
355 nvmem-cell-names = "mac-address";
377 nvmem-cells = <&macaddr_art_5006>;
378 nvmem-cell-names = "mac-address";
383 nvmem-cell-names = "pre-calibration";
384 nvmem-cells = <&precal_art_1000>;
385 qcom,ath10k-calibration-variant = "CM520-79F";
390 nvmem-cell-names = "pre-calibration";
391 nvmem-cells = <&precal_art_5000>;
392 qcom,ath10k-calibration-variant = "CM520-79F";