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>;
82 /delete-node/ ethernet-phy@2;
83 /delete-node/ ethernet-phy@3;
84 /delete-node/ ethernet-phy@4;
92 compatible = "qcom,tcsr";
93 reg = <0x1949000 0x100>;
94 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
99 compatible = "qcom,tcsr";
100 reg = <0x194b000 0x100>;
101 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
106 compatible = "qcom,tcsr";
107 reg = <0x1953000 0x1000>;
108 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
112 compatible = "qcom,tcsr";
113 reg = <0x1957000 0x100>;
114 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
122 pinctrl-0 = <&serial_pins>;
123 pinctrl-names = "default";
141 switch_lan_bmp = <0x18>;
142 switch_wan_bmp = <0x20>;
151 compatible = "gpio-keys";
155 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
156 linux,code = <KEY_WPS_BUTTON>;
161 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
162 linux,code = <KEY_RESTART>;
167 compatible = "gpio-leds";
170 label = "gl-b1300:green:power";
171 gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
172 default-state = "on";
176 label = "gl-b1300:green:mesh";
177 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
181 label = "gl-b1300:green:wlan";
182 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
196 pinctrl-0 = <&spi_0_pins>;
197 pinctrl-names = "default";
199 cs-gpios = <&tlmm 54 0>;
202 compatible = "jedec,spi-nor";
203 #address-cells = <1>;
206 spi-max-frequency = <24000000>;
216 reg = <0x40000 0x20000>;
222 reg = <0x60000 0x60000>;
228 reg = <0xc0000 0x10000>;
234 reg = <0xd0000 0x10000>;
240 reg = <0xe0000 0x10000>;
246 reg = <0xf0000 0x80000>;
252 reg = <0x170000 0x10000>;
258 reg = <0x180000 0x1e80000>;
264 serial_pins: serial_pinmux {
266 pins = "gpio60", "gpio61";
267 function = "blsp_uart0";
272 spi_0_pins: spi_0_pinmux {
274 function = "blsp_spi0";
275 pins = "gpio55", "gpio56", "gpio57";
282 pins = "gpio55", "gpio56", "gpio57";
283 drive-strength = <12>;
288 drive-strength = <2>;