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;
23 pinctrl-0 = <&mdio_pins>;
24 pinctrl-names = "default";
25 reset-gpios = <&tlmm 47 GPIO_ACTIVE_LOW>;
26 reset-delay-us = <1000>;
30 compatible = "qcom,tcsr";
31 reg = <0x1949000 0x100>;
32 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
36 compatible = "qcom,tcsr";
37 reg = <0x194b000 0x100>;
38 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
42 compatible = "qcom,tcsr";
43 reg = <0x1953000 0x1000>;
44 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
48 compatible = "qcom,tcsr";
49 reg = <0x1957000 0x100>;
50 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
59 compatible = "spi-gpio";
63 sck-gpios = <&tlmm 40 GPIO_ACTIVE_HIGH>;
64 mosi-gpios = <&tlmm 36 GPIO_ACTIVE_HIGH>;
65 num-chipselects = <0>;
67 led_gpio: led_gpio@0 {
68 compatible = "fairchild,74hc595";
72 registers-number = <1>;
73 spi-max-frequency = <1000000>;
78 compatible = "gpio-leds";
81 function = LED_FUNCTION_USB;
82 color = <LED_COLOR_ID_BLUE>;
83 gpios = <&tlmm 10 GPIO_ACTIVE_HIGH>;
84 linux,default-trigger = "usbport";
85 trigger-sources = <&usb3_port1>, <&usb3_port2>, <&usb2_port1>;
90 gpios = <&tlmm 11 GPIO_ACTIVE_HIGH>;
94 function = LED_FUNCTION_WAN;
95 color = <LED_COLOR_ID_BLUE>;
96 gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
101 gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
106 gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
110 label = "blue:wlan2g";
111 gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
112 linux,default-trigger = "phy0tpt";
116 label = "blue:wlan5g";
117 gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
118 linux,default-trigger = "phy1tpt";
123 compatible = "gpio-keys";
127 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
128 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";