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 hAP ac2";
11 compatible = "mikrotik,hap-ac2";
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>;
47 compatible = "qcom,tcsr";
48 reg = <0x194b000 0x100>;
49 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
54 compatible = "qcom,tcsr";
55 reg = <0x1953000 0x1000>;
56 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
60 compatible = "qcom,tcsr";
61 reg = <0x1957000 0x100>;
62 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
69 phys = <&usb3_hs_phy>;
70 phy-names = "usb2-phy";
92 compatible = "gpio-keys";
96 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
97 linux,code = <KEY_RESTART>;
102 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
103 linux,code = <KEY_RFKILL>;
108 compatible = "gpio-leds";
111 label = "green:power";
112 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
113 default-state = "keep";
118 label = "green:user";
119 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
125 serial_pins: serial_pinmux {
127 pins = "gpio60", "gpio61";
128 function = "blsp_uart0";
133 spi_0_pins: spi_0_pinmux {
135 function = "blsp_spi0";
136 pins = "gpio55", "gpio56", "gpio57";
137 drive-strength = <2>;
143 drive-strength = <2>;
151 gpios = <2 GPIO_ACTIVE_HIGH>;
153 line-name = "enable USB power";
164 pinctrl-0 = <&spi_0_pins>;
165 pinctrl-names = "default";
166 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
170 compatible = "jedec,spi-nor";
171 spi-max-frequency = <40000000>;
174 compatible = "fixed-partitions";
175 #address-cells = <1>;
185 compatible = "mikrotik,routerboot-partitions";
186 #address-cells = <1>;
188 label = "RouterBoot";
189 reg = <0x80000 0x80000>;
205 compatible = "mikrotik,minor";
207 reg = <0x100000 0xf00000>;
216 pinctrl-0 = <&serial_pins>;
217 pinctrl-names = "default";
233 qcom,single-led-1000;
239 qcom,single-led-1000;
245 qcom,single-led-1000;
251 qcom,single-led-1000;
257 qcom,single-led-1000;
265 qcom,ath10k-calibration-variant = "MikroTik-hAP-ac2";
271 qcom,ath10k-calibration-variant = "MikroTik-hAP-ac2";