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>;
142 clocks = <&syscon ASPEED_CLK_GATE_MAC1CLK>,
143 <&syscon ASPEED_CLK_MAC1RCLK>;
144 clock-names = "MACCLK", "RCLK";
150 pinctrl-names = "default";
151 pinctrl-0 = <&pinctrl_rgmii2_default &pinctrl_mdio2_default>;
156 pinctrl-names = "default";
157 pinctrl-0 = <&pinctrl_adc0_default
158 &pinctrl_adc1_default
159 &pinctrl_adc2_default
160 &pinctrl_adc3_default
161 &pinctrl_adc4_default
162 &pinctrl_adc5_default
163 &pinctrl_adc6_default
164 &pinctrl_adc7_default
165 &pinctrl_adc8_default
166 &pinctrl_adc9_default
167 &pinctrl_adc10_default
168 &pinctrl_adc11_default
169 &pinctrl_adc12_default
170 &pinctrl_adc13_default
171 &pinctrl_adc14_default
172 &pinctrl_adc15_default>;
179 compatible = "nxp,pca9545";
181 #address-cells = <1>;
185 #address-cells = <1>;
191 #address-cells = <1>;
197 #address-cells = <1>;
203 #address-cells = <1>;
212 bus-frequency = <90000>;
214 compatible = "adm1272";
219 compatible = "pmbus";
231 compatible = "nxp,pca9546";
233 #address-cells = <1>;
237 #address-cells = <1>;
243 #address-cells = <1>;
249 #address-cells = <1>;
255 #address-cells = <1>;
274 compatible = "national,lm75";
280 compatible = "national,lm75";
285 compatible = "atmel,24c256";
325 memory-region = <&gfx_memory>;
330 pinctrl-names = "default";
331 pinctrl-0 = <&pinctrl_pwm0_default
332 &pinctrl_pwm1_default
333 &pinctrl_pwm2_default
334 &pinctrl_pwm3_default
335 &pinctrl_pwm4_default
336 &pinctrl_pwm5_default
337 &pinctrl_pwm6_default
338 &pinctrl_pwm7_default>;
342 aspeed,fan-tach-ch = /bits/ 8 <0x00>;
347 aspeed,fan-tach-ch = /bits/ 8 <0x01>;
352 aspeed,fan-tach-ch = /bits/ 8 <0x02>;
357 aspeed,fan-tach-ch = /bits/ 8 <0x03>;
362 aspeed,fan-tach-ch = /bits/ 8 <0x04>;
367 aspeed,fan-tach-ch = /bits/ 8 <0x05>;
372 aspeed,fan-tach-ch = /bits/ 8 <0x06>;
377 aspeed,fan-tach-ch = /bits/ 8 <0x07>;
382 aspeed,fan-tach-ch = /bits/ 8 <0x08>;
387 aspeed,fan-tach-ch = /bits/ 8 <0x09>;
392 aspeed,fan-tach-ch = /bits/ 8 <0x0a>;
397 aspeed,fan-tach-ch = /bits/ 8 <0x0b>;
402 aspeed,fan-tach-ch = /bits/ 8 <0x0c>;
407 aspeed,fan-tach-ch = /bits/ 8 <0x0d>;
412 aspeed,fan-tach-ch = /bits/ 8 <0x0e>;
417 aspeed,fan-tach-ch = /bits/ 8 <0x0f>;
422 aspeed,fan-tach-ch = /bits/ 8 <0x0f>;
430 gpios = <ASPEED_GPIO(A, 1) GPIO_ACTIVE_LOW>;
432 line-name = "BMC_EMMC_RST_N";
437 gpios = <ASPEED_GPIO(A, 3) GPIO_ACTIVE_LOW>;
439 line-name = "PCH_PWROK_BMC_FPGA";
444 gpios = <ASPEED_GPIO(B, 5) GPIO_ACTIVE_HIGH>;
446 line-name = "IRQ_BMC_PCH_SMI_LPC_N";
451 gpios = <ASPEED_GPIO(B, 7) GPIO_ACTIVE_LOW>;
453 line-name = "CPU_SM_WP";
458 gpios = <ASPEED_GPIO(E, 0) GPIO_ACTIVE_HIGH>;
460 line-name = "PDB_PSU_SEL";
465 gpios = <ASPEED_GPIO(E, 2) GPIO_ACTIVE_HIGH>;
467 line-name = "LOCATOR_LED_N";
472 gpios = <ASPEED_GPIO(E, 5) GPIO_ACTIVE_HIGH>;
474 line-name = "FM_BMC_DBP_PRESENT_R1_N";
479 gpios = <ASPEED_GPIO(E, 6) GPIO_ACTIVE_HIGH>;
481 line-name = "BMC_ME_SECURITY_OVERRIDE_N";
486 gpios = <ASPEED_GPIO(F, 0) GPIO_ACTIVE_HIGH>;
488 line-name = "IRQ_BMC_PCH_NMI_R";
493 gpios = <ASPEED_GPIO(F, 1) GPIO_ACTIVE_HIGH>;
495 line-name = "CPU2_PROCDIS_BMC_N";
500 gpios = <ASPEED_GPIO(F, 2) GPIO_ACTIVE_HIGH>;
502 line-name = "RM_THROTTLE_EN_N";
507 gpios = <ASPEED_GPIO(F, 3) GPIO_ACTIVE_HIGH>;
509 line-name = "FM_PMBUS_ALERT_B_EN";
514 gpios = <ASPEED_GPIO(F, 4) GPIO_ACTIVE_HIGH>;
516 line-name = "BMC_FORCE_NM_THROTTLE_N";
521 gpios = <ASPEED_GPIO(F, 6) GPIO_ACTIVE_HIGH>;
523 line-name = "FM_BMC_CPU_PWR_DEBUG_N";
528 gpios = <ASPEED_GPIO(G, 7) GPIO_ACTIVE_HIGH>;
530 line-name = "BMC_PCIE_I2C_MUX_RST_N";
535 gpios = <ASPEED_GPIO(H, 6) GPIO_ACTIVE_HIGH>;
537 line-name = "FM_BMC_DBP_PRESENT_R2_N";
542 gpios = <ASPEED_GPIO(I, 3) GPIO_ACTIVE_HIGH>;
544 line-name = "SPI_BMC_BIOS_WP_N";
549 gpios = <ASPEED_GPIO(J, 1) GPIO_ACTIVE_HIGH>;
551 line-name = "BMC_USB_SEL";
556 gpios = <ASPEED_GPIO(J, 2) GPIO_ACTIVE_HIGH>;
558 line-name = "PDB_SMB_RST_N";
563 gpios = <ASPEED_GPIO(J, 3) GPIO_ACTIVE_HIGH>;
565 line-name = "SPI_BMC_BIOS_HOLD_N";
570 gpios = <ASPEED_GPIO(L, 0) GPIO_ACTIVE_HIGH>;
572 line-name = "PDB_FAN_TACH_SEL";
577 gpios = <ASPEED_GPIO(L, 1) GPIO_ACTIVE_HIGH>;
579 line-name = "SYS_RESET_BMC_FPGA_N";
584 gpios = <ASPEED_GPIO(L, 4) GPIO_ACTIVE_HIGH>;
586 line-name = "FM_EFUSE_FAN_G1_EN";
591 gpios = <ASPEED_GPIO(L, 5) GPIO_ACTIVE_HIGH>;
593 line-name = "FM_EFUSE_FAN_G2_EN";
598 gpios = <ASPEED_GPIO(R, 6) GPIO_ACTIVE_HIGH>;
600 line-name = "CPU3_PROCDIS_BMC_N";
605 gpios = <ASPEED_GPIO(R, 7) GPIO_ACTIVE_HIGH>;
607 line-name = "CPU4_PROCDIS_BMC_N";
612 gpios = <ASPEED_GPIO(S, 1) GPIO_ACTIVE_HIGH>;
614 line-name = "DBP_SYSPWROK_BMC";
619 gpios = <ASPEED_GPIO(S, 2) GPIO_ACTIVE_HIGH>;
621 line-name = "PCH_RST_RSMRST_N";
626 gpios = <ASPEED_GPIO(S, 6) GPIO_ACTIVE_HIGH>;
628 line-name = "BMC_HW_STRAP_5";
633 gpios = <ASPEED_GPIO(Z, 3) GPIO_ACTIVE_HIGH>;
635 line-name = "FM_BMC_PCH_SCI_LPC_N";
640 gpios = <ASPEED_GPIO(AA, 0) GPIO_ACTIVE_HIGH>;
642 line-name = "FW_PSU_ALERT_EN_N";
647 gpios = <ASPEED_GPIO(AA, 4) GPIO_ACTIVE_HIGH>;
649 line-name = "DBP_CPU_PREQ_N";
654 gpios = <ASPEED_GPIO(AB, 3) GPIO_ACTIVE_HIGH>;
656 line-name = "BMC_WDTRST";
661 gpios = <ASPEED_GPIO(AC, 6) GPIO_ACTIVE_HIGH>;
663 line-name = "ESPI_BMC_ALERT_N";