1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /* Copyright (c) 2021, 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 ac3";
11 compatible = "mikrotik,hap-ac3";
14 device_type = "memory";
15 reg = <0x80000000 0x10000000>;
19 stdout-path = "serial0:115200n8";
23 led-boot = &led_status_blue;
24 led-failsafe = &led_status_red;
25 led-running = &led_status_blue;
26 led-upgrade = &led_status_red;
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>;
79 compatible = "gpio-keys";
83 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
84 linux,code = <KEY_RESTART>;
89 gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
90 linux,code = <KEY_RFKILL>;
95 gpios = <&tlmm 42 GPIO_ACTIVE_LOW>;
96 linux,code = <KEY_WPS_BUTTON>;
101 compatible = "gpio-leds";
103 led_status_blue: status-blue {
104 label = "blue:status";
105 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
108 led_status_red: status-red {
109 label = "red:status";
110 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
114 led_status_green: status-green {
115 label = "green:status";
116 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
120 label = "green:wlan";
121 gpios = <&tlmm 23 GPIO_ACTIVE_HIGH>;
125 label = "green:ethernet";
126 gpios = <&tlmm 22 GPIO_ACTIVE_HIGH>;
131 gpios = <&tlmm 28 GPIO_ACTIVE_HIGH>;
135 label = "green:lan1";
136 gpios = <&tlmm 29 GPIO_ACTIVE_HIGH>;
140 label = "green:lan2";
141 gpios = <&tlmm 30 GPIO_ACTIVE_HIGH>;
145 label = "green:lan3";
146 gpios = <&tlmm 31 GPIO_ACTIVE_HIGH>;
150 label = "green:lan4";
151 gpios = <&tlmm 32 GPIO_ACTIVE_HIGH>;
156 gpios = <&tlmm 36 GPIO_ACTIVE_HIGH>;
162 serial_pins: serial_pinmux {
164 pins = "gpio16", "gpio17";
165 function = "blsp_uart0";
170 spi_0_pins: spi_0_pinmux {
172 function = "blsp_spi0";
173 pins = "gpio13", "gpio14", "gpio15";
174 drive-strength = <12>;
181 drive-strength = <2>;
187 nand_pins: nand_pins {
189 pins = "gpio53", "gpio58", "gpio59";
195 pins = "gpio55", "gpio56", "gpio57", "gpio60",
196 "gpio62", "gpio63", "gpio64", "gpio65",
197 "gpio66", "gpio67", "gpio68", "gpio69";
205 gpios = <44 GPIO_ACTIVE_HIGH>;
207 line-name = "enable USB power";
218 pinctrl-0 = <&spi_0_pins>;
219 pinctrl-names = "default";
220 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
224 compatible = "jedec,spi-nor";
225 spi-max-frequency = <40000000>;
228 compatible = "fixed-partitions";
229 #address-cells = <1>;
239 compatible = "mikrotik,routerboot-partitions";
240 #address-cells = <1>;
242 label = "RouterBoot";
243 reg = <0x80000 0x80000>;
268 pinctrl-0 = <&nand_pins>;
269 pinctrl-names = "default";
273 compatible = "fixed-partitions";
274 #address-cells = <1>;
279 reg = <0x0 0xa00000>;
284 reg = <0xa00000 0x7600000>;
293 pinctrl-0 = <&serial_pins>;
294 pinctrl-names = "default";
344 qcom,ath10k-calibration-variant = "MikroTik-hAP-ac3";
350 qcom,ath10k-calibration-variant = "MikroTik-hAP-ac3";