Debian Codegraph @

arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-bonnell.dts

raw
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 // Copyright 2022 IBM Corp.
3 /dts-v1/;
4
5 #include "aspeed-g6.dtsi"
6 #include <dt-bindings/gpio/aspeed-gpio.h>
7 #include <dt-bindings/i2c/i2c.h>
8 #include <dt-bindings/leds/leds-pca955x.h>
9
10 / {
11 model = "Bonnell";
12 compatible = "ibm,bonnell-bmc", "aspeed,ast2600";
13
14 aliases {
15 serial4 = &uart5;
16 i2c16 = &i2c11mux0chn0;
17 i2c17 = &i2c11mux0chn1;
18 i2c18 = &i2c11mux0chn2;
19 i2c19 = &i2c11mux0chn3;
20 };
21
22 chosen {
23 stdout-path = &uart5;
24 bootargs = "console=ttyS4,115200n8 earlycon";
25 };
26
27 memory@80000000 {
28 device_type = "memory";
29 reg = <0x80000000 0x40000000>;
30 };
31
32 reserved-memory {
33 #address-cells = <1>;
34 #size-cells = <1>;
35 ranges;
36
37 event_log: tcg_event_log@b3d00000 {
38 no-map;
39 reg = <0xb3d00000 0x100000>;
40 };
41
42 ramoops@b3e00000 {
43 compatible = "ramoops";
44 reg = <0xb3e00000 0x200000>; /* 16 * (4 * 0x8000) */
45 record-size = <0x8000>;
46 console-size = <0x8000>;
47 ftrace-size = <0x8000>;
48 pmsg-size = <0x8000>;
49 max-reason = <3>; /* KMSG_DUMP_EMERG */
50 };
51
52 /* LPC FW cycle bridge region requires natural alignment */
53 flash_memory: region@b4000000 {
54 no-map;
55 reg = <0xb4000000 0x04000000>; /* 64M */
56 };
57
58 /* VGA region is dictated by hardware strapping */
59 vga_memory: region@bf000000 {
60 no-map;
61 compatible = "shared-dma-pool";
62 reg = <0xbf000000 0x01000000>; /* 16M */
63 };
64 };
65
66 leds {
67 compatible = "gpio-leds";
68
69 fan0 {
70 gpios = <&gpio0 ASPEED_GPIO(G, 0) GPIO_ACTIVE_LOW>;
71 };
72
73 fan1 {
74 gpios = <&gpio0 ASPEED_GPIO(G, 1) GPIO_ACTIVE_LOW>;
75 };
76
77 rear-enc-id0 {
78 gpios = <&gpio0 ASPEED_GPIO(H, 2) GPIO_ACTIVE_LOW>;
79 };
80
81 rear-enc-fault0 {
82 gpios = <&gpio0 ASPEED_GPIO(H, 3) GPIO_ACTIVE_LOW>;
83 };
84 };
85
86 gpio-keys-polled {
87 compatible = "gpio-keys-polled";
88 #address-cells = <1>;
89 #size-cells = <0>;
90 poll-interval = <1000>;
91
92 fan0-presence {
93 label = "fan0-presence";
94 gpios = <&gpio0 ASPEED_GPIO(F, 4) GPIO_ACTIVE_LOW>;
95 linux,code = <6>;
96 };
97
98 fan1-presence {
99 label = "fan1-presence";
100 gpios = <&gpio0 ASPEED_GPIO(F, 5) GPIO_ACTIVE_LOW>;
101 linux,code = <7>;
102 };
103 };
104
105 iio-hwmon {
106 compatible = "iio-hwmon";
107 io-channels = <&adc1 7>;
108 };
109 };
110
111 &adc1 {
112 status = "okay";
113 aspeed,int-vref-microvolt = <2500000>;
114 pinctrl-names = "default";
115 pinctrl-0 = <&pinctrl_adc8_default &pinctrl_adc9_default
116 &pinctrl_adc10_default &pinctrl_adc11_default
117 &pinctrl_adc12_default &pinctrl_adc13_default
118 &pinctrl_adc14_default &pinctrl_adc15_default>;
119 };
120
121 &ehci1 {
122 status = "okay";
123 };
124
125 &uhci {
126 status = "okay";
127 };
128
129 &gpio0 {
130 gpio-line-names =
131 /*A0-A7*/ "","","","","","","","",
132 /*B0-B7*/ "","","","","","","checkstop","",
133 /*C0-C7*/ "","","","","","","","",
134 /*D0-D7*/ "","","","","","","","",
135 /*E0-E7*/ "","","","","","","","",
136 /*F0-F7*/ "","","rtc-battery-voltage-read-enable","reset-cause-pinhole","","","","",
137 /*G0-G7*/ "fan0","fan1","","","","","","",
138 /*H0-H7*/ "","","rear-enc-id0","rear-enc-fault0","","","","",
139 /*I0-I7*/ "","","","","","","bmc-secure-boot","",
140 /*J0-J7*/ "","","","","","","","",
141 /*K0-K7*/ "","","","","","","","",
142 /*L0-L7*/ "","","","","","","","",
143 /*M0-M7*/ "","","","","","","","",
144 /*N0-N7*/ "","","","","","","","",
145 /*O0-O7*/ "","","","usb-power","","","","",
146 /*P0-P7*/ "","","","","","","","",
147 /*Q0-Q7*/ "cfam-reset","","regulator-standby-faulted","","","","","",
148 /*R0-R7*/ "bmc-tpm-reset","power-chassis-control","power-chassis-good","","","","","",
149 /*S0-S7*/ "presence-ps0","presence-ps1","","","power-ffs-sync-history","","","",
150 /*T0-T7*/ "","","","","","","","",
151 /*U0-U7*/ "","","","","","","","",
152 /*V0-V7*/ "","","","","","","","",
153 /*W0-W7*/ "","","","","","","","",
154 /*X0-X7*/ "","","","","","","","",
155 /*Y0-Y7*/ "","","","","","","","",
156 /*Z0-Z7*/ "","","","","","","","";
157
158 usb-power-hog {
159 gpio-hog;
160 gpios = <ASPEED_GPIO(O, 3) GPIO_ACTIVE_LOW>;
161 output-high;
162 };
163 };
164
165 &emmc_controller {
166 status = "okay";
167 };
168
169 &pinctrl_emmc_default {
170 bias-disable;
171 };
172
173 &emmc {
174 status = "okay";
175 clk-phase-mmc-hs200 = <180>, <180>;
176 };
177
178 &ibt {
179 status = "okay";
180 };
181
182 &i2c0 {
183 status = "okay";
184
185 eeprom@51 {
186 compatible = "atmel,24c64";
187 reg = <0x51>;
188 };
189
190 tca9554@20 {
191 compatible = "ti,tca9554";
192 reg = <0x20>;
193 #address-cells = <1>;
194 #size-cells = <0>;
195
196 gpio-controller;
197 #gpio-cells = <2>;
198
199 gpio-line-names = "",
200 "RUSSEL_FW_I2C_ENABLE_N",
201 "RUSSEL_OPPANEL_PRESENCE_N",
202 "BLYTH_OPPANEL_PRESENCE_N",
203 "CPU_TPM_CARD_PRESENT_N",
204 "",
205 "",
206 "DASD_BP_PRESENT_N";
207 };
208 };
209
210 &i2c1 {
211 status = "okay";
212 };
213
214 &i2c2 {
215 status = "okay";
216
217 ucd90160@64 {
218 compatible = "ti,ucd90160";
219 reg = <0x64>;
220 };
221 };
222
223 &i2c3 {
224 status = "okay";
225
226 power-supply@5a {
227 compatible = "acbel,fsg032";
228 reg = <0x5a>;
229 };
230
231 power-supply@5b {
232 compatible = "acbel,fsg032";
233 reg = <0x5b>;
234 };
235 };
236
237 &i2c4 {
238 status = "okay";
239 };
240
241 &i2c5 {
242 status = "okay";
243 };
244
245 &i2c6 {
246 status = "okay";
247 };
248
249 &i2c7 {
250 multi-master;
251 status = "okay";
252
253 si7021-a20@40 {
254 compatible = "silabs,si7020";
255 reg = <0x40>;
256 };
257
258 tmp275@48 {
259 compatible = "ti,tmp275";
260 reg = <0x48>;
261 };
262
263 eeprom@50 {
264 compatible = "atmel,24c64";
265 reg = <0x50>;
266 };
267
268 eeprom@51 {
269 compatible = "atmel,24c64";
270 reg = <0x51>;
271 };
272
273 max31785@52 {
274 compatible = "maxim,max31785a";
275 reg = <0x52>;
276 #address-cells = <1>;
277 #size-cells = <0>;
278
279 fan0: fan@0 {
280 reg = <0>;
281 };
282
283 fan1: fan@1 {
284 reg = <1>;
285 };
286 };
287
288 pca9551@60 {
289 compatible = "nxp,pca9551";
290 reg = <0x60>;
291 #address-cells = <1>;
292 #size-cells = <0>;
293
294 gpio-controller;
295 #gpio-cells = <2>;
296
297 led@0 {
298 label = "front-sys-id0";
299 reg = <0>;
300 retain-state-shutdown;
301 default-state = "keep";
302 type = <PCA955X_TYPE_LED>;
303 };
304
305 led@1 {
306 label = "front-check-log0";
307 reg = <1>;
308 retain-state-shutdown;
309 default-state = "keep";
310 type = <PCA955X_TYPE_LED>;
311 };
312
313 led@2 {
314 label = "front-enc-fault1";
315 reg = <2>;
316 retain-state-shutdown;
317 default-state = "keep";
318 type = <PCA955X_TYPE_LED>;
319 };
320
321 led@3 {
322 label = "front-sys-pwron0";
323 reg = <3>;
324 retain-state-shutdown;
325 default-state = "keep";
326 type = <PCA955X_TYPE_LED>;
327 };
328 };
329
330 ibm-panel@62 {
331 compatible = "ibm,op-panel";
332 reg = <(0x62 | I2C_OWN_SLAVE_ADDRESS)>;
333 };
334
335 dps: dps310@76 {
336 compatible = "infineon,dps310";
337 reg = <0x76>;
338 #io-channel-cells = <0>;
339 };
340 };
341
342 &i2c8 {
343 status = "okay";
344
345 rtc@32 {
346 compatible = "epson,rx8900";
347 reg = <0x32>;
348 };
349
350 tmp275@48 {
351 compatible = "ti,tmp275";
352 reg = <0x48>;
353 };
354
355 eeprom@50 {
356 compatible = "atmel,24c128";
357 reg = <0x50>;
358 };
359
360 pca9551@60 {
361 compatible = "nxp,pca9551";
362 reg = <0x60>;
363 #address-cells = <1>;
364 #size-cells = <0>;
365
366 gpio-controller;
367 #gpio-cells = <2>;
368
369 gpio-line-names = "",
370 "APSS_RESET_N",
371 "",
372 "N_MODE_CPU_N",
373 "",
374 "",
375 "P10_DCM_PRESENT",
376 "";
377 };
378 };
379
380 &i2c9 {
381 status = "okay";
382
383 tmp423a@4c {
384 compatible = "ti,tmp423";
385 reg = <0x4c>;
386 };
387 };
388
389 &i2c10 {
390 status = "okay";
391 };
392
393 &i2c11 {
394 status = "okay";
395
396 tca9554@20 {
397 compatible = "ti,tca9554";
398 reg = <0x20>;
399 #address-cells = <1>;
400 #size-cells = <0>;
401
402 gpio-controller;
403 #gpio-cells = <2>;
404
405 gpio-line-names = "BOOT_RCVRY_TWI",
406 "BOOT_RCVRY_UART",
407 "",
408 "",
409 "",
410 "",
411 "",
412 "PE_SWITCH_RSTB_N";
413 };
414
415 tmp435@4c {
416 compatible = "ti,tmp435";
417 reg = <0x4c>;
418 };
419
420 pca9849@75 {
421 compatible = "nxp,pca9849";
422 reg = <0x75>;
423 #address-cells = <1>;
424 #size-cells = <0>;
425 status = "okay";
426 i2c-mux-idle-disconnect;
427
428 i2c11mux0chn0: i2c@0 {
429 #address-cells = <1>;
430 #size-cells = <0>;
431 reg = <0>;
432 };
433
434 i2c11mux0chn1: i2c@1 {
435 #address-cells = <1>;
436 #size-cells = <0>;
437 reg = <1>;
438 };
439
440 i2c11mux0chn2: i2c@2 {
441 #address-cells = <1>;
442 #size-cells = <0>;
443 reg = <2>;
444 };
445
446 i2c11mux0chn3: i2c@3 {
447 #address-cells = <1>;
448 #size-cells = <0>;
449 reg = <3>;
450 };
451 };
452 };
453
454 &i2c12 {
455 status = "okay";
456
457 tpm@2e {
458 compatible = "nuvoton,npct75x", "tcg,tpm-tis-i2c";
459 reg = <0x2e>;
460 memory-region = <&event_log>;
461 };
462
463 eeprom@50 {
464 compatible = "atmel,24c64";
465 reg = <0x50>;
466 };
467 };
468
469 &i2c13 {
470 status = "okay";
471
472 eeprom@50 {
473 compatible = "atmel,24c64";
474 reg = <0x50>;
475 };
476
477 pca9551@60 {
478 compatible = "nxp,pca9551";
479 reg = <0x60>;
480 #address-cells = <1>;
481 #size-cells = <0>;
482
483 gpio-controller;
484 #gpio-cells = <2>;
485
486 led@0 {
487 label = "nvme3";
488 reg = <0>;
489 retain-state-shutdown;
490 default-state = "keep";
491 type = <PCA955X_TYPE_LED>;
492 };
493
494 led@1 {
495 label = "nvme2";
496 reg = <1>;
497 retain-state-shutdown;
498 default-state = "keep";
499 type = <PCA955X_TYPE_LED>;
500 };
501
502 led@2 {
503 label = "nvme1";
504 reg = <2>;
505 retain-state-shutdown;
506 default-state = "keep";
507 type = <PCA955X_TYPE_LED>;
508 };
509
510 led@3 {
511 label = "nvme0";
512 reg = <3>;
513 retain-state-shutdown;
514 default-state = "keep";
515 type = <PCA955X_TYPE_LED>;
516 };
517 };
518 };
519
520 &i2c14 {
521 status = "okay";
522 };
523
524 &i2c15 {
525 status = "okay";
526 };
527
528 &uart2 {
529 status = "okay";
530 };
531
532 &vuart1 {
533 status = "okay";
534 };
535
536 &vuart2 {
537 status = "okay";
538 };
539
540 &lpc_ctrl {
541 status = "okay";
542 memory-region = <&flash_memory>;
543 };
544
545 &mac2 {
546 status = "okay";
547 pinctrl-names = "default";
548 pinctrl-0 = <&pinctrl_rmii3_default>;
549 clocks = <&syscon ASPEED_CLK_GATE_MAC3CLK>,
550 <&syscon ASPEED_CLK_MAC3RCLK>;
551 clock-names = "MACCLK", "RCLK";
552 use-ncsi;
553 };
554
555 &wdt1 {
556 aspeed,reset-type = "none";
557 aspeed,external-signal;
558 aspeed,ext-push-pull;
559 aspeed,ext-active-high;
560
561 pinctrl-names = "default";
562 pinctrl-0 = <&pinctrl_wdtrst1_default>;
563 };
564
565 &wdt2 {
566 status = "okay";
567 };
568
569 &kcs2 {
570 status = "okay";
571 aspeed,lpc-io-reg = <0xca8 0xcac>;
572 };
573
574 &kcs3 {
575 status = "okay";
576 aspeed,lpc-io-reg = <0xca2>;
577 aspeed,lpc-interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
578 };
579
580 #include "ibm-power10-dual.dtsi"
581
582 &cfam0_i2c10 {
583 eeprom@50 {
584 compatible = "atmel,at30tse004a";
585 reg = <0x50>;
586 };
587 };
588
589 &cfam0_i2c11 {
590 eeprom@50 {
591 compatible = "atmel,at30tse004a";
592 reg = <0x50>;
593 };
594 };
595
596 &cfam0_i2c12 {
597 eeprom@50 {
598 compatible = "atmel,at30tse004a";
599 reg = <0x50>;
600 };
601 };
602
603 &cfam0_i2c13 {
604 eeprom@50 {
605 compatible = "atmel,at30tse004a";
606 reg = <0x50>;
607 };
608 };