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>
12 device_type = "memory";
13 reg = <0x80000000 0x08000000>;
17 stdout-path = "serial0:115200n8";
22 led-failsafe = &led_user;
23 led-running = &led_user;
24 led-upgrade = &led_user;
29 compatible = "qcom,qca-gcnt";
34 compatible = "qcom,tcsr";
35 reg = <0x1949000 0x100>;
36 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
40 compatible = "qcom,tcsr";
41 reg = <0x1953000 0x1000>;
42 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
46 compatible = "qcom,tcsr";
47 reg = <0x1957000 0x100>;
48 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
53 compatible = "gpio-keys";
57 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
58 linux,code = <KEY_RESTART>;
63 compatible = "gpio-leds";
66 function = LED_FUNCTION_POWER;
67 color = <LED_COLOR_ID_BLUE>;
68 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
69 default-state = "keep";
74 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
85 serial_pins: serial_pinmux {
87 pins = "gpio60", "gpio61";
88 function = "blsp_uart0";
93 spi_0_pins: spi_0_pinmux {
95 function = "blsp_spi0";
96 pins = "gpio55", "gpio56", "gpio57";
103 drive-strength = <2>;
117 pinctrl-0 = <&spi_0_pins>;
118 pinctrl-names = "default";
119 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
123 compatible = "jedec,spi-nor";
124 spi-max-frequency = <40000000>;
127 compatible = "fixed-partitions";
128 #address-cells = <1>;
138 compatible = "mikrotik,routerboot-partitions";
139 #address-cells = <1>;
141 label = "RouterBoot";
142 reg = <0x80000 0x80000>;
158 compatible = "mikrotik,minor";
160 reg = <0x100000 0xf00000>;
169 pinctrl-0 = <&serial_pins>;
170 pinctrl-names = "default";
210 qcom,ath10k-calibration-variant = "MikroTik-wAP-ac";
216 qcom,ath10k-calibration-variant = "MikroTik-wAP-ac";