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>;
82 compatible = "gpio-keys";
86 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
87 linux,code = <KEY_RESTART>;
92 compatible = "gpio-leds";
95 function = LED_FUNCTION_POWER;
96 color = <LED_COLOR_ID_WHITE>;
97 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
102 function = LED_FUNCTION_WAN;
103 color = <LED_COLOR_ID_WHITE>;
104 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
120 pinctrl-0 = <&spi0_pins>;
121 pinctrl-names = "default";
122 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>, <&tlmm 5 GPIO_ACTIVE_HIGH>;
127 compatible = "jedec,spi-nor";
129 spi-max-frequency = <24000000>;
132 compatible = "fixed-partitions";
133 #address-cells = <1>;
138 reg = <0x00000000 0x00040000>;
144 reg = <0x00040000 0x00020000>;
150 reg = <0x00060000 0x00060000>;
156 reg = <0x000c0000 0x00010000>;
162 reg = <0x000d0000 0x00010000>;
167 label = "APPSBLENV"; /* uboot env*/
168 reg = <0x000e0000 0x00010000>;
172 label = "APPSBL"; /* uboot */
173 reg = <0x000f0000 0x00080000>;
179 reg = <0x00170000 0x00010000>;
183 compatible = "fixed-layout";
184 #address-cells = <1>;
187 macaddr_art_0: mac-address@0 {
191 macaddr_art_6: mac-address@6 {
195 precal_art_1000: precal@1000 {
196 reg = <0x1000 0x2f20>;
199 precal_art_5000: precal@5000 {
200 reg = <0x5000 0x2f20>;
210 compatible = "spi-nand";
212 spi-max-frequency = <24000000>;
215 compatible = "fixed-partitions";
216 #address-cells = <1>;
221 reg = <0x00000000 0x08000000>;
228 pinctrl-0 = <&serial_pins>;
229 pinctrl-names = "default";
234 serial_pins: serial_pinmux {
236 pins = "gpio60", "gpio61";
237 function = "blsp_uart0";
242 spi0_pins: spi0_pinmux {
244 function = "blsp_spi0";
245 pins = "gpio55", "gpio56", "gpio57";
246 drive-strength = <12>;
252 pins = "gpio54", "gpio5";
253 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";