1 // SPDX-License-Identifier: ISC
2 /* Copyright (c) 2015, The Linux Foundation. All rights reserved.
3 * Copyright (c) 2017, 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 A42";
13 compatible = "openmesh,a42";
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 59 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;
77 compatible = "gpio-leds";
81 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
84 led_status_green: status_green {
85 label = "green:status";
86 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
90 label = "blue:status";
91 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
96 compatible = "linux,wdt-gpio";
97 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
99 /* hw_margin_ms is actually 300s but driver limits it to 60s */
100 hw_margin_ms = <60000>;
106 serial_pins: serial_pinmux {
108 pins = "gpio60", "gpio61";
109 function = "blsp_uart0";
114 spi_0_pins: spi_0_pinmux {
116 function = "blsp_spi0";
117 pins = "gpio55", "gpio56", "gpio57";
118 drive-strength = <12>;
124 drive-strength = <2>;
136 pinctrl-0 = <&spi_0_pins>;
137 pinctrl-names = "default";
139 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
142 #address-cells = <1>;
144 compatible = "jedec,spi-nor";
146 spi-max-frequency = <24000000>;
147 /* partitions are passed via bootloader */
152 pinctrl-0 = <&serial_pins>;
153 pinctrl-names = "default";
189 qcom,ath10k-calibration-variant = "OM-A42";
194 qcom,ath10k-calibration-variant = "OM-A42";