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>;
93 compatible = "gpio-keys";
97 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
98 linux,code = <KEY_WPS_BUTTON>;
103 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
104 linux,code = <KEY_RESTART>;
109 compatible = "gpio-leds";
112 function = LED_FUNCTION_POWER;
113 color = <LED_COLOR_ID_GREEN>;
114 gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
115 default-state = "on";
119 label = "green:mesh";
120 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
124 function = LED_FUNCTION_WLAN;
125 color = <LED_COLOR_ID_GREEN>;
126 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
140 pinctrl-0 = <&spi_0_pins>;
141 pinctrl-names = "default";
143 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
146 compatible = "jedec,spi-nor";
148 spi-max-frequency = <24000000>;
151 compatible = "fixed-partitions";
152 #address-cells = <1>;
163 reg = <0x40000 0x20000>;
169 reg = <0x60000 0x60000>;
175 reg = <0xc0000 0x10000>;
181 reg = <0xd0000 0x10000>;
187 reg = <0xe0000 0x10000>;
193 reg = <0xf0000 0x80000>;
199 reg = <0x170000 0x10000>;
203 compatible = "fixed-layout";
204 #address-cells = <1>;
207 macaddr_gmac0: macaddr@0 {
208 compatible = "mac-base";
210 #nvmem-cell-cells = <1>;
213 macaddr_gmac1: macaddr@6 {
217 precal_art_1000: precal@1000 {
218 reg = <0x1000 0x2f20>;
221 precal_art_5000: precal@5000 {
222 reg = <0x5000 0x2f20>;
228 compatible = "denx,fit";
230 reg = <0x180000 0x1e80000>;
237 pinctrl-0 = <&serial_pins>;
238 pinctrl-names = "default";
243 serial_pins: serial_pinmux {
245 pins = "gpio60", "gpio61";
246 function = "blsp_uart0";
251 spi_0_pins: spi_0_pinmux {
253 function = "blsp_spi0";
254 pins = "gpio55", "gpio56", "gpio57";
261 pins = "gpio55", "gpio56", "gpio57";
262 drive-strength = <12>;
267 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";