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";
43 compatible = "qcom,tcsr";
44 reg = <0x1949000 0x100>;
45 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
50 compatible = "qcom,tcsr";
51 reg = <0x194b000 0x100>;
52 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
57 compatible = "qcom,tcsr";
58 reg = <0x1953000 0x1000>;
59 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
63 compatible = "qcom,tcsr";
64 reg = <0x1957000 0x100>;
65 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
86 switch_lan_bmp = <0x18>;
87 switch_wan_bmp = <0x20>;
96 compatible = "gpio-keys";
100 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
101 linux,code = <KEY_RESTART>;
106 compatible = "gpio-leds";
109 label = "green:power";
110 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
111 default-state = "on";
116 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
132 pinctrl-0 = <&spi0_pins>;
133 pinctrl-names = "default";
134 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>, <&tlmm 5 GPIO_ACTIVE_HIGH>;
139 compatible = "jedec,spi-nor";
141 spi-max-frequency = <24000000>;
144 compatible = "fixed-partitions";
145 #address-cells = <1>;
150 reg = <0x00000000 0x00040000>;
156 reg = <0x00040000 0x00020000>;
162 reg = <0x00060000 0x00060000>;
168 reg = <0x000c0000 0x00010000>;
174 reg = <0x000d0000 0x00010000>;
179 label = "APPSBLENV"; /* uboot env*/
180 reg = <0x000e0000 0x00010000>;
184 label = "APPSBL"; /* uboot */
185 reg = <0x000f0000 0x00080000>;
191 reg = <0x00170000 0x00010000>;
193 compatible = "nvmem-cells";
194 #address-cells = <1>;
197 precal_art_1000: precal@1000 {
198 reg = <0x1000 0x2f20>;
201 precal_art_5000: precal@5000 {
202 reg = <0x5000 0x2f20>;
211 compatible = "spi-nand";
213 spi-max-frequency = <24000000>;
216 compatible = "fixed-partitions";
217 #address-cells = <1>;
222 reg = <0x00000000 0x08000000>;
229 pinctrl-0 = <&serial_pins>;
230 pinctrl-names = "default";
235 serial_pins: serial_pinmux {
237 pins = "gpio60", "gpio61";
238 function = "blsp_uart0";
243 spi0_pins: spi0_pinmux {
245 function = "blsp_spi0";
246 pins = "gpio55", "gpio56", "gpio57";
247 drive-strength = <12>;
253 pins = "gpio54", "gpio5";
254 drive-strength = <2>;
275 nvmem-cell-names = "pre-calibration";
276 nvmem-cells = <&precal_art_1000>;
277 qcom,ath10k-calibration-variant = "GL-AP1300";
282 nvmem-cell-names = "pre-calibration";
283 nvmem-cells = <&precal_art_5000>;
284 qcom,ath10k-calibration-variant = "GL-AP1300";