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;
17 label-mac-device = &gmac0;
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>;
82 compatible = "gpio-keys";
86 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
87 linux,code = <KEY_RESTART>;
92 compatible = "gpio-leds";
95 label = "green:power";
96 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
102 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
118 pinctrl-0 = <&spi0_pins>;
119 pinctrl-names = "default";
120 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>, <&tlmm 5 GPIO_ACTIVE_HIGH>;
125 compatible = "jedec,spi-nor";
127 spi-max-frequency = <24000000>;
130 compatible = "fixed-partitions";
131 #address-cells = <1>;
136 reg = <0x00000000 0x00040000>;
142 reg = <0x00040000 0x00020000>;
148 reg = <0x00060000 0x00060000>;
154 reg = <0x000c0000 0x00010000>;
160 reg = <0x000d0000 0x00010000>;
165 label = "APPSBLENV"; /* uboot env*/
166 reg = <0x000e0000 0x00010000>;
170 label = "APPSBL"; /* uboot */
171 reg = <0x000f0000 0x00080000>;
177 reg = <0x00170000 0x00010000>;
179 compatible = "nvmem-cells";
180 #address-cells = <1>;
183 precal_art_1000: precal@1000 {
184 reg = <0x1000 0x2f20>;
187 precal_art_5000: precal@5000 {
188 reg = <0x5000 0x2f20>;
197 compatible = "spi-nand";
199 spi-max-frequency = <24000000>;
202 compatible = "fixed-partitions";
203 #address-cells = <1>;
208 reg = <0x00000000 0x08000000>;
215 pinctrl-0 = <&serial_pins>;
216 pinctrl-names = "default";
221 serial_pins: serial_pinmux {
223 pins = "gpio60", "gpio61";
224 function = "blsp_uart0";
229 spi0_pins: spi0_pinmux {
231 function = "blsp_spi0";
232 pins = "gpio55", "gpio56", "gpio57";
233 drive-strength = <12>;
239 pins = "gpio54", "gpio5";
240 drive-strength = <2>;
261 nvmem-cell-names = "pre-calibration";
262 nvmem-cells = <&precal_art_1000>;
263 qcom,ath10k-calibration-variant = "GL-AP1300";
268 nvmem-cell-names = "pre-calibration";
269 nvmem-cells = <&precal_art_5000>;
270 qcom,ath10k-calibration-variant = "GL-AP1300";