1 // SPDX-License-Identifier: GPL-2.0+
2 // Copyright (c) 2018 Inventec Corporation
5 #include "aspeed-g5.dtsi"
6 #include <dt-bindings/gpio/aspeed-gpio.h>
10 compatible = "inventec,lanyang-bmc", "aspeed,ast2500";
14 bootargs = "console=ttyS4,115200 earlyprintk";
18 reg = <0x80000000 0x40000000>;
26 flash_memory: region@98000000 {
28 reg = <0x98000000 0x04000000>; /* 64M */
33 compatible = "gpio-leds";
36 label = "System_boot_status";
37 gpios = <&gpio ASPEED_GPIO(B, 6) GPIO_ACTIVE_LOW>;
41 label = "Attention_locator";
42 gpios = <&gpio ASPEED_GPIO(B, 7) GPIO_ACTIVE_HIGH>;
46 label = "Platform_fault";
47 gpios = <&gpio ASPEED_GPIO(B, 1) GPIO_ACTIVE_HIGH>;
51 label = "Onboard_drive_fault";
52 gpios = <&gpio ASPEED_GPIO(B, 3) GPIO_ACTIVE_HIGH>;
56 gpios = <&gpio ASPEED_GPIO(H, 6) GPIO_ACTIVE_HIGH>;
61 gpios = <&gpio ASPEED_GPIO(H, 7) GPIO_ACTIVE_HIGH>;
66 compatible = "fsi-master-gpio", "fsi-master";
70 clock-gpios = <&gpio ASPEED_GPIO(J, 0) GPIO_ACTIVE_HIGH>;
71 data-gpios = <&gpio ASPEED_GPIO(J, 1) GPIO_ACTIVE_HIGH>;
72 trans-gpios = <&gpio ASPEED_GPIO(D, 5) GPIO_ACTIVE_HIGH>;
73 enable-gpios = <&gpio ASPEED_GPIO(D, 0) GPIO_ACTIVE_HIGH>;
74 mux-gpios = <&gpio ASPEED_GPIO(H, 2) GPIO_ACTIVE_HIGH>;
78 compatible = "iio-hwmon";
79 io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>,
80 <&adc 4>, <&adc 5>, <&adc 6>, <&adc 7>,
81 <&adc 8>, <&adc 9>, <&adc 10>, <&adc 11>,
82 <&adc 13>, <&adc 14>, <&adc 15>;
86 compatible = "iio-hwmon";
87 io-channels = <&adc 12>;
93 pinctrl-names = "default";
94 pinctrl-0 = <&pinctrl_pwm0_default &pinctrl_pwm1_default
95 &pinctrl_pwm2_default &pinctrl_pwm3_default>;
99 aspeed,fan-tach-ch = /bits/ 8 <0x00>;
104 aspeed,fan-tach-ch = /bits/ 8 <0x01>;
109 aspeed,fan-tach-ch = /bits/ 8 <0x02>;
114 aspeed,fan-tach-ch = /bits/ 8 <0x03>;
124 #include "openbmc-flash-layout.dtsi"
130 pinctrl-names = "default";
131 pinctrl-0 = <&pinctrl_spi1_default>;
142 pinctrl-names = "default";
143 pinctrl-0 = <&pinctrl_spi2ck_default
144 &pinctrl_spi2cs0_default
145 &pinctrl_spi2cs1_default
146 &pinctrl_spi2miso_default
147 &pinctrl_spi2mosi_default>;
156 pinctrl-names = "default";
157 pinctrl-0 = <&pinctrl_txd1_default
158 &pinctrl_rxd1_default>;
163 memory-region = <&flash_memory>;
169 snoop-ports = <0x80>;
179 pinctrl-names = "default";
180 pinctrl-0 = <&pinctrl_rmii1_default>;
181 clocks = <&syscon ASPEED_CLK_GATE_MAC1CLK>,
182 <&syscon ASPEED_CLK_MAC1RCLK>;
183 clock-names = "MACCLK", "RCLK";
190 pinctrl-names = "default";
191 pinctrl-0 = <&pinctrl_rgmii2_default &pinctrl_mdio2_default>;
198 compatible = "atmel,24c64";
204 compatible = "nxp,pcf8523";
209 compatible = "ti,tmp75";
267 aspeed,external-nodes = <&gfx &lhc>;
273 gpios = <ASPEED_GPIO(B, 0) GPIO_ACTIVE_HIGH>;
275 line-name = "BMC_HDD1_PWR_EN";
280 gpios = <ASPEED_GPIO(B, 5) GPIO_ACTIVE_HIGH>;
282 line-name = "BMC_USB1_OCI2";
287 gpios = <ASPEED_GPIO(H, 5) GPIO_ACTIVE_HIGH>;
289 line-name = "BMC_CP0_PERST_ENABLE_R";
294 gpios = <ASPEED_GPIO(Z, 2) GPIO_ACTIVE_HIGH>;
296 line-name = "RST_PCA9546_U177_N";
301 gpios = <ASPEED_GPIO(AA, 6) GPIO_ACTIVE_HIGH>;
303 line-name = "BMC_CP0_RESET_N";
308 gpios = <ASPEED_GPIO(AA, 7) GPIO_ACTIVE_HIGH>;
310 line-name = "BMC_TPM_RESET_N";
315 gpios = <ASPEED_GPIO(AB, 0) GPIO_ACTIVE_LOW>;
317 line-name = "BMC_USB_PWRON_N";
329 #include "ibm-power9-dual.dtsi"