1 /* Copyright (c) 2015, The Linux Foundation. All rights reserved.
3 * Permission to use, copy, modify, and/or distribute this software for any
4 * purpose with or without fee is hereby granted, provided that the above
5 * copyright notice and this permission notice appear in all copies.
7 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 #include "qcom-ipq4019.dtsi"
18 #include <dt-bindings/gpio/gpio.h>
19 #include <dt-bindings/input/input.h>
20 #include <dt-bindings/soc/qcom,tcsr.h>
23 model = "GL.iNet GL-B1300";
24 compatible = "glinet,gl-b1300", "qcom,ipq4019";
28 led-failsafe = &power;
34 device_type = "memory";
35 reg = <0x80000000 0x10000000>;
48 compatible = "qcom,tcsr";
49 reg = <0x1949000 0x100>;
50 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
55 compatible = "qcom,tcsr";
56 reg = <0x194b000 0x100>;
57 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
62 compatible = "qcom,tcsr";
63 reg = <0x1953000 0x1000>;
64 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
68 compatible = "qcom,tcsr";
69 reg = <0x1957000 0x100>;
70 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
78 pinctrl-0 = <&serial_pins>;
79 pinctrl-names = "default";
97 switch_lan_bmp = <0x18>;
98 switch_wan_bmp = <0x20>;
107 compatible = "gpio-keys";
111 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
112 linux,code = <KEY_WPS_BUTTON>;
117 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
118 linux,code = <KEY_RESTART>;
123 compatible = "gpio-leds";
126 label = "gl-b1300:green:power";
127 gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
128 default-state = "on";
132 label = "gl-b1300:green:mesh";
133 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
137 label = "gl-b1300:green:wlan";
138 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
152 pinctrl-0 = <&spi_0_pins>;
153 pinctrl-names = "default";
155 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
158 compatible = "jedec,spi-nor";
159 #address-cells = <1>;
162 spi-max-frequency = <24000000>;
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>;
214 reg = <0x180000 0x1e80000>;
220 serial_pins: serial_pinmux {
222 pins = "gpio60", "gpio61";
223 function = "blsp_uart0";
228 spi_0_pins: spi_0_pinmux {
230 function = "blsp_spi0";
231 pins = "gpio55", "gpio56", "gpio57";
238 pins = "gpio55", "gpio56", "gpio57";
239 drive-strength = <12>;
244 drive-strength = <2>;
265 qcom,ath10k-calibration-variant = "GL-B1300";
270 qcom,ath10k-calibration-variant = "GL-B1300";