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 = "MobiPromo CM520-79F";
10 compatible = "mobipromo,cm520-79f";
14 led-failsafe = &led_sys;
15 led-running = &led_sys;
16 led-upgrade = &led_sys;
26 pinctrl-0 = <&mdio_pins>;
27 pinctrl-names = "default";
28 reset-gpios = <&tlmm 47 GPIO_ACTIVE_LOW>;
29 reset-delay-us = <1000>;
37 compatible = "qcom,tcsr";
38 reg = <0x1949000 0x100>;
39 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
43 compatible = "qcom,tcsr";
44 reg = <0x194b000 0x100>;
45 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
49 compatible = "qcom,tcsr";
50 reg = <0x1953000 0x1000>;
51 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
55 compatible = "qcom,tcsr";
56 reg = <0x1957000 0x100>;
57 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
69 #trigger-source-cells = <0>;
83 #trigger-source-cells = <0>;
88 #trigger-source-cells = <0>;
111 compatible = "spi-gpio";
112 #address-cells = <1>;
115 sck-gpios = <&tlmm 40 GPIO_ACTIVE_HIGH>;
116 mosi-gpios = <&tlmm 36 GPIO_ACTIVE_HIGH>;
117 num-chipselects = <0>;
119 led_gpio: led_gpio@0 {
120 compatible = "fairchild,74hc595";
124 registers-number = <1>;
125 spi-max-frequency = <1000000>;
130 compatible = "gpio-leds";
133 label = "cm520-79f:blue:usb";
134 gpios = <&tlmm 10 GPIO_ACTIVE_HIGH>;
135 linux,default-trigger = "usbport";
136 trigger-sources = <&usb3_port1>, <&usb3_port2>, <&usb2_port1>;
140 label = "cm520-79f:blue:can";
141 gpios = <&tlmm 11 GPIO_ACTIVE_HIGH>;
145 label = "cm520-79f:blue:wan";
146 gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
150 label = "cm520-79f:blue:lan1";
151 gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
155 label = "cm520-79f:blue:lan2";
156 gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
160 label = "cm520-79f:blue:wlan2g";
161 gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
162 linux,default-trigger = "phy0tpt";
166 label = "cm520-79f:blue:wlan5g";
167 gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
168 linux,default-trigger = "phy1tpt";
173 compatible = "gpio-keys";
177 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
178 linux,code = <KEY_RESTART>;
200 mtd-mac-address = <&art 0x1006>;
204 mtd-mac-address = <&art 0x5006>;
208 pinctrl-0 = <&nand_pins>;
209 pinctrl-names = "default";
214 compatible = "fixed-partitions";
215 #address-cells = <1>;
220 reg = <0x0 0x100000>;
226 reg = <0x100000 0x100000>;
231 label = "BOOTCONFIG";
232 reg = <0x200000 0x100000>;
237 reg = <0x300000 0x100000>;
243 reg = <0x400000 0x100000>;
249 reg = <0x500000 0x80000>;
255 reg = <0x580000 0x80000>;
260 label = "BOOTCONFIG1";
261 reg = <0x600000 0x80000>;
266 reg = <0x680000 0x80000>;
271 reg = <0x700000 0x200000>;
277 reg = <0x900000 0x200000>;
281 art: partition@b00000 {
283 reg = <0xb00000 0x80000>;
289 reg = <0xb80000 0x7480000>;
300 mdio_pins: mdio_pinmux {
314 nand_pins: nand_pins {
316 pins = "gpio52", "gpio53", "gpio58",
323 pins = "gpio54", "gpio55", "gpio56",
324 "gpio57", "gpio60", "gpio61",
325 "gpio62", "gpio63", "gpio64",
326 "gpio65", "gpio66", "gpio67",
348 qcom,ath10k-calibration-variant = "CM520-79F";
353 qcom,ath10k-calibration-variant = "CM520-79F";