1 // SPDX-License-Identifier: GPL-2.0 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>;
38 compatible = "qcom,tcsr";
39 reg = <0x1949000 0x100>;
40 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
45 compatible = "qcom,tcsr";
46 reg = <0x194b000 0x100>;
47 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
52 compatible = "qcom,tcsr";
53 reg = <0x1953000 0x1000>;
54 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
58 compatible = "qcom,tcsr";
59 reg = <0x1957000 0x100>;
60 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
81 switch_lan_bmp = <0x18>;
82 switch_wan_bmp = <0x20>;
91 compatible = "gpio-keys";
95 gpios = <&tlmm 53 GPIO_ACTIVE_LOW>;
96 linux,code = <KEY_WPS_BUTTON>;
101 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
102 linux,code = <KEY_RESTART>;
107 compatible = "gpio-leds";
110 label = "gl-s1300:green:power";
111 gpios = <&tlmm 57 GPIO_ACTIVE_HIGH>;
112 default-state = "on";
116 label = "gl-s1300:green:mesh";
117 gpios = <&tlmm 59 GPIO_ACTIVE_HIGH>;
121 label = "gl-s1300:green:wlan";
122 gpios = <&tlmm 60 GPIO_ACTIVE_HIGH>;
123 linux,default-trigger = "phy0tpt";
134 pinctrl-0 = <&sd_pins>;
135 pinctrl-names = "default";
136 cd-gpios = <&tlmm 22 GPIO_ACTIVE_LOW>;
137 vqmmc-supply = <&vqmmc>;
149 pinctrl-0 = <&spi_0_pins>;
150 pinctrl-names = "default";
152 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
155 compatible = "jedec,spi-nor";
157 spi-max-frequency = <24000000>;
160 compatible = "fixed-partitions";
161 #address-cells = <1>;
172 reg = <0x40000 0x20000>;
178 reg = <0x60000 0x60000>;
184 reg = <0xc0000 0x10000>;
190 reg = <0xd0000 0x10000>;
196 reg = <0xe0000 0x10000>;
202 reg = <0xf0000 0x80000>;
208 reg = <0x170000 0x10000>;
213 compatible = "denx,fit";
215 reg = <0x180000 0xe80000>;
222 pinctrl-0 = <&spi_1_pins>;
223 pinctrl-names = "default";
227 compatible = "siliconlabs,si3210";
229 spi-max-frequency = <24000000>;
234 pinctrl-0 = <&serial_pins>;
235 pinctrl-names = "default";
240 pinctrl-0 = <&serial_1_pins>;
241 pinctrl-names = "default";
246 serial_pins: serial_pinmux {
248 pins = "gpio16", "gpio17";
249 function = "blsp_uart0";
254 serial_1_pins: serial1_pinmux {
256 pins = "gpio8", "gpio9",
258 function = "blsp_uart1";
263 spi_0_pins: spi_0_pinmux {
265 function = "blsp_spi0";
266 pins = "gpio13", "gpio14", "gpio15";
273 pins = "gpio13", "gpio14", "gpio15";
274 drive-strength = <12>;
279 drive-strength = <2>;
285 spi_1_pins: spi_1_pinmux {
287 pins = "gpio44", "gpio46", "gpio47";
288 function = "blsp_spi1";
316 pins = "gpio23", "gpio24", "gpio25", "gpio26",
317 "gpio28", "gpio29", "gpio30", "gpio31";
318 drive-strength = <10>;
324 drive-strength = <16>;
330 drive-strength = <10>;
350 qcom,ath10k-calibration-variant = "GL-S1300";
355 qcom,ath10k-calibration-variant = "GL-S1300";