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>;
71 qcom,poll_required = <0>;
77 compatible = "gpio-keys";
81 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
82 linux,code = <KEY_RESTART>;
87 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
88 linux,code = <KEY_LIGHTS_TOGGLE>;
93 compatible = "gpio-leds";
97 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
98 default-state = "keep";
102 label = "green:user";
103 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
108 label = "green:wlan2g";
109 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
113 label = "green:wlan5g";
114 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
118 label = "green:eth1";
119 gpios = <ðphy4 1 GPIO_ACTIVE_HIGH>;
123 label = "green:eth2";
124 gpios = <ðphy3 1 GPIO_ACTIVE_HIGH>;
130 serial_pins: serial_pinmux {
132 pins = "gpio60", "gpio61";
133 function = "blsp_uart0";
138 spi_0_pins: spi_0_pinmux {
140 function = "blsp_spi0";
141 pins = "gpio55", "gpio56", "gpio57";
142 drive-strength = <2>;
148 drive-strength = <2>;
162 pinctrl-0 = <&spi_0_pins>;
163 pinctrl-names = "default";
164 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
168 compatible = "jedec,spi-nor";
169 spi-max-frequency = <40000000>;
172 compatible = "fixed-partitions";
173 #address-cells = <1>;
183 compatible = "mikrotik,routerboot-partitions";
184 #address-cells = <1>;
186 label = "RouterBoot";
187 reg = <0x80000 0x80000>;
202 compatible = "mikrotik,minor";
204 reg = <0x100000 0xf00000>;
213 pinctrl-0 = <&serial_pins>;
214 pinctrl-names = "default";
242 qcom,ath10k-calibration-variant = "MikroTik-cAP-ac";
248 qcom,ath10k-calibration-variant = "MikroTik-cAP-ac";