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>;
27 compatible = "qcom,tcsr";
28 reg = <0x1949000 0x100>;
29 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
34 compatible = "qcom,tcsr";
35 reg = <0x194b000 0x100>;
36 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
41 compatible = "qcom,tcsr";
42 reg = <0x1953000 0x1000>;
43 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
47 compatible = "qcom,tcsr";
48 reg = <0x1957000 0x100>;
49 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
54 compatible = "gpio-keys";
58 gpios = <&tlmm 53 GPIO_ACTIVE_LOW>;
59 linux,code = <KEY_WPS_BUTTON>;
64 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
65 linux,code = <KEY_RESTART>;
70 compatible = "gpio-leds";
73 function = LED_FUNCTION_POWER;
74 color = <LED_COLOR_ID_GREEN>;
75 gpios = <&tlmm 57 GPIO_ACTIVE_HIGH>;
81 gpios = <&tlmm 59 GPIO_ACTIVE_HIGH>;
85 function = LED_FUNCTION_WLAN;
86 color = <LED_COLOR_ID_GREEN>;
87 gpios = <&tlmm 60 GPIO_ACTIVE_HIGH>;
88 linux,default-trigger = "phy0tpt";
111 pinctrl-0 = <&sd_pins>;
112 pinctrl-names = "default";
113 cd-gpios = <&tlmm 22 GPIO_ACTIVE_LOW>;
114 vqmmc-supply = <&vqmmc>;
126 pinctrl-0 = <&spi_0_pins>;
127 pinctrl-names = "default";
129 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
132 compatible = "jedec,spi-nor";
134 spi-max-frequency = <24000000>;
137 compatible = "fixed-partitions";
138 #address-cells = <1>;
149 reg = <0x40000 0x20000>;
155 reg = <0x60000 0x60000>;
161 reg = <0xc0000 0x10000>;
167 reg = <0xd0000 0x10000>;
173 reg = <0xe0000 0x10000>;
179 reg = <0xf0000 0x80000>;
185 reg = <0x170000 0x10000>;
189 compatible = "fixed-layout";
190 #address-cells = <1>;
193 precal_art_1000: precal@1000 {
194 reg = <0x1000 0x2f20>;
197 precal_art_5000: precal@5000 {
198 reg = <0x5000 0x2f20>;
204 compatible = "denx,fit";
206 reg = <0x180000 0xe80000>;
213 pinctrl-0 = <&spi_1_pins>;
214 pinctrl-names = "default";
218 compatible = "silabs,si3210";
220 spi-max-frequency = <24000000>;
225 pinctrl-0 = <&serial_pins>;
226 pinctrl-names = "default";
231 pinctrl-0 = <&serial_1_pins>;
232 pinctrl-names = "default";
237 serial_pins: serial_pinmux {
239 pins = "gpio16", "gpio17";
240 function = "blsp_uart0";
245 serial_1_pins: serial1_pinmux {
247 pins = "gpio8", "gpio9",
249 function = "blsp_uart1";
254 spi_0_pins: spi_0_pinmux {
256 function = "blsp_spi0";
257 pins = "gpio13", "gpio14", "gpio15";
264 pins = "gpio13", "gpio14", "gpio15";
265 drive-strength = <12>;
270 drive-strength = <2>;
276 spi_1_pins: spi_1_pinmux {
278 pins = "gpio44", "gpio46", "gpio47";
279 function = "blsp_spi1";
307 pins = "gpio23", "gpio24", "gpio25", "gpio26",
308 "gpio28", "gpio29", "gpio30", "gpio31";
309 drive-strength = <10>;
315 drive-strength = <16>;
321 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";