1 // SPDX-License-Identifier: ISC
2 /* Copyright (c) 2015, The Linux Foundation. All rights reserved.
3 * Copyright (c) 2017-2018, Sven Eckelmann <sven.eckelmann@openmesh.com>
6 #include "qcom-ipq4019.dtsi"
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/input/input.h>
9 #include <dt-bindings/soc/qcom,tcsr.h>
12 model = "OpenMesh A62";
13 compatible = "openmesh,a62";
22 compatible = "qcom,tcsr";
23 reg = <0x194b000 0x100>;
24 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
29 compatible = "qcom,tcsr";
30 reg = <0x1949000 0x100>;
31 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
35 compatible = "qcom,tcsr";
36 reg = <0x1953000 0x1000>;
37 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
41 compatible = "qcom,tcsr";
42 reg = <0x1957000 0x100>;
43 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
60 compatible = "gpio-keys";
64 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
65 linux,code = <KEY_RESTART >;
70 led-boot = &led_status_green;
71 led-failsafe = &led_status_green;
72 led-running = &led_status_green;
73 led-upgrade = &led_status_green;
74 label-mac-device = &swport4;
78 compatible = "gpio-leds";
82 gpios = <&tlmm 43 GPIO_ACTIVE_HIGH>;
85 led_status_green: status_green {
86 label = "green:status";
87 gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>;
91 label = "blue:status";
92 gpios = <&tlmm 46 GPIO_ACTIVE_HIGH>;
97 compatible = "linux,wdt-gpio";
98 gpios = <&tlmm 59 GPIO_ACTIVE_LOW>;
100 /* hw_margin_ms is actually 300s but driver limits it to 60s */
101 hw_margin_ms = <60000>;
107 serial_pins: serial_pinmux {
109 pins = "gpio16", "gpio17";
110 function = "blsp_uart0";
115 spi_0_pins: spi_0_pinmux {
117 function = "blsp_spi0";
118 pins = "gpio13", "gpio14", "gpio15";
119 drive-strength = <12>;
125 drive-strength = <2>;
133 gpios = <58 GPIO_ACTIVE_HIGH>;
135 line-name = "enable USB2 power";
144 pinctrl-0 = <&spi_0_pins>;
145 pinctrl-names = "default";
147 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
150 #address-cells = <1>;
152 compatible = "jedec,spi-nor";
154 spi-max-frequency = <24000000>;
156 /* partitions are passed via bootloader */
162 compatible = "fixed-layout";
163 #address-cells = <1>;
166 macaddr_gmac0: macaddr@0 {
170 macaddr_gmac1: macaddr@6 {
174 precal_art_1000: precal@1000 {
175 reg = <0x1000 0x2f20>;
178 precal_art_5000: precal@5000 {
179 reg = <0x5000 0x2f20>;
182 precal_art_9000: precal@9000 {
183 reg = <0x9000 0x2f20>;
192 pinctrl-0 = <&serial_pins>;
193 pinctrl-names = "default";
207 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
208 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
211 reg = <0x00000000 0 0 0 0>;
212 #address-cells = <3>;
217 compatible = "qcom,ath10k";
219 reg = <0x00010000 0 0 0 0>;
220 qcom,ath10k-calibration-variant = "OM-A62";
221 ieee80211-freq-limit = <5170000 5350000>;
223 nvmem-cell-names = "pre-calibration";
224 nvmem-cells = <&precal_art_9000>;
245 nvmem-cell-names = "mac-address";
246 nvmem-cells = <&macaddr_gmac0>;
253 nvmem-cell-names = "mac-address";
254 nvmem-cells = <&macaddr_gmac1>;
259 qcom,ath10k-calibration-variant = "OM-A62";
261 nvmem-cell-names = "pre-calibration";
262 nvmem-cells = <&precal_art_1000>;
267 qcom,ath10k-calibration-variant = "OM-A62";
268 ieee80211-freq-limit = <5470000 5875000>;
270 nvmem-cell-names = "pre-calibration";
271 nvmem-cells = <&precal_art_5000>;