1 /* Copyright (c) 2015, The Linux Foundation. All rights reserved.
2 * Copyright (c) 2017-2018, Sven Eckelmann <sven.eckelmann@openmesh.com>
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 #include "qcom-ipq4019.dtsi"
19 #include <dt-bindings/gpio/gpio.h>
20 #include <dt-bindings/input/input.h>
21 #include <dt-bindings/soc/qcom,tcsr.h>
24 model = "OpenMesh A62";
25 compatible = "openmesh,a62", "qcom,ipq4019";
38 compatible = "qcom,tcsr";
39 reg = <0x194b000 0x100>;
40 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
45 compatible = "qcom,tcsr";
46 reg = <0x1949000 0x100>;
47 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
51 compatible = "qcom,tcsr";
52 reg = <0x1953000 0x1000>;
53 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
57 compatible = "qcom,tcsr";
58 reg = <0x1957000 0x100>;
59 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
75 switch_lan_bmp = <0x10>;
76 switch_wan_bmp = <0x20>;
87 compatible = "gpio-keys";
91 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
92 linux,code = <KEY_RESTART >;
98 led-failsafe = &power;
100 led-upgrade = &power;
104 compatible = "gpio-leds";
107 label = "a62:red:status";
108 gpios = <&tlmm 43 GPIO_ACTIVE_HIGH>;
109 linux,default-trigger = "default-off";
113 label = "a62:green:status";
114 gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>;
118 label = "a62:blue:status";
119 gpios = <&tlmm 46 GPIO_ACTIVE_HIGH>;
120 linux,default-trigger = "default-off";
125 compatible = "linux,wdt-gpio";
126 gpios = <&tlmm 59 GPIO_ACTIVE_LOW>;
128 /* hw_margin_ms is actually 300s but driver limits it to 60s */
129 hw_margin_ms = <60000>;
135 serial_pins: serial_pinmux {
137 pins = "gpio16", "gpio17";
138 function = "blsp_uart0";
143 spi_0_pins: spi_0_pinmux {
145 function = "blsp_spi0";
146 pins = "gpio13", "gpio14", "gpio15";
147 drive-strength = <12>;
153 drive-strength = <2>;
161 gpios = <58 GPIO_ACTIVE_HIGH>;
163 line-name = "enable USB2 power";
172 pinctrl-0 = <&spi_0_pins>;
173 pinctrl-names = "default";
175 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
178 #address-cells = <1>;
180 compatible = "jedec,spi-nor";
182 spi-max-frequency = <24000000>;
183 /* partitions are passed via bootloader */
188 pinctrl-0 = <&serial_pins>;
189 pinctrl-names = "default";
198 qcom,phy_mdio_addr = <3>;
199 qcom,poll_required = <1>;
200 qcom,forced_speed = <1000>;
201 qcom,forced_duplex = <1>;
211 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
212 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
215 reg = <0x00000000 0 0 0 0>;
216 #address-cells = <3>;
221 compatible = "qcom,ath10k";
223 reg = <0x00010000 0 0 0 0>;
224 qcom,ath10k-calibration-variant = "OM-A62";
225 ieee80211-freq-limit = <5170000 5350000>;
232 qcom,ath10k-calibration-variant = "OM-A62";
237 qcom,ath10k-calibration-variant = "OM-A62";
238 ieee80211-freq-limit = <5470000 5875000>;