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 LTE6 kit";
11 compatible = "mikrotik,hap-ac3-lte6-kit";
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;
31 compatible = "qcom,qca-gcnt";
36 compatible = "qcom,tcsr";
37 reg = <0x1949000 0x100>;
38 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
43 compatible = "qcom,tcsr";
44 reg = <0x194b000 0x100>;
45 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
50 compatible = "qcom,tcsr";
51 reg = <0x1953000 0x1000>;
52 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
56 compatible = "qcom,tcsr";
57 reg = <0x1957000 0x100>;
58 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
63 compatible = "gpio-keys";
67 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
68 linux,code = <KEY_RESTART>;
73 compatible = "gpio-leds";
75 led_status_blue: status-blue {
76 label = "blue:status";
77 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
80 led_status_red: status-red {
82 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
86 led_status_green: status-green {
87 label = "green:status";
88 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
93 gpios = <&tlmm 23 GPIO_ACTIVE_HIGH>;
97 label = "green:ethernet";
98 gpios = <&tlmm 22 GPIO_ACTIVE_HIGH>;
103 gpios = <&tlmm 28 GPIO_ACTIVE_HIGH>;
107 label = "green:lan1";
108 gpios = <&tlmm 29 GPIO_ACTIVE_HIGH>;
112 label = "green:lan2";
113 gpios = <&tlmm 30 GPIO_ACTIVE_HIGH>;
117 label = "green:lan3";
118 gpios = <&tlmm 31 GPIO_ACTIVE_HIGH>;
122 label = "green:lan4";
123 gpios = <&tlmm 32 GPIO_ACTIVE_HIGH>;
129 serial_pins: serial_pinmux {
131 pins = "gpio16", "gpio17";
132 function = "blsp_uart0";
137 spi_0_pins: spi_0_pinmux {
139 function = "blsp_spi0";
140 pins = "gpio13", "gpio14", "gpio15";
141 drive-strength = <12>;
148 drive-strength = <2>;
156 gpios = <44 GPIO_ACTIVE_HIGH>;
158 line-name = "enable USB power";
163 gpios = <51 GPIO_ACTIVE_HIGH>;
165 line-name = "enable mPCI-E power";
177 pinctrl-0 = <&spi_0_pins>;
178 pinctrl-names = "default";
179 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
183 compatible = "jedec,spi-nor";
184 spi-max-frequency = <10000000>;
185 #address-cells = <1>;
190 compatible = "fixed-partitions";
199 compatible = "mikrotik,routerboot-partitions";
200 label = "RouterBoot";
201 reg = <0x80000 0x80000>;
216 compatible = "mikrotik,minor";
218 reg = <0x110000 0xef0000>;
230 pinctrl-0 = <&serial_pins>;
231 pinctrl-names = "default";