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;
40 compatible = "qcom,qca-gcnt";
45 compatible = "qcom,tcsr";
46 reg = <0x1949000 0x100>;
47 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
51 compatible = "qcom,tcsr";
52 reg = <0x1953000 0x1000>;
53 qcom,ess-interface-select = <TCSR_ESS_PSGMII_RGMII4>;
57 compatible = "qcom,tcsr";
58 reg = <0x1957000 0x100>;
59 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
72 compatible = "gpio-keys";
76 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
77 linux,code = <KEY_RESTART>;
82 compatible = "gpio-leds";
85 function = LED_FUNCTION_POWER;
86 color = <LED_COLOR_ID_BLUE>;
87 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
88 default-state = "keep";
94 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
98 label = "green:rssilow";
99 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
103 label = "green:rssimediumlow";
104 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
108 label = "green:rssimedium";
109 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
113 label = "green:rssimediumhigh";
114 gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
118 label = "green:rssihigh";
119 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
125 serial_pins: serial_pinmux {
127 pins = "gpio60", "gpio61";
128 function = "blsp_uart0";
133 spi_0_pins: spi_0_pinmux {
135 function = "blsp_spi0";
136 pins = "gpio55", "gpio56", "gpio57";
137 drive-strength = <2>;
143 drive-strength = <2>;
157 pinctrl-0 = <&spi_0_pins>;
158 pinctrl-names = "default";
159 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
163 compatible = "jedec,spi-nor";
164 spi-max-frequency = <40000000>;
167 compatible = "fixed-partitions";
168 #address-cells = <1>;
178 compatible = "mikrotik,routerboot-partitions";
179 #address-cells = <1>;
181 label = "RouterBoot";
182 reg = <0x80000 0x80000>;
197 compatible = "mikrotik,minor";
199 reg = <0x100000 0xf00000>;
208 pinctrl-0 = <&serial_pins>;
209 pinctrl-names = "default";
219 qcom,ath10k-calibration-variant = "MikroTik-SXTsq-5-ac";
233 /delete-property/ psgmii-ethphy;