ipq40xx: add support for Plasma Cloud PA1200
[openwrt/staging/chunkeey.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 ess-psgmii@98000 {
25 status = "okay";
26 };
27
28 tcsr@194b000 {
29 /* select hostmode */
30 compatible = "qcom,tcsr";
31 reg = <0x194b000 0x100>;
32 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
33 status = "okay";
34 };
35
36 tcsr@1949000 {
37 compatible = "qcom,tcsr";
38 reg = <0x1949000 0x100>;
39 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
40 };
41
42 ess_tcsr@1953000 {
43 compatible = "qcom,tcsr";
44 reg = <0x1953000 0x1000>;
45 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
46 };
47
48 tcsr@1957000 {
49 compatible = "qcom,tcsr";
50 reg = <0x1957000 0x100>;
51 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
52 };
53
54 usb2: usb2@60f8800 {
55 status = "okay";
56 };
57
58 crypto@8e3a000 {
59 status = "okay";
60 };
61
62 watchdog@b017000 {
63 status = "okay";
64 };
65
66 ess-switch@c000000 {
67 status = "okay";
68 };
69
70 edma@c080000 {
71 status = "okay";
72 };
73 };
74
75 keys {
76 compatible = "gpio-keys";
77
78 reset {
79 label = "reset";
80 gpios = <&tlmm 59 GPIO_ACTIVE_LOW>;
81 linux,code = <KEY_RESTART>;
82 };
83 };
84
85 aliases {
86 led-boot = &led_status_green;
87 led-failsafe = &led_status_green;
88 led-running = &led_status_green;
89 led-upgrade = &led_status_green;
90 };
91
92 leds {
93 compatible = "gpio-leds";
94
95 status_red {
96 label = "red:status";
97 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
98 };
99
100 led_status_green: status_green {
101 label = "green:status";
102 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
103 };
104
105 status_blue {
106 label = "blue:status";
107 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
108 };
109 };
110
111 watchdog {
112 compatible = "linux,wdt-gpio";
113 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
114 hw_algo = "toggle";
115 /* hw_margin_ms is actually 300s but driver limits it to 60s */
116 hw_margin_ms = <60000>;
117 always-running;
118 };
119 };
120
121 &tlmm {
122 serial_pins: serial_pinmux {
123 mux {
124 pins = "gpio60", "gpio61";
125 function = "blsp_uart0";
126 bias-disable;
127 };
128 };
129
130 spi_0_pins: spi_0_pinmux {
131 pin {
132 function = "blsp_spi0";
133 pins = "gpio55", "gpio56", "gpio57";
134 drive-strength = <12>;
135 bias-disable;
136 };
137 pin_cs {
138 function = "gpio";
139 pins = "gpio54";
140 drive-strength = <2>;
141 bias-disable;
142 output-high;
143 };
144 };
145 };
146
147 &blsp_dma {
148 status = "okay";
149 };
150
151 &blsp1_spi1 {
152 pinctrl-0 = <&spi_0_pins>;
153 pinctrl-names = "default";
154 status = "okay";
155 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
156
157 flash@0 {
158 #address-cells = <1>;
159 #size-cells = <1>;
160 compatible = "jedec,spi-nor";
161 reg = <0>;
162 spi-max-frequency = <24000000>;
163 /* partitions are passed via bootloader */
164 };
165 };
166
167 &blsp1_uart1 {
168 pinctrl-0 = <&serial_pins>;
169 pinctrl-names = "default";
170 status = "okay";
171 };
172
173 &cryptobam {
174 status = "okay";
175 };
176
177 &gmac0 {
178 qcom,phy_mdio_addr = <4>;
179 qcom,poll_required = <1>;
180 qcom,forced_speed = <1000>;
181 qcom,forced_duplex = <1>;
182 vlan_tag = <2 0x20>;
183 };
184
185 &gmac1 {
186 qcom,phy_mdio_addr = <3>;
187 qcom,poll_required = <1>;
188 qcom,forced_speed = <1000>;
189 qcom,forced_duplex = <1>;
190 vlan_tag = <1 0x10>;
191 };
192
193 &usb2_hs_phy {
194 status = "okay";
195 };
196
197 &wifi0 {
198 status = "okay";
199 qcom,ath10k-calibration-variant = "OM-A42";
200 };
201
202 &wifi1 {
203 status = "okay";
204 qcom,ath10k-calibration-variant = "OM-A42";
205 };