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";
30 compatible = "qcom,tcsr";
31 reg = <0x194b000 0x100>;
32 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
37 compatible = "qcom,tcsr";
38 reg = <0x1949000 0x100>;
39 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
43 compatible = "qcom,tcsr";
44 reg = <0x1953000 0x1000>;
45 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
49 compatible = "qcom,tcsr";
50 reg = <0x1957000 0x100>;
51 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
76 compatible = "gpio-keys";
80 gpios = <&tlmm 59 GPIO_ACTIVE_LOW>;
81 linux,code = <KEY_RESTART>;
86 led-boot = &led_status_green;
87 led-failsafe = &led_status_green;
88 led-running = &led_status_green;
89 led-upgrade = &led_status_green;
93 compatible = "gpio-leds";
97 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
100 led_status_green: status_green {
101 label = "green:status";
102 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
106 label = "blue:status";
107 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
112 compatible = "linux,wdt-gpio";
113 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
115 /* hw_margin_ms is actually 300s but driver limits it to 60s */
116 hw_margin_ms = <60000>;
122 serial_pins: serial_pinmux {
124 pins = "gpio60", "gpio61";
125 function = "blsp_uart0";
130 spi_0_pins: spi_0_pinmux {
132 function = "blsp_spi0";
133 pins = "gpio55", "gpio56", "gpio57";
134 drive-strength = <12>;
140 drive-strength = <2>;
152 pinctrl-0 = <&spi_0_pins>;
153 pinctrl-names = "default";
155 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
158 #address-cells = <1>;
160 compatible = "jedec,spi-nor";
162 spi-max-frequency = <24000000>;
163 /* partitions are passed via bootloader */
168 pinctrl-0 = <&serial_pins>;
169 pinctrl-names = "default";
178 qcom,phy_mdio_addr = <4>;
179 qcom,poll_required = <1>;
180 qcom,forced_speed = <1000>;
181 qcom,forced_duplex = <1>;
186 qcom,phy_mdio_addr = <3>;
187 qcom,poll_required = <1>;
188 qcom,forced_speed = <1000>;
189 qcom,forced_duplex = <1>;
199 qcom,ath10k-calibration-variant = "OM-A42";
204 qcom,ath10k-calibration-variant = "OM-A42";