ipq806x: add support for Cisco Meraki MR42/MR52
[openwrt/openwrt.git] / target / linux / ipq806x / files / arch / arm / boot / dts / qcom-ipq8068-cryptid-common.dtsi
1 // SPDX-License-Identifier: GPL-2.0 OR MIT
2
3 #include "qcom-ipq8064-v2.0.dtsi"
4
5 / {
6 memory {
7 device_type = "memory";
8 linux,usable-memory = <0x41500000 0x1ea00000>;
9 reg = <0x40000000 0x20000000>;
10 };
11
12 cpus {
13 idle-states {
14 CPU_SPC: spc {
15 status = "disabled";
16 };
17 };
18 };
19
20 chosen {
21 bootargs-append = " console=ttyMSM0,115200n8 ubi.mtd=ubi ubi.mtd=art";
22 };
23 };
24
25 &qcom_pinmux {
26 mdio0_pins_active: mdio0_pins_active {
27 mux {
28 pins = "gpio0", "gpio1";
29 function = "mdio";
30 drive-strength = <2>;
31 bias-pull-down;
32 output-low;
33 };
34
35 clk {
36 pins = "gpio1";
37 input-disable;
38 };
39 };
40
41 phy_active: phy_active {
42 phy {
43 pins = "gpio6", "gpio7";
44 function = "gpio";
45 drive-strength = <2>;
46 bias-pull-down;
47 output-high;
48 };
49 };
50
51 uart1_pins: uart1_pins {
52 mux {
53 pins = "gpio51", "gpio52";
54 function = "gsbi1";
55 drive-strength = <4>;
56 bias-disable;
57 };
58 };
59 };
60
61 &gsbi1 {
62 status = "okay";
63 qcom,mode = <GSBI_PROT_UART_W_FC>;
64
65 serial@12450000 {
66 status = "okay";
67
68 pinctrl-0 = <&uart1_pins>;
69 pinctrl-names = "default";
70 };
71 };
72
73 &pcie0 {
74 status = "okay";
75
76 /delete-property/ pinctrl-0;
77 /delete-property/ pinctrl-names;
78 /delete-property/ perst-gpios;
79
80 bridge@0,0 {
81 reg = <0x0 0 0 0 0>;
82 #address-cells = <3>;
83 #size-cells = <2>;
84 ranges;
85
86 wifi0: wifi@1,0 {
87 compatible = "qcom,ath10k";
88 status = "okay";
89 reg = <0x10000 0 0 0 0>;
90 };
91 };
92 };
93
94 &pcie1 {
95 status = "okay";
96
97 /delete-property/ pinctrl-0;
98 /delete-property/ pinctrl-names;
99 /delete-property/ perst-gpios;
100
101 bridge@0,0 {
102 reg = <0x0 0 0 0 0>;
103 #address-cells = <3>;
104 #size-cells = <2>;
105 ranges;
106
107 wifi1: wifi@1,0 {
108 compatible = "qcom,ath10k";
109 status = "okay";
110 reg = <0x10000 0 0 0 0>;
111 };
112 };
113 };
114
115 &pcie2 {
116 status = "okay";
117
118 /delete-property/ pinctrl-0;
119 /delete-property/ pinctrl-names;
120 /delete-property/ perst-gpios;
121
122 bridge@0,0 {
123 reg = <0x0 0 0 0 0>;
124 #address-cells = <3>;
125 #size-cells = <2>;
126 ranges;
127
128 wifi2: wifi@1,0 {
129 compatible = "qcom,ath10k";
130 status = "okay";
131 reg = <0x10000 0 0 0 0>;
132 };
133 };
134 };
135
136 &adm_dma {
137 status = "okay";
138 };
139
140 &nand_controller {
141 status = "okay";
142
143 pinctrl-0 = <&nand_pins>;
144 pinctrl-names = "default";
145
146 nand@0 {
147 compatible = "qcom,nandcs";
148
149 reg = <0>;
150
151 nand-ecc-strength = <4>;
152 nand-bus-width = <8>;
153 nand-ecc-step-size = <512>;
154
155 nand-is-boot-medium;
156 qcom,boot_pages_size = <0x2140000>;
157
158 partitions {
159 compatible = "fixed-partitions";
160 #address-cells = <1>;
161 #size-cells = <1>;
162
163 partition@0 {
164 label = "sbl1";
165 reg = <0x0 0x40000>;
166 read-only;
167 };
168
169 partition@40000 {
170 label = "mibib";
171 reg = <0x40000 0x140000>;
172 read-only;
173 };
174
175 partition@180000 {
176 label = "sbl2";
177 reg = <0x180000 0x140000>;
178 read-only;
179 };
180
181 partition@2c0000 {
182 label = "sbl3";
183 reg = <0x2c0000 0x280000>;
184 read-only;
185 };
186
187 partition@540000 {
188 label = "ddrconfig";
189 reg = <0x540000 0x120000>;
190 read-only;
191 };
192
193 partition@660000 {
194 label = "ssd";
195 reg = <0x660000 0x120000>;
196 read-only;
197 };
198
199 partition@780000 {
200 label = "tz";
201 reg = <0x780000 0x280000>;
202 read-only;
203 };
204
205 partition@a00000 {
206 label = "rpm";
207 reg = <0xa00000 0x280000>;
208 read-only;
209 };
210
211 partition@1fc0000 {
212 label = "u-boot";
213 reg = <0x1fc0000 0x180000>;
214 read-only;
215 };
216
217 partition@21c0000 {
218 label = "bootkernel1";
219 reg = <0x21c0000 0xa80000>;
220 };
221
222 partition@2c40000 {
223 label = "bootkernel2";
224 reg = <0x2c40000 0xa80000>;
225 };
226
227 partition@36c0000 {
228 label = "ubi";
229 reg = <0x36c0000 0x46c0000>;
230 };
231
232 partition@7d80000 {
233 label = "art";
234 reg = <0x7d80000 0x200000>;
235 read-only;
236 };
237 };
238 };
239 };