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;
31 label-mac-device = &swport4;
35 device_type = "memory";
36 reg = <0x80000000 0x10000000>;
49 compatible = "qcom,tcsr";
50 reg = <0x1949000 0x100>;
51 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
56 compatible = "qcom,tcsr";
57 reg = <0x194b000 0x100>;
58 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
63 compatible = "qcom,tcsr";
64 reg = <0x1953000 0x1000>;
65 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
69 compatible = "qcom,tcsr";
70 reg = <0x1957000 0x100>;
71 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
92 compatible = "gpio-keys";
96 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
97 linux,code = <KEY_WPS_BUTTON>;
102 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
103 linux,code = <KEY_RESTART>;
108 compatible = "gpio-leds";
111 label = "green:power";
112 gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
113 default-state = "on";
117 label = "green:mesh";
118 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
122 label = "green:wlan";
123 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
137 pinctrl-0 = <&spi_0_pins>;
138 pinctrl-names = "default";
140 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
143 compatible = "jedec,spi-nor";
145 spi-max-frequency = <24000000>;
148 compatible = "fixed-partitions";
149 #address-cells = <1>;
160 reg = <0x40000 0x20000>;
166 reg = <0x60000 0x60000>;
172 reg = <0xc0000 0x10000>;
178 reg = <0xd0000 0x10000>;
184 reg = <0xe0000 0x10000>;
190 reg = <0xf0000 0x80000>;
196 reg = <0x170000 0x10000>;
200 compatible = "fixed-layout";
201 #address-cells = <1>;
204 macaddr_gmac0: macaddr@0 {
208 macaddr_gmac1: macaddr@6 {
212 precal_art_1000: precal@1000 {
213 reg = <0x1000 0x2f20>;
216 precal_art_5000: precal@5000 {
217 reg = <0x5000 0x2f20>;
223 compatible = "denx,fit";
225 reg = <0x180000 0x1e80000>;
232 pinctrl-0 = <&serial_pins>;
233 pinctrl-names = "default";
238 serial_pins: serial_pinmux {
240 pins = "gpio60", "gpio61";
241 function = "blsp_uart0";
246 spi_0_pins: spi_0_pinmux {
248 function = "blsp_spi0";
249 pins = "gpio55", "gpio56", "gpio57";
256 pins = "gpio55", "gpio56", "gpio57";
257 drive-strength = <12>;
262 drive-strength = <2>;
293 nvmem-cell-names = "mac-address";
294 nvmem-cells = <&macaddr_gmac0>;
295 mac-address-increment = <2>;
302 nvmem-cell-names = "mac-address";
303 nvmem-cells = <&macaddr_gmac0>;
309 nvmem-cell-names = "mac-address";
310 nvmem-cells = <&macaddr_gmac1>;
315 nvmem-cell-names = "pre-calibration";
316 nvmem-cells = <&precal_art_1000>;
317 qcom,ath10k-calibration-variant = "GL-B1300";
322 nvmem-cell-names = "pre-calibration";
323 nvmem-cells = <&precal_art_5000>;
324 qcom,ath10k-calibration-variant = "GL-B1300";