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";
84 compatible = "gpio-keys";
88 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
89 linux,code = <KEY_RESTART>;
94 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
95 linux,code = <KEY_RFKILL>;
100 compatible = "gpio-leds";
103 label = "green:power";
104 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
105 default-state = "keep";
110 label = "green:user";
111 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
117 serial_pins: serial_pinmux {
119 pins = "gpio60", "gpio61";
120 function = "blsp_uart0";
125 spi_0_pins: spi_0_pinmux {
127 function = "blsp_spi0";
128 pins = "gpio55", "gpio56", "gpio57";
129 drive-strength = <2>;
135 drive-strength = <2>;
143 gpios = <2 GPIO_ACTIVE_HIGH>;
145 line-name = "enable USB power";
156 pinctrl-0 = <&spi_0_pins>;
157 pinctrl-names = "default";
158 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
162 compatible = "jedec,spi-nor";
163 spi-max-frequency = <40000000>;
166 compatible = "fixed-partitions";
167 #address-cells = <1>;
177 compatible = "mikrotik,routerboot-partitions";
178 #address-cells = <1>;
180 label = "RouterBoot";
181 reg = <0x80000 0x80000>;
197 compatible = "mikrotik,minor";
199 reg = <0x100000 0xf00000>;
208 pinctrl-0 = <&serial_pins>;
209 pinctrl-names = "default";
225 qcom,single-led-1000;
231 qcom,single-led-1000;
237 qcom,single-led-1000;
243 qcom,single-led-1000;
249 qcom,single-led-1000;
257 qcom,ath10k-calibration-variant = "MikroTik-hAP-ac2";
263 qcom,ath10k-calibration-variant = "MikroTik-hAP-ac2";