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/leds/common.h>
7 #include <dt-bindings/soc/qcom,tcsr.h>
10 model = "GL.iNet GL-AP1300";
11 compatible = "glinet,gl-ap1300";
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>;
26 bootargs-append = " ubi.mtd=ubi root=/dev/ubiblock0_1";
39 compatible = "qcom,tcsr";
40 reg = <0x1949000 0x100>;
41 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
46 compatible = "qcom,tcsr";
47 reg = <0x194b000 0x100>;
48 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
53 compatible = "qcom,tcsr";
54 reg = <0x1953000 0x1000>;
55 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
59 compatible = "qcom,tcsr";
60 reg = <0x1957000 0x100>;
61 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
74 compatible = "gpio-keys";
78 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
79 linux,code = <KEY_RESTART>;
84 compatible = "gpio-leds";
87 function = LED_FUNCTION_POWER;
88 color = <LED_COLOR_ID_WHITE>;
89 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
94 function = LED_FUNCTION_WAN;
95 color = <LED_COLOR_ID_WHITE>;
96 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
112 pinctrl-0 = <&spi0_pins>;
113 pinctrl-names = "default";
114 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>, <&tlmm 5 GPIO_ACTIVE_HIGH>;
119 compatible = "jedec,spi-nor";
121 spi-max-frequency = <24000000>;
124 compatible = "fixed-partitions";
125 #address-cells = <1>;
130 reg = <0x00000000 0x00040000>;
136 reg = <0x00040000 0x00020000>;
142 reg = <0x00060000 0x00060000>;
148 reg = <0x000c0000 0x00010000>;
154 reg = <0x000d0000 0x00010000>;
159 label = "APPSBLENV"; /* uboot env*/
160 reg = <0x000e0000 0x00010000>;
164 label = "APPSBL"; /* uboot */
165 reg = <0x000f0000 0x00080000>;
171 reg = <0x00170000 0x00010000>;
175 compatible = "fixed-layout";
176 #address-cells = <1>;
179 macaddr_art_0: mac-address@0 {
183 macaddr_art_6: mac-address@6 {
187 precal_art_1000: precal@1000 {
188 reg = <0x1000 0x2f20>;
191 precal_art_5000: precal@5000 {
192 reg = <0x5000 0x2f20>;
202 compatible = "spi-nand";
204 spi-max-frequency = <24000000>;
207 compatible = "fixed-partitions";
208 #address-cells = <1>;
213 reg = <0x00000000 0x08000000>;
220 pinctrl-0 = <&serial_pins>;
221 pinctrl-names = "default";
226 serial_pins: serial_pinmux {
228 pins = "gpio60", "gpio61";
229 function = "blsp_uart0";
234 spi0_pins: spi0_pinmux {
236 function = "blsp_spi0";
237 pins = "gpio55", "gpio56", "gpio57";
238 drive-strength = <12>;
244 pins = "gpio54", "gpio5";
245 drive-strength = <2>;
284 nvmem-cells = <&macaddr_art_0>;
285 nvmem-cell-names = "mac-address";
292 nvmem-cells = <&macaddr_art_6>;
293 nvmem-cell-names = "mac-address";
298 nvmem-cell-names = "pre-calibration";
299 nvmem-cells = <&precal_art_1000>;
300 qcom,ath10k-calibration-variant = "GL-AP1300";
305 nvmem-cell-names = "pre-calibration";
306 nvmem-cells = <&precal_art_5000>;
307 qcom,ath10k-calibration-variant = "GL-AP1300";