1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /* Copyright (c) 2020, Robert Marko <robimarko@gmail.com> */
4 #include "qcom-ipq4019.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/soc/qcom,tcsr.h>
10 model = "MikroTik cAP ac";
11 compatible = "mikrotik,cap-ac";
14 device_type = "memory";
15 reg = <0x80000000 0x08000000>;
19 stdout-path = "serial0:115200n8";
24 led-failsafe = &led_user;
25 led-running = &led_user;
26 led-upgrade = &led_user;
35 compatible = "qcom,qca-gcnt";
40 compatible = "qcom,tcsr";
41 reg = <0x1949000 0x100>;
42 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
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 = "gpio-keys";
71 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
72 linux,code = <KEY_RESTART>;
77 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
78 linux,code = <KEY_LIGHTS_TOGGLE>;
83 compatible = "gpio-leds";
87 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
88 default-state = "keep";
93 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
98 label = "green:wlan2g";
99 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
103 label = "green:wlan5g";
104 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
108 label = "green:eth1";
109 gpios = <ðphy4 1 GPIO_ACTIVE_HIGH>;
113 label = "green:eth2";
114 gpios = <ðphy3 1 GPIO_ACTIVE_HIGH>;
120 serial_pins: serial_pinmux {
122 pins = "gpio60", "gpio61";
123 function = "blsp_uart0";
128 spi_0_pins: spi_0_pinmux {
130 function = "blsp_spi0";
131 pins = "gpio55", "gpio56", "gpio57";
132 drive-strength = <2>;
138 drive-strength = <2>;
152 pinctrl-0 = <&spi_0_pins>;
153 pinctrl-names = "default";
154 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
158 compatible = "jedec,spi-nor";
159 spi-max-frequency = <40000000>;
162 compatible = "fixed-partitions";
163 #address-cells = <1>;
173 compatible = "mikrotik,routerboot-partitions";
174 #address-cells = <1>;
176 label = "RouterBoot";
177 reg = <0x80000 0x80000>;
192 compatible = "mikrotik,minor";
194 reg = <0x100000 0xf00000>;
203 pinctrl-0 = <&serial_pins>;
204 pinctrl-names = "default";
228 qcom,ath10k-calibration-variant = "MikroTik-cAP-ac";
234 qcom,ath10k-calibration-variant = "MikroTik-cAP-ac";