1 // SPDX-License-Identifier: GPL-2.0-or-later 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-AP1300";
10 compatible = "glinet,gl-ap1300";
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>;
25 bootargs-append = " ubi.mtd=ubi root=/dev/ubiblock0_1";
42 compatible = "qcom,tcsr";
43 reg = <0x1949000 0x100>;
44 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
49 compatible = "qcom,tcsr";
50 reg = <0x194b000 0x100>;
51 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
56 compatible = "qcom,tcsr";
57 reg = <0x1953000 0x1000>;
58 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
62 compatible = "qcom,tcsr";
63 reg = <0x1957000 0x100>;
64 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
85 switch_lan_bmp = <0x18>;
86 switch_wan_bmp = <0x20>;
95 compatible = "gpio-keys";
99 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
100 linux,code = <KEY_RESTART>;
105 compatible = "gpio-leds";
108 label = "green:power";
109 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
110 default-state = "on";
115 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
131 pinctrl-0 = <&spi0_pins>;
132 pinctrl-names = "default";
133 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>, <&tlmm 5 GPIO_ACTIVE_HIGH>;
138 compatible = "jedec,spi-nor";
140 spi-max-frequency = <24000000>;
143 compatible = "fixed-partitions";
144 #address-cells = <1>;
149 reg = <0x00000000 0x00040000>;
155 reg = <0x00040000 0x00020000>;
161 reg = <0x00060000 0x00060000>;
167 reg = <0x000c0000 0x00010000>;
173 reg = <0x000d0000 0x00010000>;
178 label = "APPSBLENV"; /* uboot env*/
179 reg = <0x000e0000 0x00010000>;
183 label = "APPSBL"; /* uboot */
184 reg = <0x000f0000 0x00080000>;
190 reg = <0x00170000 0x00010000>;
199 compatible = "spi-nand";
201 spi-max-frequency = <24000000>;
204 compatible = "fixed-partitions";
205 #address-cells = <1>;
210 reg = <0x00000000 0x08000000>;
217 pinctrl-0 = <&serial_pins>;
218 pinctrl-names = "default";
223 serial_pins: serial_pinmux {
225 pins = "gpio60", "gpio61";
226 function = "blsp_uart0";
231 spi0_pins: spi0_pinmux {
233 function = "blsp_spi0";
234 pins = "gpio55", "gpio56", "gpio57";
235 drive-strength = <12>;
241 pins = "gpio54", "gpio5";
242 drive-strength = <2>;
263 qcom,ath10k-calibration-variant = "GL-AP1300";
268 qcom,ath10k-calibration-variant = "GL-AP1300";