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 hAP ac2";
12 compatible = "mikrotik,hap-ac2";
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>;
48 compatible = "qcom,tcsr";
49 reg = <0x194b000 0x100>;
50 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
55 compatible = "qcom,tcsr";
56 reg = <0x1953000 0x1000>;
57 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
61 compatible = "qcom,tcsr";
62 reg = <0x1957000 0x100>;
63 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
76 compatible = "gpio-keys";
80 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
81 linux,code = <KEY_RESTART>;
86 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
87 linux,code = <KEY_RFKILL>;
92 compatible = "gpio-leds";
95 function = LED_FUNCTION_POWER;
96 color = <LED_COLOR_ID_GREEN>;
97 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
98 default-state = "keep";
103 label = "green:user";
104 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
110 serial_pins: serial_pinmux {
112 pins = "gpio60", "gpio61";
113 function = "blsp_uart0";
118 spi_0_pins: spi_0_pinmux {
120 function = "blsp_spi0";
121 pins = "gpio55", "gpio56", "gpio57";
122 drive-strength = <2>;
128 drive-strength = <2>;
136 gpios = <2 GPIO_ACTIVE_HIGH>;
138 line-name = "enable USB power";
149 pinctrl-0 = <&spi_0_pins>;
150 pinctrl-names = "default";
151 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
155 compatible = "jedec,spi-nor";
156 spi-max-frequency = <40000000>;
159 compatible = "fixed-partitions";
160 #address-cells = <1>;
170 compatible = "mikrotik,routerboot-partitions";
171 #address-cells = <1>;
173 label = "RouterBoot";
174 reg = <0x80000 0x80000>;
190 compatible = "mikrotik,minor";
192 reg = <0x100000 0xf00000>;
201 pinctrl-0 = <&serial_pins>;
202 pinctrl-names = "default";
218 phys = <&usb3_hs_phy>;
219 phy-names = "usb2-phy";
227 qcom,single-led-1000;
233 qcom,single-led-1000;
239 qcom,single-led-1000;
245 qcom,single-led-1000;
251 qcom,single-led-1000;
291 qcom,ath10k-calibration-variant = "MikroTik-hAP-ac2";
297 qcom,ath10k-calibration-variant = "MikroTik-hAP-ac2";