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/leds/common.h>
8 #include <dt-bindings/soc/qcom,tcsr.h>
11 model = "MikroTik cAP ac";
12 compatible = "mikrotik,cap-ac";
15 device_type = "memory";
16 reg = <0x80000000 0x08000000>;
20 stdout-path = "serial0:115200n8";
25 led-failsafe = &led_user;
26 led-running = &led_user;
27 led-upgrade = &led_user;
36 compatible = "qcom,qca-gcnt";
41 compatible = "qcom,tcsr";
42 reg = <0x1949000 0x100>;
43 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
47 compatible = "qcom,tcsr";
48 reg = <0x1953000 0x1000>;
49 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
53 compatible = "qcom,tcsr";
54 reg = <0x1957000 0x100>;
55 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
68 compatible = "gpio-keys";
72 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
73 linux,code = <KEY_RESTART>;
78 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
79 linux,code = <KEY_LIGHTS_TOGGLE>;
84 compatible = "gpio-leds";
87 function = LED_FUNCTION_POWER;
88 color = <LED_COLOR_ID_BLUE>;
89 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
90 default-state = "keep";
95 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
100 label = "green:wlan2g";
101 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
105 label = "green:wlan5g";
106 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
110 label = "green:eth1";
111 gpios = <ðphy4 1 GPIO_ACTIVE_HIGH>;
115 label = "green:eth2";
116 gpios = <ðphy3 1 GPIO_ACTIVE_HIGH>;
122 serial_pins: serial_pinmux {
124 pins = "gpio60", "gpio61";
125 function = "blsp_uart0";
130 spi_0_pins: spi_0_pinmux {
132 function = "blsp_spi0";
133 pins = "gpio55", "gpio56", "gpio57";
134 drive-strength = <2>;
140 drive-strength = <2>;
154 pinctrl-0 = <&spi_0_pins>;
155 pinctrl-names = "default";
156 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
160 compatible = "jedec,spi-nor";
161 spi-max-frequency = <40000000>;
164 compatible = "fixed-partitions";
165 #address-cells = <1>;
175 compatible = "mikrotik,routerboot-partitions";
176 #address-cells = <1>;
178 label = "RouterBoot";
179 reg = <0x80000 0x80000>;
194 compatible = "mikrotik,minor";
196 reg = <0x100000 0xf00000>;
205 pinctrl-0 = <&serial_pins>;
206 pinctrl-names = "default";
248 qcom,ath10k-calibration-variant = "MikroTik-cAP-ac";
254 qcom,ath10k-calibration-variant = "MikroTik-cAP-ac";