blob: 555485871e7a7db026aee2ac7c6709a00414e93e [file] [log] [blame]
Tom Rini762f85b2024-07-20 11:15:10 -06001// SPDX-License-Identifier: GPL-2.0+
2/dts-v1/;
3
4#include "aspeed-g5.dtsi"
5#include <dt-bindings/gpio/aspeed-gpio.h>
6#include <dt-bindings/i2c/i2c.h>
7#include <dt-bindings/interrupt-controller/irq.h>
8#include <dt-bindings/leds/common.h>
9
10/{
11 model = "ASRock SPC621D8HM3 BMC";
12 compatible = "asrock,spc621d8hm3-bmc", "aspeed,ast2500";
13
14 aliases {
15 serial4 = &uart5;
16
17 i2c20 = &i2c1mux0ch0;
18 i2c21 = &i2c1mux0ch1;
19 };
20
21 chosen {
22 stdout-path = &uart5;
23 };
24
25 memory@80000000 {
26 reg = <0x80000000 0x20000000>;
27 };
28
29 leds {
30 compatible = "gpio-leds";
31
32 /* BMC heartbeat */
33 led-0 {
34 gpios = <&gpio ASPEED_GPIO(H, 6) GPIO_ACTIVE_LOW>;
35 function = LED_FUNCTION_HEARTBEAT;
36 color = <LED_COLOR_ID_GREEN>;
37 linux,default-trigger = "timer";
38 };
39
40 /* system fault */
41 led-1 {
42 gpios = <&gpio ASPEED_GPIO(Z, 2) GPIO_ACTIVE_LOW>;
43 function = LED_FUNCTION_FAULT;
44 color = <LED_COLOR_ID_RED>;
45 panic-indicator;
46 };
47 };
48
49 iio-hwmon {
50 compatible = "iio-hwmon";
51 io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>,
52 <&adc 4>, <&adc 5>, <&adc 6>, <&adc 7>,
53 <&adc 8>, <&adc 9>, <&adc 10>, <&adc 11>,
54 <&adc 12>, <&adc 13>, <&adc 14>, <&adc 15>;
55 };
56};
57
58&fmc {
59 status = "okay";
60 flash@0 {
61 status = "okay";
62 m25p,fast-read;
63 label = "bmc";
64 spi-max-frequency = <50000000>; /* 50 MHz */
65#include "openbmc-flash-layout-64.dtsi"
66 };
67};
68
69&uart5 {
70 status = "okay";
71};
72
73&vuart {
74 status = "okay";
75 aspeed,lpc-io-reg = <0x2f8>;
76 aspeed,lpc-interrupts = <3 IRQ_TYPE_LEVEL_HIGH>;
77};
78
79&mac0 {
80 status = "okay";
81
82 pinctrl-names = "default";
83 pinctrl-0 = <&pinctrl_rgmii1_default &pinctrl_mdio1_default>;
84
85 nvmem-cells = <&eth0_macaddress>;
86 nvmem-cell-names = "mac-address";
87};
88
89&i2c0 {
90 status = "okay";
91};
92
93&i2c1 {
94 status = "okay";
95
96 /* hardware monitor/thermal sensor */
97 temperature-sensor@29 {
98 compatible = "nuvoton,nct7802";
99 reg = <0x29>;
100 };
101
102 /* motherboard temp sensor (TMP1, near BMC) */
103 temperature-sensor@4c {
104 compatible = "nuvoton,w83773g";
105 reg = <0x4c>;
106 };
107
108 /* motherboard FRU eeprom */
109 eeprom@50 {
110 compatible = "st,24c128", "atmel,24c128";
111 reg = <0x50>;
112 pagesize = <16>;
113 #address-cells = <1>;
114 #size-cells = <1>;
115
116 eth0_macaddress: macaddress@3f80 {
117 reg = <0x3f80 6>;
118 };
119 };
120
121 /* M.2 slot smbus mux */
122 i2c-mux@71 {
123 compatible = "nxp,pca9545";
124 reg = <0x71>;
125 #address-cells = <1>;
126 #size-cells = <0>;
127
128 i2c1mux0ch0: i2c@0 {
129 #address-cells = <1>;
130 #size-cells = <0>;
131 reg = <0>;
132 };
133
134 i2c1mux0ch1: i2c@1 {
135 #address-cells = <1>;
136 #size-cells = <0>;
137 reg = <1>;
138 };
139 };
140};
141
142&i2c2 {
143 status = "okay";
144};
145
146&i2c3 {
147 status = "okay";
148};
149
150&i2c4 {
151 status = "okay";
152};
153
154&i2c5 {
155 status = "okay";
156};
157
158&i2c6 {
159 status = "okay";
160};
161
162&i2c7 {
163 status = "okay";
164};
165
166&i2c8 {
167 status = "okay";
168};
169
170&i2c9 {
171 status = "okay";
172};
173
174&i2c10 {
175 status = "okay";
176};
177
178&i2c11 {
179 status = "okay";
180};
181
182&i2c12 {
183 status = "okay";
184};
185
186&i2c13 {
187 status = "okay";
188};
189
190&video {
191 status = "okay";
192};
193
194&vhub {
195 status = "okay";
196};
197
198&lpc_ctrl {
199 status = "okay";
200};
201
202&lpc_snoop {
203 status = "okay";
204 snoop-ports = <0x80>;
205};
206
207&kcs3 {
208 status = "okay";
209 aspeed,lpc-io-reg = <0xca2>;
210};
211
212&peci0 {
213 status = "okay";
214};
215
216&pwm_tacho {
217 status = "okay";
218 pinctrl-names = "default";
219 pinctrl-0 = <&pinctrl_pwm0_default
220 &pinctrl_pwm2_default
221 &pinctrl_pwm3_default
222 &pinctrl_pwm4_default>;
223
224 fan@0 {
225 reg = <0x00>;
226 aspeed,fan-tach-ch = /bits/ 8 <0x00>;
227 };
228
229 fan@2 {
230 reg = <0x02>;
231 aspeed,fan-tach-ch = /bits/ 8 <0x02>;
232 };
233
234 fan@3 {
235 reg = <0x03>;
236 aspeed,fan-tach-ch = /bits/ 8 <0x03>;
237 };
238
239 fan@4 {
240 reg = <0x04>;
241 aspeed,fan-tach-ch = /bits/ 8 <0x04>;
242 };
243};
244
245&gpio {
246 status = "okay";
247 gpio-line-names =
248 /* A */ "LOCATORLED_STATUS_N", "LOCATORBTN_N",
249 "BMC_READY_N", "FM_SPD_DDRCPU_LVLSHFT_EN",
250 "", "", "", "",
251 /* B */ "NODE_ID_1", "NODE_ID_2", "PSU_FAN_FAIL_N", "",
252 "", "", "", "GPIO_RST",
253 /* C */ "", "", "", "", "", "", "", "",
254 /* D */ "FP_PWR_BTN_MUX_N", "FM_BMC_PWRBTN_OUT_N",
255 "FP_RST_BTN_N", "RST_BMC_RSTBTN_OUT_N",
256 "NMI_BTN_N", "BMC_NMI",
257 "", "",
258 /* E */ "", "", "", "FM_ME_RCVR_N", "", "", "", "",
259 /* F */ "BMC_SMB_SEL_N", "FM_CPU2_DISABLE_COD_N",
260 "FM_REMOTE_DEBUG_BMC_EN", "FM_CPU_ERR0_LVT3_EN",
261 "FM_CPU_ERR1_LVT3_EN", "FM_CPU_ERR2_LVT3_EN",
262 "FM_MEM_THERM_EVENT_CPU1_LVT3_N", "FM_MEM_THERM_EVENT_CPU2_LVT3_N",
263 /* G */ "HWM_BAT_EN", "", "BMC_PHYRST_N", "FM_BIOS_SPI_BMC_CTRL",
264 "BMC_ALERT1_N", "BMC_ALERT2_N", "BMC_ALERT3_N", "IRQ_SML0_ALERT_N",
265 /* H */ "BMC_SMB_PRESENT_1_N", "FM_PCH_CORE_VID_0", "FM_PCH_CORE_VID_1", "",
266 "FM_MFG_MODE", "BMC_RTCRST", "BMC_HB_LED_N", "BMC_CASEOPEN",
267 /* I */ "IRQ_PVDDQ_ABCD_CPU1_VRHOT_LVC3_N", "IRQ_PVDDQ_ABCD_CPU2_VRHOT_LVC3_N",
268 "IRQ_PVDDQ_EFGH_CPU1_VRHOT_LVC3_N", "IRQ_PVDDQ_EFGH_CPU2_VRHOT_LVC3_N",
269 "", "", "", "",
270 /* J */ "", "", "", "", "", "", "", "",
271 /* K */ "", "", "", "", "", "", "", "",
272 /* L */ "", "", "", "", "", "", "", "",
273 /* M */ "FM_PVCCIN_CPU1_PWR_IN_ALERT_N", "FM_PVCCIN_CPU2_PWR_IN_ALERT_N",
274 "IRQ_PVCCIN_CPU1_VRHOT_LVC3_N", "IRQ_PVCCIN_CPU2_VRHOT_LVC3_N",
275 "FM_CPU1_PROCHOT_BMC_LVC3_N", "",
276 "FM_CPU1_MEMHOT_OUT_N", "FM_CPU2_MEMHOT_OUT_N",
277 /* N */ "", "", "", "", "", "", "", "",
278 /* O */ "", "", "", "", "", "", "", "",
279 /* P */ "", "", "", "", "", "", "", "",
280 /* Q */ "", "", "", "", "", "", "RST_GLB_RST_WARN_N", "PCIE_WAKE_N",
281 /* R */ "", "", "FM_BMC_SUSACK_N", "FM_BMC_EUP_LOT6_N",
282 "", "FM_BMC_PCH_SCI_LPC_N", "", "",
283 /* S */ "FM_DBP_PRESENT_N", "FM_CPU2_SKTOCC_LCT3_N",
284 "FM_CPU1_FIVR_FAULT_LVT3", "FM_CPU2_FIVR_FAULT_LVT3",
285 "", "", "", "",
286 /* T */ "", "", "", "", "", "", "", "",
287 /* U */ "", "", "", "", "", "", "", "",
288 /* V */ "", "", "", "", "", "", "", "",
289 /* W */ "", "", "", "", "", "", "", "",
290 /* X */ "", "", "", "", "", "", "", "",
291 /* Y */ "FM_SLPS3_N", "FM_SLPS4_N", "", "FM_BMC_ONCTL_N_PLD",
292 "", "", "", "",
293 /* Z */ "FM_CPU_MSMI_CATERR_LVT3_N", "", "SYSTEM_FAULT_LED_N", "BMC_THROTTLE_N",
294 "", "", "", "",
295 /* AA */ "FM_CPU1_THERMTRIP_LATCH_LVT3_N", "FM_CPU2_THERMTRIP_LATCH_LVT3_N",
296 "FM_BIOS_POST_COMPLT_N", "DBP_BMC_SYSPWROK",
297 "", "IRQ_SML0_ALERT_MUX_N",
298 "IRQ_SMI_ACTIVE_N", "IRQ_NMI_EVENT_N",
299 /* AB */ "FM_PCH_BMC_THERMTRIP_N", "PWRGD_SYS_PWROK",
300 "ME_OVERRIDE", "IRQ_BMC_PCH_SMI_LPC_N",
301 "", "", "", "",
302 /* AC */ "", "", "", "", "", "", "", "";
303};
304
305&adc {
306 status = "okay";
307 pinctrl-names = "default";
308 pinctrl-0 = <&pinctrl_adc0_default /* 3VSB */
309 &pinctrl_adc1_default /* 5VSB */
310 &pinctrl_adc2_default /* CPU1 */
311 &pinctrl_adc3_default /* NC */
312 &pinctrl_adc4_default /* VCCMABCD */
313 &pinctrl_adc5_default /* VCCMEFGH */
314 &pinctrl_adc6_default /* NC */
315 &pinctrl_adc7_default /* NC */
316 &pinctrl_adc8_default /* PVNN_PCH */
317 &pinctrl_adc9_default /* 1P05PCH */
318 &pinctrl_adc10_default /* 1P8PCH */
319 &pinctrl_adc11_default /* BAT */
320 &pinctrl_adc12_default /* 3V */
321 &pinctrl_adc13_default /* 5V */
322 &pinctrl_adc14_default /* 12V */
323 &pinctrl_adc15_default>; /* GND */
324};