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/soc/qcom,tcsr.h>
9 model = "GL.iNet GL-S1300";
10 compatible = "glinet,gl-s1300";
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
20 device_type = "memory";
21 reg = <0x80000000 0x10000000>;
34 compatible = "qcom,tcsr";
35 reg = <0x1949000 0x100>;
36 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
41 compatible = "qcom,tcsr";
42 reg = <0x194b000 0x100>;
43 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
48 compatible = "qcom,tcsr";
49 reg = <0x1953000 0x1000>;
50 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
54 compatible = "qcom,tcsr";
55 reg = <0x1957000 0x100>;
56 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
77 compatible = "gpio-keys";
81 gpios = <&tlmm 53 GPIO_ACTIVE_LOW>;
82 linux,code = <KEY_WPS_BUTTON>;
87 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
88 linux,code = <KEY_RESTART>;
93 compatible = "gpio-leds";
96 label = "green:power";
97 gpios = <&tlmm 57 GPIO_ACTIVE_HIGH>;
102 label = "green:mesh";
103 gpios = <&tlmm 59 GPIO_ACTIVE_HIGH>;
107 label = "green:wlan";
108 gpios = <&tlmm 60 GPIO_ACTIVE_HIGH>;
109 linux,default-trigger = "phy0tpt";
120 pinctrl-0 = <&sd_pins>;
121 pinctrl-names = "default";
122 cd-gpios = <&tlmm 22 GPIO_ACTIVE_LOW>;
123 vqmmc-supply = <&vqmmc>;
135 pinctrl-0 = <&spi_0_pins>;
136 pinctrl-names = "default";
138 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
141 compatible = "jedec,spi-nor";
143 spi-max-frequency = <24000000>;
146 compatible = "fixed-partitions";
147 #address-cells = <1>;
158 reg = <0x40000 0x20000>;
164 reg = <0x60000 0x60000>;
170 reg = <0xc0000 0x10000>;
176 reg = <0xd0000 0x10000>;
182 reg = <0xe0000 0x10000>;
188 reg = <0xf0000 0x80000>;
194 reg = <0x170000 0x10000>;
196 compatible = "nvmem-cells";
197 #address-cells = <1>;
200 precal_art_1000: precal@1000 {
201 reg = <0x1000 0x2f20>;
204 precal_art_5000: precal@5000 {
205 reg = <0x5000 0x2f20>;
210 compatible = "denx,fit";
212 reg = <0x180000 0xe80000>;
219 pinctrl-0 = <&spi_1_pins>;
220 pinctrl-names = "default";
224 compatible = "siliconlabs,si3210";
226 spi-max-frequency = <24000000>;
231 pinctrl-0 = <&serial_pins>;
232 pinctrl-names = "default";
237 pinctrl-0 = <&serial_1_pins>;
238 pinctrl-names = "default";
243 serial_pins: serial_pinmux {
245 pins = "gpio16", "gpio17";
246 function = "blsp_uart0";
251 serial_1_pins: serial1_pinmux {
253 pins = "gpio8", "gpio9",
255 function = "blsp_uart1";
260 spi_0_pins: spi_0_pinmux {
262 function = "blsp_spi0";
263 pins = "gpio13", "gpio14", "gpio15";
270 pins = "gpio13", "gpio14", "gpio15";
271 drive-strength = <12>;
276 drive-strength = <2>;
282 spi_1_pins: spi_1_pinmux {
284 pins = "gpio44", "gpio46", "gpio47";
285 function = "blsp_spi1";
313 pins = "gpio23", "gpio24", "gpio25", "gpio26",
314 "gpio28", "gpio29", "gpio30", "gpio31";
315 drive-strength = <10>;
321 drive-strength = <16>;
327 drive-strength = <10>;
347 nvmem-cell-names = "pre-calibration";
348 nvmem-cells = <&precal_art_1000>;
349 qcom,ath10k-calibration-variant = "GL-S1300";
354 nvmem-cell-names = "pre-calibration";
355 nvmem-cells = <&precal_art_5000>;
356 qcom,ath10k-calibration-variant = "GL-S1300";