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";
42 compatible = "qcom,tcsr";
43 reg = <0x194b000 0x100>;
44 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
49 compatible = "qcom,tcsr";
50 reg = <0x1949000 0x100>;
51 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
55 compatible = "qcom,tcsr";
56 reg = <0x1953000 0x1000>;
57 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
61 compatible = "qcom,tcsr";
62 reg = <0x1957000 0x100>;
63 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
79 switch_lan_bmp = <0x10>;
80 switch_wan_bmp = <0x20>;
91 compatible = "gpio-keys";
95 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
96 linux,code = <KEY_RESTART >;
102 led-failsafe = &power;
103 led-running = &power;
104 led-upgrade = &power;
108 compatible = "gpio-leds";
111 label = "a62:red:status";
112 gpios = <&tlmm 43 GPIO_ACTIVE_HIGH>;
113 linux,default-trigger = "default-off";
117 label = "a62:green:status";
118 gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>;
122 label = "a62:blue:status";
123 gpios = <&tlmm 46 GPIO_ACTIVE_HIGH>;
124 linux,default-trigger = "default-off";
129 compatible = "linux,wdt-gpio";
130 gpios = <&tlmm 59 GPIO_ACTIVE_LOW>;
132 /* hw_margin_ms is actually 300s but driver limits it to 60s */
133 hw_margin_ms = <60000>;
139 serial_pins: serial_pinmux {
141 pins = "gpio16", "gpio17";
142 function = "blsp_uart0";
147 spi_0_pins: spi_0_pinmux {
149 function = "blsp_spi0";
150 pins = "gpio13", "gpio14", "gpio15";
151 drive-strength = <12>;
157 drive-strength = <2>;
165 gpios = <58 GPIO_ACTIVE_HIGH>;
167 line-name = "enable USB2 power";
176 pinctrl-0 = <&spi_0_pins>;
177 pinctrl-names = "default";
179 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
182 #address-cells = <1>;
184 compatible = "jedec,spi-nor";
186 spi-max-frequency = <24000000>;
187 /* partitions are passed via bootloader */
192 pinctrl-0 = <&serial_pins>;
193 pinctrl-names = "default";
202 qcom,phy_mdio_addr = <3>;
203 qcom,poll_required = <1>;
204 qcom,forced_speed = <1000>;
205 qcom,forced_duplex = <1>;
215 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
216 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
219 reg = <0x00000000 0 0 0 0>;
220 #address-cells = <3>;
225 compatible = "qcom,ath10k";
227 reg = <0x00010000 0 0 0 0>;
228 qcom,ath10k-calibration-variant = "OM-A62";
229 ieee80211-freq-limit = <5170000 5350000>;
236 qcom,ath10k-calibration-variant = "OM-A62";
241 qcom,ath10k-calibration-variant = "OM-A62";
242 ieee80211-freq-limit = <5470000 5875000>;