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>;
136 clocks = <&syscon ASPEED_CLK_GATE_MAC1CLK>,
137 <&syscon ASPEED_CLK_MAC1RCLK>;
138 clock-names = "MACCLK", "RCLK";
145 pinctrl-names = "default";
146 pinctrl-0 = <&pinctrl_rgmii2_default &pinctrl_mdio2_default>;
152 pinctrl-names = "default";
153 pinctrl-0 = <&pinctrl_adc0_default
154 &pinctrl_adc1_default
155 &pinctrl_adc2_default
156 &pinctrl_adc3_default
157 &pinctrl_adc4_default
158 &pinctrl_adc5_default
159 &pinctrl_adc6_default
160 &pinctrl_adc7_default
161 &pinctrl_adc8_default
162 &pinctrl_adc9_default
163 &pinctrl_adc10_default
164 &pinctrl_adc12_default
165 &pinctrl_adc13_default
166 &pinctrl_adc14_default>;
173 compatible = "national,lm75";
182 compatible = "national,lm75";
212 compatible = "nxp,pca9545";
214 #address-cells = <1>;
216 i2c-mux-idle-disconnect; /* may use mux@70 next. */
219 #address-cells = <1>;
225 #address-cells = <1>;
231 #address-cells = <1>;
237 #address-cells = <1>;
253 compatible = "nxp,pca9546";
255 #address-cells = <1>;
257 i2c-mux-idle-disconnect; /* may use mux@76 next. */
260 #address-cells = <1>;
266 #address-cells = <1>;
272 #address-cells = <1>;
278 #address-cells = <1>;
289 compatible = "atmel,24c256";
321 memory-region = <&gfx_memory>;
326 pinctrl-names = "default";
327 pinctrl-0 = <&pinctrl_pwm0_default
328 &pinctrl_pwm1_default
329 &pinctrl_pwm2_default
330 &pinctrl_pwm3_default
331 &pinctrl_pwm4_default
332 &pinctrl_pwm5_default
333 &pinctrl_pwm6_default>;
337 aspeed,fan-tach-ch = /bits/ 8 <0x00>;
342 aspeed,fan-tach-ch = /bits/ 8 <0x01>;
347 aspeed,fan-tach-ch = /bits/ 8 <0x02>;
352 aspeed,fan-tach-ch = /bits/ 8 <0x03>;
357 aspeed,fan-tach-ch = /bits/ 8 <0x04>;
362 aspeed,fan-tach-ch = /bits/ 8 <0x05>;
367 aspeed,fan-tach-ch = /bits/ 8 <0x06>;
372 aspeed,fan-tach-ch = /bits/ 8 <0x07>;
377 aspeed,fan-tach-ch = /bits/ 8 <0x08>;
382 aspeed,fan-tach-ch = /bits/ 8 <0x09>;
387 aspeed,fan-tach-ch = /bits/ 8 <0x0a>;
392 aspeed,fan-tach-ch = /bits/ 8 <0x0b>;
397 aspeed,fan-tach-ch = /bits/ 8 <0x0c>;
402 aspeed,fan-tach-ch = /bits/ 8 <0x0d>;
410 gpios = <ASPEED_GPIO(B, 5) GPIO_ACTIVE_HIGH>;
412 line-name = "IRQ_BMC_PCH_SMI_LPC_N";
417 gpios = <ASPEED_GPIO(F, 0) GPIO_ACTIVE_HIGH>;
419 line-name = "IRQ_BMC_PCH_NMI_R";
424 gpios = <ASPEED_GPIO(F, 3) GPIO_ACTIVE_HIGH>;
426 line-name = "I2C_BUS0_RST_OUT_N";
431 gpios = <ASPEED_GPIO(F, 4) GPIO_ACTIVE_HIGH>;
433 line-name = "FM_SKT0_FAULT_LED";
438 gpios = <ASPEED_GPIO(F, 5) GPIO_ACTIVE_HIGH>;
440 line-name = "FM_SKT1_FAULT_LED";
445 gpios = <ASPEED_GPIO(G, 4) GPIO_ACTIVE_HIGH>;
447 line-name = "FAN_PWR_CTL_N";
452 gpios = <ASPEED_GPIO(G, 7) GPIO_ACTIVE_HIGH>;
454 line-name = "RST_BMC_PCIE_I2CMUX_N";
459 gpios = <ASPEED_GPIO(H, 2) GPIO_ACTIVE_HIGH>;
461 line-name = "PSU1_FFS_N_R";
466 gpios = <ASPEED_GPIO(H, 3) GPIO_ACTIVE_HIGH>;
468 line-name = "PSU2_FFS_N_R";
473 gpios = <ASPEED_GPIO(I, 3) GPIO_ACTIVE_HIGH>;
475 line-name = "BMC_INTRUDED_COVER";
480 gpios = <ASPEED_GPIO(J, 2) GPIO_ACTIVE_HIGH>;
482 line-name = "BMC_BIOS_UPDATE_N";
487 gpios = <ASPEED_GPIO(J, 3) GPIO_ACTIVE_HIGH>;
489 line-name = "RST_BMC_HDD_I2CMUX_N";
494 gpios = <ASPEED_GPIO(S, 2) GPIO_ACTIVE_HIGH>;
496 line-name = "BMC_VGA_SW";
501 gpios = <ASPEED_GPIO(S, 4) GPIO_ACTIVE_HIGH>;
503 line-name = "VBAT_EN_N";
508 gpios = <ASPEED_GPIO(S, 6) GPIO_ACTIVE_HIGH>;
510 line-name = "PU_BMC_GPIOS6";
515 gpios = <ASPEED_GPIO(Y, 0) GPIO_ACTIVE_HIGH>;
517 line-name = "BMC_NCSI_MUX_CTL_S0";
522 gpios = <ASPEED_GPIO(Y, 1) GPIO_ACTIVE_HIGH>;
524 line-name = "BMC_NCSI_MUX_CTL_S1";
529 gpios = <ASPEED_GPIO(Z, 0) GPIO_ACTIVE_HIGH>;
531 line-name = "I2C_RISER2_INT_N";
536 gpios = <ASPEED_GPIO(Z, 2) GPIO_ACTIVE_HIGH>;
538 line-name = "I2C_RISER2_RESET_N";
543 gpios = <ASPEED_GPIO(Z, 3) GPIO_ACTIVE_HIGH>;
545 line-name = "FM_BMC_PCH_SCI_LPC_N";
550 gpios = <ASPEED_GPIO(Z, 7) GPIO_ACTIVE_HIGH>;
552 line-name = "BMC_POST_CMPLT_N";
557 gpios = <ASPEED_GPIO(AA, 0) GPIO_ACTIVE_HIGH>;
559 line-name = "HOST_BMC_USB_SEL";
564 gpios = <ASPEED_GPIO(AA, 5) GPIO_ACTIVE_HIGH>;
566 line-name = "I2C_BUS1_RST_OUT_N";