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-A1300";
10 compatible = "glinet,gl-a1300", "qcom,ipq4019";
14 led-failsafe = &led_run;
15 led-running = &led_run;
16 led-upgrade = &led_run;
17 label-mac-device = &swport4;
21 bootargs-append = " ubi.mtd=ubi root=/dev/ubiblock0_1";
26 compatible = "qcom,tcsr";
27 reg = <0x1949000 0x100>;
28 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
33 compatible = "qcom,tcsr";
34 reg = <0x194b000 0x100>;
35 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
40 compatible = "qcom,tcsr";
41 reg = <0x1953000 0x1000>;
42 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
46 compatible = "qcom,tcsr";
47 reg = <0x1957000 0x100>;
48 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
53 compatible = "gpio-keys";
57 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
58 linux,code = <KEY_RESTART>;
62 label = "switch-button";
63 gpios = <&tlmm 0 GPIO_ACTIVE_LOW>;
64 linux,code = <KEY_SETUP>;
69 compatible = "gpio-leds";
72 label = "blue:status";
73 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
77 label = "white:status";
78 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
83 compatible = "gpio-export";
86 gpio-export,name = "usb_power";
87 gpio-export,output = <1>;
88 gpios = <&tlmm 4 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>;
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>;
181 compatible = "fixed-layout";
182 #address-cells = <1>;
185 macaddr_gmac0: macaddr@0 {
189 macaddr_gmac1: macaddr@6 {
193 precal_art_1000: precal@1000 {
194 reg = <0x1000 0x2f20>;
197 precal_art_5000: precal@5000 {
198 reg = <0x5000 0x2f20>;
205 reg = <0x00180000 0x00020000>;
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 i2c_0_pins: i2c_0_pinmux {
245 pins = "gpio58", "gpio59";
246 function = "blsp_i2c0";
251 spi0_pins: spi0_pinmux {
253 function = "blsp_spi0";
254 pins = "gpio55", "gpio56", "gpio57";
255 drive-strength = <12>;
261 pins = "gpio54", "gpio5";
262 drive-strength = <2>;
271 pinctrl-0 = <&i2c_0_pins>;
272 pinctrl-names = "default";
307 nvmem-cell-names = "mac-address";
308 nvmem-cells = <&macaddr_gmac0>;
309 mac-address-increment = <2>;
316 nvmem-cell-names = "mac-address";
317 nvmem-cells = <&macaddr_gmac0>;
323 nvmem-cell-names = "mac-address";
324 nvmem-cells = <&macaddr_gmac1>;
329 nvmem-cell-names = "pre-calibration";
330 nvmem-cells = <&precal_art_1000>;
331 qcom,ath10k-calibration-variant = "GL-A1300";
336 nvmem-cell-names = "pre-calibration";
337 nvmem-cells = <&precal_art_5000>;
338 qcom,ath10k-calibration-variant = "GL-A1300";