Debian Codegraph @

arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-bletchley.dts

raw
1 // SPDX-License-Identifier: GPL-2.0+
2 // Copyright (c) 2021 Facebook Inc.
3 /dts-v1/;
4
5 #include "aspeed-g6.dtsi"
6 #include <dt-bindings/gpio/aspeed-gpio.h>
7 #include <dt-bindings/usb/pd.h>
8 #include <dt-bindings/leds/leds-pca955x.h>
9 #include <dt-bindings/interrupt-controller/irq.h>
10 #include <dt-bindings/i2c/i2c.h>
11
12 / {
13 model = "Facebook Bletchley BMC";
14 compatible = "facebook,bletchley-bmc", "aspeed,ast2600";
15
16 aliases {
17 serial4 = &uart5;
18 };
19
20 chosen {
21 bootargs = "console=ttyS4,57600n8";
22 };
23
24 memory@80000000 {
25 device_type = "memory";
26 reg = <0x80000000 0x80000000>;
27 };
28
29 iio-hwmon {
30 compatible = "iio-hwmon";
31 io-channels = <&adc0 0>, <&adc0 1>, <&adc0 2>, <&adc0 3>,
32 <&adc0 4>, <&adc0 5>, <&adc0 6>, <&adc0 7>,
33 <&adc1 0>, <&adc1 1>, <&adc1 2>, <&adc1 3>,
34 <&adc1 4>, <&adc1 5>, <&adc1 6>, <&adc1 7>;
35 };
36
37 spi1_gpio: spi {
38 compatible = "spi-gpio";
39 #address-cells = <1>;
40 #size-cells = <0>;
41
42 sck-gpios = <&gpio0 ASPEED_GPIO(Z, 3) GPIO_ACTIVE_HIGH>;
43 mosi-gpios = <&gpio0 ASPEED_GPIO(Z, 4) GPIO_ACTIVE_HIGH>;
44 miso-gpios = <&gpio0 ASPEED_GPIO(Z, 5) GPIO_ACTIVE_HIGH>;
45 num-chipselects = <1>;
46 cs-gpios = <&gpio0 ASPEED_GPIO(Z, 0) GPIO_ACTIVE_LOW>;
47
48 tpm@0 {
49 compatible = "infineon,slb9670", "tcg,tpm_tis-spi";
50 spi-max-frequency = <33000000>;
51 reg = <0>;
52 };
53 };
54
55 front_gpio_leds {
56 compatible = "gpio-leds";
57 led-0 {
58 label = "sys_log_id";
59 default-state = "off";
60 gpios = <&front_leds 0 GPIO_ACTIVE_LOW>;
61 };
62 };
63
64 fan_gpio_leds {
65 compatible = "gpio-leds";
66 led-0 {
67 label = "fan0_blue";
68 retain-state-shutdown;
69 default-state = "on";
70 gpios = <&fan_leds 8 GPIO_ACTIVE_HIGH>;
71 };
72 led-1 {
73 label = "fan1_blue";
74 retain-state-shutdown;
75 default-state = "on";
76 gpios = <&fan_leds 9 GPIO_ACTIVE_HIGH>;
77 };
78 led-2 {
79 label = "fan2_blue";
80 retain-state-shutdown;
81 default-state = "on";
82 gpios = <&fan_leds 10 GPIO_ACTIVE_HIGH>;
83 };
84 led-3 {
85 label = "fan3_blue";
86 retain-state-shutdown;
87 default-state = "on";
88 gpios = <&fan_leds 11 GPIO_ACTIVE_HIGH>;
89 };
90 led-4 {
91 label = "fan0_amber";
92 retain-state-shutdown;
93 default-state = "off";
94 gpios = <&fan_leds 12 GPIO_ACTIVE_HIGH>;
95 };
96 led-5 {
97 label = "fan1_amber";
98 retain-state-shutdown;
99 default-state = "off";
100 gpios = <&fan_leds 13 GPIO_ACTIVE_HIGH>;
101 };
102 led-6 {
103 label = "fan2_amber";
104 retain-state-shutdown;
105 default-state = "off";
106 gpios = <&fan_leds 14 GPIO_ACTIVE_HIGH>;
107 };
108 led-7 {
109 label = "fan3_amber";
110 retain-state-shutdown;
111 default-state = "off";
112 gpios = <&fan_leds 15 GPIO_ACTIVE_HIGH>;
113 };
114 };
115
116 sled1_gpio_leds {
117 compatible = "gpio-leds";
118 led-0 {
119 label = "sled1_amber";
120 retain-state-shutdown;
121 default-state = "keep";
122 gpios = <&sled1_leds 0 GPIO_ACTIVE_LOW>;
123 };
124 led-1 {
125 label = "sled1_blue";
126 retain-state-shutdown;
127 default-state = "keep";
128 gpios = <&sled1_leds 1 GPIO_ACTIVE_LOW>;
129 };
130 };
131
132 sled2_gpio_leds {
133 compatible = "gpio-leds";
134 led-0 {
135 label = "sled2_amber";
136 retain-state-shutdown;
137 default-state = "keep";
138 gpios = <&sled2_leds 0 GPIO_ACTIVE_LOW>;
139 };
140 led-1 {
141 label = "sled2_blue";
142 retain-state-shutdown;
143 default-state = "keep";
144 gpios = <&sled2_leds 1 GPIO_ACTIVE_LOW>;
145 };
146 };
147
148 sled3_gpio_leds {
149 compatible = "gpio-leds";
150 led-0 {
151 label = "sled3_amber";
152 retain-state-shutdown;
153 default-state = "keep";
154 gpios = <&sled3_leds 0 GPIO_ACTIVE_LOW>;
155 };
156 led-1 {
157 label = "sled3_blue";
158 retain-state-shutdown;
159 default-state = "keep";
160 gpios = <&sled3_leds 1 GPIO_ACTIVE_LOW>;
161 };
162 };
163
164 sled4_gpio_leds {
165 compatible = "gpio-leds";
166 led-0 {
167 label = "sled4_amber";
168 retain-state-shutdown;
169 default-state = "keep";
170 gpios = <&sled4_leds 0 GPIO_ACTIVE_LOW>;
171 };
172 led-1 {
173 label = "sled4_blue";
174 retain-state-shutdown;
175 default-state = "keep";
176 gpios = <&sled4_leds 1 GPIO_ACTIVE_LOW>;
177 };
178 };
179
180 sled5_gpio_leds {
181 compatible = "gpio-leds";
182 led-0 {
183 label = "sled5_amber";
184 retain-state-shutdown;
185 default-state = "keep";
186 gpios = <&sled5_leds 0 GPIO_ACTIVE_LOW>;
187 };
188 led-1 {
189 label = "sled5_blue";
190 retain-state-shutdown;
191 default-state = "keep";
192 gpios = <&sled5_leds 1 GPIO_ACTIVE_LOW>;
193 };
194 };
195
196 sled6_gpio_leds {
197 compatible = "gpio-leds";
198 led-0 {
199 label = "sled6_amber";
200 retain-state-shutdown;
201 default-state = "keep";
202 gpios = <&sled6_leds 0 GPIO_ACTIVE_LOW>;
203 };
204 led-1 {
205 label = "sled6_blue";
206 retain-state-shutdown;
207 default-state = "keep";
208 gpios = <&sled6_leds 1 GPIO_ACTIVE_LOW>;
209 };
210 };
211
212 gpio-keys {
213 compatible = "gpio-keys";
214
215 presence-sled1-switch {
216 label = "presence-sled1";
217 gpios = <&gpio0 ASPEED_GPIO(H, 2) GPIO_ACTIVE_LOW>;
218 linux,code = <ASPEED_GPIO(H, 2)>;
219 };
220 presence-sled2-switch {
221 label = "presence-sled2";
222 gpios = <&gpio0 ASPEED_GPIO(H, 3) GPIO_ACTIVE_LOW>;
223 linux,code = <ASPEED_GPIO(H, 3)>;
224 };
225 presence-sled3-switch {
226 label = "presence-sled3";
227 gpios = <&gpio0 ASPEED_GPIO(H, 4) GPIO_ACTIVE_LOW>;
228 linux,code = <ASPEED_GPIO(H, 4)>;
229 };
230 presence-sled4-switch {
231 label = "presence-sled4";
232 gpios = <&gpio0 ASPEED_GPIO(H, 5) GPIO_ACTIVE_LOW>;
233 linux,code = <ASPEED_GPIO(H, 5)>;
234 };
235 presence-sled5-switch {
236 label = "presence-sled5";
237 gpios = <&gpio0 ASPEED_GPIO(H, 6) GPIO_ACTIVE_LOW>;
238 linux,code = <ASPEED_GPIO(H, 6)>;
239 };
240 presence-sled6-switch {
241 label = "presence-sled6";
242 gpios = <&gpio0 ASPEED_GPIO(H, 7) GPIO_ACTIVE_LOW>;
243 linux,code = <ASPEED_GPIO(H, 7)>;
244 };
245 };
246
247 vbus_sled1: vbus_sled1 {
248 compatible = "regulator-fixed";
249 regulator-name = "vbus_sled1";
250 regulator-min-microvolt = <5000000>;
251 regulator-max-microvolt = <5000000>;
252 gpio = <&sled1_ioexp 1 GPIO_ACTIVE_HIGH>;
253 enable-active-high;
254 };
255
256 vbus_sled2: vbus_sled2 {
257 compatible = "regulator-fixed";
258 regulator-name = "vbus_sled2";
259 regulator-min-microvolt = <5000000>;
260 regulator-max-microvolt = <5000000>;
261 gpio = <&sled2_ioexp 1 GPIO_ACTIVE_HIGH>;
262 enable-active-high;
263 };
264
265 vbus_sled3: vbus_sled3 {
266 compatible = "regulator-fixed";
267 regulator-name = "vbus_sled3";
268 regulator-min-microvolt = <5000000>;
269 regulator-max-microvolt = <5000000>;
270 gpio = <&sled3_ioexp 1 GPIO_ACTIVE_HIGH>;
271 enable-active-high;
272 };
273
274 vbus_sled4: vbus_sled4 {
275 compatible = "regulator-fixed";
276 regulator-name = "vbus_sled4";
277 regulator-min-microvolt = <5000000>;
278 regulator-max-microvolt = <5000000>;
279 gpio = <&sled4_ioexp 1 GPIO_ACTIVE_HIGH>;
280 enable-active-high;
281 };
282
283 vbus_sled5: vbus_sled5 {
284 compatible = "regulator-fixed";
285 regulator-name = "vbus_sled5";
286 regulator-min-microvolt = <5000000>;
287 regulator-max-microvolt = <5000000>;
288 gpio = <&sled5_ioexp 1 GPIO_ACTIVE_HIGH>;
289 enable-active-high;
290 };
291
292 vbus_sled6: vbus_sled6 {
293 compatible = "regulator-fixed";
294 regulator-name = "vbus_sled6";
295 regulator-min-microvolt = <5000000>;
296 regulator-max-microvolt = <5000000>;
297 gpio = <&sled6_ioexp 1 GPIO_ACTIVE_HIGH>;
298 enable-active-high;
299 };
300 };
301
302 &mac2 {
303 status = "okay";
304 phy-mode = "rgmii";
305 pinctrl-names = "default";
306 pinctrl-0 = <&pinctrl_rgmii3_default>;
307
308 fixed-link {
309 speed = <1000>;
310 full-duplex;
311 };
312 };
313
314 &fmc {
315 status = "okay";
316 flash@0 {
317 status = "okay";
318 m25p,fast-read;
319 label = "bmc";
320 spi-max-frequency = <50000000>;
321 #include "openbmc-flash-layout-128.dtsi"
322 };
323 flash@1 {
324 status = "okay";
325 m25p,fast-read;
326 label = "alt-bmc";
327 spi-max-frequency = <50000000>;
328 };
329 };
330
331 &spi2 {
332 status = "okay";
333 pinctrl-names = "default";
334 pinctrl-0 = <&pinctrl_spi2_default>;
335
336 flash@0 {
337 status = "okay";
338 m25p,fast-read;
339 label = "pnor";
340 spi-max-frequency = <50000000>;
341 };
342 };
343
344 &i2c0 {
345 status = "okay";
346 ina230@45 {
347 compatible = "ti,ina230";
348 reg = <0x45>;
349 shunt-resistor = <2000>;
350 };
351
352 mp5023@40 {
353 compatible = "mps,mp5023";
354 reg = <0x40>;
355 };
356
357 tmp421@4f {
358 compatible = "ti,tmp421";
359 reg = <0x4f>;
360 };
361
362 sled1_ioexp41: pca9536@41 {
363 compatible = "nxp,pca9536";
364 reg = <0x41>;
365 gpio-controller;
366 #gpio-cells = <2>;
367
368 gpio-line-names =
369 "SLED1_SWD_MUX", "SLED1_XRES_SWD_N",
370 "SLED1_CLKREQ_N", "SLED1_PCIE_PWR_EN";
371 };
372
373 sled1_ioexp: pca9539@76 {
374 compatible = "nxp,pca9539";
375 reg = <0x76>;
376 gpio-controller;
377 #gpio-cells = <2>;
378
379 interrupt-parent = <&gpio0>;
380 interrupts = <ASPEED_GPIO(M, 0) IRQ_TYPE_LEVEL_LOW>;
381
382 gpio-line-names =
383 "SLED1_MS_DETECT1","SLED1_VBUS_BMC_EN","SLED1_INA230_ALERT","SLED1_P12V_STBY_ALERT",
384 "SLED1_SSD_ALERT","SLED1_MS_DETECT0","SLED1_RST_CCG5","SLED1_FUSB302_INT",
385 "SLED1_MD_STBY_RESET","SLED1_MD_IOEXP_EN_FAULT","SLED1_MD_DIR","SLED1_MD_DECAY",
386 "SLED1_MD_MODE1","SLED1_MD_MODE2","SLED1_MD_MODE3","power-host1";
387 };
388
389 sled1_leds: pca9552@67 {
390 compatible = "nxp,pca9552";
391 reg = <0x67>;
392 #address-cells = <1>;
393 #size-cells = <0>;
394 gpio-controller;
395 #gpio-cells = <2>;
396
397 gpio-line-names =
398 "led-sled1-amber","led-sled1-blue","SLED1_RST_IOEXP","SLED1_MD_REF_PWM",
399 "","","","",
400 "","","","",
401 "","","","";
402 };
403
404 sled1_fusb302: typec-portc@22 {
405 compatible = "fcs,fusb302";
406 reg = <0x22>;
407
408 interrupt-parent = <&gpio0>;
409 interrupts = <ASPEED_GPIO(B, 0) IRQ_TYPE_LEVEL_LOW>;
410 vbus-supply = <&vbus_sled1>;
411
412 connector {
413 compatible = "usb-c-connector";
414 label = "USB-C";
415 pd-revision = /bits/ 8 <0x2 0x0 0x1 0x20>;
416 power-role = "dual";
417 data-role = "dual";
418 source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
419 sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
420 op-sink-microwatt = <10000000>;
421 };
422 };
423
424 eeprom@54 {
425 compatible = "atmel,24c64";
426 reg = <0x54>;
427 };
428 };
429
430 &i2c1 {
431 status = "okay";
432 ina230@45 {
433 compatible = "ti,ina230";
434 reg = <0x45>;
435 shunt-resistor = <2000>;
436 };
437
438 mp5023@40 {
439 compatible = "mps,mp5023";
440 reg = <0x40>;
441 };
442
443 tmp421@4f {
444 compatible = "ti,tmp421";
445 reg = <0x4f>;
446 };
447
448 sled2_ioexp41: pca9536@41 {
449 compatible = "nxp,pca9536";
450 reg = <0x41>;
451 gpio-controller;
452 #gpio-cells = <2>;
453
454 gpio-line-names =
455 "SLED2_SWD_MUX", "SLED2_XRES_SWD_N",
456 "SLED2_CLKREQ_N", "SLED2_PCIE_PWR_EN";
457 };
458
459 sled2_ioexp: pca9539@76 {
460 compatible = "nxp,pca9539";
461 reg = <0x76>;
462 gpio-controller;
463 #gpio-cells = <2>;
464
465 interrupt-parent = <&gpio0>;
466 interrupts = <ASPEED_GPIO(M, 1) IRQ_TYPE_LEVEL_LOW>;
467
468 gpio-line-names =
469 "SLED2_MS_DETECT1","SLED2_VBUS_BMC_EN","SLED2_INA230_ALERT","SLED2_P12V_STBY_ALERT",
470 "SLED2_SSD_ALERT","SLED2_MS_DETECT0","SLED2_RST_CCG5","SLED2_FUSB302_INT",
471 "SLED2_MD_STBY_RESET","SLED2_MD_IOEXP_EN_FAULT","SLED2_MD_DIR","SLED2_MD_DECAY",
472 "SLED2_MD_MODE1","SLED2_MD_MODE2","SLED2_MD_MODE3","power-host2";
473 };
474
475 sled2_leds: pca9552@67 {
476 compatible = "nxp,pca9552";
477 reg = <0x67>;
478 #address-cells = <1>;
479 #size-cells = <0>;
480 gpio-controller;
481 #gpio-cells = <2>;
482
483 gpio-line-names =
484 "led-sled2-amber","led-sled2-blue","SLED2_RST_IOEXP","SLED2_MD_REF_PWM",
485 "","","","",
486 "","","","",
487 "","","","";
488 };
489
490 sled2_fusb302: typec-portc@22 {
491 compatible = "fcs,fusb302";
492 reg = <0x22>;
493
494 interrupt-parent = <&gpio0>;
495 interrupts = <ASPEED_GPIO(B, 1) IRQ_TYPE_LEVEL_LOW>;
496 vbus-supply = <&vbus_sled2>;
497
498 connector {
499 compatible = "usb-c-connector";
500 label = "USB-C";
501 pd-revision = /bits/ 8 <0x2 0x0 0x1 0x20>;
502 power-role = "dual";
503 data-role = "dual";
504 source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
505 sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
506 op-sink-microwatt = <10000000>;
507 };
508 };
509
510 eeprom@54 {
511 compatible = "atmel,24c64";
512 reg = <0x54>;
513 };
514 };
515
516 &i2c2 {
517 status = "okay";
518 ina230@45 {
519 compatible = "ti,ina230";
520 reg = <0x45>;
521 shunt-resistor = <2000>;
522 };
523
524 mp5023@40 {
525 compatible = "mps,mp5023";
526 reg = <0x40>;
527 };
528
529 tmp421@4f {
530 compatible = "ti,tmp421";
531 reg = <0x4f>;
532 };
533
534 sled3_ioexp41: pca9536@41 {
535 compatible = "nxp,pca9536";
536 reg = <0x41>;
537 gpio-controller;
538 #gpio-cells = <2>;
539
540 gpio-line-names =
541 "SLED3_SWD_MUX", "SLED3_XRES_SWD_N",
542 "SLED3_CLKREQ_N", "SLED3_PCIE_PWR_EN";
543 };
544
545 sled3_ioexp: pca9539@76 {
546 compatible = "nxp,pca9539";
547 reg = <0x76>;
548 gpio-controller;
549 #gpio-cells = <2>;
550
551 interrupt-parent = <&gpio0>;
552 interrupts = <ASPEED_GPIO(M, 2) IRQ_TYPE_LEVEL_LOW>;
553
554 gpio-line-names =
555 "SLED3_MS_DETECT1","SLED3_VBUS_BMC_EN","SLED3_INA230_ALERT","SLED3_P12V_STBY_ALERT",
556 "SLED3_SSD_ALERT","SLED3_MS_DETECT0","SLED3_RST_CCG5","SLED3_FUSB302_INT",
557 "SLED3_MD_STBY_RESET","SLED3_MD_IOEXP_EN_FAULT","SLED3_MD_DIR","SLED3_MD_DECAY",
558 "SLED3_MD_MODE1","SLED3_MD_MODE2","SLED3_MD_MODE3","power-host3";
559 };
560
561 sled3_leds: pca9552@67 {
562 compatible = "nxp,pca9552";
563 reg = <0x67>;
564 #address-cells = <1>;
565 #size-cells = <0>;
566 gpio-controller;
567 #gpio-cells = <2>;
568
569 gpio-line-names =
570 "led-sled3-amber","led-sled3-blue","SLED3_RST_IOEXP","SLED3_MD_REF_PWM",
571 "","","","",
572 "","","","",
573 "","","","";
574 };
575
576 sled3_fusb302: typec-portc@22 {
577 compatible = "fcs,fusb302";
578 reg = <0x22>;
579
580 interrupt-parent = <&gpio0>;
581 interrupts = <ASPEED_GPIO(B, 7) IRQ_TYPE_LEVEL_LOW>;
582 vbus-supply = <&vbus_sled3>;
583
584 connector {
585 compatible = "usb-c-connector";
586 label = "USB-C";
587 pd-revision = /bits/ 8 <0x2 0x0 0x1 0x20>;
588 power-role = "dual";
589 data-role = "dual";
590 source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
591 sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
592 op-sink-microwatt = <10000000>;
593 };
594 };
595
596 eeprom@54 {
597 compatible = "atmel,24c64";
598 reg = <0x54>;
599 };
600 };
601
602 &i2c3 {
603 status = "okay";
604 ina230@45 {
605 compatible = "ti,ina230";
606 reg = <0x45>;
607 shunt-resistor = <2000>;
608 };
609
610 mp5023@40 {
611 compatible = "mps,mp5023";
612 reg = <0x40>;
613 };
614
615 tmp421@4f {
616 compatible = "ti,tmp421";
617 reg = <0x4f>;
618 };
619
620 sled4_ioexp41: pca9536@41 {
621 compatible = "nxp,pca9536";
622 reg = <0x41>;
623 gpio-controller;
624 #gpio-cells = <2>;
625
626 gpio-line-names =
627 "SLED4_SWD_MUX", "SLED4_XRES_SWD_N",
628 "SLED4_CLKREQ_N", "SLED4_PCIE_PWR_EN";
629 };
630
631 sled4_ioexp: pca9539@76 {
632 compatible = "nxp,pca9539";
633 reg = <0x76>;
634 gpio-controller;
635 #gpio-cells = <2>;
636
637 interrupt-parent = <&gpio0>;
638 interrupts = <ASPEED_GPIO(M, 3) IRQ_TYPE_LEVEL_LOW>;
639
640 gpio-line-names =
641 "SLED4_MS_DETECT1","SLED4_VBUS_BMC_EN","SLED4_INA230_ALERT","SLED4_P12V_STBY_ALERT",
642 "SLED4_SSD_ALERT","SLED4_MS_DETECT0","SLED4_RST_CCG5","SLED4_FUSB302_INT",
643 "SLED4_MD_STBY_RESET","SLED4_MD_IOEXP_EN_FAULT","SLED4_MD_DIR","SLED4_MD_DECAY",
644 "SLED4_MD_MODE1","SLED4_MD_MODE2","SLED4_MD_MODE3","power-host4";
645 };
646
647 sled4_leds: pca9552@67 {
648 compatible = "nxp,pca9552";
649 reg = <0x67>;
650 #address-cells = <1>;
651 #size-cells = <0>;
652 gpio-controller;
653 #gpio-cells = <2>;
654
655 gpio-line-names =
656 "led-sled4-amber","led-sled4-blue","SLED4_RST_IOEXP","SLED4_MD_REF_PWM",
657 "","","","",
658 "","","","",
659 "","","","";
660 };
661
662 sled4_fusb302: typec-portc@22 {
663 compatible = "fcs,fusb302";
664 reg = <0x22>;
665
666 interrupt-parent = <&gpio0>;
667 interrupts = <ASPEED_GPIO(S, 7) IRQ_TYPE_LEVEL_LOW>;
668 vbus-supply = <&vbus_sled4>;
669
670 connector {
671 compatible = "usb-c-connector";
672 label = "USB-C";
673 pd-revision = /bits/ 8 <0x2 0x0 0x1 0x20>;
674 power-role = "dual";
675 data-role = "dual";
676 source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
677 sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
678 op-sink-microwatt = <10000000>;
679 };
680 };
681
682 eeprom@54 {
683 compatible = "atmel,24c64";
684 reg = <0x54>;
685 };
686 };
687
688 &i2c4 {
689 status = "okay";
690 ina230@45 {
691 compatible = "ti,ina230";
692 reg = <0x45>;
693 shunt-resistor = <2000>;
694 };
695
696 mp5023@40 {
697 compatible = "mps,mp5023";
698 reg = <0x40>;
699 };
700
701 tmp421@4f {
702 compatible = "ti,tmp421";
703 reg = <0x4f>;
704 };
705
706 sled5_ioexp41: pca9536@41 {
707 compatible = "nxp,pca9536";
708 reg = <0x41>;
709 gpio-controller;
710 #gpio-cells = <2>;
711
712 gpio-line-names =
713 "SLED5_SWD_MUX", "SLED5_XRES_SWD_N",
714 "SLED5_CLKREQ_N", "SLED5_PCIE_PWR_EN";
715 };
716
717 sled5_ioexp: pca9539@76 {
718 compatible = "nxp,pca9539";
719 reg = <0x76>;
720 gpio-controller;
721 #gpio-cells = <2>;
722
723 interrupt-parent = <&gpio0>;
724 interrupts = <ASPEED_GPIO(M, 4) IRQ_TYPE_LEVEL_LOW>;
725
726 gpio-line-names =
727 "SLED5_MS_DETECT1","SLED5_VBUS_BMC_EN","SLED5_INA230_ALERT","SLED5_P12V_STBY_ALERT",
728 "SLED5_SSD_ALERT","SLED5_MS_DETECT0","SLED5_RST_CCG5","SLED5_FUSB302_INT",
729 "SLED5_MD_STBY_RESET","SLED5_MD_IOEXP_EN_FAULT","SLED5_MD_DIR","SLED5_MD_DECAY",
730 "SLED5_MD_MODE1","SLED5_MD_MODE2","SLED5_MD_MODE3","power-host5";
731 };
732
733 sled5_leds: pca9552@67 {
734 compatible = "nxp,pca9552";
735 reg = <0x67>;
736 #address-cells = <1>;
737 #size-cells = <0>;
738 gpio-controller;
739 #gpio-cells = <2>;
740
741 gpio-line-names =
742 "led-sled5-amber","led-sled5-blue","SLED5_RST_IOEXP","SLED5_MD_REF_PWM",
743 "","","","",
744 "","","","",
745 "","","","";
746 };
747
748 sled5_fusb302: typec-portc@22 {
749 compatible = "fcs,fusb302";
750 reg = <0x22>;
751
752 interrupt-parent = <&gpio0>;
753 interrupts = <ASPEED_GPIO(Y, 3) IRQ_TYPE_LEVEL_LOW>;
754 vbus-supply = <&vbus_sled5>;
755
756 connector {
757 compatible = "usb-c-connector";
758 label = "USB-C";
759 pd-revision = /bits/ 8 <0x2 0x0 0x1 0x20>;
760 power-role = "dual";
761 data-role = "dual";
762 source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
763 sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
764 op-sink-microwatt = <10000000>;
765 };
766 };
767
768 eeprom@54 {
769 compatible = "atmel,24c64";
770 reg = <0x54>;
771 };
772 };
773
774 &i2c5 {
775 status = "okay";
776 ina230@45 {
777 compatible = "ti,ina230";
778 reg = <0x45>;
779 shunt-resistor = <2000>;
780 };
781
782 mp5023@40 {
783 compatible = "mps,mp5023";
784 reg = <0x40>;
785 };
786
787 tmp421@4f {
788 compatible = "ti,tmp421";
789 reg = <0x4f>;
790 };
791
792 sled6_ioexp41: pca9536@41 {
793 compatible = "nxp,pca9536";
794 reg = <0x41>;
795 gpio-controller;
796 #gpio-cells = <2>;
797
798 gpio-line-names =
799 "SLED6_SWD_MUX", "SLED6_XRES_SWD_N",
800 "SLED6_CLKREQ_N", "SLED6_PCIE_PWR_EN";
801 };
802
803 sled6_ioexp: pca9539@76 {
804 compatible = "nxp,pca9539";
805 reg = <0x76>;
806 gpio-controller;
807 #gpio-cells = <2>;
808
809 interrupt-parent = <&gpio0>;
810 interrupts = <ASPEED_GPIO(M, 5) IRQ_TYPE_LEVEL_LOW>;
811
812 gpio-line-names =
813 "SLED6_MS_DETECT1","SLED6_VBUS_BMC_EN","SLED6_INA230_ALERT","SLED6_P12V_STBY_ALERT",
814 "SLED6_SSD_ALERT","SLED6_MS_DETECT0","SLED6_RST_CCG5","SLED6_FUSB302_INT",
815 "SLED6_MD_STBY_RESET","SLED6_MD_IOEXP_EN_FAULT","SLED6_MD_DIR","SLED6_MD_DECAY",
816 "SLED6_MD_MODE1","SLED6_MD_MODE2","SLED6_MD_MODE3","power-host6";
817 };
818
819 sled6_leds: pca9552@67 {
820 compatible = "nxp,pca9552";
821 reg = <0x67>;
822 #address-cells = <1>;
823 #size-cells = <0>;
824 gpio-controller;
825 #gpio-cells = <2>;
826
827 gpio-line-names =
828 "led-sled6-amber","led-sled6-blue","SLED6_RST_IOEXP","SLED6_MD_REF_PWM",
829 "","","","",
830 "","","","",
831 "","","","";
832 };
833
834 sled6_fusb302: typec-portc@22 {
835 compatible = "fcs,fusb302";
836 reg = <0x22>;
837
838 interrupt-parent = <&gpio0>;
839 interrupts = <ASPEED_GPIO(I, 7) IRQ_TYPE_LEVEL_LOW>;
840 vbus-supply = <&vbus_sled6>;
841
842 connector {
843 compatible = "usb-c-connector";
844 label = "USB-C";
845 pd-revision = /bits/ 8 <0x2 0x0 0x1 0x20>;
846 power-role = "dual";
847 data-role = "dual";
848 source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
849 sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
850 op-sink-microwatt = <10000000>;
851 };
852 };
853
854 eeprom@54 {
855 compatible = "atmel,24c64";
856 reg = <0x54>;
857 };
858 };
859
860 &i2c6 {
861 status = "okay";
862
863 eeprom@56 {
864 compatible = "atmel,24c64";
865 reg = <0x56>;
866 };
867
868 rtc@51 {
869 /* in-chip rtc disabled, use external rtc (battery-backed) */
870 compatible = "nxp,pcf85263";
871 reg = <0x51>;
872 };
873 };
874
875 &i2c7 {
876 status = "okay";
877
878 eeprom@54 {
879 compatible = "atmel,24c64";
880 reg = <0x54>;
881 };
882 };
883
884 &i2c9 {
885 status = "okay";
886
887 tmp421@4f {
888 compatible = "ti,tmp421";
889 reg = <0x4f>;
890 };
891 };
892
893 &i2c10 {
894 status = "okay";
895
896 tmp421@4f {
897 compatible = "ti,tmp421";
898 reg = <0x4f>;
899 };
900
901 front_leds: pca9552@67 {
902 compatible = "nxp,pca9552";
903 reg = <0x67>;
904 #address-cells = <1>;
905 #size-cells = <0>;
906 gpio-controller;
907 #gpio-cells = <2>;
908
909 gpio-line-names =
910 "led-fault-identify","power-p5v-stby-good",
911 "power-p1v0-dvdd-good","power-p1v0-avdd-good",
912 "","","","",
913 "","","","",
914 "","","","";
915 };
916 };
917
918 &i2c12 {
919 status = "okay";
920
921 adm1278@11 {
922 compatible = "adi,adm1278";
923 reg = <0x11>;
924 shunt-resistor-micro-ohms = <300>;
925 adi,volt-curr-sample-average = <128>;
926 adi,power-sample-average = <128>;
927 };
928
929 tmp421@4c {
930 compatible = "ti,tmp421";
931 reg = <0x4c>;
932 };
933
934 tmp421@4d {
935 compatible = "ti,tmp421";
936 reg = <0x4d>;
937 };
938
939 fan_leds: pca9552@67 {
940 compatible = "nxp,pca9552";
941 reg = <0x67>;
942 #address-cells = <1>;
943 #size-cells = <0>;
944 gpio-controller;
945 #gpio-cells = <2>;
946
947 gpio-line-names =
948 "presence-fan0","presence-fan1",
949 "presence-fan2","presence-fan3",
950 "power-fan0-good","power-fan1-good",
951 "power-fan2-good","power-fan3-good",
952 "","","","",
953 "","","","";
954 };
955 };
956
957 &i2c13 {
958 multi-master;
959 status = "okay";
960
961 //USB Debug Connector
962 ipmb13@10 {
963 compatible = "ipmb-dev";
964 reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>;
965 i2c-protocol;
966 };
967 };
968
969 &gpio0 {
970 pinctrl-names = "default";
971 pinctrl-0 = <&pinctrl_gpiov2_unbiased_default>;
972
973 gpio-line-names =
974 /*A0-A7*/ "","","","","","","","",
975 /*B0-B7*/ "FUSB302_SLED1_INT_N","FUSB302_SLED2_INT_N",
976 "SEL_SPI2_MUX","SPI2_MUX1",
977 "SPI2_MUX2","SPI2_MUX3",
978 "","FUSB302_SLED3_INT_N",
979 /*C0-C7*/ "","","","","","","","",
980 /*D0-D7*/ "","","","","","","","",
981 /*E0-E7*/ "","","","","","","","",
982 /*F0-F7*/ "BMC_SLED1_STCK","BMC_SLED2_STCK",
983 "BMC_SLED3_STCK","BMC_SLED4_STCK",
984 "BMC_SLED5_STCK","BMC_SLED6_STCK",
985 "","",
986 /*G0-G7*/ "BSM_FRU_WP","SWITCH_FRU_MUX","","FM_SOL_UART_CH_SEL",
987 "PWRGD_P1V05_VDDCORE","PWRGD_P1V5_VDD","","",
988 /*H0-H7*/ "presence-riser1","presence-riser2",
989 "presence-sled1","presence-sled2",
990 "presence-sled3","presence-sled4",
991 "presence-sled5","presence-sled6",
992 /*I0-I7*/ "REV_ID0","",
993 "REV_ID1","REV_ID2",
994 "","BSM_FLASH_WP_STATUS",
995 "BMC_TPM_PRES_N","FUSB302_SLED6_INT_N",
996 /*J0-J7*/ "","","","","","","","",
997 /*K0-K7*/ "","","","","","","","",
998 /*L0-L7*/ "","","","","","BMC_RTC_INT","","",
999 /*M0-M7*/ "ALERT_SLED1_N","ALERT_SLED2_N",
1000 "ALERT_SLED3_N","ALERT_SLED4_N",
1001 "ALERT_SLED5_N","ALERT_SLED6_N",
1002 "","USB_DEBUG_PWR_BTN_N",
1003 /*N0-N7*/ "LED_POSTCODE_0","LED_POSTCODE_1",
1004 "LED_POSTCODE_2","LED_POSTCODE_3",
1005 "LED_POSTCODE_4","LED_POSTCODE_5",
1006 "LED_POSTCODE_6","LED_POSTCODE_7",
1007 /*O0-O7*/ "","","","",
1008 "","BOARD_ID0","BOARD_ID1","BOARD_ID2",
1009 /*P0-P7*/ "","","","","","","","BMC_HEARTBEAT",
1010 /*Q0-Q7*/ "","","","","","","","",
1011 /*R0-R7*/ "","","","","","","","",
1012 /*S0-S7*/ "","","","BAT_DETECT",
1013 "BMC_BT_WP0_N","BMC_BT_WP1_N","","FUSB302_SLED4_INT_N",
1014 /*T0-T7*/ "","","","","","","","",
1015 /*U0-U7*/ "","","","","","","","",
1016 /*V0-V7*/ "PWRGD_CNS_PSU","RST_BMC_MVL_N",
1017 "P12V_AUX_ALERT1_N","PSU_PRSNT",
1018 "USB2_SEL0_A","USB2_SEL1_A",
1019 "USB2_SEL0_B","USB2_SEL1_B",
1020 /*W0-W7*/ "RST_FRONT_IOEXP_N","","","","","","","",
1021 /*X0-X7*/ "","","","","","","","",
1022 /*Y0-Y7*/ "BMC_SELF_HW_RST","BSM_PRSNT_N",
1023 "BSM_FLASH_LATCH_N","FUSB302_SLED5_INT_N",
1024 "","","","",
1025 /*Z0-Z7*/ "","","","","","","","";
1026 };
1027
1028 &adc0 {
1029 aspeed,int-vref-microvolt = <2500000>;
1030 status = "okay";
1031
1032 pinctrl-names = "default";
1033 pinctrl-0 = <&pinctrl_adc0_default &pinctrl_adc1_default
1034 &pinctrl_adc2_default &pinctrl_adc3_default
1035 &pinctrl_adc4_default &pinctrl_adc5_default
1036 &pinctrl_adc6_default &pinctrl_adc7_default>;
1037 };
1038
1039 &adc1 {
1040 aspeed,int-vref-microvolt = <2500000>;
1041 status = "okay";
1042
1043 pinctrl-names = "default";
1044 pinctrl-0 = <&pinctrl_adc8_default &pinctrl_adc9_default
1045 &pinctrl_adc10_default &pinctrl_adc11_default
1046 &pinctrl_adc12_default &pinctrl_adc13_default
1047 &pinctrl_adc14_default &pinctrl_adc15_default>;
1048 };
1049
1050 &mdio0 {
1051 status = "okay";
1052 /* TODO: Add Marvell 88E6191X */
1053 };
1054
1055 &mdio3 {
1056 status = "okay";
1057 /* TODO: Add Marvell 88X3310 */
1058 };
1059
1060 &ehci0 {
1061 status = "okay";
1062 };
1063
1064 &ehci1 {
1065 status = "okay";
1066 };
1067
1068 &emmc_controller {
1069 status = "okay";
1070 };
1071
1072 &emmc {
1073 status = "okay";
1074 };
1075
1076 &pinctrl {
1077 pinctrl_gpiov2_unbiased_default: gpiov2 {
1078 pins = "AD14";
1079 bias-disable;
1080 };
1081 };
1082
1083 &wdt1 {
1084 status = "okay";
1085 aspeed,reset-type = "soc";
1086 };