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/leds/common.h>
10 #include <dt-bindings/soc/qcom,tcsr.h>
13 model = "OpenMesh A42";
14 compatible = "openmesh,a42";
19 compatible = "qcom,tcsr";
20 reg = <0x194b000 0x100>;
21 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
26 compatible = "qcom,tcsr";
27 reg = <0x1949000 0x100>;
28 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
32 compatible = "qcom,tcsr";
33 reg = <0x1953000 0x1000>;
34 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
38 compatible = "qcom,tcsr";
39 reg = <0x1957000 0x100>;
40 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
45 compatible = "gpio-keys";
49 gpios = <&tlmm 59 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_RESTART>;
55 led-boot = &led_status_green;
56 led-failsafe = &led_status_green;
57 led-running = &led_status_green;
58 led-upgrade = &led_status_green;
59 label-mac-device = &swport5;
63 compatible = "gpio-leds";
66 function = LED_FUNCTION_STATUS;
67 color = <LED_COLOR_ID_RED>;
68 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
71 led_status_green: status_green {
72 function = LED_FUNCTION_STATUS;
73 color = <LED_COLOR_ID_GREEN>;
74 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
78 function = LED_FUNCTION_STATUS;
79 color = <LED_COLOR_ID_BLUE>;
80 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
85 compatible = "linux,wdt-gpio";
86 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
88 /* hw_margin_ms is actually 300s but driver limits it to 60s */
89 hw_margin_ms = <60000>;
107 serial_pins: serial_pinmux {
109 pins = "gpio60", "gpio61";
110 function = "blsp_uart0";
115 spi_0_pins: spi_0_pinmux {
117 function = "blsp_spi0";
118 pins = "gpio55", "gpio56", "gpio57";
119 drive-strength = <12>;
125 drive-strength = <2>;
137 pinctrl-0 = <&spi_0_pins>;
138 pinctrl-names = "default";
140 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
143 #address-cells = <1>;
145 compatible = "jedec,spi-nor";
147 spi-max-frequency = <24000000>;
149 /* partitions are passed via bootloader */
155 compatible = "fixed-layout";
156 #address-cells = <1>;
159 macaddr_gmac0: macaddr@0 {
163 macaddr_gmac1: macaddr@6 {
167 precal_art_1000: precal@1000 {
168 reg = <0x1000 0x2f20>;
171 precal_art_5000: precal@5000 {
172 reg = <0x5000 0x2f20>;
181 pinctrl-0 = <&serial_pins>;
182 pinctrl-names = "default";
214 nvmem-cell-names = "mac-address";
215 nvmem-cells = <&macaddr_gmac1>;
222 nvmem-cell-names = "mac-address";
223 nvmem-cells = <&macaddr_gmac0>;
228 qcom,ath10k-calibration-variant = "OM-A42";
230 nvmem-cell-names = "pre-calibration";
231 nvmem-cells = <&precal_art_1000>;
236 qcom,ath10k-calibration-variant = "OM-A42";
238 nvmem-cell-names = "pre-calibration";
239 nvmem-cells = <&precal_art_5000>;