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/leds/common.h>
21 #include <dt-bindings/soc/qcom,tcsr.h>
24 model = "GL.iNet GL-B1300";
25 compatible = "glinet,gl-b1300";
29 led-failsafe = &power;
32 label-mac-device = &swport4;
36 device_type = "memory";
37 reg = <0x80000000 0x10000000>;
50 compatible = "qcom,tcsr";
51 reg = <0x1949000 0x100>;
52 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
57 compatible = "qcom,tcsr";
58 reg = <0x194b000 0x100>;
59 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
64 compatible = "qcom,tcsr";
65 reg = <0x1953000 0x1000>;
66 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
70 compatible = "qcom,tcsr";
71 reg = <0x1957000 0x100>;
72 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
85 compatible = "gpio-keys";
89 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
90 linux,code = <KEY_WPS_BUTTON>;
95 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
96 linux,code = <KEY_RESTART>;
101 compatible = "gpio-leds";
104 function = LED_FUNCTION_POWER;
105 color = <LED_COLOR_ID_GREEN>;
106 gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
107 default-state = "on";
111 label = "green:mesh";
112 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
116 function = LED_FUNCTION_WLAN;
117 color = <LED_COLOR_ID_GREEN>;
118 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
132 pinctrl-0 = <&spi_0_pins>;
133 pinctrl-names = "default";
135 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
138 compatible = "jedec,spi-nor";
140 spi-max-frequency = <24000000>;
143 compatible = "fixed-partitions";
144 #address-cells = <1>;
155 reg = <0x40000 0x20000>;
161 reg = <0x60000 0x60000>;
167 reg = <0xc0000 0x10000>;
173 reg = <0xd0000 0x10000>;
179 reg = <0xe0000 0x10000>;
185 reg = <0xf0000 0x80000>;
191 reg = <0x170000 0x10000>;
195 compatible = "fixed-layout";
196 #address-cells = <1>;
199 macaddr_gmac0: macaddr@0 {
200 compatible = "mac-base";
202 #nvmem-cell-cells = <1>;
205 macaddr_gmac1: macaddr@6 {
209 precal_art_1000: precal@1000 {
210 reg = <0x1000 0x2f20>;
213 precal_art_5000: precal@5000 {
214 reg = <0x5000 0x2f20>;
220 compatible = "denx,fit";
222 reg = <0x180000 0x1e80000>;
229 pinctrl-0 = <&serial_pins>;
230 pinctrl-names = "default";
235 serial_pins: serial_pinmux {
237 pins = "gpio60", "gpio61";
238 function = "blsp_uart0";
243 spi_0_pins: spi_0_pinmux {
245 function = "blsp_spi0";
246 pins = "gpio55", "gpio56", "gpio57";
253 pins = "gpio55", "gpio56", "gpio57";
254 drive-strength = <12>;
259 drive-strength = <2>;
298 nvmem-cell-names = "mac-address";
299 nvmem-cells = <&macaddr_gmac0 2>;
306 nvmem-cell-names = "mac-address";
307 nvmem-cells = <&macaddr_gmac0 0>;
313 nvmem-cell-names = "mac-address";
314 nvmem-cells = <&macaddr_gmac1>;
319 nvmem-cell-names = "pre-calibration";
320 nvmem-cells = <&precal_art_1000>;
321 qcom,ath10k-calibration-variant = "GL-B1300";
326 nvmem-cell-names = "pre-calibration";
327 nvmem-cells = <&precal_art_5000>;
328 qcom,ath10k-calibration-variant = "GL-B1300";