ipq40xx: dynamically build board-2.bin for Mikrotik
[openwrt/staging/chunkeey.git] / target / linux / ipq40xx / files / arch / arm / boot / dts / qcom-ipq4029-aruba-glenmorangie.dtsi
1 // SPDX-License-Identifier: GPL-2.0-only OR MIT
2
3 #include "qcom-ipq4019.dtsi"
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/soc/qcom,tcsr.h>
7
8 / {
9 memory {
10 device_type = "memory";
11 reg = <0x80000000 0x10000000>;
12 };
13
14 soc {
15 rng@22000 {
16 status = "okay";
17 };
18
19 mdio@90000 {
20 status = "okay";
21 pinctrl-0 = <&mdio_pins>;
22 pinctrl-names = "default";
23
24 /delete-node/ ethernet-phy@0;
25 /delete-node/ ethernet-phy@1;
26 /delete-node/ ethernet-phy@2;
27 /delete-node/ ethernet-phy@3;
28 /delete-node/ ethernet-phy@4;
29 /delete-node/ psgmii-phy@5;
30
31 ethernet-phy@5 {
32 reg = <0x5>;
33 };
34 };
35
36 counter@4a1000 {
37 compatible = "qcom,qca-gcnt";
38 reg = <0x4a1000 0x4>;
39 };
40
41 ess_tcsr@1953000 {
42 compatible = "qcom,tcsr";
43 reg = <0x1953000 0x1000>;
44 qcom,ess-interface-select = <TCSR_ESS_PSGMII_RGMII5>;
45 };
46
47 tcsr@1949000 {
48 compatible = "qcom,tcsr";
49 reg = <0x1949000 0x100>;
50 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
51 };
52
53 tcsr@1957000 {
54 compatible = "qcom,tcsr";
55 reg = <0x1957000 0x100>;
56 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
57 };
58
59 crypto@8e3a000 {
60 status = "okay";
61 };
62
63 watchdog@b017000 {
64 status = "okay";
65 };
66
67 ess-switch@c000000 {
68 switch_mac_mode = <0x3>; /* mac mode for RGMII RMII */
69 switch_lan_bmp = <0x0>; /* lan port bitmap */
70 switch_wan_bmp = <0x10>; /* wan port bitmap */
71 };
72
73 edma@c080000 {
74 qcom,single-phy;
75 qcom,num_gmac = <1>;
76 phy-mode = "rgmii-id";
77 status = "okay";
78 };
79
80 i2c_0: i2c@78b7000 {
81 pinctrl-0 = <&i2c_0_pins>;
82 pinctrl-names = "default";
83 status = "okay";
84
85 tpm@29 {
86 /* No Driver */
87 compatible = "atmel,at97sc3203";
88 reg = <0x29>;
89 read-only;
90 };
91 };
92 };
93
94 keys {
95 compatible = "gpio-keys";
96
97 reset {
98 label = "Reset button";
99 gpios = <&tlmm 50 GPIO_ACTIVE_LOW>;
100 linux,code = <KEY_RESTART>;
101 };
102 };
103 };
104
105 &blsp_dma {
106 status = "okay";
107 };
108
109 &blsp1_uart1 {
110 /* Texas Instruments CC2540T BLE radio */
111 pinctrl-0 = <&serial_0_pins>;
112 pinctrl-names = "default";
113 status = "okay";
114 };
115
116 &blsp1_uart2 {
117 pinctrl-0 = <&serial_1_pins>;
118 pinctrl-names = "default";
119 status = "okay";
120 };
121
122 &cryptobam {
123 status = "okay";
124 };
125
126 &gmac0 {
127 qcom,phy_mdio_addr = <5>;
128 qcom,poll_required = <1>;
129 vlan_tag = <0 0x20>;
130 };
131
132 &qpic_bam {
133 status = "okay";
134 };
135
136 &tlmm {
137 mdio_pins: mdio_pinmux {
138 mux_1 {
139 pins = "gpio6";
140 function = "mdio";
141 bias-pull-up;
142 };
143 mux_2 {
144 pins = "gpio7";
145 function = "mdc";
146 bias-pull-up;
147 };
148 };
149
150 nand_pins: nand_pins {
151 pullups {
152 pins = "gpio53", "gpio58", "gpio59";
153 function = "qpic";
154 bias-pull-up;
155 };
156
157 pulldowns {
158 pins = "gpio54", "gpio55", "gpio56",
159 "gpio57", "gpio60", "gpio61",
160 "gpio62", "gpio63", "gpio64",
161 "gpio65", "gpio66", "gpio67",
162 "gpio68", "gpio69";
163 function = "qpic";
164 bias-pull-down;
165 };
166 };
167
168 spi_0_pins: spi_0_pinmux {
169 pin {
170 function = "blsp_spi0";
171 pins = "gpio13", "gpio14", "gpio15";
172 drive-strength = <12>;
173 bias-disable;
174 };
175 pin_cs {
176 function = "gpio";
177 pins = "gpio12";
178 drive-strength = <2>;
179 bias-disable;
180 output-high;
181 };
182 };
183
184 i2c_0_pins: i2c_0_pinmux {
185 mux {
186 pins = "gpio10", "gpio11";
187 function = "blsp_i2c0";
188 drive-strength = <4>;
189 bias-disable;
190 };
191 };
192
193 serial_0_pins: serial_0_pinmux {
194 mux {
195 pins = "gpio16", "gpio17";
196 function = "blsp_uart0";
197 bias-disable;
198 };
199 };
200
201 serial_1_pins: serial_1_pinmux {
202 mux {
203 pins = "gpio8", "gpio9";
204 function = "blsp_uart1";
205 bias-disable;
206 };
207 };
208 };
209
210 &nand {
211 pinctrl-0 = <&nand_pins>;
212 pinctrl-names = "default";
213 status = "okay";
214
215 nand@0 {
216 partitions {
217 compatible = "fixed-partitions";
218 #address-cells = <1>;
219 #size-cells = <1>;
220
221 partition@0 {
222 /* 'aos0' in Aruba firmware */
223 label = "aos0";
224 reg = <0x0 0x2000000>;
225 read-only;
226 };
227
228 partition@2000000 {
229 /* 'aos1' in Aruba firmware */
230 label = "ubi";
231 reg = <0x2000000 0x2000000>;
232 };
233
234 partition@4000000 {
235 label = "aruba-ubifs";
236 reg = <0x4000000 0x4000000>;
237 read-only;
238 };
239 };
240 };
241 };
242
243 &wifi0 {
244 status = "okay";
245 nvmem-cell-names = "pre-calibration", "mac-address";
246 nvmem-cells = <&precal_art_1000>, <&macaddr_mfginfo_1d>;
247 qcom,ath10k-calibration-variant = "Aruba-AP-303";
248 };
249
250 &wifi1 {
251 status = "okay";
252 nvmem-cell-names = "pre-calibration", "mac-address";
253 nvmem-cells = <&precal_art_5000>, <&macaddr_mfginfo_1d>;
254 mac-address-increment = <1>;
255 qcom,ath10k-calibration-variant = "Aruba-AP-303";
256 };