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>;
39 #address-cells = <0x1>;
44 reg = <0x87e00000 0x080000>;
49 reg = <0x87e80000 0x180000>;
64 compatible = "qcom,tcsr";
65 reg = <0x1949000 0x100>;
66 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
71 compatible = "qcom,tcsr";
72 reg = <0x194b000 0x100>;
73 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
78 compatible = "qcom,tcsr";
79 reg = <0x1953000 0x1000>;
80 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
84 compatible = "qcom,tcsr";
85 reg = <0x1957000 0x100>;
86 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
94 pinctrl-0 = <&serial_pins>;
95 pinctrl-names = "default";
113 switch_lan_bmp = <0x18>;
114 switch_wan_bmp = <0x20>;
123 compatible = "gpio-keys";
127 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
128 linux,code = <KEY_WPS_BUTTON>;
133 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
134 linux,code = <KEY_RESTART>;
139 compatible = "gpio-leds";
142 label = "gl-b1300:green:power";
143 gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
144 default-state = "on";
148 label = "gl-b1300:green:mesh";
149 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
153 label = "gl-b1300:green:wlan";
154 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
168 pinctrl-0 = <&spi_0_pins>;
169 pinctrl-names = "default";
171 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
174 compatible = "jedec,spi-nor";
175 #address-cells = <1>;
178 spi-max-frequency = <24000000>;
188 reg = <0x40000 0x20000>;
194 reg = <0x60000 0x60000>;
200 reg = <0xc0000 0x10000>;
206 reg = <0xd0000 0x10000>;
212 reg = <0xe0000 0x10000>;
218 reg = <0xf0000 0x80000>;
224 reg = <0x170000 0x10000>;
230 reg = <0x180000 0x1e80000>;
236 serial_pins: serial_pinmux {
238 pins = "gpio60", "gpio61";
239 function = "blsp_uart0";
244 spi_0_pins: spi_0_pinmux {
246 function = "blsp_spi0";
247 pins = "gpio55", "gpio56", "gpio57";
254 pins = "gpio55", "gpio56", "gpio57";
255 drive-strength = <12>;
260 drive-strength = <2>;