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";
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 compatible = "gpio-keys";
85 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
86 linux,code = <KEY_RESTART>;
91 compatible = "gpio-leds";
94 label = "white:power";
95 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
101 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
117 pinctrl-0 = <&spi0_pins>;
118 pinctrl-names = "default";
119 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>, <&tlmm 5 GPIO_ACTIVE_HIGH>;
124 compatible = "jedec,spi-nor";
126 spi-max-frequency = <24000000>;
129 compatible = "fixed-partitions";
130 #address-cells = <1>;
135 reg = <0x00000000 0x00040000>;
141 reg = <0x00040000 0x00020000>;
147 reg = <0x00060000 0x00060000>;
153 reg = <0x000c0000 0x00010000>;
159 reg = <0x000d0000 0x00010000>;
164 label = "APPSBLENV"; /* uboot env*/
165 reg = <0x000e0000 0x00010000>;
169 label = "APPSBL"; /* uboot */
170 reg = <0x000f0000 0x00080000>;
176 reg = <0x00170000 0x00010000>;
178 compatible = "nvmem-cells";
179 #address-cells = <1>;
182 macaddr_art_0: mac-address@0 {
186 macaddr_art_6: mac-address@6 {
190 precal_art_1000: precal@1000 {
191 reg = <0x1000 0x2f20>;
194 precal_art_5000: precal@5000 {
195 reg = <0x5000 0x2f20>;
204 compatible = "spi-nand";
206 spi-max-frequency = <24000000>;
209 compatible = "fixed-partitions";
210 #address-cells = <1>;
215 reg = <0x00000000 0x08000000>;
222 pinctrl-0 = <&serial_pins>;
223 pinctrl-names = "default";
228 serial_pins: serial_pinmux {
230 pins = "gpio60", "gpio61";
231 function = "blsp_uart0";
236 spi0_pins: spi0_pinmux {
238 function = "blsp_spi0";
239 pins = "gpio55", "gpio56", "gpio57";
240 drive-strength = <12>;
246 pins = "gpio54", "gpio5";
247 drive-strength = <2>;
278 nvmem-cells = <&macaddr_art_0>;
279 nvmem-cell-names = "mac-address";
286 nvmem-cells = <&macaddr_art_6>;
287 nvmem-cell-names = "mac-address";
292 nvmem-cell-names = "pre-calibration";
293 nvmem-cells = <&precal_art_1000>;
294 qcom,ath10k-calibration-variant = "GL-AP1300";
299 nvmem-cell-names = "pre-calibration";
300 nvmem-cells = <&precal_art_5000>;
301 qcom,ath10k-calibration-variant = "GL-AP1300";