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>;
180 compatible = "fixed-layout";
181 #address-cells = <1>;
184 macaddr_art_0: mac-address@0 {
188 macaddr_art_6: mac-address@6 {
192 precal_art_1000: precal@1000 {
193 reg = <0x1000 0x2f20>;
196 precal_art_5000: precal@5000 {
197 reg = <0x5000 0x2f20>;
207 compatible = "spi-nand";
209 spi-max-frequency = <24000000>;
212 compatible = "fixed-partitions";
213 #address-cells = <1>;
218 reg = <0x00000000 0x08000000>;
225 pinctrl-0 = <&serial_pins>;
226 pinctrl-names = "default";
231 serial_pins: serial_pinmux {
233 pins = "gpio60", "gpio61";
234 function = "blsp_uart0";
239 spi0_pins: spi0_pinmux {
241 function = "blsp_spi0";
242 pins = "gpio55", "gpio56", "gpio57";
243 drive-strength = <12>;
249 pins = "gpio54", "gpio5";
250 drive-strength = <2>;
281 nvmem-cells = <&macaddr_art_0>;
282 nvmem-cell-names = "mac-address";
289 nvmem-cells = <&macaddr_art_6>;
290 nvmem-cell-names = "mac-address";
295 nvmem-cell-names = "pre-calibration";
296 nvmem-cells = <&precal_art_1000>;
297 qcom,ath10k-calibration-variant = "GL-AP1300";
302 nvmem-cell-names = "pre-calibration";
303 nvmem-cells = <&precal_art_5000>;
304 qcom,ath10k-calibration-variant = "GL-AP1300";