1 // SPDX-License-Identifier: GPL-2.0+
3 * Device Tree file for Lenovo Hr630 platform
5 * Copyright (C) 2019-present Lenovo
10 #include "aspeed-g5.dtsi"
11 #include <dt-bindings/gpio/aspeed-gpio.h>
15 compatible = "lenovo,hr630-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(J, 1) GPIO_ACTIVE_LOW>;
64 gpios = <&gpio ASPEED_GPIO(J, 0) 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>,
73 <&adc 12>, <&adc 13>, <&adc 14>;
84 spi-max-frequency = <50000000>;
85 #include "openbmc-flash-layout.dtsi"
91 memory-region = <&flash_memory>;
97 pinctrl-names = "default";
98 pinctrl-0 = <&pinctrl_txd1_default
99 &pinctrl_rxd1_default>;
103 /* Rear RS-232 connector */
105 pinctrl-names = "default";
106 pinctrl-0 = <&pinctrl_txd2_default
107 &pinctrl_rxd2_default
108 &pinctrl_nrts2_default
109 &pinctrl_ndtr2_default
110 &pinctrl_ndsr2_default
111 &pinctrl_ncts2_default
112 &pinctrl_ndcd2_default
113 &pinctrl_nri2_default>;
118 pinctrl-names = "default";
119 pinctrl-0 = <&pinctrl_txd3_default
120 &pinctrl_rxd3_default>;
134 pinctrl-names = "default";
135 pinctrl-0 = <&pinctrl_rmii1_default>;
142 pinctrl-names = "default";
143 pinctrl-0 = <&pinctrl_rgmii2_default &pinctrl_mdio2_default>;
149 pinctrl-names = "default";
150 pinctrl-0 = <&pinctrl_adc0_default
151 &pinctrl_adc1_default
152 &pinctrl_adc2_default
153 &pinctrl_adc3_default
154 &pinctrl_adc4_default
155 &pinctrl_adc5_default
156 &pinctrl_adc6_default
157 &pinctrl_adc7_default
158 &pinctrl_adc8_default
159 &pinctrl_adc9_default
160 &pinctrl_adc10_default
161 &pinctrl_adc12_default
162 &pinctrl_adc13_default
163 &pinctrl_adc14_default>;
170 compatible = "national,lm75";
179 compatible = "national,lm75";
209 compatible = "nxp,pca9545";
211 #address-cells = <1>;
213 i2c-mux-idle-disconnect; /* may use mux@70 next. */
216 #address-cells = <1>;
222 #address-cells = <1>;
228 #address-cells = <1>;
234 #address-cells = <1>;
250 compatible = "nxp,pca9546";
252 #address-cells = <1>;
254 i2c-mux-idle-disconnect; /* may use mux@76 next. */
257 #address-cells = <1>;
263 #address-cells = <1>;
269 #address-cells = <1>;
275 #address-cells = <1>;
286 compatible = "atmel,24c256";
318 memory-region = <&gfx_memory>;
323 pinctrl-names = "default";
324 pinctrl-0 = <&pinctrl_pwm0_default
325 &pinctrl_pwm1_default
326 &pinctrl_pwm2_default
327 &pinctrl_pwm3_default
328 &pinctrl_pwm4_default
329 &pinctrl_pwm5_default
330 &pinctrl_pwm6_default>;
334 aspeed,fan-tach-ch = /bits/ 8 <0x00>;
339 aspeed,fan-tach-ch = /bits/ 8 <0x01>;
344 aspeed,fan-tach-ch = /bits/ 8 <0x02>;
349 aspeed,fan-tach-ch = /bits/ 8 <0x03>;
354 aspeed,fan-tach-ch = /bits/ 8 <0x04>;
359 aspeed,fan-tach-ch = /bits/ 8 <0x05>;
364 aspeed,fan-tach-ch = /bits/ 8 <0x06>;
369 aspeed,fan-tach-ch = /bits/ 8 <0x07>;
374 aspeed,fan-tach-ch = /bits/ 8 <0x08>;
379 aspeed,fan-tach-ch = /bits/ 8 <0x09>;
384 aspeed,fan-tach-ch = /bits/ 8 <0x0a>;
389 aspeed,fan-tach-ch = /bits/ 8 <0x0b>;
394 aspeed,fan-tach-ch = /bits/ 8 <0x0c>;
399 aspeed,fan-tach-ch = /bits/ 8 <0x0d>;
407 gpios = <ASPEED_GPIO(B, 5) GPIO_ACTIVE_HIGH>;
409 line-name = "IRQ_BMC_PCH_SMI_LPC_N";
414 gpios = <ASPEED_GPIO(F, 0) GPIO_ACTIVE_HIGH>;
416 line-name = "IRQ_BMC_PCH_NMI_R";
421 gpios = <ASPEED_GPIO(F, 3) GPIO_ACTIVE_HIGH>;
423 line-name = "I2C_BUS0_RST_OUT_N";
428 gpios = <ASPEED_GPIO(F, 4) GPIO_ACTIVE_HIGH>;
430 line-name = "FM_SKT0_FAULT_LED";
435 gpios = <ASPEED_GPIO(F, 5) GPIO_ACTIVE_HIGH>;
437 line-name = "FM_SKT1_FAULT_LED";
442 gpios = <ASPEED_GPIO(G, 4) GPIO_ACTIVE_HIGH>;
444 line-name = "FAN_PWR_CTL_N";
449 gpios = <ASPEED_GPIO(G, 7) GPIO_ACTIVE_HIGH>;
451 line-name = "RST_BMC_PCIE_I2CMUX_N";
456 gpios = <ASPEED_GPIO(H, 2) GPIO_ACTIVE_HIGH>;
458 line-name = "PSU1_FFS_N_R";
463 gpios = <ASPEED_GPIO(H, 3) GPIO_ACTIVE_HIGH>;
465 line-name = "PSU2_FFS_N_R";
470 gpios = <ASPEED_GPIO(I, 3) GPIO_ACTIVE_HIGH>;
472 line-name = "BMC_INTRUDED_COVER";
477 gpios = <ASPEED_GPIO(J, 2) GPIO_ACTIVE_HIGH>;
479 line-name = "BMC_BIOS_UPDATE_N";
484 gpios = <ASPEED_GPIO(J, 3) GPIO_ACTIVE_HIGH>;
486 line-name = "RST_BMC_HDD_I2CMUX_N";
491 gpios = <ASPEED_GPIO(S, 2) GPIO_ACTIVE_HIGH>;
493 line-name = "BMC_VGA_SW";
498 gpios = <ASPEED_GPIO(S, 4) GPIO_ACTIVE_HIGH>;
500 line-name = "VBAT_EN_N";
505 gpios = <ASPEED_GPIO(S, 6) GPIO_ACTIVE_HIGH>;
507 line-name = "PU_BMC_GPIOS6";
512 gpios = <ASPEED_GPIO(Y, 0) GPIO_ACTIVE_HIGH>;
514 line-name = "BMC_NCSI_MUX_CTL_S0";
519 gpios = <ASPEED_GPIO(Y, 1) GPIO_ACTIVE_HIGH>;
521 line-name = "BMC_NCSI_MUX_CTL_S1";
526 gpios = <ASPEED_GPIO(Z, 0) GPIO_ACTIVE_HIGH>;
528 line-name = "I2C_RISER2_INT_N";
533 gpios = <ASPEED_GPIO(Z, 2) GPIO_ACTIVE_HIGH>;
535 line-name = "I2C_RISER2_RESET_N";
540 gpios = <ASPEED_GPIO(Z, 3) GPIO_ACTIVE_HIGH>;
542 line-name = "FM_BMC_PCH_SCI_LPC_N";
547 gpios = <ASPEED_GPIO(Z, 7) GPIO_ACTIVE_HIGH>;
549 line-name = "BMC_POST_CMPLT_N";
554 gpios = <ASPEED_GPIO(AA, 0) GPIO_ACTIVE_HIGH>;
556 line-name = "HOST_BMC_USB_SEL";
561 gpios = <ASPEED_GPIO(AA, 5) GPIO_ACTIVE_HIGH>;
563 line-name = "I2C_BUS1_RST_OUT_N";