1 // SPDX-License-Identifier: GPL-2.0-only OR MIT
3 #include "qcom-ipq4019.dtsi"
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/leds/common.h>
7 #include <dt-bindings/soc/qcom,tcsr.h>
10 model = "GL.iNet GL-S1300";
11 compatible = "glinet,gl-s1300";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
21 device_type = "memory";
22 reg = <0x80000000 0x10000000>;
35 compatible = "qcom,tcsr";
36 reg = <0x1949000 0x100>;
37 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
42 compatible = "qcom,tcsr";
43 reg = <0x194b000 0x100>;
44 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
49 compatible = "qcom,tcsr";
50 reg = <0x1953000 0x1000>;
51 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
55 compatible = "qcom,tcsr";
56 reg = <0x1957000 0x100>;
57 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
78 compatible = "gpio-keys";
82 gpios = <&tlmm 53 GPIO_ACTIVE_LOW>;
83 linux,code = <KEY_WPS_BUTTON>;
88 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
89 linux,code = <KEY_RESTART>;
94 compatible = "gpio-leds";
97 function = LED_FUNCTION_POWER;
98 color = <LED_COLOR_ID_GREEN>;
99 gpios = <&tlmm 57 GPIO_ACTIVE_HIGH>;
100 default-state = "on";
104 label = "green:mesh";
105 gpios = <&tlmm 59 GPIO_ACTIVE_HIGH>;
109 function = LED_FUNCTION_WLAN;
110 color = <LED_COLOR_ID_GREEN>;
111 gpios = <&tlmm 60 GPIO_ACTIVE_HIGH>;
112 linux,default-trigger = "phy0tpt";
123 pinctrl-0 = <&sd_pins>;
124 pinctrl-names = "default";
125 cd-gpios = <&tlmm 22 GPIO_ACTIVE_LOW>;
126 vqmmc-supply = <&vqmmc>;
138 pinctrl-0 = <&spi_0_pins>;
139 pinctrl-names = "default";
141 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
144 compatible = "jedec,spi-nor";
146 spi-max-frequency = <24000000>;
149 compatible = "fixed-partitions";
150 #address-cells = <1>;
161 reg = <0x40000 0x20000>;
167 reg = <0x60000 0x60000>;
173 reg = <0xc0000 0x10000>;
179 reg = <0xd0000 0x10000>;
185 reg = <0xe0000 0x10000>;
191 reg = <0xf0000 0x80000>;
197 reg = <0x170000 0x10000>;
201 compatible = "fixed-layout";
202 #address-cells = <1>;
205 precal_art_1000: precal@1000 {
206 reg = <0x1000 0x2f20>;
209 precal_art_5000: precal@5000 {
210 reg = <0x5000 0x2f20>;
216 compatible = "denx,fit";
218 reg = <0x180000 0xe80000>;
225 pinctrl-0 = <&spi_1_pins>;
226 pinctrl-names = "default";
230 compatible = "silabs,si3210";
232 spi-max-frequency = <24000000>;
237 pinctrl-0 = <&serial_pins>;
238 pinctrl-names = "default";
243 pinctrl-0 = <&serial_1_pins>;
244 pinctrl-names = "default";
249 serial_pins: serial_pinmux {
251 pins = "gpio16", "gpio17";
252 function = "blsp_uart0";
257 serial_1_pins: serial1_pinmux {
259 pins = "gpio8", "gpio9",
261 function = "blsp_uart1";
266 spi_0_pins: spi_0_pinmux {
268 function = "blsp_spi0";
269 pins = "gpio13", "gpio14", "gpio15";
276 pins = "gpio13", "gpio14", "gpio15";
277 drive-strength = <12>;
282 drive-strength = <2>;
288 spi_1_pins: spi_1_pinmux {
290 pins = "gpio44", "gpio46", "gpio47";
291 function = "blsp_spi1";
319 pins = "gpio23", "gpio24", "gpio25", "gpio26",
320 "gpio28", "gpio29", "gpio30", "gpio31";
321 drive-strength = <10>;
327 drive-strength = <16>;
333 drive-strength = <10>;
353 nvmem-cell-names = "pre-calibration";
354 nvmem-cells = <&precal_art_1000>;
355 qcom,ath10k-calibration-variant = "GL-S1300";
360 nvmem-cell-names = "pre-calibration";
361 nvmem-cells = <&precal_art_5000>;
362 qcom,ath10k-calibration-variant = "GL-S1300";