2236edf80bf86cc598022e18edc74adb95eb3601
[openwrt/staging/hauke.git] / target / linux / ipq40xx / files / arch / arm / boot / dts / qcom-ipq4018-a42.dts
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>
4 */
5
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>
10
11 / {
12 model = "OpenMesh A42";
13 compatible = "openmesh,a42";
14
15 soc {
16 rng@22000 {
17 status = "okay";
18 };
19
20 mdio@90000 {
21 status = "okay";
22 };
23
24 tcsr@194b000 {
25 /* select hostmode */
26 compatible = "qcom,tcsr";
27 reg = <0x194b000 0x100>;
28 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
29 status = "okay";
30 };
31
32 tcsr@1949000 {
33 compatible = "qcom,tcsr";
34 reg = <0x1949000 0x100>;
35 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
36 };
37
38 ess_tcsr@1953000 {
39 compatible = "qcom,tcsr";
40 reg = <0x1953000 0x1000>;
41 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
42 };
43
44 tcsr@1957000 {
45 compatible = "qcom,tcsr";
46 reg = <0x1957000 0x100>;
47 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
48 };
49
50 usb2: usb2@60f8800 {
51 status = "okay";
52 };
53
54 crypto@8e3a000 {
55 status = "okay";
56 };
57
58 watchdog@b017000 {
59 status = "okay";
60 };
61 };
62
63 keys {
64 compatible = "gpio-keys";
65
66 reset {
67 label = "reset";
68 gpios = <&tlmm 59 GPIO_ACTIVE_LOW>;
69 linux,code = <KEY_RESTART>;
70 };
71 };
72
73 aliases {
74 led-boot = &led_status_green;
75 led-failsafe = &led_status_green;
76 led-running = &led_status_green;
77 led-upgrade = &led_status_green;
78 };
79
80 leds {
81 compatible = "gpio-leds";
82
83 status_red {
84 label = "red:status";
85 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
86 };
87
88 led_status_green: status_green {
89 label = "green:status";
90 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
91 };
92
93 status_blue {
94 label = "blue:status";
95 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
96 };
97 };
98
99 watchdog {
100 compatible = "linux,wdt-gpio";
101 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
102 hw_algo = "toggle";
103 /* hw_margin_ms is actually 300s but driver limits it to 60s */
104 hw_margin_ms = <60000>;
105 always-running;
106 };
107 };
108
109 &tlmm {
110 serial_pins: serial_pinmux {
111 mux {
112 pins = "gpio60", "gpio61";
113 function = "blsp_uart0";
114 bias-disable;
115 };
116 };
117
118 spi_0_pins: spi_0_pinmux {
119 pin {
120 function = "blsp_spi0";
121 pins = "gpio55", "gpio56", "gpio57";
122 drive-strength = <12>;
123 bias-disable;
124 };
125 pin_cs {
126 function = "gpio";
127 pins = "gpio54";
128 drive-strength = <2>;
129 bias-disable;
130 output-high;
131 };
132 };
133 };
134
135 &blsp_dma {
136 status = "okay";
137 };
138
139 &blsp1_spi1 {
140 pinctrl-0 = <&spi_0_pins>;
141 pinctrl-names = "default";
142 status = "okay";
143 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
144
145 flash@0 {
146 #address-cells = <1>;
147 #size-cells = <1>;
148 compatible = "jedec,spi-nor";
149 reg = <0>;
150 spi-max-frequency = <24000000>;
151 /* partitions are passed via bootloader */
152 };
153 };
154
155 &blsp1_uart1 {
156 pinctrl-0 = <&serial_pins>;
157 pinctrl-names = "default";
158 status = "okay";
159 };
160
161 &cryptobam {
162 status = "okay";
163 };
164
165 &usb2_hs_phy {
166 status = "okay";
167 };
168
169 &wifi0 {
170 status = "okay";
171 qcom,ath10k-calibration-variant = "OM-A42";
172 };
173
174 &wifi1 {
175 status = "okay";
176 qcom,ath10k-calibration-variant = "OM-A42";
177 };