Debian Codegraph @

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

raw
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 // Copyright 2023 Facebook Inc.
3
4 /dts-v1/;
5 #include "aspeed-g6.dtsi"
6 #include <dt-bindings/gpio/aspeed-gpio.h>
7 #include <dt-bindings/i2c/i2c.h>
8
9 / {
10 model = "Facebook Harma";
11 compatible = "facebook,harma-bmc", "aspeed,ast2600";
12
13 aliases {
14 serial0 = &uart1;
15 serial1 = &uart2;
16 serial2 = &uart4;
17 serial4 = &uart5;
18
19 i2c20 = &imux20;
20 i2c21 = &imux21;
21 i2c22 = &imux22;
22 i2c23 = &imux23;
23 i2c28 = &imux28;
24 i2c29 = &imux29;
25 i2c30 = &imux30;
26 i2c31 = &imux31;
27
28 spi1 = &spi_gpio;
29 };
30
31 chosen {
32 stdout-path = &uart5;
33 };
34
35 memory@80000000 {
36 device_type = "memory";
37 reg = <0x80000000 0x80000000>;
38 };
39
40 iio-hwmon {
41 compatible = "iio-hwmon";
42 io-channels = <&adc0 0>, <&adc0 1>, <&adc0 2>, <&adc0 3>,
43 <&adc0 4>, <&adc0 5>, <&adc0 6>, <&adc0 7>,
44 <&adc1 2>;
45 };
46
47 leds {
48 compatible = "gpio-leds";
49
50 led-0 {
51 label = "bmc_heartbeat_amber";
52 gpios = <&gpio0 ASPEED_GPIO(P, 7) GPIO_ACTIVE_LOW>;
53 linux,default-trigger = "heartbeat";
54 };
55
56 led-1 {
57 label = "fp_id_amber";
58 default-state = "off";
59 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
60 };
61
62 led-2 {
63 label = "power_blue";
64 default-state = "off";
65 gpios = <&gpio0 124 GPIO_ACTIVE_HIGH>;
66 };
67 };
68
69 spi_gpio: spi {
70 status = "okay";
71 compatible = "spi-gpio";
72 #address-cells = <1>;
73 #size-cells = <0>;
74
75 sck-gpios = <&gpio0 ASPEED_GPIO(Z, 3) GPIO_ACTIVE_HIGH>;
76 mosi-gpios = <&gpio0 ASPEED_GPIO(Z, 4) GPIO_ACTIVE_HIGH>;
77 miso-gpios = <&gpio0 ASPEED_GPIO(Z, 5) GPIO_ACTIVE_HIGH>;
78 num-chipselects = <1>;
79 cs-gpios = <&gpio0 ASPEED_GPIO(Z, 0) GPIO_ACTIVE_LOW>;
80
81 tpm@0 {
82 compatible = "infineon,slb9670", "tcg,tpm_tis-spi";
83 spi-max-frequency = <33000000>;
84 reg = <0>;
85 };
86 };
87 };
88
89 // HOST BIOS Debug
90 &uart1 {
91 status = "okay";
92 };
93
94 // SOL Host Console
95 &uart2 {
96 status = "okay";
97 pinctrl-0 = <>;
98 };
99
100 // SOL BMC Console
101 &uart4 {
102 status = "okay";
103 pinctrl-0 = <>;
104 };
105
106 // BMC Debug Console
107 &uart5 {
108 status = "okay";
109 };
110
111 // MTIA
112 &uart6 {
113 status = "okay";
114 };
115
116 &uart_routing {
117 status = "okay";
118 };
119
120 &wdt1 {
121 status = "okay";
122 pinctrl-names = "default";
123 pinctrl-0 = <&pinctrl_wdtrst1_default>;
124 aspeed,reset-type = "soc";
125 aspeed,external-signal;
126 aspeed,ext-push-pull;
127 aspeed,ext-active-high;
128 aspeed,ext-pulse-duration = <256>;
129 };
130
131 &mac3 {
132 status = "okay";
133 pinctrl-names = "default";
134 pinctrl-0 = <&pinctrl_rmii4_default>;
135 use-ncsi;
136 };
137
138 &fmc {
139 status = "okay";
140
141 flash@0 {
142 status = "okay";
143 m25p,fast-read;
144 label = "bmc";
145 spi-max-frequency = <50000000>;
146 #include "openbmc-flash-layout-128.dtsi"
147 };
148
149 flash@1 {
150 status = "okay";
151 m25p,fast-read;
152 label = "alt-bmc";
153 spi-max-frequency = <50000000>;
154 };
155 };
156
157 // BIOS Flash
158 &spi2 {
159 status = "okay";
160 pinctrl-names = "default";
161 pinctrl-0 = <&pinctrl_spi2_default>;
162
163 flash@0 {
164 status = "okay";
165 m25p,fast-read;
166 label = "pnor";
167 spi-max-frequency = <12000000>;
168 spi-tx-bus-width = <2>;
169 spi-rx-bus-width = <2>;
170 };
171 };
172
173 &kcs2 {
174 status = "okay";
175 aspeed,lpc-io-reg = <0xca8>;
176 };
177
178 &kcs3 {
179 status = "okay";
180 aspeed,lpc-io-reg = <0xca2>;
181 };
182
183 &i2c0 {
184 status = "okay";
185
186 pwm@5e {
187 compatible = "maxim,max31790";
188 reg = <0x5e>;
189 };
190
191 power-sensor@40 {
192 compatible = "ti,ina238";
193 reg = <0x40>;
194 shunt-resistor = <1000>;
195 };
196
197 power-sensor@41 {
198 compatible = "ti,ina238";
199 reg = <0x41>;
200 shunt-resistor = <1000>;
201 };
202
203 power-sensor@44 {
204 compatible = "ti,ina238";
205 reg = <0x44>;
206 shunt-resistor = <1000>;
207 };
208
209 power-sensor@45 {
210 compatible = "ti,ina238";
211 reg = <0x45>;
212 shunt-resistor = <1000>;
213 };
214
215 temperature-sensor@4b {
216 compatible = "ti,tmp75";
217 reg = <0x4b>;
218 };
219
220 gpio@12 {
221 compatible = "nxp,pca9555";
222 reg = <0x12>;
223 gpio-controller;
224 #gpio-cells = <2>;
225 interrupt-parent = <&sgpiom0>;
226 interrupts = <116 IRQ_TYPE_LEVEL_LOW>;
227
228 gpio-line-names =
229 "","",
230 "","",
231 "","",
232 "","",
233 "","",
234 "","",
235 "","fcb2-activate",
236 "","";
237 };
238 };
239
240 &i2c1 {
241 status = "okay";
242
243 mctp-controller;
244 multi-master;
245
246 mctp@10 {
247 compatible = "mctp-i2c-controller";
248 reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>;
249 };
250
251 temperature-sensor@4b {
252 compatible = "ti,tmp75";
253 reg = <0x4b>;
254 };
255
256 // MB NIC FRU
257 eeprom@50 {
258 compatible = "atmel,24c64";
259 reg = <0x50>;
260 };
261 };
262
263 &i2c2 {
264 status = "okay";
265
266 pwm@5e {
267 compatible = "maxim,max31790";
268 reg = <0x5e>;
269 };
270
271 power-sensor@40 {
272 compatible = "ti,ina238";
273 reg = <0x40>;
274 shunt-resistor = <1000>;
275 };
276
277 power-sensor@41 {
278 compatible = "ti,ina238";
279 reg = <0x41>;
280 shunt-resistor = <1000>;
281 };
282
283 power-sensor@44 {
284 compatible = "ti,ina238";
285 reg = <0x44>;
286 shunt-resistor = <1000>;
287 };
288
289 power-sensor@45 {
290 compatible = "ti,ina238";
291 reg = <0x45>;
292 shunt-resistor = <1000>;
293 };
294
295 temperature-sensor@4b {
296 compatible = "ti,tmp75";
297 reg = <0x4b>;
298 };
299
300 gpio@12 {
301 compatible = "nxp,pca9555";
302 reg = <0x12>;
303 gpio-controller;
304 #gpio-cells = <2>;
305 interrupt-parent = <&sgpiom0>;
306 interrupts = <114 IRQ_TYPE_LEVEL_LOW>;
307
308 gpio-line-names =
309 "","",
310 "","",
311 "","",
312 "","",
313 "","",
314 "","",
315 "","fcb1-activate",
316 "","";
317 };
318 };
319
320 &i2c3 {
321 status = "okay";
322
323 i2c-mux@70 {
324 compatible = "nxp,pca9543";
325 reg = <0x70>;
326 #address-cells = <1>;
327 #size-cells = <0>;
328
329 imux20: i2c@0 {
330 #address-cells = <1>;
331 #size-cells = <0>;
332 reg = <0>;
333 //Retimer Flash
334 eeprom@50 {
335 compatible = "atmel,24c2048";
336 reg = <0x50>;
337 pagesize = <128>;
338 };
339 };
340 imux21: i2c@1 {
341 #address-cells = <1>;
342 #size-cells = <0>;
343 reg = <1>;
344 retimer@24 {
345 compatible = "asteralabs,pt5161l";
346 reg = <0x24>;
347 };
348 };
349 };
350 };
351
352 &i2c4 {
353 status = "okay";
354 // PDB FRU
355 eeprom@52 {
356 compatible = "atmel,24c64";
357 reg = <0x52>;
358 };
359
360 power-monitor@69 {
361 compatible = "pmbus";
362 reg = <0x69>;
363 };
364
365 temperature-sensor@49 {
366 compatible = "ti,tmp75";
367 reg = <0x49>;
368 };
369
370 power-monitor@44 {
371 compatible = "lltc,ltc4287";
372 reg = <0x44>;
373 shunt-resistor-micro-ohms = <250>;
374 };
375
376 power-monitor@40 {
377 compatible = "infineon,xdp710";
378 reg = <0x40>;
379 };
380
381 power-sensor@45 {
382 compatible = "ti,ina238";
383 reg = <0x45>;
384 shunt-resistor = <500>;
385 };
386 };
387
388 &i2c5 {
389 status = "okay";
390 };
391
392 &i2c6 {
393 status = "okay";
394
395 i2c-mux@70 {
396 compatible = "nxp,pca9543";
397 reg = <0x70>;
398 #address-cells = <1>;
399 #size-cells = <0>;
400
401 imux22: i2c@0 {
402 #address-cells = <1>;
403 #size-cells = <0>;
404 reg = <0>;
405
406 power-monitor@45 {
407 compatible = "ti,ina230";
408 reg = <0x45>;
409 };
410
411 };
412 imux23: i2c@1 {
413 #address-cells = <1>;
414 #size-cells = <0>;
415 reg = <1>;
416
417 power-monitor@45 {
418 compatible = "ti,ina230";
419 reg = <0x45>;
420 };
421 };
422 };
423 };
424
425 &i2c7 {
426 status = "okay";
427 };
428
429 &i2c8 {
430 status = "okay";
431 };
432
433 &i2c9 {
434 status = "okay";
435
436 mctp-controller;
437 multi-master;
438
439 mctp@10 {
440 compatible = "mctp-i2c-controller";
441 reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>;
442 };
443
444 gpio@30 {
445 compatible = "nxp,pca9555";
446 reg = <0x30>;
447 gpio-controller;
448 #gpio-cells = <2>;
449 };
450 gpio@31 {
451 compatible = "nxp,pca9555";
452 reg = <0x31>;
453 gpio-controller;
454 #gpio-cells = <2>;
455 };
456
457 // PTTV FRU
458 eeprom@52 {
459 compatible = "atmel,24c64";
460 reg = <0x52>;
461 };
462 };
463
464 &i2c11 {
465 status = "okay";
466
467 gpio@13 {
468 compatible = "nxp,pca9555";
469 reg = <0x13>;
470 gpio-controller;
471 #gpio-cells = <2>;
472 interrupt-parent = <&sgpiom0>;
473 interrupts = <222 IRQ_TYPE_LEVEL_LOW>;
474
475 gpio-line-names =
476 "","",
477 "","",
478 "","",
479 "","health-mmc",
480 "","",
481 "","",
482 "","",
483 "","";
484 };
485
486 gpio@30 {
487 compatible = "nxp,pca9555";
488 reg = <0x30>;
489 gpio-controller;
490 #gpio-cells = <2>;
491 };
492 gpio@31 {
493 compatible = "nxp,pca9555";
494 reg = <0x31>;
495 gpio-controller;
496 #gpio-cells = <2>;
497 };
498
499 // Aegis FRU
500 eeprom@52 {
501 compatible = "atmel,24c64";
502 reg = <0x52>;
503 };
504 };
505
506 &i2c12 {
507 status = "okay";
508 retimer@24 {
509 compatible = "asteralabs,pt5161l";
510 reg = <0x24>;
511 };
512 };
513
514 &i2c13 {
515 status = "okay";
516
517 i2c-mux@70 {
518 compatible = "nxp,pca9545";
519 reg = <0x70>;
520 #address-cells = <1>;
521 #size-cells = <0>;
522
523 imux28: i2c@0 {
524 #address-cells = <1>;
525 #size-cells = <0>;
526 reg = <0>;
527 power-sensor@20 {
528 compatible = "mps,mp5990";
529 reg = <0x20>;
530 };
531 power-monitor@61 {
532 compatible = "isil,isl69260";
533 reg = <0x61>;
534 };
535 power-monitor@62 {
536 compatible = "isil,isl69260";
537 reg = <0x62>;
538 };
539 power-monitor@63 {
540 compatible = "isil,isl69260";
541 reg = <0x63>;
542 };
543 power-monitor@64 {
544 compatible = "infineon,xdpe152c4";
545 reg = <0x64>;
546 };
547 power-monitor@66 {
548 compatible = "infineon,xdpe152c4";
549 reg = <0x66>;
550 };
551 power-monitor@68 {
552 compatible = "infineon,xdpe152c4";
553 reg = <0x68>;
554 };
555 };
556 imux29: i2c@1 {
557 #address-cells = <1>;
558 #size-cells = <0>;
559 reg = <1>;
560 //MB FRU
561 eeprom@54 {
562 compatible = "atmel,24c64";
563 reg = <0x54>;
564 };
565
566 adc@1d {
567 compatible = "ti,adc128d818";
568 reg = <0x1d>;
569 ti,mode = /bits/ 8 <1>;
570 };
571
572 adc@1f {
573 compatible = "ti,adc128d818";
574 reg = <0x1f>;
575 ti,mode = /bits/ 8 <1>;
576 };
577
578 };
579 imux30: i2c@2 {
580 #address-cells = <1>;
581 #size-cells = <0>;
582 reg = <2>;
583 };
584 imux31: i2c@3 {
585 #address-cells = <1>;
586 #size-cells = <0>;
587 reg = <3>;
588
589 rtc@51 {
590 compatible = "nxp,pcf8563";
591 reg = <0x51>;
592 };
593 };
594 };
595 };
596
597 // To Debug card
598 &i2c14 {
599 status = "okay";
600 multi-master;
601
602 ipmb@10 {
603 compatible = "ipmb-dev";
604 reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>;
605 i2c-protocol;
606 };
607 };
608
609 &i2c15 {
610 status = "okay";
611
612 // SCM FRU
613 eeprom@50 {
614 compatible = "atmel,24c64";
615 reg = <0x50>;
616 };
617
618 // BSM FRU
619 eeprom@56 {
620 compatible = "atmel,24c64";
621 reg = <0x56>;
622 };
623 };
624
625 &adc0 {
626 aspeed,int-vref-microvolt = <2500000>;
627 status = "okay";
628 pinctrl-0 = <&pinctrl_adc0_default &pinctrl_adc1_default
629 &pinctrl_adc2_default &pinctrl_adc3_default
630 &pinctrl_adc4_default &pinctrl_adc5_default
631 &pinctrl_adc6_default &pinctrl_adc7_default>;
632 };
633
634 &adc1 {
635 aspeed,int-vref-microvolt = <2500000>;
636 status = "okay";
637 pinctrl-names = "default";
638 pinctrl-0 = <&pinctrl_adc10_default>;
639 };
640
641 &ehci0 {
642 status = "okay";
643 };
644
645 &gpio0 {
646 pinctrl-names = "default";
647 gpio-line-names =
648 /*A0-A7*/ "","","","","","","","",
649 /*B0-B7*/ "","","","",
650 "bmc-spi-mux-select-0","led-identify","","",
651 /*C0-C7*/ "reset-cause-platrst","","","","",
652 "power-hsc-good","power-chassis-good","",
653 /*D0-D7*/ "","","sol-uart-select","","","","","",
654 /*E0-E7*/ "","","","","","","","",
655 /*F0-F7*/ "","","","","","","","",
656 /*G0-G7*/ "","","","","","","","",
657 /*H0-H7*/ "","","","","","","","",
658 /*I0-I7*/ "","","","","","","","",
659 /*J0-J7*/ "","","","","","","","",
660 /*K0-K7*/ "","","","","","","","",
661 /*L0-L7*/ "","","","",
662 "leakage-detect-alert","","","",
663 /*M0-M7*/ "","","","","","","","",
664 /*N0-N7*/ "led-postcode-0","led-postcode-1",
665 "led-postcode-2","led-postcode-3",
666 "led-postcode-4","led-postcode-5",
667 "led-postcode-6","led-postcode-7",
668 /*O0-O7*/ "","","","","","","","",
669 /*P0-P7*/ "power-button","power-host-control",
670 "reset-button","","led-power","","","",
671 /*Q0-Q7*/
672 "","","","",
673 "","power-chassis-control","","uart-switch-button",
674 /*R0-R7*/ "","","","","","","","",
675 /*S0-S7*/ "","","","","","","","",
676 /*T0-T7*/ "","","","","","","","",
677 /*U0-U7*/ "","","","","","","led-identify-gate","",
678 /*V0-V7*/ "","","","",
679 "","",
680 "","",
681 /*W0-W7*/ "","","","","","","","",
682 /*X0-X7*/ "","","","","","","","",
683 /*Y0-Y7*/ "","","","","","","","",
684 /*Z0-Z7*/ "","","","","","","presence-post-card","";
685 };
686
687 &gpio1 {
688 gpio-line-names =
689 /*18A0-18A7*/ "ac-power-button","","","","","","","",
690 /*18B0-18B7*/ "","","","","","","","",
691 /*18C0-18C7*/ "","","","","","","","",
692 /*18D0-18D7*/ "","","","","","","","",
693 /*18E0-18E3*/ "","","","","","","","";
694 };
695
696 &sgpiom0 {
697 status = "okay";
698 ngpios = <128>;
699 bus-frequency = <2000000>;
700 gpio-line-names =
701 /*in - out - in - out */
702 /*A0-A3 line 0-7*/
703 "presence-scm-cable","power-config-disable-e1s-0",
704 "","",
705 "","power-config-disable-e1s-1",
706 "","",
707 /*A4-A7 line 8-15*/
708 "","power-config-asic-module-enable",
709 "power-p3v3-standby","power-config-asic-power-good",
710 "power-p1v8-good","power-config-pdb-power-good",
711 "presence-cpu","smi-control-n",
712 /*B0-B3 line 16-23*/
713 "","nmi-control-n",
714 "power-pvdd33-s5","nmi-control-sync-flood-n",
715 "","",
716 "power-pvdd18-s5","",
717 /*B4-B7 line 24-31*/
718 "","FM_CPU_SP5R1",
719 "reset-cause-rsmrst","FM_CPU_SP5R2",
720 "","FM_CPU_SP5R3",
721 "","FM_CPU_SP5R4",
722 /*C0-C3 line 32-39*/
723 "","FM_CPU0_SA0",
724 "","FM_CPU0_SA1",
725 "","rt-cpu0-p0-enable",
726 "","rt-cpu0-p1-enable",
727 /*C4-C7 line 40-47*/
728 "","smb-rt-rom-p0-select",
729 "","smb-rt-rom-p1-select",
730 "","i3c-cpu-mux0-oe-n",
731 "","i3c-cpu-mux0-select",
732 /*D0-D3 line 48-55*/
733 "","i3c-cpu-mux1-oe-n",
734 "","i3c-cpu-mux1-select",
735 "","reset-control-bmc",
736 "","reset-control-cpu0-p0-mux",
737 /*D4-D7 line 56-63*/
738 "","reset-control-cpu0-p1-mux",
739 "","reset-control-e1s-mux",
740 "power-host-good","reset-control-mb-mux",
741 "host0-ready","reset-control-smb-e1s-0",
742 /*E0-E3 line 64-71*/
743 "","reset-control-smb-e1s-1",
744 "post-end-n","reset-control-srst",
745 "presence-e1s-0","reset-control-usb-hub",
746 "","reset-control",
747 /*E4-E7 line 72-79*/
748 "presence-e1s-1","reset-control-cpu-kbrst",
749 "","reset-control-platrst",
750 "","bmc-jtag-mux-select-0",
751 "","bmc-jtag-mux-select-1",
752 /*F0-F3 line 80-87*/
753 "","bmc-jtag-select",
754 "","bmc-ready-n",
755 "","bmc-ready-sgpio",
756 "","rt-cpu0-p0-force-enable",
757 /*F4-F7 line 88-95*/
758 "presence-asic-modules-0","rt-cpu0-p1-force-enable",
759 "presence-asic-modules-1","bios-debug-msg-disable",
760 "power-asic-good","uart-control-buffer-select",
761 "presence-cmm","ac-control-n",
762 /*G0-G3 line 96-103*/
763 "FM_CPU_CORETYPE2","",
764 "FM_CPU_CORETYPE1","rtc-battery-voltage-read-enable",
765 "FM_CPU_CORETYPE0","",
766 "FM_BOARD_REV_ID5","",
767 /*G4-G7 line 104-111*/
768 "FM_BOARD_REV_ID4","",
769 "FM_BOARD_REV_ID3","",
770 "FM_BOARD_REV_ID2","",
771 "FM_BOARD_REV_ID1","",
772 /*H0-H3 line 112-119*/
773 "FM_BOARD_REV_ID0","reset-control-cmos-clear",
774 "","","","","","",
775 /*H4-H7 line 120-127*/
776 "","",
777 "reset-control-pcie-expansion-3","",
778 "reset-control-pcie-expansion-2","",
779 "reset-control-pcie-expansion-1","",
780 /*I0-I3 line 128-135*/
781 "reset-control-pcie-expansion-0","",
782 "FM_EXP_SLOT_ID1","",
783 "FM_EXP_SLOT_ID0","",
784 "","",
785 /*I4-I7 line 136-143*/
786 "","","","","","","","",
787 /*J0-J3 line 144-151*/
788 "","","power-card-enable","","","","","",
789 /*J4-J7 line 152-159*/
790 "SLOT_ID_BCB_0","",
791 "SLOT_ID_BCB_1","",
792 "SLOT_ID_BCB_2","",
793 "SLOT_ID_BCB_3","",
794 /*K0-K3 line 160-167*/
795 "","","","","","","P0_I3C_APML_ALERT_L","",
796 /*K4-K7 line 168-175*/
797 "","","","","","","irq-uv-detect-alert","",
798 /*L0-L3 line 176-183*/
799 "irq-hsc-alert","",
800 "cpu0-prochot-alert","",
801 "cpu0-thermtrip-alert","",
802 "reset-cause-pcie","",
803 /*L4-L7 line 184-191*/
804 "pvdd11-ocp-alert","",
805 "power-fault-n","",
806 "asic0-card-type-detection0-n","",
807 "asic0-card-type-detection1-n","",
808 /*M0-M3 line 192-199*/
809 "asic0-card-type-detection2-n","",
810 "uart-switch-lsb","",
811 "uart-switch-msb","",
812 "power-12v-memory-good","",
813 /*M4-M7 line 200-207*/
814 "","","","","","","","",
815 /*N0-N3 line 208-215*/
816 "","","","","","","","",
817 /*N4-N7 line 216-223*/
818 "","","","","","","","",
819 /*O0-O3 line 224-231*/
820 "","",
821 "irq-pvddcore0-ocp-alert","",
822 "irq-pvddcore1-ocp-alert","",
823 "","",
824 /*O4-O7 line 232-239*/
825 "","","","",
826 "presence-lower-fanboard1","",
827 "presence-lower-fanboard2","",
828 /*P0-P3 line 240-247*/
829 "presence-upper-fanboard1","",
830 "presence-upper-fanboard2","",
831 "","","","",
832 /*P4-P7 line 248-255*/
833 "","","","","","","","";
834 };