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 = <0x87000000 0x400000>;
49 reg = <0x87400000 0x100000>;
54 reg = <0x87500000 0x600000>;
58 cpu_context_dump@87b00000 {
59 reg = <0x87b00000 0x080000>;
64 reg = <0x87b80000 0x280000>;
69 reg = <0x87e00000 0x080000>;
74 reg = <0x87e80000 0x180000>;
89 compatible = "qcom,tcsr";
90 reg = <0x1949000 0x100>;
91 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
96 compatible = "qcom,tcsr";
97 reg = <0x194b000 0x100>;
98 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
103 compatible = "qcom,tcsr";
104 reg = <0x1953000 0x1000>;
105 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
109 compatible = "qcom,tcsr";
110 reg = <0x1957000 0x100>;
111 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
119 pinctrl-0 = <&serial_pins>;
120 pinctrl-names = "default";
138 switch_lan_bmp = <0x18>;
139 switch_wan_bmp = <0x20>;
148 compatible = "gpio-keys";
152 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
153 linux,code = <KEY_WPS_BUTTON>;
158 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
159 linux,code = <KEY_RESTART>;
164 compatible = "gpio-leds";
167 label = "gl-b1300:green:power";
168 gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
169 default-state = "on";
173 label = "gl-b1300:green:mesh";
174 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
178 label = "gl-b1300:green:wlan";
179 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
193 pinctrl-0 = <&spi_0_pins>;
194 pinctrl-names = "default";
196 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
199 compatible = "jedec,spi-nor";
200 #address-cells = <1>;
203 spi-max-frequency = <24000000>;
213 reg = <0x40000 0x20000>;
219 reg = <0x60000 0x60000>;
225 reg = <0xc0000 0x10000>;
231 reg = <0xd0000 0x10000>;
237 reg = <0xe0000 0x10000>;
243 reg = <0xf0000 0x80000>;
249 reg = <0x170000 0x10000>;
255 reg = <0x180000 0x1e80000>;
261 serial_pins: serial_pinmux {
263 pins = "gpio60", "gpio61";
264 function = "blsp_uart0";
269 spi_0_pins: spi_0_pinmux {
271 function = "blsp_spi0";
272 pins = "gpio55", "gpio56", "gpio57";
279 pins = "gpio55", "gpio56", "gpio57";
280 drive-strength = <12>;
285 drive-strength = <2>;