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>;
87 compatible = "gpio-keys";
91 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
92 linux,code = <KEY_RESTART>;
97 gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
98 linux,code = <KEY_RFKILL>;
103 gpios = <&tlmm 42 GPIO_ACTIVE_LOW>;
104 linux,code = <KEY_WPS_BUTTON>;
109 compatible = "gpio-leds";
111 led_status_blue: status-blue {
112 label = "blue:status";
113 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
116 led_status_red: status-red {
117 label = "red:status";
118 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
122 led_status_green: status-green {
123 label = "green:status";
124 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
128 label = "green:wlan";
129 gpios = <&tlmm 23 GPIO_ACTIVE_HIGH>;
133 label = "green:ethernet";
134 gpios = <&tlmm 22 GPIO_ACTIVE_HIGH>;
139 gpios = <&tlmm 28 GPIO_ACTIVE_HIGH>;
143 label = "green:lan1";
144 gpios = <&tlmm 29 GPIO_ACTIVE_HIGH>;
148 label = "green:lan2";
149 gpios = <&tlmm 30 GPIO_ACTIVE_HIGH>;
153 label = "green:lan3";
154 gpios = <&tlmm 31 GPIO_ACTIVE_HIGH>;
158 label = "green:lan4";
159 gpios = <&tlmm 32 GPIO_ACTIVE_HIGH>;
164 gpios = <&tlmm 36 GPIO_ACTIVE_HIGH>;
170 serial_pins: serial_pinmux {
172 pins = "gpio16", "gpio17";
173 function = "blsp_uart0";
178 spi_0_pins: spi_0_pinmux {
180 function = "blsp_spi0";
181 pins = "gpio13", "gpio14", "gpio15";
182 drive-strength = <12>;
189 drive-strength = <2>;
195 nand_pins: nand_pins {
197 pins = "gpio53", "gpio58", "gpio59";
203 pins = "gpio55", "gpio56", "gpio57", "gpio60",
204 "gpio62", "gpio63", "gpio64", "gpio65",
205 "gpio66", "gpio67", "gpio68", "gpio69";
213 gpios = <44 GPIO_ACTIVE_HIGH>;
215 line-name = "enable USB power";
226 pinctrl-0 = <&spi_0_pins>;
227 pinctrl-names = "default";
228 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
232 compatible = "jedec,spi-nor";
233 spi-max-frequency = <40000000>;
236 compatible = "fixed-partitions";
237 #address-cells = <1>;
247 compatible = "mikrotik,routerboot-partitions";
248 #address-cells = <1>;
250 label = "RouterBoot";
251 reg = <0x80000 0x80000>;
277 pinctrl-0 = <&nand_pins>;
278 pinctrl-names = "default";
282 compatible = "fixed-partitions";
283 #address-cells = <1>;
288 reg = <0x0 0xa00000>;
293 reg = <0xa00000 0x7600000>;
302 pinctrl-0 = <&serial_pins>;
303 pinctrl-names = "default";