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 wAP ac";
11 compatible = "mikrotik,wap-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;
31 compatible = "qcom,qca-gcnt";
36 compatible = "qcom,tcsr";
37 reg = <0x1949000 0x100>;
38 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
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>;
55 compatible = "gpio-keys";
59 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
60 linux,code = <KEY_RESTART>;
65 compatible = "gpio-leds";
69 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
70 default-state = "keep";
75 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
86 serial_pins: serial_pinmux {
88 pins = "gpio60", "gpio61";
89 function = "blsp_uart0";
94 spi_0_pins: spi_0_pinmux {
96 function = "blsp_spi0";
97 pins = "gpio55", "gpio56", "gpio57";
104 drive-strength = <2>;
118 pinctrl-0 = <&spi_0_pins>;
119 pinctrl-names = "default";
120 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
124 compatible = "jedec,spi-nor";
125 spi-max-frequency = <40000000>;
128 compatible = "fixed-partitions";
129 #address-cells = <1>;
139 compatible = "mikrotik,routerboot-partitions";
140 #address-cells = <1>;
142 label = "RouterBoot";
143 reg = <0x80000 0x80000>;
159 compatible = "mikrotik,minor";
161 reg = <0x100000 0xf00000>;
170 pinctrl-0 = <&serial_pins>;
171 pinctrl-names = "default";
193 qcom,ath10k-calibration-variant = "MikroTik-wAP-ac";
199 qcom,ath10k-calibration-variant = "MikroTik-wAP-ac";