1 /* Copyright (c) 2015, The Linux Foundation. All rights reserved.
2 * Copyright (c) 2017, 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 A42";
26 compatible = "openmesh,a42", "qcom,ipq4019";
29 #address-cells = <0x1>;
34 reg = <0x87000000 0x500000>;
39 reg = <0x87500000 0x600000>;
44 reg = <0x87b00000 0x500000>;
60 compatible = "qcom,tcsr";
61 reg = <0x194b000 0x100>;
62 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
67 compatible = "qcom,tcsr";
68 reg = <0x1949000 0x100>;
69 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
73 compatible = "qcom,tcsr";
74 reg = <0x1953000 0x1000>;
75 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
79 compatible = "qcom,tcsr";
80 reg = <0x1957000 0x100>;
81 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
89 pinctrl-0 = <&serial_pins>;
90 pinctrl-names = "default";
112 compatible = "gpio-keys";
116 gpios = <&tlmm 59 GPIO_ACTIVE_LOW>;
117 linux,code = <KEY_RESTART>;
123 led-failsafe = &power;
124 led-running = &power;
125 led-upgrade = &power;
129 compatible = "gpio-leds";
132 label = "a42:red:status";
133 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
134 linux,default-trigger = "default-off";
138 label = "a42:green:status";
139 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
143 label = "a42:blue:status";
144 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
145 linux,default-trigger = "default-off";
150 compatible = "linux,wdt-gpio";
151 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
153 /* hw_margin_ms is actually 300s but driver limits it to 60s */
154 hw_margin_ms = <60000>;
160 serial_pins: serial_pinmux {
162 pins = "gpio60", "gpio61";
163 function = "blsp_uart0";
168 spi_0_pins: spi_0_pinmux {
170 function = "blsp_spi0";
171 pins = "gpio55", "gpio56", "gpio57";
172 drive-strength = <12>;
178 drive-strength = <2>;
190 pinctrl-0 = <&spi_0_pins>;
191 pinctrl-names = "default";
193 cs-gpios = <&tlmm 54 0>;
196 #address-cells = <1>;
198 compatible = "jedec,spi-nor";
200 spi-max-frequency = <24000000>;
201 /* partitions are passed via bootloader */
210 qcom,phy_mdio_addr = <4>;
211 qcom,poll_required = <1>;
212 qcom,forced_speed = <1000>;
213 qcom,forced_duplex = <1>;
218 qcom,phy_mdio_addr = <3>;
219 qcom,poll_required = <1>;
220 qcom,forced_speed = <1000>;
221 qcom,forced_duplex = <1>;
231 qcom,ath10k-calibration-variant = "OM-A42";
236 qcom,ath10k-calibration-variant = "OM-A42";