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 "qcom-ipq4019-bus.dtsi"
20 #include <dt-bindings/gpio/gpio.h>
21 #include <dt-bindings/input/input.h>
22 #include <dt-bindings/soc/qcom,tcsr.h>
25 model = "OpenMesh A62";
26 compatible = "openmesh,a62", "qcom,ipq4019";
39 compatible = "qcom,tcsr";
40 reg = <0x194b000 0x100>;
41 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
46 compatible = "qcom,tcsr";
47 reg = <0x1949000 0x100>;
48 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
52 compatible = "qcom,tcsr";
53 reg = <0x1953000 0x1000>;
54 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
58 compatible = "qcom,tcsr";
59 reg = <0x1957000 0x100>;
60 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
68 pinctrl-0 = <&serial_pins>;
69 pinctrl-names = "default";
82 switch_lan_bmp = <0x10>;
83 switch_wan_bmp = <0x20>;
94 compatible = "gpio-keys";
98 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
99 linux,code = <KEY_RESTART >;
105 led-failsafe = &power;
106 led-running = &power;
107 led-upgrade = &power;
111 compatible = "gpio-leds";
114 label = "a62:red:status";
115 gpios = <&tlmm 43 GPIO_ACTIVE_HIGH>;
116 linux,default-trigger = "default-off";
120 label = "a62:green:status";
121 gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>;
125 label = "a62:blue:status";
126 gpios = <&tlmm 46 GPIO_ACTIVE_HIGH>;
127 linux,default-trigger = "default-off";
132 compatible = "linux,wdt-gpio";
133 gpios = <&tlmm 59 GPIO_ACTIVE_LOW>;
135 /* hw_margin_ms is actually 300s but driver limits it to 60s */
136 hw_margin_ms = <60000>;
142 serial_pins: serial_pinmux {
144 pins = "gpio16", "gpio17";
145 function = "blsp_uart0";
150 spi_0_pins: spi_0_pinmux {
152 function = "blsp_spi0";
153 pins = "gpio13", "gpio14", "gpio15";
154 drive-strength = <12>;
160 drive-strength = <2>;
168 gpios = <58 GPIO_ACTIVE_HIGH>;
170 line-name = "enable USB2 power";
179 pinctrl-0 = <&spi_0_pins>;
180 pinctrl-names = "default";
182 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
185 #address-cells = <1>;
187 compatible = "jedec,spi-nor";
189 spi-max-frequency = <24000000>;
190 /* partitions are passed via bootloader */
199 qcom,phy_mdio_addr = <3>;
200 qcom,poll_required = <1>;
201 qcom,forced_speed = <1000>;
202 qcom,forced_duplex = <1>;
212 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
213 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
217 #interrupt-cells = <1>;
219 #address-cells = <3>;
223 compatible = "qcom,ath10k";
227 qcom,ath10k-calibration-variant = "OM-A62";
234 qcom,ath10k-calibration-variant = "OM-A62";
239 qcom,ath10k-calibration-variant = "OM-A62";