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";
27 device_type = "memory";
28 reg = <0x80000000 0x10000000>;
32 #address-cells = <0x1>;
37 reg = <0x87000000 0x400000>;
42 reg = <0x87400000 0x100000>;
47 reg = <0x87500000 0x600000>;
51 cpu_context_dump@87b00000 {
52 reg = <0x87b00000 0x080000>;
57 reg = <0x87b80000 0x280000>;
62 reg = <0x87e00000 0x080000>;
67 reg = <0x87e80000 0x180000>;
75 compatible = "qcom,tcsr";
76 reg = <0x194b000 0x100>;
77 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
82 compatible = "qcom,tcsr";
83 reg = <0x1953000 0x1000>;
84 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
88 compatible = "qcom,tcsr";
89 reg = <0x1949000 0x100>;
90 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
94 compatible = "qcom,tcsr";
95 reg = <0x1957000 0x100>;
96 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
100 serial_pins: serial_pinmux {
102 pins = "gpio60", "gpio61";
103 function = "blsp_uart0";
108 spi_0_pins: spi_0_pinmux {
110 function = "blsp_spi0";
111 pins = "gpio55", "gpio56", "gpio57";
118 pins = "gpio55", "gpio56", "gpio57";
119 drive-strength = <12>;
124 drive-strength = <2>;
131 blsp_dma: dma@7884000 {
136 pinctrl-0 = <&spi_0_pins>;
137 pinctrl-names = "default";
139 cs-gpios = <&tlmm 54 0>;
143 pinctrl-0 = <&serial_pins>;
144 pinctrl-names = "default";
148 cryptobam: dma@8e04000 {
160 usb3_ss_phy: ssphy@9a000 {
164 usb3_hs_phy: hsphy@a6000 {
172 usb2_hs_phy: hsphy@a8000 {
206 compatible = "gpio-keys";
210 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
211 linux,code = <KEY_WPS_BUTTON>;
215 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
216 linux,code = <KEY_RESTART>;
221 compatible = "gpio-leds";
224 label = "gl-b1300:green:power";
225 gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
226 default-state = "on";
229 label = "gl-b1300:green:mesh";
230 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
233 label = "gl-b1300:green:wlan";
234 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
241 compatible = "mx25l25635f", "jedec,spi-nor";
242 #address-cells = <1>;
245 spi-max-frequency = <24000000>;
254 reg = <0x40000 0x20000>;
259 reg = <0x60000 0x60000>;
264 reg = <0xc0000 0x10000>;
269 reg = <0xd0000 0x10000>;
274 reg = <0xe0000 0x10000>;
279 reg = <0xf0000 0x80000>;
284 reg = <0x170000 0x10000>;
289 reg = <0x180000 0x400000>;
293 reg = <0x580000 0x1a80000>;
297 reg = <0x180000 0x1e80000>;
303 qcom,phy_mdio_addr = <4>;
304 qcom,poll_required = <1>;
305 qcom,forced_speed = <1000>;
306 qcom,forced_duplex = <1>;
311 qcom,phy_mdio_addr = <3>;
312 qcom,poll_required = <1>;
313 qcom,forced_speed = <1000>;
314 qcom,forced_duplex = <1>;