1 // SPDX-License-Identifier: GPL-2.0+
4 #include "aspeed-g5.dtsi"
5 #include <dt-bindings/gpio/aspeed-gpio.h>
6 #include <dt-bindings/interrupt-controller/irq.h>
9 model = "Tyan S7106 BMC";
10 compatible = "tyan,s7106-bmc", "aspeed,ast2500";
14 bootargs = "console=ttyS4,115200 earlycon";
18 device_type = "memory";
19 reg = <0x80000000 0x20000000>;
27 p2a_memory: region@987f0000 {
29 reg = <0x987f0000 0x00010000>; /* 64KB */
32 vga_memory: framebuffer@9f000000 {
34 reg = <0x9f000000 0x01000000>; /* 16M */
37 gfx_memory: framebuffer {
38 size = <0x01000000>; /* 16M */
39 alignment = <0x01000000>;
40 compatible = "shared-dma-pool";
46 compatible = "gpio-leds";
49 gpios = <&gpio ASPEED_GPIO(A, 2) GPIO_ACTIVE_LOW>;
53 gpios = <&gpio ASPEED_GPIO(E, 7) GPIO_ACTIVE_LOW>;
58 compatible = "iio-hwmon";
59 io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>,
60 <&adc 4>, <&adc 5>, <&adc 6>, <&adc 7>,
61 <&adc 8>, <&adc 9>, <&adc 10>, <&adc 11>,
62 <&adc 12>, <&adc 13>, <&adc 14>;
66 compatible = "iio-hwmon";
67 io-channels = <&adc 15>;
77 #include "openbmc-flash-layout.dtsi"
83 pinctrl-names = "default";
84 pinctrl-0 = <&pinctrl_spi1_default>;
94 /* Rear RS-232 connector */
96 pinctrl-names = "default";
97 pinctrl-0 = <&pinctrl_txd1_default
98 &pinctrl_rxd1_default>;
102 /* RS-232 connector on header */
104 pinctrl-names = "default";
105 pinctrl-0 = <&pinctrl_txd2_default
106 &pinctrl_rxd2_default>;
110 /* Alternative to vuart to internally connect (route) to uart1
111 * when vuart cannot be used due to BIOS limitations.
117 /* Alternative to vuart to internally connect (route) to the
118 * external port usually used by uart1 when vuart cannot be
119 * used due to BIOS limitations.
125 /* BMC "debug" (console) UART; connected to RS-232 connector
126 * on header; selectable via jumpers as alternative to uart2
138 /* We enable the VUART here, but leave it in a state that does
139 * not interfere with the SuperIO. The goal is to have both the
140 * VUART and the SuperIO available and decide at runtime whether
141 * the VUART should actually be used. For that reason, configure
142 * an "invalid" IO address and an IRQ that is not used by the
146 aspeed,lpc-io-reg = <0xffff>;
147 aspeed,lpc-interrupts = <15 IRQ_TYPE_LEVEL_HIGH>;
156 memory-region = <&p2a_memory>;
161 snoop-ports = <0x80>;
174 pinctrl-names = "default";
175 pinctrl-0 = <&pinctrl_pwm0_default
176 &pinctrl_pwm1_default
177 &pinctrl_pwm3_default
178 &pinctrl_pwm4_default>;
183 aspeed,fan-tach-ch = /bits/ 8 <0x00>;
189 aspeed,fan-tach-ch = /bits/ 8 <0x01>;
192 /* PWM group for chassis fans #1, #2, #3 and #4 */
195 aspeed,fan-tach-ch = /bits/ 8 <0x02>;
200 aspeed,fan-tach-ch = /bits/ 8 <0x03>;
205 aspeed,fan-tach-ch = /bits/ 8 <0x04>;
210 aspeed,fan-tach-ch = /bits/ 8 <0x05>;
213 /* PWM group for chassis fans #5 and #6 */
216 aspeed,fan-tach-ch = /bits/ 8 <0x06>;
221 aspeed,fan-tach-ch = /bits/ 8 <0x07>;
228 /* Hardware monitor with temperature sensors */
230 compatible = "nuvoton,nct7802";
233 #address-cells = <1>;
236 channel@0 { /* LTD */
240 channel@1 { /* RTD1 */
242 sensor-type = "temperature";
243 temperature-mode = "thermistor";
246 channel@2 { /* RTD2 */
248 sensor-type = "temperature";
249 temperature-mode = "thermistor";
252 channel@3 { /* RTD3 */
254 sensor-type = "temperature";
258 /* Also connected to:
260 * - CPU #0 memory error LED @ 0x3A
261 * - CPU #1 memory error LED @ 0x3C
266 /* Directly connected to PCH SMBUS #0 */
273 /* BMC EEPROM, incl. mainboard FRU */
275 compatible = "atmel,24c256";
279 /* Also connected to:
281 * - mini-SAS HD connector
283 * - via switch (BMC_SMB3_PCH_IE_SML3_EN, active low)
291 /* PSU1 FRU @ 0xA0 */
293 compatible = "atmel,24c02";
297 /* PSU2 FRU @ 0xA2 */
299 compatible = "atmel,24c02";
305 compatible = "pmbus";
311 compatible = "pmbus";
315 /* Also connected to:
327 /* Connected via switch to:
328 * - CPU #0 channels ABC VDDQ @ 0x80
329 * - CPU #0 channels DEF VDDQ @ 0x81
330 * - CPU #1 channels ABC VDDQ @ 0x82
331 * - CPU #1 channels DEF VDDQ @ 0x83
332 * - CPU #0 VCCIO & VMCP @ 0x52
333 * - CPU #1 VCCIO & VMCP @ 0x53
334 * - CPU #0 VCCIN @ 0xC0
335 * - CPU #0 VSA @ 0xC2
336 * - CPU #1 VCCIN @ 0xC4
337 * - CPU #1 VSA @ 0xC6
345 /* Connected via switch (PCH_BMC_SMB_SW_P) to:
346 * - mainboard FRU @ 0xAE
349 * - clock buffer @ 0xD8
350 * - i2c4 via switch (PCH_VR_SMBUS_SW_P; controlled by PCH)
358 /* Connected via switch (BMC_PE_SMB_EN_1_N) to
359 * bus mux (selector BMC_PE_SMB_SW_BIT[1..0]) to:
360 * - 0,0: PCIE slot 1, SMB #1
361 * - 0,1: PCIE slot 1, SMB #2
362 * - 1,0: PCIE slot 2, SMB #1
363 * - 1,1: PCIE slot 2, SMB #2
366 /* Connected via switch (BMC_PE_SMB_EN_2_N) to
367 * bus mux (selector BMC_PE_SMB_SW_BIT[1..0]) to:
368 * - 0,0: OCP0 (A) SMB
369 * - 0,1: OCP0 (C) SMB
370 * - 1,0: OCP1 (A) SMB
392 pinctrl-names = "default";
393 pinctrl-0 = <&pinctrl_rmii1_default>;
398 pinctrl-names = "default";
399 pinctrl-0 = <&pinctrl_rgmii2_default &pinctrl_mdio2_default>;
408 aspeed,lpc-io-reg = <0xca8>;
413 aspeed,lpc-io-reg = <0xca2>;
416 /* Enable BMC VGA output to show an early (pre-BIOS) boot screen */
419 memory-region = <&gfx_memory>;
422 /* We're following the GPIO naming as defined at
423 * https://github.com/openbmc/docs/blob/master/designs/device-tree-gpio-naming.md.
425 * Notes on led-identify and id-button:
426 * - A physical button is connected to id-button which
427 * triggers the clock on a D flip-flop. The /Q output of the
428 * flip-flop drives its D input.
429 * - The flip-flop's Q output drives led-identify which is
431 * - With that, every button press toggles the LED between on and off.
433 * Notes on power-, reset- and nmi- button and control:
434 * - The -button signals can be used to monitor physical buttons.
435 * - The -control signals can be used to actuate the specific
437 * - In hardware, the -button signals are connected to the -control
438 * signals through drivers with the -control signals being
439 * protected through diodes.
446 /*A2*/ "led-identify", /* in/out: BMC_IDLED_ON_N */
452 /*B0-B7*/ "","","","","","","","",
457 /*C4*/ "id-button", /* in/out: BMC_IDBTN_IN_OUT_N */
458 /*C5*/ "post-complete", /* in: FM_BIOS_POST_CMPLT_N */
463 /*D2*/ "power-chassis-good", /* in: SYS_PWROK_BUF */
464 /*D3*/ "platform-reset", /* in: SYS_PLTRST_N */
469 /*E0*/ "power-button", /* in: BMC_PWBTN_IN_N */
470 /*E1*/ "power-chassis-control", /* out: BMC_PWRBTN_OUT_N */
471 /*E2*/ "reset-button", /* in: BMC_RSTBTN_IN_N */
472 /*E3*/ "reset-control", /* out: BMC_RSTBTN_OUT_N */
473 /*E4*/ "nmi-button", /* in: BMC_NMIBTN_IN_N */
474 /*E5*/ "nmi-control", /* out: BMC_NMIBTN_OUT_N */
476 /*E7*/ "led-heartbeat", /* out: BMC_HEARTBRAT_LED_N */
478 /*F1*/ "clear-cmos-control", /* out: BMC_CLR_CMOS_N */
481 /*F4*/ "led-fault", /* out: AST_HW_FAULT_N */
485 /*G0*/ "BMC_PE_SMB_EN_1_N", /* out */
486 /*G1*/ "BMC_PE_SMB_EN_2_N", /* out */
493 /*H0-H7*/ "","","","","","","","",
494 /*I0-I7*/ "","","","","","","","",
495 /*J0-J7*/ "","","","","","","","",
496 /*K0-K7*/ "","","","","","","","",
497 /*L0-L7*/ "","","","","","","","",
498 /*M0-M7*/ "","","","","","","","",
499 /*N0-N7*/ "","","","","","","","",
500 /*O0-O7*/ "","","","","","","","",
501 /*P0-P7*/ "","","","","","","","",
506 /*Q4*/ "BMC_PE_SMB_SW_BIT0", /* out */
507 /*Q5*/ "BMC_PE_SMB_SW_BIT1", /* out */
510 /*R0-R7*/ "","","","","","","","",
511 /*S0-S7*/ "","","","","","","","",
512 /*T0-T7*/ "","","","","","","","",
513 /*U0-U7*/ "","","","","","","","",
514 /*V0-V7*/ "","","","","","","","",
515 /*W0-W7*/ "","","","","","","","",
516 /*X0-X7*/ "","","","","","","","",
517 /*Y0-Y7*/ "","","","","","","","",
518 /*Z0-Z7*/ "","","","","","","","",
522 /*AA3*/ "BMC_SMB3_PCH_IE_SML3_EN", /* out */
527 /*AB0-AB7*/ "","","","","","","","";