ipq40xx: add support for Plasma Cloud PA1200
[openwrt/staging/blogic.git] / target / linux / ipq40xx / files / arch / arm / boot / dts / qcom-ipq4018-pa1200.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /* Copyright (c) 2017-2020, Sven Eckelmann <sven@narfation.org>
3 * Copyright (c) 2018, Marek Lindner <marek.lindner@kaiwoo.ai>
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 = "Plasma Cloud PA1200";
13 compatible = "plasmacloud,pa1200";
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_purple;
87 led-failsafe = &led_status_yellow;
88 led-running = &led_status_cyan;
89 led-upgrade = &led_status_yellow;
90 };
91
92 leds {
93 compatible = "gpio-leds";
94
95 led_status_cyan: status_cyan {
96 label = "cyan:status";
97 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
98 };
99
100 led_status_purple: status_purple {
101 label = "purple:status";
102 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
103 };
104
105 led_status_yellow: status_yellow {
106 label = "yellow:status";
107 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
108 };
109 };
110
111 };
112
113 &tlmm {
114 serial_pins: serial_pinmux {
115 mux {
116 pins = "gpio60", "gpio61";
117 function = "blsp_uart0";
118 bias-disable;
119 };
120 };
121
122 spi_0_pins: spi_0_pinmux {
123 pin {
124 function = "blsp_spi0";
125 pins = "gpio55", "gpio56", "gpio57";
126 drive-strength = <12>;
127 bias-disable;
128 };
129 pin_cs {
130 function = "gpio";
131 pins = "gpio54";
132 drive-strength = <2>;
133 bias-disable;
134 output-high;
135 };
136 };
137 };
138
139 &blsp_dma {
140 status = "okay";
141 };
142
143 &blsp1_spi1 {
144 pinctrl-0 = <&spi_0_pins>;
145 pinctrl-names = "default";
146 status = "okay";
147 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
148
149 flash@0 {
150 #address-cells = <1>;
151 #size-cells = <1>;
152 compatible = "jedec,spi-nor";
153 reg = <0>;
154 spi-max-frequency = <24000000>;
155 /* partitions are passed via bootloader */
156 };
157 };
158
159 &blsp1_uart1 {
160 pinctrl-0 = <&serial_pins>;
161 pinctrl-names = "default";
162 status = "okay";
163 };
164
165 &cryptobam {
166 status = "okay";
167 };
168
169 &gmac0 {
170 qcom,phy_mdio_addr = <4>;
171 qcom,poll_required = <1>;
172 qcom,forced_speed = <1000>;
173 qcom,forced_duplex = <1>;
174 vlan_tag = <2 0x20>;
175 };
176
177 &gmac1 {
178 qcom,phy_mdio_addr = <3>;
179 qcom,poll_required = <1>;
180 qcom,forced_speed = <1000>;
181 qcom,forced_duplex = <1>;
182 vlan_tag = <1 0x10>;
183 };
184
185 &usb2_hs_phy {
186 status = "okay";
187 };
188
189 &wifi0 {
190 status = "okay";
191 qcom,ath10k-calibration-variant = "PlasmaCloud-PA1200";
192 };
193
194 &wifi1 {
195 status = "okay";
196 qcom,ath10k-calibration-variant = "PlasmaCloud-PA1200";
197 };