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/soc/qcom,tcsr.h>
10 model = "MikroTik SXTsq 5 ac (RBSXTsqG-5acD)";
11 compatible = "mikrotik,sxtsq-5-ac";
14 device_type = "memory";
15 reg = <0x80000000 0x10000000>;
19 stdout-path = "serial0:115200n8";
24 led-failsafe = &led_user;
25 led-running = &led_user;
26 led-upgrade = &led_user;
39 compatible = "qcom,qca-gcnt";
44 compatible = "qcom,tcsr";
45 reg = <0x1949000 0x100>;
46 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
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>;
82 compatible = "gpio-keys";
86 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
87 linux,code = <KEY_RESTART>;
92 compatible = "gpio-leds";
96 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
97 default-state = "keep";
102 label = "green:user";
103 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
107 label = "green:rssilow";
108 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
112 label = "green:rssimediumlow";
113 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
117 label = "green:rssimedium";
118 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
122 label = "green:rssimediumhigh";
123 gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
127 label = "green:rssihigh";
128 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
134 serial_pins: serial_pinmux {
136 pins = "gpio60", "gpio61";
137 function = "blsp_uart0";
142 spi_0_pins: spi_0_pinmux {
144 function = "blsp_spi0";
145 pins = "gpio55", "gpio56", "gpio57";
146 drive-strength = <2>;
152 drive-strength = <2>;
166 pinctrl-0 = <&spi_0_pins>;
167 pinctrl-names = "default";
168 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
172 compatible = "jedec,spi-nor";
173 spi-max-frequency = <40000000>;
176 compatible = "fixed-partitions";
177 #address-cells = <1>;
187 compatible = "mikrotik,routerboot-partitions";
188 #address-cells = <1>;
190 label = "RouterBoot";
191 reg = <0x80000 0x80000>;
206 compatible = "mikrotik,minor";
208 reg = <0x100000 0xf00000>;
217 pinctrl-0 = <&serial_pins>;
218 pinctrl-names = "default";
228 qcom,ath10k-calibration-variant = "MikroTik-SXTsq-5-ac";
232 qcom,phy_mdio_addr = <4>;
233 qcom,poll_required = <1>;
234 qcom,forced_speed = <1000>;
235 qcom,forced_duplex = <1>;