1 // SPDX-License-Identifier: GPL-2.0-only 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-B2200";
10 compatible = "glinet,gl-b2200", "qcom,ipq4019";
13 device_type = "memory";
14 reg = <0x80000000 0x10000000>;
18 bootargs-append = " root=/dev/mmcblk0p2 rw rootwait clk_ignore_unused";
35 compatible = "qcom,tcsr";
36 reg = <0x1949000 0x100>;
37 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
42 compatible = "qcom,tcsr";
43 reg = <0x194b000 0x100>;
44 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
49 compatible = "qcom,tcsr";
50 reg = <0x1953000 0x1000>;
51 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
55 compatible = "qcom,tcsr";
56 reg = <0x1957000 0x100>;
57 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
66 switch_lan_bmp = <0x2e>;
67 switch_wan_bmp = <0x10>;
76 compatible = "gpio-keys";
80 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
81 linux,code = <KEY_WPS_BUTTON>;
82 linux,input-type = <1>;
87 gpios = <&tlmm 40 GPIO_ACTIVE_LOW>;
88 linux,code = <KEY_RESTART>;
89 linux,input-type = <1>;
94 compatible = "gpio-leds";
98 gpios = <&tlmm 57 GPIO_ACTIVE_HIGH>;
102 label = "blue:internet";
103 gpios = <&tlmm 60 GPIO_ACTIVE_HIGH>;
106 label = "white:power";
107 gpios = <&tlmm 61 GPIO_ACTIVE_LOW>;
110 label = "white:internet";
111 gpios = <&tlmm 66 GPIO_ACTIVE_LOW>;
117 qcom,phy_mdio_addr = <3>;
118 qcom,poll_required = <1>;
119 qcom,forced_speed = <1000>;
120 qcom,forced_duplex = <1>;
134 pinctrl-0 = <&sd_pins>;
135 pinctrl-names = "default";
136 cd-gpios = <&tlmm 3 GPIO_ACTIVE_LOW>;
137 vqmmc-supply = <&vqmmc>;
149 pinctrl-0 = <&spi_0_pins>;
150 pinctrl-names = "default";
152 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
155 compatible = "jedec,spi-nor";
157 spi-max-frequency = <24000000>;
160 compatible = "fixed-partitions";
161 #address-cells = <1>;
172 reg = <0x40000 0x20000>;
178 reg = <0x60000 0x60000>;
184 reg = <0xc0000 0x10000>;
190 reg = <0xd0000 0x10000>;
196 reg = <0xe0000 0x10000>;
202 reg = <0xf0000 0x80000>;
208 reg = <0x170000 0x10000>;
210 compatible = "nvmem-cells";
211 #address-cells = <1>;
214 precal_art_1000: precal@1000 {
215 reg = <0x1000 0x2f20>;
218 precal_art_5000: precal@5000 {
219 reg = <0x5000 0x2f20>;
222 precal_art_9000: precal@9000 {
223 reg = <0x9000 0x2f20>;
231 pinctrl-0 = <&spi_1_pins>;
232 pinctrl-names = "default";
236 compatible = "siliconlabs,si3210";
238 spi-max-frequency = <24000000>;
243 pinctrl-0 = <&serial_pins>;
244 pinctrl-names = "default";
249 pinctrl-0 = <&serial_1_pins>;
250 pinctrl-names = "default";
255 serial_pins: serial_pinmux {
257 pins = "gpio16", "gpio17";
258 function = "blsp_uart0";
263 serial_1_pins: serial1_pinmux {
265 pins = "gpio8", "gpio9",
267 function = "blsp_uart1";
272 spi_0_pins: spi_0_pinmux {
274 function = "blsp_spi0";
275 pins = "gpio13", "gpio14", "gpio15";
282 pins = "gpio13", "gpio14", "gpio15";
283 drive-strength = <12>;
288 drive-strength = <2>;
294 spi_1_pins: spi_1_pinmux {
296 pins = "gpio44", "gpio46", "gpio47";
297 function = "blsp_spi1";
330 pins = "gpio23", "gpio24", "gpio25", "gpio26",
331 "gpio29", "gpio30", "gpio31", "gpio32";
332 drive-strength = <10>;
338 drive-strength = <16>;
344 drive-strength = <10>;
353 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
354 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
357 reg = <0x00000000 0 0 0 0>;
358 #address-cells = <3>;
364 /* Bootlog shows this is a 168c:0056 - QCA 9888v2 */
365 compatible = "qcom,ath10k";
366 reg = <0x00010000 0 0 0 0>;
367 nvmem-cell-names = "pre-calibration";
368 nvmem-cells = <&precal_art_9000>;
369 qcom,ath10k-calibration-variant = "GL-B2200";
370 ieee80211-freq-limit = <5450000 5900000>;
377 nvmem-cell-names = "pre-calibration";
378 nvmem-cells = <&precal_art_1000>;
379 qcom,ath10k-calibration-variant = "GL-B2200";
384 nvmem-cell-names = "pre-calibration";
385 nvmem-cells = <&precal_art_5000>;
386 qcom,ath10k-calibration-variant = "GL-B2200";
387 ieee80211-freq-limit = <5100000 5400000>;