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/leds/common.h>
8 #include <dt-bindings/soc/qcom,tcsr.h>
11 model = "MikroTik hAP ac3 LTE6 kit";
12 compatible = "mikrotik,hap-ac3-lte6-kit";
15 device_type = "memory";
16 reg = <0x80000000 0x10000000>;
20 stdout-path = "serial0:115200n8";
24 led-boot = &led_status_blue;
25 led-failsafe = &led_status_red;
26 led-running = &led_status_blue;
27 led-upgrade = &led_status_red;
32 compatible = "qcom,qca-gcnt";
37 compatible = "qcom,tcsr";
38 reg = <0x1949000 0x100>;
39 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
44 compatible = "qcom,tcsr";
45 reg = <0x194b000 0x100>;
46 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
51 compatible = "qcom,tcsr";
52 reg = <0x1953000 0x1000>;
53 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
57 compatible = "qcom,tcsr";
58 reg = <0x1957000 0x100>;
59 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
64 compatible = "gpio-keys";
68 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
69 linux,code = <KEY_RESTART>;
74 compatible = "gpio-leds";
76 led_status_blue: status-blue {
77 function = LED_FUNCTION_STATUS;
78 color = <LED_COLOR_ID_BLUE>;
79 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
82 led_status_red: status-red {
83 function = LED_FUNCTION_STATUS;
84 color = <LED_COLOR_ID_RED>;
85 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
89 led_status_green: status-green {
90 function = LED_FUNCTION_STATUS;
91 color = <LED_COLOR_ID_GREEN>;
92 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
96 function = LED_FUNCTION_WLAN;
97 color = <LED_COLOR_ID_GREEN>;
98 gpios = <&tlmm 23 GPIO_ACTIVE_HIGH>;
102 label = "green:ethernet";
103 gpios = <&tlmm 22 GPIO_ACTIVE_HIGH>;
107 function = LED_FUNCTION_WAN;
108 color = <LED_COLOR_ID_GREEN>;
109 gpios = <&tlmm 28 GPIO_ACTIVE_HIGH>;
113 label = "green:lan1";
114 gpios = <&tlmm 29 GPIO_ACTIVE_HIGH>;
118 label = "green:lan2";
119 gpios = <&tlmm 30 GPIO_ACTIVE_HIGH>;
123 label = "green:lan3";
124 gpios = <&tlmm 31 GPIO_ACTIVE_HIGH>;
128 label = "green:lan4";
129 gpios = <&tlmm 32 GPIO_ACTIVE_HIGH>;
135 serial_pins: serial_pinmux {
137 pins = "gpio16", "gpio17";
138 function = "blsp_uart0";
143 spi_0_pins: spi_0_pinmux {
145 function = "blsp_spi0";
146 pins = "gpio13", "gpio14", "gpio15";
147 drive-strength = <12>;
154 drive-strength = <2>;
162 gpios = <44 GPIO_ACTIVE_HIGH>;
164 line-name = "enable USB power";
169 gpios = <51 GPIO_ACTIVE_HIGH>;
171 line-name = "enable mPCI-E power";
183 pinctrl-0 = <&spi_0_pins>;
184 pinctrl-names = "default";
185 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
189 compatible = "jedec,spi-nor";
190 spi-max-frequency = <10000000>;
191 #address-cells = <1>;
196 compatible = "fixed-partitions";
205 compatible = "mikrotik,routerboot-partitions";
206 label = "RouterBoot";
207 reg = <0x80000 0x80000>;
222 compatible = "mikrotik,minor";
224 reg = <0x110000 0xef0000>;
236 pinctrl-0 = <&serial_pins>;
237 pinctrl-names = "default";