7c2d6c9d13076d398457f8fe189114c564052d0b
[openwrt/staging/zorun.git] / target / linux / ipq806x / files / arch / arm / boot / dts / qcom-ipq8064-unifi-ac-hd.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qcom-ipq8064-v2.0.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 model = "Ubiquiti UniFi AC HD";
10 compatible = "ubnt,unifi-ac-hd", "qcom,ipq8064";
11
12 aliases {
13 label-mac-device = &gmac2;
14 led-boot = &led_dome_white;
15 led-failsafe = &led_dome_white;
16 led-running = &led_dome_blue;
17 led-upgrade = &led_dome_blue;
18 mdio-gpio0 = &mdio0;
19 };
20
21 leds {
22 compatible = "gpio-leds";
23 pinctrl-0 = <&led_pins>;
24 pinctrl-names = "default";
25
26 led_dome_blue: dome_blue {
27 label = "blue:dome";
28 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
29 };
30
31 led_dome_white: dome_white {
32 label = "white:dome";
33 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
34 };
35 };
36
37 keys {
38 compatible = "gpio-keys";
39 pinctrl-0 = <&button_pins>;
40 pinctrl-names = "default";
41
42 reset {
43 label = "reset";
44 gpios = <&qcom_pinmux 68 GPIO_ACTIVE_LOW>;
45 linux,code = <KEY_RESTART>;
46 debounce-interval = <60>;
47 };
48 };
49 };
50
51 &qcom_pinmux {
52 button_pins: button_pins {
53 mux {
54 pins = "gpio68";
55 function = "gpio";
56 drive-strength = <2>;
57 bias-pull-up;
58 };
59 };
60
61 led_pins: led_pins {
62 mux {
63 pins = "gpio9", "gpio53";
64 function = "gpio";
65 drive-strength = <2>;
66 bias-pull-down;
67 output-low;
68 };
69 };
70
71 spi_pins: spi_pins {
72 mux {
73 pins = "gpio18", "gpio19", "gpio21";
74 function = "gsbi5";
75 drive-strength = <10>;
76 bias-none;
77 };
78
79 cs {
80 pins = "gpio20";
81 drive-strength = <12>;
82 };
83 };
84 };
85
86 &CPU_SPC {
87 status = "disabled";
88 };
89
90 &gsbi5 {
91 status = "okay";
92
93 qcom,mode = <GSBI_PROT_SPI>;
94
95 spi@1a280000 {
96 status = "okay";
97
98 pinctrl-0 = <&spi_pins>;
99 pinctrl-names = "default";
100 cs-gpios = <&qcom_pinmux 20 0>;
101
102 flash@0 {
103 compatible = "mx25u25635f", "jedec,spi-nor";
104 #address-cells = <1>;
105 #size-cells = <1>;
106 spi-max-frequency = <50000000>;
107 reg = <0>;
108 m25p,fast-read;
109
110 partitions {
111 compatible = "fixed-partitions";
112 #address-cells = <1>;
113 #size-cells = <1>;
114
115 partition@0 {
116 label = "SBL1";
117 reg = <0x0 0x20000>;
118 read-only;
119 };
120
121 partition@20000 {
122 label = "MIBIB";
123 reg = <0x20000 0x10000>;
124 read-only;
125 };
126
127 partition@30000 {
128 label = "SBL2";
129 reg = <0x30000 0x20000>;
130 read-only;
131 };
132
133 partition@50000 {
134 label = "SBL3";
135 reg = <0x50000 0x30000>;
136 read-only;
137 };
138
139 partition@80000 {
140 label = "DDRCONFIG";
141 reg = <0x80000 0x10000>;
142 read-only;
143 };
144
145 partition@90000 {
146 label = "SSD";
147 reg = <0x90000 0x10000>;
148 read-only;
149 };
150
151 partition@a0000 {
152 label = "TZ";
153 reg = <0xa0000 0x30000>;
154 read-only;
155 };
156
157 partition@d0000 {
158 label = "RPM";
159 reg = <0xd0000 0x20000>;
160 read-only;
161 };
162
163 partition@f0000 {
164 label = "APPSBL";
165 reg = <0xf0000 0xc0000>;
166 read-only;
167 };
168
169 partition@1b0000 {
170 label = "APPSBLENV";
171 reg = <0x1b0000 0x10000>;
172 read-only;
173 };
174
175 eeprom: partition@1c0000 {
176 label = "EEPROM";
177 reg = <0x1c0000 0x10000>;
178 read-only;
179 };
180
181 partition@1d0000 {
182 label = "bootselect";
183 reg = <0x1d0000 0x10000>;
184 };
185
186 partition@1e0000 {
187 compatible = "denx,fit";
188 label = "firmware";
189 reg = <0x1e0000 0xe70000>;
190 };
191
192 partition@1050000 {
193 label = "kernel1";
194 reg = <0x1050000 0xe70000>;
195 read-only;
196 };
197
198 partition@1ec0000 {
199 label = "debug";
200 reg = <0x1ec0000 0x100000>;
201 read-only;
202 };
203
204 partition@1fc0000 {
205 label = "cfg";
206 reg = <0x1fc0000 0x40000>;
207 read-only;
208 };
209 };
210 };
211 };
212 };
213
214 &adm_dma {
215 status = "okay";
216 };
217
218 &nand_controller {
219 status = "okay";
220
221 pinctrl-0 = <&nand_pins>;
222 pinctrl-names = "default";
223 nand-ecc-strength = <4>;
224 nand-bus-width = <8>;
225 };
226
227 &mdio0 {
228 status = "okay";
229
230 pinctrl-0 = <&mdio0_pins>;
231 pinctrl-names = "default";
232 };
233
234 &gmac2 {
235 status = "okay";
236
237 phy-mode = "sgmii";
238 qcom,id = <2>;
239 qcom,emulation = <0>;
240 mdiobus = <&mdio0>;
241
242 mtd-mac-address = <&eeprom 0x0>;
243
244 fixed-link {
245 speed = <1000>;
246 full-duplex;
247 };
248 };
249
250 &gmac1 {
251 status = "okay";
252
253 phy-mode = "sgmii";
254 qcom,id = <1>;
255 qcom,emulation = <0>;
256 mdiobus = <&mdio0>;
257
258 mtd-mac-address = <&eeprom 0x6>;
259
260 fixed-link {
261 speed = <1000>;
262 full-duplex;
263 };
264 };
265
266 &pcie0 {
267 status = "okay";
268 };
269
270 &pcie1 {
271 status = "okay";
272 };
273
274 &tcsr {
275 status = "okay";
276 };
277
278 &hs_phy_0 {
279 status = "okay";
280 };
281
282 &ss_phy_0 {
283 status = "okay";
284 };
285
286 &usb3_0 {
287 status = "okay";
288 };
289
290 &hs_phy_1 {
291 status = "okay";
292 };
293
294 &ss_phy_1 {
295 status = "okay";
296 };
297
298 &usb3_1 {
299 status = "okay";
300 };