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>;
52 compatible = "qcom,tcsr";
53 reg = <0x1949000 0x100>;
54 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
59 compatible = "qcom,tcsr";
60 reg = <0x194b000 0x100>;
61 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
66 compatible = "qcom,tcsr";
67 reg = <0x1953000 0x1000>;
68 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
72 compatible = "qcom,tcsr";
73 reg = <0x1957000 0x100>;
74 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
95 switch_lan_bmp = <0x18>;
96 switch_wan_bmp = <0x20>;
105 compatible = "gpio-keys";
109 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
110 linux,code = <KEY_WPS_BUTTON>;
115 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
116 linux,code = <KEY_RESTART>;
121 compatible = "gpio-leds";
124 label = "green:power";
125 gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
126 default-state = "on";
130 label = "green:mesh";
131 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
135 label = "green:wlan";
136 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
150 pinctrl-0 = <&spi_0_pins>;
151 pinctrl-names = "default";
153 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
156 compatible = "jedec,spi-nor";
158 spi-max-frequency = <24000000>;
161 compatible = "fixed-partitions";
162 #address-cells = <1>;
173 reg = <0x40000 0x20000>;
179 reg = <0x60000 0x60000>;
185 reg = <0xc0000 0x10000>;
191 reg = <0xd0000 0x10000>;
197 reg = <0xe0000 0x10000>;
203 reg = <0xf0000 0x80000>;
209 reg = <0x170000 0x10000>;
211 compatible = "nvmem-cells";
212 #address-cells = <1>;
215 precal_art_1000: precal@1000 {
216 reg = <0x1000 0x2f20>;
219 precal_art_5000: precal@5000 {
220 reg = <0x5000 0x2f20>;
225 compatible = "denx,fit";
227 reg = <0x180000 0x1e80000>;
234 pinctrl-0 = <&serial_pins>;
235 pinctrl-names = "default";
240 serial_pins: serial_pinmux {
242 pins = "gpio60", "gpio61";
243 function = "blsp_uart0";
248 spi_0_pins: spi_0_pinmux {
250 function = "blsp_spi0";
251 pins = "gpio55", "gpio56", "gpio57";
258 pins = "gpio55", "gpio56", "gpio57";
259 drive-strength = <12>;
264 drive-strength = <2>;
285 nvmem-cell-names = "pre-calibration";
286 nvmem-cells = <&precal_art_1000>;
287 qcom,ath10k-calibration-variant = "GL-B1300";
292 nvmem-cell-names = "pre-calibration";
293 nvmem-cells = <&precal_art_5000>;
294 qcom,ath10k-calibration-variant = "GL-B1300";