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>;
70 compatible = "gpio-keys";
74 gpios = <&tlmm 53 GPIO_ACTIVE_LOW>;
75 linux,code = <KEY_WPS_BUTTON>;
80 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
81 linux,code = <KEY_RESTART>;
86 compatible = "gpio-leds";
89 function = LED_FUNCTION_POWER;
90 color = <LED_COLOR_ID_GREEN>;
91 gpios = <&tlmm 57 GPIO_ACTIVE_HIGH>;
97 gpios = <&tlmm 59 GPIO_ACTIVE_HIGH>;
101 function = LED_FUNCTION_WLAN;
102 color = <LED_COLOR_ID_GREEN>;
103 gpios = <&tlmm 60 GPIO_ACTIVE_HIGH>;
104 linux,default-trigger = "phy0tpt";
115 pinctrl-0 = <&sd_pins>;
116 pinctrl-names = "default";
117 cd-gpios = <&tlmm 22 GPIO_ACTIVE_LOW>;
118 vqmmc-supply = <&vqmmc>;
130 pinctrl-0 = <&spi_0_pins>;
131 pinctrl-names = "default";
133 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
136 compatible = "jedec,spi-nor";
138 spi-max-frequency = <24000000>;
141 compatible = "fixed-partitions";
142 #address-cells = <1>;
153 reg = <0x40000 0x20000>;
159 reg = <0x60000 0x60000>;
165 reg = <0xc0000 0x10000>;
171 reg = <0xd0000 0x10000>;
177 reg = <0xe0000 0x10000>;
183 reg = <0xf0000 0x80000>;
189 reg = <0x170000 0x10000>;
193 compatible = "fixed-layout";
194 #address-cells = <1>;
197 precal_art_1000: precal@1000 {
198 reg = <0x1000 0x2f20>;
201 precal_art_5000: precal@5000 {
202 reg = <0x5000 0x2f20>;
208 compatible = "denx,fit";
210 reg = <0x180000 0xe80000>;
217 pinctrl-0 = <&spi_1_pins>;
218 pinctrl-names = "default";
222 compatible = "silabs,si3210";
224 spi-max-frequency = <24000000>;
229 pinctrl-0 = <&serial_pins>;
230 pinctrl-names = "default";
235 pinctrl-0 = <&serial_1_pins>;
236 pinctrl-names = "default";
241 serial_pins: serial_pinmux {
243 pins = "gpio16", "gpio17";
244 function = "blsp_uart0";
249 serial_1_pins: serial1_pinmux {
251 pins = "gpio8", "gpio9",
253 function = "blsp_uart1";
258 spi_0_pins: spi_0_pinmux {
260 function = "blsp_spi0";
261 pins = "gpio13", "gpio14", "gpio15";
268 pins = "gpio13", "gpio14", "gpio15";
269 drive-strength = <12>;
274 drive-strength = <2>;
280 spi_1_pins: spi_1_pinmux {
282 pins = "gpio44", "gpio46", "gpio47";
283 function = "blsp_spi1";
311 pins = "gpio23", "gpio24", "gpio25", "gpio26",
312 "gpio28", "gpio29", "gpio30", "gpio31";
313 drive-strength = <10>;
319 drive-strength = <16>;
325 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";