1 // SPDX-License-Identifier: GPL-2.0+
3 * Device Tree file for Lenovo Hr855xg2 platform
5 * Copyright (C) 2019-present Lenovo
10 #include "aspeed-g5.dtsi"
11 #include <dt-bindings/gpio/aspeed-gpio.h>
14 model = "HR855XG2 BMC";
15 compatible = "lenovo,hr855xg2-bmc", "aspeed,ast2500";
30 bootargs = "console=tty0 console=ttyS4,115200 earlyprintk";
34 device_type = "memory";
35 reg = <0x80000000 0x20000000>;
43 flash_memory: region@98000000 {
45 reg = <0x98000000 0x00100000>; /* 1M */
48 gfx_memory: framebuffer {
50 alignment = <0x01000000>;
51 compatible = "shared-dma-pool";
57 compatible = "gpio-leds";
60 gpios = <&gpio ASPEED_GPIO(C, 7) GPIO_ACTIVE_LOW>;
64 gpios = <&gpio ASPEED_GPIO(G, 3) GPIO_ACTIVE_LOW>;
69 compatible = "iio-hwmon";
70 io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>,
71 <&adc 4>, <&adc 5>, <&adc 6>, <&adc 7>,
72 <&adc 8>, <&adc 9>, <&adc 10>,<&adc 11>,
73 <&adc 12>,<&adc 13>,<&adc 14>;
77 compatible = "iio-hwmon";
78 io-channels = <&adc 15>;
89 spi-max-frequency = <50000000>;
90 #include "openbmc-flash-layout.dtsi"
96 memory-region = <&flash_memory>;
102 snoop-ports = <0x80>;
107 pinctrl-names = "default";
108 pinctrl-0 = <&pinctrl_txd1_default
109 &pinctrl_rxd1_default>;
113 /* Rear RS-232 connector */
115 pinctrl-names = "default";
116 pinctrl-0 = <&pinctrl_txd2_default
117 &pinctrl_rxd2_default
118 &pinctrl_nrts2_default
119 &pinctrl_ndtr2_default
120 &pinctrl_ndsr2_default
121 &pinctrl_ncts2_default
122 &pinctrl_ndcd2_default
123 &pinctrl_nri2_default>;
140 pinctrl-names = "default";
141 pinctrl-0 = <&pinctrl_rmii1_default>;
147 pinctrl-names = "default";
148 pinctrl-0 = <&pinctrl_rgmii2_default &pinctrl_mdio2_default>;
153 pinctrl-names = "default";
154 pinctrl-0 = <&pinctrl_adc0_default
155 &pinctrl_adc1_default
156 &pinctrl_adc2_default
157 &pinctrl_adc3_default
158 &pinctrl_adc4_default
159 &pinctrl_adc5_default
160 &pinctrl_adc6_default
161 &pinctrl_adc7_default
162 &pinctrl_adc8_default
163 &pinctrl_adc9_default
164 &pinctrl_adc10_default
165 &pinctrl_adc11_default
166 &pinctrl_adc12_default
167 &pinctrl_adc13_default
168 &pinctrl_adc14_default
169 &pinctrl_adc15_default>;
176 compatible = "nxp,pca9545";
178 #address-cells = <1>;
182 #address-cells = <1>;
188 #address-cells = <1>;
194 #address-cells = <1>;
200 #address-cells = <1>;
209 bus-frequency = <90000>;
211 compatible = "adm1272";
216 compatible = "pmbus";
228 compatible = "nxp,pca9546";
230 #address-cells = <1>;
234 #address-cells = <1>;
240 #address-cells = <1>;
246 #address-cells = <1>;
252 #address-cells = <1>;
271 compatible = "national,lm75";
277 compatible = "national,lm75";
282 compatible = "atmel,24c256";
322 memory-region = <&gfx_memory>;
327 pinctrl-names = "default";
328 pinctrl-0 = <&pinctrl_pwm0_default
329 &pinctrl_pwm1_default
330 &pinctrl_pwm2_default
331 &pinctrl_pwm3_default
332 &pinctrl_pwm4_default
333 &pinctrl_pwm5_default
334 &pinctrl_pwm6_default
335 &pinctrl_pwm7_default>;
339 aspeed,fan-tach-ch = /bits/ 8 <0x00>;
344 aspeed,fan-tach-ch = /bits/ 8 <0x01>;
349 aspeed,fan-tach-ch = /bits/ 8 <0x02>;
354 aspeed,fan-tach-ch = /bits/ 8 <0x03>;
359 aspeed,fan-tach-ch = /bits/ 8 <0x04>;
364 aspeed,fan-tach-ch = /bits/ 8 <0x05>;
369 aspeed,fan-tach-ch = /bits/ 8 <0x06>;
374 aspeed,fan-tach-ch = /bits/ 8 <0x07>;
379 aspeed,fan-tach-ch = /bits/ 8 <0x08>;
384 aspeed,fan-tach-ch = /bits/ 8 <0x09>;
389 aspeed,fan-tach-ch = /bits/ 8 <0x0a>;
394 aspeed,fan-tach-ch = /bits/ 8 <0x0b>;
399 aspeed,fan-tach-ch = /bits/ 8 <0x0c>;
404 aspeed,fan-tach-ch = /bits/ 8 <0x0d>;
409 aspeed,fan-tach-ch = /bits/ 8 <0x0e>;
414 aspeed,fan-tach-ch = /bits/ 8 <0x0f>;
419 aspeed,fan-tach-ch = /bits/ 8 <0x0f>;
427 gpios = <ASPEED_GPIO(A, 1) GPIO_ACTIVE_LOW>;
429 line-name = "BMC_EMMC_RST_N";
434 gpios = <ASPEED_GPIO(A, 3) GPIO_ACTIVE_LOW>;
436 line-name = "PCH_PWROK_BMC_FPGA";
441 gpios = <ASPEED_GPIO(B, 5) GPIO_ACTIVE_HIGH>;
443 line-name = "IRQ_BMC_PCH_SMI_LPC_N";
448 gpios = <ASPEED_GPIO(B, 7) GPIO_ACTIVE_LOW>;
450 line-name = "CPU_SM_WP";
455 gpios = <ASPEED_GPIO(E, 0) GPIO_ACTIVE_HIGH>;
457 line-name = "PDB_PSU_SEL";
462 gpios = <ASPEED_GPIO(E, 2) GPIO_ACTIVE_HIGH>;
464 line-name = "LOCATOR_LED_N";
469 gpios = <ASPEED_GPIO(E, 5) GPIO_ACTIVE_HIGH>;
471 line-name = "FM_BMC_DBP_PRESENT_R1_N";
476 gpios = <ASPEED_GPIO(E, 6) GPIO_ACTIVE_HIGH>;
478 line-name = "BMC_ME_SECURITY_OVERRIDE_N";
483 gpios = <ASPEED_GPIO(F, 0) GPIO_ACTIVE_HIGH>;
485 line-name = "IRQ_BMC_PCH_NMI_R";
490 gpios = <ASPEED_GPIO(F, 1) GPIO_ACTIVE_HIGH>;
492 line-name = "CPU2_PROCDIS_BMC_N";
497 gpios = <ASPEED_GPIO(F, 2) GPIO_ACTIVE_HIGH>;
499 line-name = "RM_THROTTLE_EN_N";
504 gpios = <ASPEED_GPIO(F, 3) GPIO_ACTIVE_HIGH>;
506 line-name = "FM_PMBUS_ALERT_B_EN";
511 gpios = <ASPEED_GPIO(F, 4) GPIO_ACTIVE_HIGH>;
513 line-name = "BMC_FORCE_NM_THROTTLE_N";
518 gpios = <ASPEED_GPIO(F, 6) GPIO_ACTIVE_HIGH>;
520 line-name = "FM_BMC_CPU_PWR_DEBUG_N";
525 gpios = <ASPEED_GPIO(G, 7) GPIO_ACTIVE_HIGH>;
527 line-name = "BMC_PCIE_I2C_MUX_RST_N";
532 gpios = <ASPEED_GPIO(H, 6) GPIO_ACTIVE_HIGH>;
534 line-name = "FM_BMC_DBP_PRESENT_R2_N";
539 gpios = <ASPEED_GPIO(I, 3) GPIO_ACTIVE_HIGH>;
541 line-name = "SPI_BMC_BIOS_WP_N";
546 gpios = <ASPEED_GPIO(J, 1) GPIO_ACTIVE_HIGH>;
548 line-name = "BMC_USB_SEL";
553 gpios = <ASPEED_GPIO(J, 2) GPIO_ACTIVE_HIGH>;
555 line-name = "PDB_SMB_RST_N";
560 gpios = <ASPEED_GPIO(J, 3) GPIO_ACTIVE_HIGH>;
562 line-name = "SPI_BMC_BIOS_HOLD_N";
567 gpios = <ASPEED_GPIO(L, 0) GPIO_ACTIVE_HIGH>;
569 line-name = "PDB_FAN_TACH_SEL";
574 gpios = <ASPEED_GPIO(L, 1) GPIO_ACTIVE_HIGH>;
576 line-name = "SYS_RESET_BMC_FPGA_N";
581 gpios = <ASPEED_GPIO(L, 4) GPIO_ACTIVE_HIGH>;
583 line-name = "FM_EFUSE_FAN_G1_EN";
588 gpios = <ASPEED_GPIO(L, 5) GPIO_ACTIVE_HIGH>;
590 line-name = "FM_EFUSE_FAN_G2_EN";
595 gpios = <ASPEED_GPIO(R, 6) GPIO_ACTIVE_HIGH>;
597 line-name = "CPU3_PROCDIS_BMC_N";
602 gpios = <ASPEED_GPIO(R, 7) GPIO_ACTIVE_HIGH>;
604 line-name = "CPU4_PROCDIS_BMC_N";
609 gpios = <ASPEED_GPIO(S, 1) GPIO_ACTIVE_HIGH>;
611 line-name = "DBP_SYSPWROK_BMC";
616 gpios = <ASPEED_GPIO(S, 2) GPIO_ACTIVE_HIGH>;
618 line-name = "PCH_RST_RSMRST_N";
623 gpios = <ASPEED_GPIO(S, 6) GPIO_ACTIVE_HIGH>;
625 line-name = "BMC_HW_STRAP_5";
630 gpios = <ASPEED_GPIO(Z, 3) GPIO_ACTIVE_HIGH>;
632 line-name = "FM_BMC_PCH_SCI_LPC_N";
637 gpios = <ASPEED_GPIO(AA, 0) GPIO_ACTIVE_HIGH>;
639 line-name = "FW_PSU_ALERT_EN_N";
644 gpios = <ASPEED_GPIO(AA, 4) GPIO_ACTIVE_HIGH>;
646 line-name = "DBP_CPU_PREQ_N";
651 gpios = <ASPEED_GPIO(AB, 3) GPIO_ACTIVE_HIGH>;
653 line-name = "BMC_WDTRST";
658 gpios = <ASPEED_GPIO(AC, 6) GPIO_ACTIVE_HIGH>;
660 line-name = "ESPI_BMC_ALERT_N";