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