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/leds/common.h>
10 #include <dt-bindings/soc/qcom,tcsr.h>
13 model = "OpenMesh A62";
14 compatible = "openmesh,a62";
23 compatible = "qcom,tcsr";
24 reg = <0x194b000 0x100>;
25 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
30 compatible = "qcom,tcsr";
31 reg = <0x1949000 0x100>;
32 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
36 compatible = "qcom,tcsr";
37 reg = <0x1953000 0x1000>;
38 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
42 compatible = "qcom,tcsr";
43 reg = <0x1957000 0x100>;
44 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
61 compatible = "gpio-keys";
65 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
66 linux,code = <KEY_RESTART >;
71 led-boot = &led_status_green;
72 led-failsafe = &led_status_green;
73 led-running = &led_status_green;
74 led-upgrade = &led_status_green;
75 label-mac-device = &swport4;
79 compatible = "gpio-leds";
82 function = LED_FUNCTION_STATUS;
83 color = <LED_COLOR_ID_RED>;
84 gpios = <&tlmm 43 GPIO_ACTIVE_HIGH>;
87 led_status_green: status_green {
88 function = LED_FUNCTION_STATUS;
89 color = <LED_COLOR_ID_GREEN>;
90 gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>;
94 function = LED_FUNCTION_STATUS;
95 color = <LED_COLOR_ID_BLUE>;
96 gpios = <&tlmm 46 GPIO_ACTIVE_HIGH>;
101 compatible = "linux,wdt-gpio";
102 gpios = <&tlmm 59 GPIO_ACTIVE_LOW>;
104 /* hw_margin_ms is actually 300s but driver limits it to 60s */
105 hw_margin_ms = <60000>;
111 serial_pins: serial_pinmux {
113 pins = "gpio16", "gpio17";
114 function = "blsp_uart0";
119 spi_0_pins: spi_0_pinmux {
121 function = "blsp_spi0";
122 pins = "gpio13", "gpio14", "gpio15";
123 drive-strength = <12>;
129 drive-strength = <2>;
137 gpios = <58 GPIO_ACTIVE_HIGH>;
139 line-name = "enable USB2 power";
148 pinctrl-0 = <&spi_0_pins>;
149 pinctrl-names = "default";
151 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
154 #address-cells = <1>;
156 compatible = "jedec,spi-nor";
158 spi-max-frequency = <24000000>;
160 /* partitions are passed via bootloader */
166 compatible = "fixed-layout";
167 #address-cells = <1>;
170 macaddr_gmac0: macaddr@0 {
174 macaddr_gmac1: macaddr@6 {
178 precal_art_1000: precal@1000 {
179 reg = <0x1000 0x2f20>;
182 precal_art_5000: precal@5000 {
183 reg = <0x5000 0x2f20>;
186 precal_art_9000: precal@9000 {
187 reg = <0x9000 0x2f20>;
196 pinctrl-0 = <&serial_pins>;
197 pinctrl-names = "default";
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>;
227 nvmem-cell-names = "pre-calibration";
228 nvmem-cells = <&precal_art_9000>;
249 nvmem-cell-names = "mac-address";
250 nvmem-cells = <&macaddr_gmac0>;
257 nvmem-cell-names = "mac-address";
258 nvmem-cells = <&macaddr_gmac1>;
263 qcom,ath10k-calibration-variant = "OM-A62";
265 nvmem-cell-names = "pre-calibration";
266 nvmem-cells = <&precal_art_1000>;
271 qcom,ath10k-calibration-variant = "OM-A62";
272 ieee80211-freq-limit = <5470000 5875000>;
274 nvmem-cell-names = "pre-calibration";
275 nvmem-cells = <&precal_art_5000>;