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 SXTsq 5 ac (RBSXTsqG-5acD)";
12 compatible = "mikrotik,sxtsq-5-ac";
15 device_type = "memory";
16 reg = <0x80000000 0x10000000>;
20 stdout-path = "serial0:115200n8";
25 led-failsafe = &led_user;
26 led-running = &led_user;
27 led-upgrade = &led_user;
32 compatible = "qcom,qca-gcnt";
37 compatible = "qcom,tcsr";
38 reg = <0x1949000 0x100>;
39 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
43 compatible = "qcom,tcsr";
44 reg = <0x1953000 0x1000>;
45 qcom,ess-interface-select = <TCSR_ESS_PSGMII_RGMII4>;
49 compatible = "qcom,tcsr";
50 reg = <0x1957000 0x100>;
51 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
56 compatible = "gpio-keys";
60 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
61 linux,code = <KEY_RESTART>;
66 compatible = "gpio-leds";
69 function = LED_FUNCTION_POWER;
70 color = <LED_COLOR_ID_BLUE>;
71 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
72 default-state = "keep";
78 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
82 label = "green:rssilow";
83 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
87 label = "green:rssimediumlow";
88 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
92 label = "green:rssimedium";
93 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
97 label = "green:rssimediumhigh";
98 gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
102 label = "green:rssihigh";
103 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
121 serial_pins: serial_pinmux {
123 pins = "gpio60", "gpio61";
124 function = "blsp_uart0";
129 spi_0_pins: spi_0_pinmux {
131 function = "blsp_spi0";
132 pins = "gpio55", "gpio56", "gpio57";
133 drive-strength = <2>;
139 drive-strength = <2>;
153 pinctrl-0 = <&spi_0_pins>;
154 pinctrl-names = "default";
155 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
159 compatible = "jedec,spi-nor";
160 spi-max-frequency = <40000000>;
163 compatible = "fixed-partitions";
164 #address-cells = <1>;
174 compatible = "mikrotik,routerboot-partitions";
175 #address-cells = <1>;
177 label = "RouterBoot";
178 reg = <0x80000 0x80000>;
193 compatible = "mikrotik,minor";
195 reg = <0x100000 0xf00000>;
204 pinctrl-0 = <&serial_pins>;
205 pinctrl-names = "default";
215 qcom,ath10k-calibration-variant = "MikroTik-SXTsq-5-ac";
229 /delete-property/ psgmii-ethphy;