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_RGMII4>;
56 compatible = "qcom,tcsr";
57 reg = <0x1957000 0x100>;
58 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
71 compatible = "gpio-keys";
75 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
76 linux,code = <KEY_RESTART>;
81 compatible = "gpio-leds";
85 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
86 default-state = "keep";
92 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
96 label = "green:rssilow";
97 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
101 label = "green:rssimediumlow";
102 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
106 label = "green:rssimedium";
107 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
111 label = "green:rssimediumhigh";
112 gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
116 label = "green:rssihigh";
117 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
123 serial_pins: serial_pinmux {
125 pins = "gpio60", "gpio61";
126 function = "blsp_uart0";
131 spi_0_pins: spi_0_pinmux {
133 function = "blsp_spi0";
134 pins = "gpio55", "gpio56", "gpio57";
135 drive-strength = <2>;
141 drive-strength = <2>;
155 pinctrl-0 = <&spi_0_pins>;
156 pinctrl-names = "default";
157 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
161 compatible = "jedec,spi-nor";
162 spi-max-frequency = <40000000>;
165 compatible = "fixed-partitions";
166 #address-cells = <1>;
176 compatible = "mikrotik,routerboot-partitions";
177 #address-cells = <1>;
179 label = "RouterBoot";
180 reg = <0x80000 0x80000>;
195 compatible = "mikrotik,minor";
197 reg = <0x100000 0xf00000>;
206 pinctrl-0 = <&serial_pins>;
207 pinctrl-names = "default";
217 qcom,ath10k-calibration-variant = "MikroTik-SXTsq-5-ac";
231 /delete-property/ psgmii-ethphy;