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";
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>;
91 compatible = "gpio-keys";
95 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
96 linux,code = <KEY_WPS_BUTTON>;
101 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
102 linux,code = <KEY_RESTART>;
107 compatible = "gpio-leds";
110 label = "green:power";
111 gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
112 default-state = "on";
116 label = "green:mesh";
117 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
121 label = "green:wlan";
122 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
136 pinctrl-0 = <&spi_0_pins>;
137 pinctrl-names = "default";
139 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
142 compatible = "jedec,spi-nor";
144 spi-max-frequency = <24000000>;
147 compatible = "fixed-partitions";
148 #address-cells = <1>;
159 reg = <0x40000 0x20000>;
165 reg = <0x60000 0x60000>;
171 reg = <0xc0000 0x10000>;
177 reg = <0xd0000 0x10000>;
183 reg = <0xe0000 0x10000>;
189 reg = <0xf0000 0x80000>;
195 reg = <0x170000 0x10000>;
197 compatible = "nvmem-cells";
198 #address-cells = <1>;
201 precal_art_1000: precal@1000 {
202 reg = <0x1000 0x2f20>;
205 precal_art_5000: precal@5000 {
206 reg = <0x5000 0x2f20>;
211 compatible = "denx,fit";
213 reg = <0x180000 0x1e80000>;
220 pinctrl-0 = <&serial_pins>;
221 pinctrl-names = "default";
226 serial_pins: serial_pinmux {
228 pins = "gpio60", "gpio61";
229 function = "blsp_uart0";
234 spi_0_pins: spi_0_pinmux {
236 function = "blsp_spi0";
237 pins = "gpio55", "gpio56", "gpio57";
244 pins = "gpio55", "gpio56", "gpio57";
245 drive-strength = <12>;
250 drive-strength = <2>;
271 nvmem-cell-names = "pre-calibration";
272 nvmem-cells = <&precal_art_1000>;
273 qcom,ath10k-calibration-variant = "GL-B1300";
278 nvmem-cell-names = "pre-calibration";
279 nvmem-cells = <&precal_art_5000>;
280 qcom,ath10k-calibration-variant = "GL-B1300";